clib/mktemp.c & shell/If: Fix checking for existing file.
[AROS.git] / configure
blobc163b54dd6a2b4a855072e1f3a39bda002bc7585
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 aros_usb30_code
605 objc_target
606 gcc_target_cpu
607 ignore_undefined_symbols
608 aros_modules_debug
609 aros_stack_debug
610 aros_mungwall_debug
611 aros_debug
612 ENABLE_X11
613 KERNEL_DBUS_INCLUDES
614 KERNEL_DBUS_KOBJ
615 DBUS_LIBFLAGS
616 DBUS_CFLAGS
617 ENABLE_DBUS
618 aros_android_level
619 gcc_default_float_abi
620 gcc_default_fpu
621 gcc_default_cpu_tune
622 gcc_default_cpu
623 aros_ios_sdk
624 aros_ios_version
625 aros_ios_platform
626 aros_enable_mmu
627 aros_nesting_supervisor
628 aros_palm_debug_hack
629 aros_serial_debug
630 aros_host_sdl_libs
631 aros_host_sdl_cflags
632 aros_host_x11_libdirs
633 aros_host_x11_includes
634 DO_VIDMODE_SUPPORT
635 DO_XSHM_SUPPORT
636 aros_default_wbdepth
637 aros_default_wbheight
638 aros_default_wbwidth
639 oss_library_target
640 pci_hidd_target
641 sdl_hidd_target
642 x11_hidd_target
643 aros_cflags_format_security
644 aros_cflags_strict_overflow
645 aros_cflags_enum_compare
646 aros_cflags_array_bounds
647 aros_cflags_unused_but_set_variable
648 crosstools_cxx_target
649 crosstools_target
650 aros_target_strip_flags
651 aros_target_genmap
652 aros_debug_ldflags
653 aros_debug_aflags
654 aros_debug_cflags
655 aros_target_cflags
656 aros_kernel_ldflags
657 aros_kernel_objcflags
658 aros_kernel_includes
659 aros_kernel_cflags
660 aros_shared_ldflags
661 aros_shared_aflags
662 aros_shared_cflags
663 aros_config_ldflags
664 aros_config_aflags
665 aros_config_cflags
666 aros_arch_libs
667 aros_compiler_libs
668 aros_object_format
669 aros_shared_ld
670 aros_shared_default
671 aros_target_nm
672 aros_target_strip
673 aros_target_objcopy
674 aros_target_objdump
675 aros_target_cc_path
676 aros_target_cc_includes
677 aros_target_ld
678 aros_target_as
679 aros_target_cpp
680 aros_target_cxx
681 aros_target_cc
682 aros_plain_ar
683 aros_plain_nm
684 aros_target_ranlib
685 aros_target_ar
686 aros_target_suffix
687 aros_target_variant
688 aros_target_cpu
689 aros_target_family
690 aros_target_arch
691 aros_target_bootloader
692 aros_target_iconset
693 aros_target_guitheme
694 aros_tools_dir
695 aros_host_lib_suffix
696 aros_host_exe_suffix
697 aros_host_mkargs
698 aros_host_mkdep
699 aros_host_debug
700 aros_host_ldflags
701 gnu89_inline
702 aros_host_cxxflags
703 aros_host_cflags
704 aros_host_make
705 aros_host_cxx
706 aros_host_cc
707 aros_host_cpp
708 aros_host_cpu
709 aros_host_arch
710 aros_cc_pre
711 aros_amigaos_compliance
712 AROS_PORTSSRCDIR
713 AROS_CROSSTOOLSDIR
714 SRCDIR
715 AROS_BUILDDIR_UNIX
716 AROS_BUILDDIR
717 aros_target_toolchain
718 aros_flavour_uc
719 aros_flavour
720 aros_cpu
721 aros_arch
722 SDL_LIBS
723 SDL_CFLAGS
724 SDL_CONFIG
725 XMKMF
726 aros_cflags_iquote_end
727 aros_cflags_iquote
728 kernel_cflags_iquote_end
729 kernel_cflags_iquote
730 host_cflags_iquote_end
731 host_cflags_iquote
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
737 aros_kernel_rescomp
738 orig_target_objdump
739 orig_target_objcopy
740 orig_target_strip
741 orig_target_nm
742 orig_target_ranlib
743 orig_target_ar
744 orig_target_as
745 orig_target_ld
746 orig_target_cxx
747 orig_target_cc
748 orig_target_cpp
749 aros_kernel_objdump
750 aros_kernel_objcopy
751 aros_kernel_strip
752 aros_kernel_nm
753 aros_kernel_ranlib
754 aros_kernel_ar
755 aros_kernel_as
756 aros_kernel_ld
757 aros_kernel_cxx
758 aros_kernel_cc
759 aros_kernel_cpp
761 android_tool
762 CCACHE
763 DISTCC
764 LIBOBJS
765 EGREP
766 GREP
768 TEST
771 pkgpyexecdir
772 pyexecdir
773 pkgpythondir
774 pythondir
775 PYTHON_PLATFORM
776 PYTHON_EXEC_PREFIX
777 PYTHON_PREFIX
778 PYTHON_VERSION
779 PYTHON
780 PATCH
781 CHMOD
783 PPMTOILBM
784 PNGTOPNM
785 FLEX
786 BISON
789 UNIQ
790 SORT
791 TOUCH
792 MKDIR
793 ECHO
797 aros_host_strip
798 aros_host_ranlib
799 aros_host_ar
800 aros_host_automake
801 aros_host_autoheader
802 aros_host_autoconf
803 aros_host_aclocal
804 aros_host_ld
805 MMAKE
808 ac_ct_CC
809 CFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CXX
814 CPPFLAGS
815 LDFLAGS
816 CXXFLAGS
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_build_type
868 enable_debug
869 enable_distcc
870 enable_ccache
871 with_kernel_gcc_version
872 with_gcc_version
873 with_optimization
874 with_paranoia
875 enable_target_variant
876 with_xcode
877 with_sdk_version
878 with_sdk
879 with_ndk
880 with_ndk_version
881 enable_amigaos_compliance
882 with_kernel_toolchain_prefix
883 with_elf_toolchain_prefix
884 with_aros_toolchain
885 enable_crosstools
886 with_aros_toolchain_install
887 enable_objc
888 with_cpu
889 with_fpu
890 with_float
891 with_aros_gcc
892 with_portssources
893 with_bootloader
894 with_iconset
895 with_theme
896 enable_includes
897 with_resolution
898 with_serial_debug
899 enable_palm_debug_hack
900 enable_usb30_code
901 enable_nesting_supervisor
902 enable_mmu
903 enable_x11_hidd
904 with_x
905 enable_x11_shm
906 enable_x11_vidmode
907 enable_sdl_hidd
908 with_sdl_prefix
909 with_sdl_exec_prefix
910 enable_sdltest
911 enable_dbus
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
917 CXXFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
923 CFLAGS
925 PYTHON
926 XMKMF'
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE}'
968 infodir='${datarootdir}/info'
969 htmldir='${docdir}'
970 dvidir='${docdir}'
971 pdfdir='${docdir}'
972 psdir='${docdir}'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
977 ac_prev=
978 ac_dashdash=
979 for ac_option
981 # If the previous option needs an argument, assign it.
982 if test -n "$ac_prev"; then
983 eval $ac_prev=\$ac_option
984 ac_prev=
985 continue
988 case $ac_option in
989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 *=) ac_optarg= ;;
991 *) ac_optarg=yes ;;
992 esac
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
998 ac_dashdash=yes ;;
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001 ac_prev=bindir ;;
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003 bindir=$ac_optarg ;;
1005 -build | --build | --buil | --bui | --bu)
1006 ac_prev=build_alias ;;
1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008 build_alias=$ac_optarg ;;
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015 cache_file=$ac_optarg ;;
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
1020 -datadir | --datadir | --datadi | --datad)
1021 ac_prev=datadir ;;
1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023 datadir=$ac_optarg ;;
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1032 -disable-* | --disable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1049 ac_prev=docdir ;;
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 ac_prev=dvidir ;;
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=\$ac_optarg ;;
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
1135 | --localstate | --localstat | --localsta | --localst | --locals)
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139 localstatedir=$ac_optarg ;;
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1152 no_create=yes ;;
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1262 -with-* | --with-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1271 "with_$ac_useropt"
1272 "*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322 esac
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 esac
1335 done
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $? "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used" >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1421 /^X\(\/\/\)$/{
1422 s//\1/
1425 /^X\(\/\).*/{
1426 s//\1/
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1434 else
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures this package to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1524 cat <<\_ACEOF
1526 X features:
1527 --x-includes=DIR X include files are in DIR
1528 --x-libraries=DIR X library files are in DIR
1530 System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 _ACEOF
1536 if test -n "$ac_init_help"; then
1538 cat <<\_ACEOF
1540 Optional Features:
1541 --disable-option-checking ignore unrecognized --enable/--with options
1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1544 --enable-build-type=TYPE
1545 Select the build type. Available types are:
1546 personal, nightly, snapshot, milestone, release. Do
1547 NOT use this option unless you know what you are
1548 doing! (default=personal)
1549 --enable-debug=list Enable different types of debug. Commas or
1550 whitespaces can be used to separate the items in the
1551 list. Available types of debug are: all, none,
1552 messages, stack, mungwall, modules, symbols. If no
1553 list is provided then "all" is assumed.
1554 (default=none)
1555 --enable-distcc Use distcc as a front end to the compiler
1556 (default=no).
1557 --enable-ccache Use ccache as a front end to the compiler
1558 (default=no).
1559 --enable-target-variant=NAME
1560 Enable a specific target variant(default=none)
1561 --enable-amigaos-compliance=VERSION
1562 Enforce userspace AmigaOS compliance to a specific
1563 KickStart version (default=none).
1564 --disable-crosstools Do not build cross-compiler toolchain
1565 --disable-objc Build without Objectve-C support
1566 --enable-includes=dir Alternative system include directory
1567 --enable-palm-debug-hack
1568 Enable palm debug output hack in palm native
1569 (default=no)
1570 --enable-usb30-code Enable usb3.0 code (default=no)
1571 --enable-nesting-supervisor
1572 Enable nesting supervisor support in unix
1573 (default=no)
1574 --disable-mmu Disable MMU support (default=enabled)
1575 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1576 --enable-x11-shm use X11 shared memory (default=auto)
1577 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1578 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1579 --disable-sdltest Do not try to compile and run a test SDL program
1580 --enable-dbus Enable DBUS support via dbus.library (default=no)
1582 Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-kernel-gcc-version=VERSION
1586 Use host gcc-VERSION for building AROS
1587 --with-gcc-version=VERSION
1588 Use host gcc-VERSION for building AROS
1589 --with-optimization=FLAGS
1590 Use optimization flags FLAGS (default=-O2).
1591 --with-paranoia=FLAGS CC flags to enable paranoia
1592 --with-xcode=PATH Specify XCode path for iOS targets
1593 (default=/Developer).
1594 --with-sdk-version=VERSION
1595 Use iOS SDK version VERSION (default=4.1).
1596 --with-sdk=PATH Specify Android SDK path
1597 (default=$default_android_sdk).
1598 --with-ndk=PATH Specify Android NDK path (default=none).
1599 --with-sdk-version=LEVEL
1600 Use Android SDK for API LEVEL (default=12).
1601 --with-ndk-version=LEVEL
1602 Use Android NDK for API LEVEL (default=9).
1603 --with-kernel-toolchain-prefix=...
1604 Specify crosscompile toolchain prefix for kernel
1605 objects
1606 --with-elf-toolchain-prefix=...
1607 Specify crosscompile toolchain prefix to wrap for
1608 AROS objects
1609 --with-aros-toolchain=PREFIX
1610 Specify prebuilt AROS toolchain
1611 --with-aros-toolchain-install=DIR
1612 Where to install or search for cross tools binaries
1613 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1614 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1615 --with-float=<spec> Specify floating point ABI
1616 (default=$gcc_default_float_abi).
1617 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1618 --with-portssources=DIR Where to download sourcecode for external ports
1619 --with-bootloader=NAME Use a specific bootloader
1620 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1621 --with-theme=NAME Use a specific GUI Theme
1622 --with-resolution=XRESxYRESxDEPTH
1623 Default resolution of the initial WorkbenchScreen
1624 --with-serial-debug Enable serial debug output in native (default=no)
1625 --with-x use the X Window System
1626 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1627 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1629 Some influential environment variables:
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 CPP C preprocessor
1640 PYTHON the Python interpreter
1641 XMKMF Path to xmkmf, Makefile generator for X Window System
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1646 Report bugs to the package provider.
1647 _ACEOF
1648 ac_status=$?
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 configure
1710 generated by GNU Autoconf 2.68
1712 Copyright (C) 2010 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716 exit
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=1
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_compile LINENO
1762 # --------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_compile ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=1
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_c_try_compile
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_cpp
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_link
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1886 # accordingly.
1887 ac_fn_c_check_header_mongrel ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if eval \${$3+:} false; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 else
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1910 else
1911 ac_header_compiler=no
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1926 else
1927 ac_header_preproc=no
1929 rm -f conftest.err conftest.i conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935 yes:no: )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 no:yes:* )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 esac
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 eval "$3=\$ac_header_compiler"
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_header_mongrel
1969 # ac_fn_c_try_run LINENO
1970 # ----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1972 # that executables *can* be run.
1973 ac_fn_c_try_run ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_link"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>&5
1984 ac_status=$?
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1987 { { case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_try") 2>&5
1994 ac_status=$?
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; }; }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: program exited with status $ac_status" >&5
2000 $as_echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 ac_retval=$ac_status
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_c_try_run
2011 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2012 # -------------------------------------------------------
2013 # Tests whether HEADER exists and can be compiled using the include files in
2014 # INCLUDES, setting the cache variable VAR accordingly.
2015 ac_fn_c_check_header_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$3=yes"
2030 else
2031 eval "$3=no"
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_compile
2042 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2043 # ----------------------------------------------------
2044 # Tries to find if the field MEMBER exists in type AGGR, after including
2045 # INCLUDES, setting cache variable VAR accordingly.
2046 ac_fn_c_check_member ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2050 $as_echo_n "checking for $2.$3... " >&6; }
2051 if eval \${$4+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 static $2 ac_aggr;
2061 if (ac_aggr.$3)
2062 return 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 eval "$4=yes"
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static $2 ac_aggr;
2077 if (sizeof ac_aggr.$3)
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$4=yes"
2085 else
2086 eval "$4=no"
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 eval ac_res=\$$4
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_member
2099 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2100 # ---------------------------------------------
2101 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2102 # accordingly.
2103 ac_fn_c_check_decl ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 as_decl_name=`echo $2|sed 's/ *(.*//'`
2107 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2109 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 #ifndef $as_decl_name
2120 #ifdef __cplusplus
2121 (void) $as_decl_use;
2122 #else
2123 (void) $as_decl_name;
2124 #endif
2125 #endif
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 eval ac_res=\$$3
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 } # ac_fn_c_check_decl
2145 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2146 # -------------------------------------------
2147 # Tests whether TYPE exists after having included INCLUDES, setting cache
2148 # variable VAR accordingly.
2149 ac_fn_c_check_type ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 eval "$3=no"
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 if (sizeof ($2))
2165 return 0;
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2175 main ()
2177 if (sizeof (($2)))
2178 return 0;
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2185 else
2186 eval "$3=yes"
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_type
2199 # ac_fn_c_check_func LINENO FUNC VAR
2200 # ----------------------------------
2201 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2202 ac_fn_c_check_func ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if eval \${$3+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2214 #define $2 innocuous_$2
2216 /* System header to define __stub macros and hopefully few prototypes,
2217 which can conflict with char $2 (); below.
2218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2219 <limits.h> exists even on freestanding compilers. */
2221 #ifdef __STDC__
2222 # include <limits.h>
2223 #else
2224 # include <assert.h>
2225 #endif
2227 #undef $2
2229 /* Override any GCC internal prototype to avoid an error.
2230 Use char because int might match the return type of a GCC
2231 builtin and then its argument prototype would still apply. */
2232 #ifdef __cplusplus
2233 extern "C"
2234 #endif
2235 char $2 ();
2236 /* The GNU C library defines this for functions which it implements
2237 to always fail with ENOSYS. Some functions are actually named
2238 something starting with __ and the normal name is an alias. */
2239 #if defined __stub_$2 || defined __stub___$2
2240 choke me
2241 #endif
2244 main ()
2246 return $2 ();
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_link "$LINENO"; then :
2252 eval "$3=yes"
2253 else
2254 eval "$3=no"
2256 rm -f core conftest.err conftest.$ac_objext \
2257 conftest$ac_exeext conftest.$ac_ext
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_check_func
2265 cat >config.log <<_ACEOF
2266 This file contains any messages produced by compilers while
2267 running configure, to aid debugging if configure makes a mistake.
2269 It was created by $as_me, which was
2270 generated by GNU Autoconf 2.68. Invocation command line was
2272 $ $0 $@
2274 _ACEOF
2275 exec 5>>config.log
2277 cat <<_ASUNAME
2278 ## --------- ##
2279 ## Platform. ##
2280 ## --------- ##
2282 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2292 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2293 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2295 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2296 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2297 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299 _ASUNAME
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 $as_echo "PATH: $as_dir"
2307 done
2308 IFS=$as_save_IFS
2310 } >&5
2312 cat >&5 <<_ACEOF
2315 ## ----------- ##
2316 ## Core tests. ##
2317 ## ----------- ##
2319 _ACEOF
2322 # Keep a trace of the command line.
2323 # Strip out --no-create and --no-recursion so they do not pile up.
2324 # Strip out --silent because we don't want to record it for future runs.
2325 # Also quote any args containing shell meta-characters.
2326 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_configure_args=
2328 ac_configure_args0=
2329 ac_configure_args1=
2330 ac_must_keep_next=false
2331 for ac_pass in 1 2
2333 for ac_arg
2335 case $ac_arg in
2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338 | -silent | --silent | --silen | --sile | --sil)
2339 continue ;;
2340 *\'*)
2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 esac
2343 case $ac_pass in
2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 as_fn_append ac_configure_args1 " '$ac_arg'"
2347 if test $ac_must_keep_next = true; then
2348 ac_must_keep_next=false # Got value, back to normal.
2349 else
2350 case $ac_arg in
2351 *=* | --config-cache | -C | -disable-* | --disable-* \
2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354 | -with-* | --with-* | -without-* | --without-* | --x)
2355 case "$ac_configure_args0 " in
2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 esac
2359 -* ) ac_must_keep_next=true ;;
2360 esac
2362 as_fn_append ac_configure_args " '$ac_arg'"
2364 esac
2365 done
2366 done
2367 { ac_configure_args0=; unset ac_configure_args0;}
2368 { ac_configure_args1=; unset ac_configure_args1;}
2370 # When interrupted or exit'd, cleanup temporary files, and complete
2371 # config.log. We remove comments because anyway the quotes in there
2372 # would cause problems or look ugly.
2373 # WARNING: Use '\'' to represent an apostrophe within the trap.
2374 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375 trap 'exit_status=$?
2376 # Save into config.log some information that might help in debugging.
2378 echo
2380 $as_echo "## ---------------- ##
2381 ## Cache variables. ##
2382 ## ---------------- ##"
2383 echo
2384 # The following way of writing the cache mishandles newlines in values,
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2388 case $ac_val in #(
2389 *${as_nl}*)
2390 case $ac_var in #(
2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393 esac
2394 case $ac_var in #(
2395 _ | IFS | as_nl) ;; #(
2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397 *) { eval $ac_var=; unset $ac_var;} ;;
2398 esac ;;
2399 esac
2400 done
2401 (set) 2>&1 |
2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
2404 sed -n \
2405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407 ;; #(
2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 esac |
2412 sort
2414 echo
2416 $as_echo "## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##"
2419 echo
2420 for ac_var in $ac_subst_vars
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2430 if test -n "$ac_subst_files"; then
2431 $as_echo "## ------------------- ##
2432 ## File substitutions. ##
2433 ## ------------------- ##"
2434 echo
2435 for ac_var in $ac_subst_files
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2446 if test -s confdefs.h; then
2447 $as_echo "## ----------- ##
2448 ## confdefs.h. ##
2449 ## ----------- ##"
2450 echo
2451 cat confdefs.h
2452 echo
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2457 } >&5
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 exit $exit_status
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 done
2465 ac_signal=0
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2470 $as_echo "/* confdefs.h */" > confdefs.h
2472 # Predefined preprocessor variables.
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 _ACEOF
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2496 _ACEOF
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2501 ac_site_file1=NONE
2502 ac_site_file2=NONE
2503 if test -n "$CONFIG_SITE"; then
2504 # We do not want a PATH search for config.site.
2505 case $CONFIG_SITE in #((
2506 -*) ac_site_file1=./$CONFIG_SITE;;
2507 */*) ac_site_file1=$CONFIG_SITE;;
2508 *) ac_site_file1=./$CONFIG_SITE;;
2509 esac
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2513 else
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 test "x$ac_site_file" = xNONE && continue
2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2524 . "$ac_site_file" \
2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 as_fn_error $? "failed to load site script $ac_site_file
2528 See \`config.log' for more details" "$LINENO" 5 ; }
2530 done
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special files
2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2549 as_fn_append ac_header_list " stdlib.h"
2550 as_fn_append ac_header_list " unistd.h"
2551 as_fn_append ac_header_list " sys/param.h"
2552 # Check that the precious variables saved in the cache have kept the same
2553 # value.
2554 ac_cache_corrupted=false
2555 for ac_var in $ac_precious_vars; do
2556 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2557 eval ac_new_set=\$ac_env_${ac_var}_set
2558 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2559 eval ac_new_val=\$ac_env_${ac_var}_value
2560 case $ac_old_set,$ac_new_set in
2561 set,)
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2563 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2564 ac_cache_corrupted=: ;;
2565 ,set)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,);;
2571 if test "x$ac_old_val" != "x$ac_new_val"; then
2572 # differences in whitespace do not lead to failure.
2573 ac_old_val_w=`echo x $ac_old_val`
2574 ac_new_val_w=`echo x $ac_new_val`
2575 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2577 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2578 ac_cache_corrupted=:
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2581 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2582 eval $ac_var=\$ac_old_val
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2585 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2587 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2588 fi;;
2589 esac
2590 # Pass precious variables to config.status.
2591 if test "$ac_new_set" = set; then
2592 case $ac_new_val in
2593 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2594 *) ac_arg=$ac_var=$ac_new_val ;;
2595 esac
2596 case " $ac_configure_args " in
2597 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2598 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2599 esac
2601 done
2602 if $ac_cache_corrupted; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2606 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2607 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2609 ## -------------------- ##
2610 ## Main body of script. ##
2611 ## -------------------- ##
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 ac_aux_dir=
2622 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2623 if test -f "$ac_dir/install-sh"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/install-sh -c"
2626 break
2627 elif test -f "$ac_dir/install.sh"; then
2628 ac_aux_dir=$ac_dir
2629 ac_install_sh="$ac_aux_dir/install.sh -c"
2630 break
2631 elif test -f "$ac_dir/shtool"; then
2632 ac_aux_dir=$ac_dir
2633 ac_install_sh="$ac_aux_dir/shtool install -c"
2634 break
2636 done
2637 if test -z "$ac_aux_dir"; then
2638 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2646 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2647 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2651 # Check what host we are running on.
2652 # If a target is not suggested, we use this one.
2653 # Note that what we call a target, Autoconf calls a host.
2654 # Make sure we can run config.sub.
2655 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2656 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2659 $as_echo_n "checking build system type... " >&6; }
2660 if ${ac_cv_build+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 ac_build_alias=$build_alias
2664 test "x$ac_build_alias" = x &&
2665 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2666 test "x$ac_build_alias" = x &&
2667 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2673 $as_echo "$ac_cv_build" >&6; }
2674 case $ac_cv_build in
2675 *-*-*) ;;
2676 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2677 esac
2678 build=$ac_cv_build
2679 ac_save_IFS=$IFS; IFS='-'
2680 set x $ac_cv_build
2681 shift
2682 build_cpu=$1
2683 build_vendor=$2
2684 shift; shift
2685 # Remember, the first character of IFS is used to create $*,
2686 # except with old shells:
2687 build_os=$*
2688 IFS=$ac_save_IFS
2689 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2693 $as_echo_n "checking host system type... " >&6; }
2694 if ${ac_cv_host+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test "x$host_alias" = x; then
2698 ac_cv_host=$ac_cv_build
2699 else
2700 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2701 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2706 $as_echo "$ac_cv_host" >&6; }
2707 case $ac_cv_host in
2708 *-*-*) ;;
2709 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2710 esac
2711 host=$ac_cv_host
2712 ac_save_IFS=$IFS; IFS='-'
2713 set x $ac_cv_host
2714 shift
2715 host_cpu=$1
2716 host_vendor=$2
2717 shift; shift
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2720 host_os=$*
2721 IFS=$ac_save_IFS
2722 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2726 # The AROS target is slightly different to the normal GNU style
2727 # format. We don't have the middle part, and we reverse the order
2728 # of the $(CPU) and $(OS) bits.
2730 # Don't strip the version of the target yet, it might be
2731 # useful on some systems.
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2734 $as_echo_n "checking for AROS style target... " >&6; }
2736 if test "$target" = "NONE" ; then
2737 target=$host_os-$host_cpu
2738 else
2739 if test "$target" = "" ; then
2740 target=$host_os-$host_cpu
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2744 $as_echo "$target" >&6; }
2746 if test "$host_os" = "mingw32" ; then
2747 PWDCMD="pwd -W"
2750 # Don't know where else to put this...
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2752 $as_echo_n "checking building AROS in... " >&6; }
2753 AROS_BUILDDIR=`${PWDCMD-pwd}`
2754 AROS_BUILDDIR_UNIX=${PWD}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2756 $as_echo "$AROS_BUILDDIR" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2759 $as_echo_n "checking AROS source in... " >&6; }
2760 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2761 SRCDIR=${srcpwd}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2763 $as_echo "$SRCDIR" >&6; }
2765 # Parse the target field into something useful.
2767 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2768 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2771 # Some debug output, to be removed again.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2773 $as_echo_n "checking for target system (debug output)... " >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2775 $as_echo "$target_os" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2777 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2779 $as_echo "$target_cpu" >&6; }
2781 aros_default_wbwidth=800
2782 aros_default_wbheight=600
2783 aros_default_wbdepth=4
2786 # The first step is to find the host binaries.
2787 # Check for a compiler.
2788 # Due to a bug in autoconf check for c++ compiler first.
2789 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2790 ac_ext=cpp
2791 ac_cpp='$CXXCPP $CPPFLAGS'
2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2795 if test -z "$CXX"; then
2796 if test -n "$CCC"; then
2797 CXX=$CCC
2798 else
2799 if test -n "$ac_tool_prefix"; then
2800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CXX+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$CXX"; then
2810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2825 IFS=$as_save_IFS
2829 CXX=$ac_cv_prog_CXX
2830 if test -n "$CXX"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2832 $as_echo "$CXX" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2839 test -n "$CXX" && break
2840 done
2842 if test -z "$CXX"; then
2843 ac_ct_CXX=$CXX
2844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$ac_ct_CXX"; then
2854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_ac_ct_CXX="$ac_prog"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2869 IFS=$as_save_IFS
2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2874 if test -n "$ac_ct_CXX"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2876 $as_echo "$ac_ct_CXX" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2883 test -n "$ac_ct_CXX" && break
2884 done
2886 if test "x$ac_ct_CXX" = x; then
2887 CXX="g++"
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 CXX=$ac_ct_CXX
2901 # Provide some information about the compiler.
2902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2903 set X $ac_compile
2904 ac_compiler=$2
2905 for ac_option in --version -v -V -qversion; do
2906 { { ac_try="$ac_compiler $ac_option >&5"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912 $as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2914 ac_status=$?
2915 if test -s conftest.err; then
2916 sed '10a\
2917 ... rest of stderr output deleted ...
2918 10q' conftest.err >conftest.er1
2919 cat conftest.er1 >&5
2921 rm -f conftest.er1 conftest.err
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924 done
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2930 main ()
2934 return 0;
2936 _ACEOF
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2941 # of exeext.
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2943 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2944 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # The possible output files:
2947 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2949 ac_rmfiles=
2950 for ac_file in $ac_files
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956 done
2957 rm -f $ac_rmfiles
2959 if { { ac_try="$ac_link_default"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link_default") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2973 # so that the user can short-circuit this test for compilers unknown to
2974 # Autoconf.
2975 for ac_file in $ac_files ''
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2981 [ab].out )
2982 # We found the default executable, but exeext='' is most
2983 # certainly right.
2984 break;;
2985 *.* )
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 then :; else
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
2994 # actually working.
2995 break;;
2997 break;;
2998 esac
2999 done
3000 test "$ac_cv_exeext" = no && ac_cv_exeext=
3002 else
3003 ac_file=''
3005 if test -z "$ac_file"; then :
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 $as_echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error 77 "C++ compiler cannot create executables
3014 See \`config.log' for more details" "$LINENO" 5 ; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3020 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3022 $as_echo "$ac_file" >&6; }
3023 ac_exeext=$ac_cv_exeext
3025 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3026 ac_clean_files=$ac_clean_files_save
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3028 $as_echo_n "checking for suffix of executables... " >&6; }
3029 if { { ac_try="$ac_link"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_link") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 # `rm'.
3044 for ac_file in conftest.exe conftest conftest.*; do
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 break;;
3050 * ) break;;
3051 esac
3052 done
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3057 See \`config.log' for more details" "$LINENO" 5 ; }
3059 rm -f conftest conftest$ac_cv_exeext
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3061 $as_echo "$ac_cv_exeext" >&6; }
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3065 ac_exeext=$EXEEXT
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068 #include <stdio.h>
3070 main ()
3072 FILE *f = fopen ("conftest.out", "w");
3073 return ferror (f) || fclose (f) != 0;
3076 return 0;
3078 _ACEOF
3079 ac_clean_files="$ac_clean_files conftest.out"
3080 # Check that the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3083 $as_echo_n "checking whether we are cross compiling... " >&6; }
3084 if test "$cross_compiling" != yes; then
3085 { { ac_try="$ac_link"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_link") 2>&5
3093 ac_status=$?
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3096 if { ac_try='./conftest$ac_cv_exeext'
3097 { { case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; }; then
3107 cross_compiling=no
3108 else
3109 if test "$cross_compiling" = maybe; then
3110 cross_compiling=yes
3111 else
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error $? "cannot run C++ compiled programs.
3115 If you meant to cross compile, use \`--host'.
3116 See \`config.log' for more details" "$LINENO" 5 ; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3121 $as_echo "$cross_compiling" >&6; }
3123 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3124 ac_clean_files=$ac_clean_files_save
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3126 $as_echo_n "checking for suffix of object files... " >&6; }
3127 if ${ac_cv_objext+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3134 main ()
3138 return 0;
3140 _ACEOF
3141 rm -f conftest.o conftest.obj
3142 if { { ac_try="$ac_compile"
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_compile") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 for ac_file in conftest.o conftest.obj conftest.*; do
3154 test -f "$ac_file" || continue;
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3158 break;;
3159 esac
3160 done
3161 else
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $? "cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details" "$LINENO" 5 ; }
3170 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3173 $as_echo "$ac_cv_objext" >&6; }
3174 OBJEXT=$ac_cv_objext
3175 ac_objext=$OBJEXT
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3177 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3178 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3185 main ()
3187 #ifndef __GNUC__
3188 choke me
3189 #endif
3192 return 0;
3194 _ACEOF
3195 if ac_fn_cxx_try_compile "$LINENO"; then :
3196 ac_compiler_gnu=yes
3197 else
3198 ac_compiler_gnu=no
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3205 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3206 if test $ac_compiler_gnu = yes; then
3207 GXX=yes
3208 else
3209 GXX=
3211 ac_test_CXXFLAGS=${CXXFLAGS+set}
3212 ac_save_CXXFLAGS=$CXXFLAGS
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3214 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3215 if ${ac_cv_prog_cxx_g+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3219 ac_cxx_werror_flag=yes
3220 ac_cv_prog_cxx_g=no
3221 CXXFLAGS="-g"
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3226 main ()
3230 return 0;
3232 _ACEOF
3233 if ac_fn_cxx_try_compile "$LINENO"; then :
3234 ac_cv_prog_cxx_g=yes
3235 else
3236 CXXFLAGS=""
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3241 main ()
3245 return 0;
3247 _ACEOF
3248 if ac_fn_cxx_try_compile "$LINENO"; then :
3250 else
3251 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3252 CXXFLAGS="-g"
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 if ac_fn_cxx_try_compile "$LINENO"; then :
3265 ac_cv_prog_cxx_g=yes
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3275 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3276 if test "$ac_test_CXXFLAGS" = set; then
3277 CXXFLAGS=$ac_save_CXXFLAGS
3278 elif test $ac_cv_prog_cxx_g = yes; then
3279 if test "$GXX" = yes; then
3280 CXXFLAGS="-g -O2"
3281 else
3282 CXXFLAGS="-g"
3284 else
3285 if test "$GXX" = yes; then
3286 CXXFLAGS="-O2"
3287 else
3288 CXXFLAGS=
3291 ac_ext=c
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3324 done
3325 done
3326 IFS=$as_save_IFS
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3342 ac_ct_CC=$CC
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 CC=$ac_ct_CC
3390 else
3391 CC="$ac_cv_prog_CC"
3394 if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3458 ac_cv_prog_CC="cc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3464 IFS=$as_save_IFS
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3533 done
3535 if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in cl.exe
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3577 done
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5 ; }
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 set X $ac_compile
3603 ac_compiler=$2
3604 for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613 ac_status=$?
3614 if test -s conftest.err; then
3615 sed '10a\
3616 ... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623 done
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3627 if ${ac_cv_c_compiler_gnu+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 main ()
3636 #ifndef __GNUC__
3637 choke me
3638 #endif
3641 return 0;
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_compiler_gnu=yes
3646 else
3647 ac_compiler_gnu=no
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3655 if test $ac_compiler_gnu = yes; then
3656 GCC=yes
3657 else
3658 GCC=
3660 ac_test_CFLAGS=${CFLAGS+set}
3661 ac_save_CFLAGS=$CFLAGS
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3664 if ${ac_cv_prog_cc_g+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 ac_save_c_werror_flag=$ac_c_werror_flag
3668 ac_c_werror_flag=yes
3669 ac_cv_prog_cc_g=no
3670 CFLAGS="-g"
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_g=yes
3684 else
3685 CFLAGS=""
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3699 else
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 CFLAGS="-g"
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_g=yes
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3724 $as_echo "$ac_cv_prog_cc_g" >&6; }
3725 if test "$ac_test_CFLAGS" = set; then
3726 CFLAGS=$ac_save_CFLAGS
3727 elif test $ac_cv_prog_cc_g = yes; then
3728 if test "$GCC" = yes; then
3729 CFLAGS="-g -O2"
3730 else
3731 CFLAGS="-g"
3733 else
3734 if test "$GCC" = yes; then
3735 CFLAGS="-O2"
3736 else
3737 CFLAGS=
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3742 if ${ac_cv_prog_cc_c89+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 ac_cv_prog_cc_c89=no
3746 ac_save_CC=$CC
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <stdarg.h>
3750 #include <stdio.h>
3751 #include <sys/types.h>
3752 #include <sys/stat.h>
3753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754 struct buf { int x; };
3755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756 static char *e (p, i)
3757 char **p;
3758 int i;
3760 return p[i];
3762 static char *f (char * (*g) (char **, int), char **p, ...)
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std. */
3779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782 inside strings and character constants. */
3783 #define FOO(x) 'x'
3784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3786 int test (int i, double x);
3787 struct s1 {int (*f) (int a);};
3788 struct s2 {int (*f) (double a);};
3789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790 int argc;
3791 char **argv;
3793 main ()
3795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3797 return 0;
3799 _ACEOF
3800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803 CC="$ac_save_CC $ac_arg"
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_c89=$ac_arg
3807 rm -f core conftest.err conftest.$ac_objext
3808 test "x$ac_cv_prog_cc_c89" != "xno" && break
3809 done
3810 rm -f conftest.$ac_ext
3811 CC=$ac_save_CC
3814 # AC_CACHE_VAL
3815 case "x$ac_cv_prog_cc_c89" in
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818 $as_echo "none needed" >&6; } ;;
3819 xno)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821 $as_echo "unsupported" >&6; } ;;
3823 CC="$CC $ac_cv_prog_cc_c89"
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826 esac
3827 if test "x$ac_cv_prog_cc_c89" != xno; then :
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837 case $ac_cv_prog_cc_stdc in #(
3838 no) :
3839 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3840 *) :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3842 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3843 if ${ac_cv_prog_cc_c99+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 ac_cv_prog_cc_c99=no
3847 ac_save_CC=$CC
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <stdarg.h>
3851 #include <stdbool.h>
3852 #include <stdlib.h>
3853 #include <wchar.h>
3854 #include <stdio.h>
3856 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3857 #define debug(...) fprintf (stderr, __VA_ARGS__)
3858 #define showlist(...) puts (#__VA_ARGS__)
3859 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3860 static void
3861 test_varargs_macros (void)
3863 int x = 1234;
3864 int y = 5678;
3865 debug ("Flag");
3866 debug ("X = %d\n", x);
3867 showlist (The first, second, and third items.);
3868 report (x>y, "x is %d but y is %d", x, y);
3871 // Check long long types.
3872 #define BIG64 18446744073709551615ull
3873 #define BIG32 4294967295ul
3874 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3875 #if !BIG_OK
3876 your preprocessor is broken;
3877 #endif
3878 #if BIG_OK
3879 #else
3880 your preprocessor is broken;
3881 #endif
3882 static long long int bignum = -9223372036854775807LL;
3883 static unsigned long long int ubignum = BIG64;
3885 struct incomplete_array
3887 int datasize;
3888 double data[];
3891 struct named_init {
3892 int number;
3893 const wchar_t *name;
3894 double average;
3897 typedef const char *ccp;
3899 static inline int
3900 test_restrict (ccp restrict text)
3902 // See if C++-style comments work.
3903 // Iterate through items via the restricted pointer.
3904 // Also check for declarations in for loops.
3905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3906 continue;
3907 return 0;
3910 // Check varargs and va_copy.
3911 static void
3912 test_varargs (const char *format, ...)
3914 va_list args;
3915 va_start (args, format);
3916 va_list args_copy;
3917 va_copy (args_copy, args);
3919 const char *str;
3920 int number;
3921 float fnumber;
3923 while (*format)
3925 switch (*format++)
3927 case 's': // string
3928 str = va_arg (args_copy, const char *);
3929 break;
3930 case 'd': // int
3931 number = va_arg (args_copy, int);
3932 break;
3933 case 'f': // float
3934 fnumber = va_arg (args_copy, double);
3935 break;
3936 default:
3937 break;
3940 va_end (args_copy);
3941 va_end (args);
3945 main ()
3948 // Check bool.
3949 _Bool success = false;
3951 // Check restrict.
3952 if (test_restrict ("String literal") == 0)
3953 success = true;
3954 char *restrict newvar = "Another string";
3956 // Check varargs.
3957 test_varargs ("s, d' f .", "string", 65, 34.234);
3958 test_varargs_macros ();
3960 // Check flexible array members.
3961 struct incomplete_array *ia =
3962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3963 ia->datasize = 10;
3964 for (int i = 0; i < ia->datasize; ++i)
3965 ia->data[i] = i * 1.234;
3967 // Check named initializers.
3968 struct named_init ni = {
3969 .number = 34,
3970 .name = L"Test wide string",
3971 .average = 543.34343,
3974 ni.number = 58;
3976 int dynamic_array[ni.number];
3977 dynamic_array[ni.number - 1] = 543;
3979 // work around unused variable warnings
3980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3981 || dynamic_array[ni.number - 1] != 543);
3984 return 0;
3986 _ACEOF
3987 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3989 CC="$ac_save_CC $ac_arg"
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_prog_cc_c99=$ac_arg
3993 rm -f core conftest.err conftest.$ac_objext
3994 test "x$ac_cv_prog_cc_c99" != "xno" && break
3995 done
3996 rm -f conftest.$ac_ext
3997 CC=$ac_save_CC
4000 # AC_CACHE_VAL
4001 case "x$ac_cv_prog_cc_c99" in
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004 $as_echo "none needed" >&6; } ;;
4005 xno)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4007 $as_echo "unsupported" >&6; } ;;
4009 CC="$CC $ac_cv_prog_cc_c99"
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4011 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4012 esac
4013 if test "x$ac_cv_prog_cc_c99" != xno; then :
4014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4018 if ${ac_cv_prog_cc_c89+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 ac_cv_prog_cc_c89=no
4022 ac_save_CC=$CC
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdarg.h>
4026 #include <stdio.h>
4027 #include <sys/types.h>
4028 #include <sys/stat.h>
4029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4030 struct buf { int x; };
4031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4032 static char *e (p, i)
4033 char **p;
4034 int i;
4036 return p[i];
4038 static char *f (char * (*g) (char **, int), char **p, ...)
4040 char *s;
4041 va_list v;
4042 va_start (v,p);
4043 s = g (p, va_arg (v,int));
4044 va_end (v);
4045 return s;
4048 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4049 function prototypes and stuff, but not '\xHH' hex character constants.
4050 These don't provoke an error unfortunately, instead are silently treated
4051 as 'x'. The following induces an error, until -std is added to get
4052 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4053 array size at least. It's necessary to write '\x00'==0 to get something
4054 that's true only with -std. */
4055 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4057 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4058 inside strings and character constants. */
4059 #define FOO(x) 'x'
4060 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4062 int test (int i, double x);
4063 struct s1 {int (*f) (int a);};
4064 struct s2 {int (*f) (double a);};
4065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4066 int argc;
4067 char **argv;
4069 main ()
4071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4073 return 0;
4075 _ACEOF
4076 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4077 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4079 CC="$ac_save_CC $ac_arg"
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_prog_cc_c89=$ac_arg
4083 rm -f core conftest.err conftest.$ac_objext
4084 test "x$ac_cv_prog_cc_c89" != "xno" && break
4085 done
4086 rm -f conftest.$ac_ext
4087 CC=$ac_save_CC
4090 # AC_CACHE_VAL
4091 case "x$ac_cv_prog_cc_c89" in
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4094 $as_echo "none needed" >&6; } ;;
4095 xno)
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4097 $as_echo "unsupported" >&6; } ;;
4099 CC="$CC $ac_cv_prog_cc_c89"
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4101 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4102 esac
4103 if test "x$ac_cv_prog_cc_c89" != xno; then :
4104 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4105 else
4106 ac_cv_prog_cc_stdc=no
4111 esac
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4113 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4114 if ${ac_cv_prog_cc_stdc+:} false; then :
4115 $as_echo_n "(cached) " >&6
4118 case $ac_cv_prog_cc_stdc in #(
4119 no) :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;; #(
4122 '') :
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124 $as_echo "none needed" >&6; } ;; #(
4125 *) :
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4127 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4128 esac
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4136 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4137 # On Suns, sometimes $CPP names a directory.
4138 if test -n "$CPP" && test -d "$CPP"; then
4139 CPP=
4141 if test -z "$CPP"; then
4142 if ${ac_cv_prog_CPP+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 # Double quotes because CPP needs to be expanded
4146 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4148 ac_preproc_ok=false
4149 for ac_c_preproc_warn_flag in '' yes
4151 # Use a header file that comes with gcc, so configuring glibc
4152 # with a fresh cross-compiler works.
4153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 # <limits.h> exists even on freestanding compilers.
4155 # On the NeXT, cc -E runs the code through the compiler's parser,
4156 # not just through cpp. "Syntax error" is here to catch this case.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #ifdef __STDC__
4160 # include <limits.h>
4161 #else
4162 # include <assert.h>
4163 #endif
4164 Syntax error
4165 _ACEOF
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4168 else
4169 # Broken: fails on valid input.
4170 continue
4172 rm -f conftest.err conftest.i conftest.$ac_ext
4174 # OK, works on sane cases. Now check whether nonexistent headers
4175 # can be detected and how.
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4179 _ACEOF
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181 # Broken: success on invalid input.
4182 continue
4183 else
4184 # Passes both tests.
4185 ac_preproc_ok=:
4186 break
4188 rm -f conftest.err conftest.i conftest.$ac_ext
4190 done
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.i conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then :
4194 break
4197 done
4198 ac_cv_prog_CPP=$CPP
4201 CPP=$ac_cv_prog_CPP
4202 else
4203 ac_cv_prog_CPP=$CPP
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4206 $as_echo "$CPP" >&6; }
4207 ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 #ifdef __STDC__
4219 # include <limits.h>
4220 #else
4221 # include <assert.h>
4222 #endif
4223 Syntax error
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4227 else
4228 # Broken: fails on valid input.
4229 continue
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <ac_nonexistent.h>
4238 _ACEOF
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: success on invalid input.
4241 continue
4242 else
4243 # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4254 else
4255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details" "$LINENO" 5 ; }
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 # Check for a compatible awk
4269 for ac_prog in gawk nawk
4271 # Extract the first word of "$ac_prog", so it can be a program name with args.
4272 set dummy $ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_AWK+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$AWK"; then
4279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_AWK="$ac_prog"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4298 AWK=$ac_cv_prog_AWK
4299 if test -n "$AWK"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4301 $as_echo "$AWK" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4308 test -n "$AWK" && break
4309 done
4311 if test "$AWK" = ""; then
4312 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4314 # Extract the first word of "mmake", so it can be a program name with args.
4315 set dummy mmake; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_MMAKE+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$MMAKE"; then
4322 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_MMAKE="mmake "
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 MMAKE=$ac_cv_prog_MMAKE
4342 if test -n "$MMAKE"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4344 $as_echo "$MMAKE" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4352 # Perform some default variable assignments. Note all of these will be
4353 # Regenerated from the script, so there is no need to cache them.
4355 aros_host_cpp="$CPP"
4356 aros_host_cc="$CC"
4357 aros_host_cxx="$CXX"
4358 if test "$GCC" = "yes"; then
4359 aros_gcc_ld=`$CC -print-prog-name=ld`
4360 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4361 set dummy `basename $aros_gcc_ld`; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_path_aros_host_ld+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 case $aros_host_ld in
4368 [\\/]* | ?:[\\/]*)
4369 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in `dirname $aros_gcc_ld`
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4388 esac
4390 aros_host_ld=$ac_cv_path_aros_host_ld
4391 if test -n "$aros_host_ld"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4393 $as_echo "$aros_host_ld" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4401 if test "$aros_host_ld" = ""; then
4402 # Extract the first word of "ld", so it can be a program name with args.
4403 set dummy ld; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_path_aros_host_ld+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 case $aros_host_ld in
4410 [\\/]* | ?:[\\/]*)
4411 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4427 IFS=$as_save_IFS
4430 esac
4432 aros_host_ld=$ac_cv_path_aros_host_ld
4433 if test -n "$aros_host_ld"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4435 $as_echo "$aros_host_ld" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4443 if test "$aros_host_ld" = ""; then
4444 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4446 aros_host_make="make"
4447 aros_host_cflags=$CFLAGS
4448 aros_host_cxxflags=$CXXFLAGS
4449 aros_host_ldflags=$LDFLAGS
4450 aros_host_debug="-g -O0"
4451 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4452 aros_host_mkargs="--no-print-directory"
4453 aros_host_exe_suffix="$EXEEXT"
4454 aros_host_lib_suffix=""
4456 # Ignore all compliance, AROS ROMs = 0
4457 # KickStart v1.0 = 30
4458 # KickStart v1.3 = 34
4459 # KickStart v2.0 = 37
4460 # KickStart v3.0 = 39
4461 # KickStart v3.1 = 40
4462 # AmigaOS v3.5 = 44
4463 aros_amigaos_compliance=0
4465 for ac_prog in aclocal aclocal19 aclocal-1.9
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468 set dummy $ac_prog; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 if test -n "$aros_host_aclocal"; then
4475 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_prog_aros_host_aclocal="$ac_prog"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4488 done
4489 done
4490 IFS=$as_save_IFS
4494 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4495 if test -n "$aros_host_aclocal"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4497 $as_echo "$aros_host_aclocal" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4504 test -n "$aros_host_aclocal" && break
4505 done
4507 for ac_prog in autoconf autoconf259 autoconf253
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$aros_host_autoconf"; then
4517 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_aros_host_autoconf="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4537 if test -n "$aros_host_autoconf"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4539 $as_echo "$aros_host_autoconf" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$aros_host_autoconf" && break
4547 done
4549 for ac_prog in autoheader autoheader259 autoheader253
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$aros_host_autoheader"; then
4559 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_aros_host_autoheader="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4579 if test -n "$aros_host_autoheader"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4581 $as_echo "$aros_host_autoheader" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 test -n "$aros_host_autoheader" && break
4589 done
4591 for ac_prog in automake automake19 automake-1.9
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_aros_host_automake+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$aros_host_automake"; then
4601 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_aros_host_automake="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 aros_host_automake=$ac_cv_prog_aros_host_automake
4621 if test -n "$aros_host_automake"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4623 $as_echo "$aros_host_automake" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$aros_host_automake" && break
4631 done
4634 if test "$aros_host_aclocal" = ""; then
4635 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4637 if test "$aros_host_automake" = ""; then
4638 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4641 case "$aros_host_cc" in
4642 *gcc*)
4643 aros_host_cc_pipe="-pipe"
4645 icc)
4646 aros_host_cc_pipe=""
4649 aros_host_cc_pipe=""
4651 esac
4653 aros_kernel_cc_includes=""
4654 aros_target_cc_includes=""
4655 host_cc_elf=yes
4657 # ----------------------------------------------------------------------------------------
4658 # Host-specific defaults
4660 # This is the main host configuration section. It is where the host
4661 # can change the values of any variables it needs to change. We do
4662 # not look at anything that compiles to the target yet, we'll get
4663 # to that later.
4665 case "$host_os" in
4666 aros*)
4667 aros_host_arch="aros"
4668 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4669 case "$host_cpu" in
4670 *i?86*)
4671 aros_host_cpu="i386"
4673 *x86_64*)
4674 aros_host_cpu="x86_64"
4676 *powerpc*)
4677 aros_host_cpu="ppc"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4681 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4682 aros_host_cpu="$host_cpu"
4684 esac
4687 linux*)
4688 aros_host_arch="linux"
4689 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4690 android_build_os="linux-x86"
4691 android_tool="android"
4692 default_android_sdk="/opt/android-sdk-linux_x86"
4693 case "$host_cpu" in
4694 *i?86*)
4695 aros_host_cpu="i386"
4697 *x86_64*)
4698 aros_host_cpu="x86_64"
4700 *m68k*)
4701 aros_host_cpu="m68k"
4703 *powerpc*)
4704 aros_host_cpu="ppc"
4706 *arm*)
4707 aros_host_cpu="arm"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4711 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4712 aros_host_cpu="$host_cpu"
4714 esac
4717 freebsd*)
4718 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4719 aros_host_make="gmake"
4720 aros_host_arch="freebsd"
4721 aros_host_cpu="i386"
4723 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4725 case $host_os in
4726 freebsd[234]*)
4727 aros_object_format="elf_i386"
4731 aros_object_format="elf_i386_fbsd"
4733 esac
4737 darwin*)
4738 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4739 aros_host_arch="darwin"
4740 host_cc_elf=no
4741 android_build_os="darwin-x86"
4742 android_tool="android"
4743 default_android_sdk="/android-sdk-mac_x86"
4744 case "$host_cpu" in
4745 *i?86*)
4746 aros_host_cpu="i386"
4748 *x86_64*)
4749 aros_host_cpu="x86_64"
4751 *powerpc*)
4752 aros_host_cpu="ppc"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4756 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4757 aros_host_cpu="$host_cpu"
4759 esac
4761 aros_host_ldflags="$aros_host_ldflags -liconv"
4765 dragonfly*)
4766 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4767 aros_host_make="gmake"
4768 aros_host_arch="dragonfly"
4769 case $host_cpu in
4770 *i?86*)
4771 aros_host_cpu="i386"
4773 *amd64*)
4774 aros_host_cpu="x86_64"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4778 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4779 aros_host_cpu="$host_cpu"
4781 esac
4784 netbsd*)
4785 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4786 aros_host_make="gmake"
4787 aros_host_arch="netbsd"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4792 *m68k*)
4793 aros_host_cpu="m68k"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4797 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4798 aros_host_cpu="$host_cpu"
4800 esac
4801 aros_host_lib_suffix=".0.0"
4804 openbsd*)
4805 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4806 aros_host_make="gmake"
4807 aros_host_arch="openbsd"
4808 case "$host_cpu" in
4809 *i?86*)
4810 aros_host_cpu="i386"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4814 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4815 aros_host_cpu="$host_cpu"
4817 esac
4820 solaris*)
4821 aros_host_arch="solaris"
4822 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4823 case "$host_cpu" in
4824 *i?86*)
4825 aros_host_cpu="i386"
4827 *sparc*)
4828 aros_host_cpu="sparc"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4832 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4833 aros_host_cpu="$host_cpu"
4835 esac
4838 morphos*)
4839 aros_host_arch="morphos"
4840 aros_host_cpu="ppc"
4841 host_cc_elf=no
4844 amiga*)
4845 aros_host_arch="amiga"
4846 host_cc_elf=no
4847 SORT="/gg/bin/sort"
4848 TEST="/gg/bin/test"
4849 UNIQ="/gg/bin/uniq"
4850 FOR="for"
4851 TOUCH="/gg/bin/touch"
4852 case "$host_cpu" in
4853 *m68k*)
4854 aros_host_cpu="m68k"
4856 *powerpc*)
4857 aros_host_cpu="ppc"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4861 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4862 aros_host_cpu="$host_cpu"
4864 esac
4867 cygwin*)
4868 aros_host_arch="cygwin"
4869 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4870 host_cc_elf=no
4871 android_build_os="windows"
4872 android_tool="android.bat"
4873 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4875 case "$host_cpu" in
4876 *i?86*)
4877 aros_host_cpu="i386"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4881 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4882 aros_host_cpu="$host_cpu"
4884 esac
4887 mingw32*)
4888 aros_host_arch="mingw32"
4889 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4890 host_cc_elf=no
4891 android_build_os="windows"
4892 android_tool="android.bat"
4893 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4895 case "$host_cpu" in
4896 *i?86*)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4899 $as_echo_n "checking for Windows native gcc target... " >&6; }
4900 host_cpu=`gcc -dumpmachine`
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4902 $as_echo "$host_cpu" >&6; }
4905 esac
4907 case "$host_cpu" in
4908 *i?86*)
4909 aros_host_cpu="i386"
4912 mingw32*)
4913 aros_host_cpu="i386"
4916 *x86_64*)
4917 aros_host_cpu="x86_64"
4918 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4923 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4924 aros_host_cpu="$host_cpu"
4926 esac
4929 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4931 esac
4933 # Extract the first word of "ar", so it can be a program name with args.
4934 set dummy ar; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_aros_host_ar+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$aros_host_ar"; then
4941 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_aros_host_ar="ar cr"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 aros_host_ar=$ac_cv_prog_aros_host_ar
4961 if test -n "$aros_host_ar"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4963 $as_echo "$aros_host_ar" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4970 if test "$aros_host_ar" = ""; then
4971 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$aros_host_ranlib"; then
4981 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_aros_host_ranlib="ranlib "
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4994 done
4995 done
4996 IFS=$as_save_IFS
5000 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5001 if test -n "$aros_host_ranlib"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5003 $as_echo "$aros_host_ranlib" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5010 if test "$aros_host_ranlib" = ""; then
5011 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5013 # Extract the first word of "strip", so it can be a program name with args.
5014 set dummy strip; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_aros_host_strip+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$aros_host_strip"; then
5021 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_aros_host_strip="strip "
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 aros_host_strip=$ac_cv_prog_aros_host_strip
5041 if test -n "$aros_host_strip"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5043 $as_echo "$aros_host_strip" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 if test "$aros_host_strip" = ""; then
5051 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5054 # Extract the first word of "rm", so it can be a program name with args.
5055 set dummy rm; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_RM+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$RM"; then
5062 ac_cv_prog_RM="$RM" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_RM="rm -rf"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 RM=$ac_cv_prog_RM
5082 if test -n "$RM"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5084 $as_echo "$RM" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 if test "$RM" = ""; then
5092 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5094 # Extract the first word of "cp", so it can be a program name with args.
5095 set dummy cp; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_CP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$CP"; then
5102 ac_cv_prog_CP="$CP" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_CP="cp "
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 CP=$ac_cv_prog_CP
5122 if test -n "$CP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5124 $as_echo "$CP" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 if test "$CP" = ""; then
5132 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5134 # Extract the first word of "mv", so it can be a program name with args.
5135 set dummy mv; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_MV+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$MV"; then
5142 ac_cv_prog_MV="$MV" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_MV="mv "
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 MV=$ac_cv_prog_MV
5162 if test -n "$MV"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5164 $as_echo "$MV" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5171 if test "$MV" = ""; then
5172 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5174 # Extract the first word of "echo", so it can be a program name with args.
5175 set dummy echo; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_ECHO+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ECHO"; then
5182 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ECHO="echo "
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 ECHO=$ac_cv_prog_ECHO
5202 if test -n "$ECHO"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5204 $as_echo "$ECHO" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 if test "$ECHO" = ""; then
5212 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5214 # Extract the first word of "mkdir", so it can be a program name with args.
5215 set dummy mkdir; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_MKDIR+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$MKDIR"; then
5222 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_MKDIR="mkdir -p"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 MKDIR=$ac_cv_prog_MKDIR
5242 if test -n "$MKDIR"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5244 $as_echo "$MKDIR" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5251 if test "$MKDIR" = ""; then
5252 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5254 # Extract the first word of "touch", so it can be a program name with args.
5255 set dummy touch; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_TOUCH+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$TOUCH"; then
5262 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_TOUCH="touch "
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 TOUCH=$ac_cv_prog_TOUCH
5282 if test -n "$TOUCH"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5284 $as_echo "$TOUCH" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5291 if test "$TOUCH" = ""; then
5292 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5294 # Extract the first word of "sort", so it can be a program name with args.
5295 set dummy sort; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_SORT+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$SORT"; then
5302 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_SORT="sort "
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 SORT=$ac_cv_prog_SORT
5322 if test -n "$SORT"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5324 $as_echo "$SORT" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 if test "$SORT" = ""; then
5332 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5334 # Extract the first word of "uniq", so it can be a program name with args.
5335 set dummy uniq; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_UNIQ+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$UNIQ"; then
5342 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_UNIQ="uniq "
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5361 UNIQ=$ac_cv_prog_UNIQ
5362 if test -n "$UNIQ"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5364 $as_echo "$UNIQ" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5371 if test "$UNIQ" = ""; then
5372 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5374 # Extract the first word of "true", so it can be a program name with args.
5375 set dummy true; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_NOP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$NOP"; then
5382 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_NOP="true "
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 NOP=$ac_cv_prog_NOP
5402 if test -n "$NOP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5404 $as_echo "$NOP" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 if test "$NOP" = ""; then
5412 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5414 # Extract the first word of "cat", so it can be a program name with args.
5415 set dummy cat; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_CAT+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$CAT"; then
5422 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_CAT="cat "
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5435 done
5436 done
5437 IFS=$as_save_IFS
5441 CAT=$ac_cv_prog_CAT
5442 if test -n "$CAT"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5444 $as_echo "$CAT" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5451 if test "$CAT" = ""; then
5452 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5454 # Extract the first word of "bison", so it can be a program name with args.
5455 set dummy bison; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_BISON+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$BISON"; then
5462 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_BISON="bison "
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5475 done
5476 done
5477 IFS=$as_save_IFS
5481 BISON=$ac_cv_prog_BISON
5482 if test -n "$BISON"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5484 $as_echo "$BISON" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 if test "$BISON" = ""; then
5492 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5494 # Extract the first word of "flex", so it can be a program name with args.
5495 set dummy flex; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_FLEX+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$FLEX"; then
5502 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_FLEX="flex "
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 FLEX=$ac_cv_prog_FLEX
5522 if test -n "$FLEX"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5524 $as_echo "$FLEX" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 if test "$FLEX" = ""; then
5532 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5534 # Extract the first word of "pngtopnm", so it can be a program name with args.
5535 set dummy pngtopnm; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$PNGTOPNM"; then
5542 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_PNGTOPNM="pngtopnm "
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5562 if test -n "$PNGTOPNM"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5564 $as_echo "$PNGTOPNM" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 if test "$PNGTOPNM" = ""; then
5572 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5574 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5575 set dummy ppmtoilbm; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$PPMTOILBM"; then
5582 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5602 if test -n "$PPMTOILBM"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5604 $as_echo "$PPMTOILBM" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 if test "$PPMTOILBM" = ""; then
5612 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5614 # Extract the first word of "sed", so it can be a program name with args.
5615 set dummy sed; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_SED+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$SED"; then
5622 ac_cv_prog_SED="$SED" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_SED="sed "
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 SED=$ac_cv_prog_SED
5642 if test -n "$SED"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5644 $as_echo "$SED" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 if test "$SED" = ""; then
5652 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5654 # Extract the first word of "chmod", so it can be a program name with args.
5655 set dummy chmod; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_CHMOD+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$CHMOD"; then
5662 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671 ac_cv_prog_CHMOD="chmod "
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5675 done
5676 done
5677 IFS=$as_save_IFS
5681 CHMOD=$ac_cv_prog_CHMOD
5682 if test -n "$CHMOD"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5684 $as_echo "$CHMOD" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 if test "$CHMOD" = ""; then
5692 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5694 # Extract the first word of "patch", so it can be a program name with args.
5695 set dummy patch; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_PATCH+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$PATCH"; then
5702 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_PATCH="patch "
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 PATCH=$ac_cv_prog_PATCH
5722 if test -n "$PATCH"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5724 $as_echo "$PATCH" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5731 if test "$PATCH" = ""; then
5732 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5741 if test -n "$PYTHON"; then
5742 # If the user set $PYTHON, use it and don't search something else.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5744 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5745 prog="import sys
5746 # split strings by '.' and convert to numeric. Append some zeros
5747 # because we need at least 4 digits for the hex conversion.
5748 # map returns an iterator in Python 3.0 and a list in 2.x
5749 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5750 minverhex = 0
5751 # xrange is not present in Python 3.0 and range returns an iterator
5752 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5753 sys.exit(sys.hexversion < minverhex)"
5754 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5755 ($PYTHON -c "$prog") >&5 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; then :
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760 $as_echo "yes" >&6; }
5761 else
5762 as_fn_error $? "too old" "$LINENO" 5
5764 am_display_PYTHON=$PYTHON
5765 else
5766 # Otherwise, try each interpreter until we find one that satisfies
5767 # VERSION.
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5769 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5770 if ${am_cv_pathless_PYTHON+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5774 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
5775 test "$am_cv_pathless_PYTHON" = none && break
5776 prog="import sys
5777 # split strings by '.' and convert to numeric. Append some zeros
5778 # because we need at least 4 digits for the hex conversion.
5779 # map returns an iterator in Python 3.0 and a list in 2.x
5780 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5781 minverhex = 0
5782 # xrange is not present in Python 3.0 and range returns an iterator
5783 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5784 sys.exit(sys.hexversion < minverhex)"
5785 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5786 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; then :
5790 break
5792 done
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5795 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5796 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5797 if test "$am_cv_pathless_PYTHON" = none; then
5798 PYTHON=:
5799 else
5800 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5801 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_PYTHON+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 case $PYTHON in
5808 [\\/]* | ?:[\\/]*)
5809 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5828 esac
5830 PYTHON=$ac_cv_path_PYTHON
5831 if test -n "$PYTHON"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5833 $as_echo "$PYTHON" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5841 am_display_PYTHON=$am_cv_pathless_PYTHON
5845 if test "$PYTHON" = :; then
5846 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5847 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5851 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5852 if ${am_cv_python_version+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5858 $as_echo "$am_cv_python_version" >&6; }
5859 PYTHON_VERSION=$am_cv_python_version
5863 PYTHON_PREFIX='${prefix}'
5865 PYTHON_EXEC_PREFIX='${exec_prefix}'
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5870 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5871 if ${am_cv_python_platform+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5877 $as_echo "$am_cv_python_platform" >&6; }
5878 PYTHON_PLATFORM=$am_cv_python_platform
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5884 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5885 if ${am_cv_python_pythondir+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test "x$prefix" = xNONE
5889 then
5890 am_py_prefix=$ac_default_prefix
5891 else
5892 am_py_prefix=$prefix
5894 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`
5895 case $am_cv_python_pythondir in
5896 $am_py_prefix*)
5897 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5898 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5901 case $am_py_prefix in
5902 /usr|/System*) ;;
5904 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5906 esac
5908 esac
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5912 $as_echo "$am_cv_python_pythondir" >&6; }
5913 pythondir=$am_cv_python_pythondir
5917 pkgpythondir=\${pythondir}/$PACKAGE
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5921 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5922 if ${am_cv_python_pyexecdir+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test "x$exec_prefix" = xNONE
5926 then
5927 am_py_exec_prefix=$am_py_prefix
5928 else
5929 am_py_exec_prefix=$exec_prefix
5931 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`
5932 case $am_cv_python_pyexecdir in
5933 $am_py_exec_prefix*)
5934 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5935 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5938 case $am_py_exec_prefix in
5939 /usr|/System*) ;;
5941 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5943 esac
5945 esac
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5949 $as_echo "$am_cv_python_pyexecdir" >&6; }
5950 pyexecdir=$am_cv_python_pyexecdir
5954 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5964 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5965 if ${ac_cv_lib_png_png_read_png+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-lpng $LIBS"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5973 /* Override any GCC internal prototype to avoid an error.
5974 Use char because int might match the return type of a GCC
5975 builtin and then its argument prototype would still apply. */
5976 #ifdef __cplusplus
5977 extern "C"
5978 #endif
5979 char png_read_png ();
5981 main ()
5983 return png_read_png ();
5985 return 0;
5987 _ACEOF
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_lib_png_png_read_png=yes
5990 else
5991 ac_cv_lib_png_png_read_png=no
5993 rm -f core conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5998 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5999 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6000 cat >>confdefs.h <<_ACEOF
6001 #define HAVE_LIBPNG 1
6002 _ACEOF
6004 LIBS="-lpng $LIBS"
6008 if test "$ac_cv_lib_png_png_read_png" = ""; then
6009 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6012 FOR=for
6014 IF=if
6016 TEST=test
6018 CMP=cmp
6022 # Check for some includes for the X11 HIDD and the kernel
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6025 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6026 if ${ac_cv_path_GREP+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -z "$GREP"; then
6030 ac_path_GREP_found=false
6031 # Loop through the user's path and test for each of PROGNAME-LIST
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_prog in grep ggrep; do
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6041 # Check for GNU ac_path_GREP and select it if it is found.
6042 # Check for GNU $ac_path_GREP
6043 case `"$ac_path_GREP" --version 2>&1` in
6044 *GNU*)
6045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6047 ac_count=0
6048 $as_echo_n 0123456789 >"conftest.in"
6049 while :
6051 cat "conftest.in" "conftest.in" >"conftest.tmp"
6052 mv "conftest.tmp" "conftest.in"
6053 cp "conftest.in" "conftest.nl"
6054 $as_echo 'GREP' >> "conftest.nl"
6055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6057 as_fn_arith $ac_count + 1 && ac_count=$as_val
6058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6059 # Best one so far, save it but keep looking for a better one
6060 ac_cv_path_GREP="$ac_path_GREP"
6061 ac_path_GREP_max=$ac_count
6063 # 10*(2^10) chars as input seems more than enough
6064 test $ac_count -gt 10 && break
6065 done
6066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6067 esac
6069 $ac_path_GREP_found && break 3
6070 done
6071 done
6072 done
6073 IFS=$as_save_IFS
6074 if test -z "$ac_cv_path_GREP"; then
6075 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6077 else
6078 ac_cv_path_GREP=$GREP
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6083 $as_echo "$ac_cv_path_GREP" >&6; }
6084 GREP="$ac_cv_path_GREP"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6088 $as_echo_n "checking for egrep... " >&6; }
6089 if ${ac_cv_path_EGREP+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6093 then ac_cv_path_EGREP="$GREP -E"
6094 else
6095 if test -z "$EGREP"; then
6096 ac_path_EGREP_found=false
6097 # Loop through the user's path and test for each of PROGNAME-LIST
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_prog in egrep; do
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6106 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6107 # Check for GNU ac_path_EGREP and select it if it is found.
6108 # Check for GNU $ac_path_EGREP
6109 case `"$ac_path_EGREP" --version 2>&1` in
6110 *GNU*)
6111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6113 ac_count=0
6114 $as_echo_n 0123456789 >"conftest.in"
6115 while :
6117 cat "conftest.in" "conftest.in" >"conftest.tmp"
6118 mv "conftest.tmp" "conftest.in"
6119 cp "conftest.in" "conftest.nl"
6120 $as_echo 'EGREP' >> "conftest.nl"
6121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6123 as_fn_arith $ac_count + 1 && ac_count=$as_val
6124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6125 # Best one so far, save it but keep looking for a better one
6126 ac_cv_path_EGREP="$ac_path_EGREP"
6127 ac_path_EGREP_max=$ac_count
6129 # 10*(2^10) chars as input seems more than enough
6130 test $ac_count -gt 10 && break
6131 done
6132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6133 esac
6135 $ac_path_EGREP_found && break 3
6136 done
6137 done
6138 done
6139 IFS=$as_save_IFS
6140 if test -z "$ac_cv_path_EGREP"; then
6141 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6143 else
6144 ac_cv_path_EGREP=$EGREP
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6150 $as_echo "$ac_cv_path_EGREP" >&6; }
6151 EGREP="$ac_cv_path_EGREP"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6155 $as_echo_n "checking for ANSI C header files... " >&6; }
6156 if ${ac_cv_header_stdc+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #include <stdlib.h>
6162 #include <stdarg.h>
6163 #include <string.h>
6164 #include <float.h>
6167 main ()
6171 return 0;
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 ac_cv_header_stdc=yes
6176 else
6177 ac_cv_header_stdc=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 if test $ac_cv_header_stdc = yes; then
6182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <string.h>
6187 _ACEOF
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189 $EGREP "memchr" >/dev/null 2>&1; then :
6191 else
6192 ac_cv_header_stdc=no
6194 rm -f conftest*
6198 if test $ac_cv_header_stdc = yes; then
6199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <stdlib.h>
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "free" >/dev/null 2>&1; then :
6208 else
6209 ac_cv_header_stdc=no
6211 rm -f conftest*
6215 if test $ac_cv_header_stdc = yes; then
6216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6217 if test "$cross_compiling" = yes; then :
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <ctype.h>
6223 #include <stdlib.h>
6224 #if ((' ' & 0x0FF) == 0x020)
6225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227 #else
6228 # define ISLOWER(c) \
6229 (('a' <= (c) && (c) <= 'i') \
6230 || ('j' <= (c) && (c) <= 'r') \
6231 || ('s' <= (c) && (c) <= 'z'))
6232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6233 #endif
6235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6237 main ()
6239 int i;
6240 for (i = 0; i < 256; i++)
6241 if (XOR (islower (i), ISLOWER (i))
6242 || toupper (i) != TOUPPER (i))
6243 return 2;
6244 return 0;
6246 _ACEOF
6247 if ac_fn_c_try_run "$LINENO"; then :
6249 else
6250 ac_cv_header_stdc=no
6252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6253 conftest.$ac_objext conftest.beam conftest.$ac_ext
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6259 $as_echo "$ac_cv_header_stdc" >&6; }
6260 if test $ac_cv_header_stdc = yes; then
6262 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6268 inttypes.h stdint.h unistd.h
6269 do :
6270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6271 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6276 _ACEOF
6280 done
6283 for ac_header in sys/ipc.h sys/shm.h \
6284 sys/mmap.h sys/mman.h sysexits.h \
6285 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6287 do :
6288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6289 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6290 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6291 cat >>confdefs.h <<_ACEOF
6292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 _ACEOF
6297 done
6300 for ac_header in sys/mount.h
6301 do :
6302 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6304 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_SYS_MOUNT_H 1
6307 _ACEOF
6311 done
6314 ac_header_dirent=no
6315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6316 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6318 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6319 if eval \${$as_ac_Header+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <sys/types.h>
6325 #include <$ac_hdr>
6328 main ()
6330 if ((DIR *) 0)
6331 return 0;
6333 return 0;
6335 _ACEOF
6336 if ac_fn_c_try_compile "$LINENO"; then :
6337 eval "$as_ac_Header=yes"
6338 else
6339 eval "$as_ac_Header=no"
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 eval ac_res=\$$as_ac_Header
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6345 $as_echo "$ac_res" >&6; }
6346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6347 cat >>confdefs.h <<_ACEOF
6348 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6349 _ACEOF
6351 ac_header_dirent=$ac_hdr; break
6354 done
6355 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6356 if test $ac_header_dirent = dirent.h; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6358 $as_echo_n "checking for library containing opendir... " >&6; }
6359 if ${ac_cv_search_opendir+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 ac_func_search_save_LIBS=$LIBS
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6369 #ifdef __cplusplus
6370 extern "C"
6371 #endif
6372 char opendir ();
6374 main ()
6376 return opendir ();
6378 return 0;
6380 _ACEOF
6381 for ac_lib in '' dir; do
6382 if test -z "$ac_lib"; then
6383 ac_res="none required"
6384 else
6385 ac_res=-l$ac_lib
6386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6388 if ac_fn_c_try_link "$LINENO"; then :
6389 ac_cv_search_opendir=$ac_res
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext
6393 if ${ac_cv_search_opendir+:} false; then :
6394 break
6396 done
6397 if ${ac_cv_search_opendir+:} false; then :
6399 else
6400 ac_cv_search_opendir=no
6402 rm conftest.$ac_ext
6403 LIBS=$ac_func_search_save_LIBS
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6406 $as_echo "$ac_cv_search_opendir" >&6; }
6407 ac_res=$ac_cv_search_opendir
6408 if test "$ac_res" != no; then :
6409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6415 $as_echo_n "checking for library containing opendir... " >&6; }
6416 if ${ac_cv_search_opendir+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 ac_func_search_save_LIBS=$LIBS
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 char opendir ();
6431 main ()
6433 return opendir ();
6435 return 0;
6437 _ACEOF
6438 for ac_lib in '' x; do
6439 if test -z "$ac_lib"; then
6440 ac_res="none required"
6441 else
6442 ac_res=-l$ac_lib
6443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 ac_cv_search_opendir=$ac_res
6448 rm -f core conftest.err conftest.$ac_objext \
6449 conftest$ac_exeext
6450 if ${ac_cv_search_opendir+:} false; then :
6451 break
6453 done
6454 if ${ac_cv_search_opendir+:} false; then :
6456 else
6457 ac_cv_search_opendir=no
6459 rm conftest.$ac_ext
6460 LIBS=$ac_func_search_save_LIBS
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6463 $as_echo "$ac_cv_search_opendir" >&6; }
6464 ac_res=$ac_cv_search_opendir
6465 if test "$ac_res" != no; then :
6466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6473 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6474 if ${ac_cv_header_stat_broken+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/stat.h>
6482 #if defined S_ISBLK && defined S_IFDIR
6483 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6484 #endif
6486 #if defined S_ISBLK && defined S_IFCHR
6487 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6488 #endif
6490 #if defined S_ISLNK && defined S_IFREG
6491 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6492 #endif
6494 #if defined S_ISSOCK && defined S_IFREG
6495 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6496 #endif
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 ac_cv_header_stat_broken=no
6501 else
6502 ac_cv_header_stat_broken=yes
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6507 $as_echo "$ac_cv_header_stat_broken" >&6; }
6508 if test $ac_cv_header_stat_broken = yes; then
6510 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6515 $as_echo_n "checking for ANSI C header files... " >&6; }
6516 if ${ac_cv_header_stdc+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 #include <stdlib.h>
6522 #include <stdarg.h>
6523 #include <string.h>
6524 #include <float.h>
6527 main ()
6531 return 0;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 ac_cv_header_stdc=yes
6536 else
6537 ac_cv_header_stdc=no
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 if test $ac_cv_header_stdc = yes; then
6542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <string.h>
6547 _ACEOF
6548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6549 $EGREP "memchr" >/dev/null 2>&1; then :
6551 else
6552 ac_cv_header_stdc=no
6554 rm -f conftest*
6558 if test $ac_cv_header_stdc = yes; then
6559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 #include <stdlib.h>
6564 _ACEOF
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "free" >/dev/null 2>&1; then :
6568 else
6569 ac_cv_header_stdc=no
6571 rm -f conftest*
6575 if test $ac_cv_header_stdc = yes; then
6576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6577 if test "$cross_compiling" = yes; then :
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <ctype.h>
6583 #include <stdlib.h>
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6587 #else
6588 # define ISLOWER(c) \
6589 (('a' <= (c) && (c) <= 'i') \
6590 || ('j' <= (c) && (c) <= 'r') \
6591 || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6593 #endif
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6597 main ()
6599 int i;
6600 for (i = 0; i < 256; i++)
6601 if (XOR (islower (i), ISLOWER (i))
6602 || toupper (i) != TOUPPER (i))
6603 return 2;
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_run "$LINENO"; then :
6609 else
6610 ac_cv_header_stdc=no
6612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6613 conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6619 $as_echo "$ac_cv_header_stdc" >&6; }
6620 if test $ac_cv_header_stdc = yes; then
6622 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6627 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6628 if ${ac_cv_header_sys_wait_h+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <sys/types.h>
6634 #include <sys/wait.h>
6635 #ifndef WEXITSTATUS
6636 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6637 #endif
6638 #ifndef WIFEXITED
6639 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6640 #endif
6643 main ()
6645 int s;
6646 wait (&s);
6647 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6649 return 0;
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 ac_cv_header_sys_wait_h=yes
6654 else
6655 ac_cv_header_sys_wait_h=no
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6660 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6661 if test $ac_cv_header_sys_wait_h = yes; then
6663 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6668 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6669 if ${ac_cv_header_time+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 #include <sys/types.h>
6675 #include <sys/time.h>
6676 #include <time.h>
6679 main ()
6681 if ((struct tm *) 0)
6682 return 0;
6684 return 0;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 ac_cv_header_time=yes
6689 else
6690 ac_cv_header_time=no
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6695 $as_echo "$ac_cv_header_time" >&6; }
6696 if test $ac_cv_header_time = yes; then
6698 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6702 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6703 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6707 _ACEOF
6710 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6715 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6716 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6718 cat >>confdefs.h <<_ACEOF
6719 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6720 _ACEOF
6723 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6725 else
6726 case " $LIBOBJS " in
6727 *" fileblocks.$ac_objext "* ) ;;
6728 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6730 esac
6735 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6736 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_STRUCT_STAT_ST_RDEV 1
6740 _ACEOF
6743 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6749 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6750 if ${ac_cv_struct_tm+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <sys/types.h>
6756 #include <time.h>
6759 main ()
6761 struct tm tm;
6762 int *p = &tm.tm_sec;
6763 return !p;
6765 return 0;
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_struct_tm=time.h
6770 else
6771 ac_cv_struct_tm=sys/time.h
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6776 $as_echo "$ac_cv_struct_tm" >&6; }
6777 if test $ac_cv_struct_tm = sys/time.h; then
6779 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6783 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6784 #include <$ac_cv_struct_tm>
6787 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_TM_TM_ZONE 1
6791 _ACEOF
6796 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6798 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6800 else
6801 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6803 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6804 ac_have_decl=1
6805 else
6806 ac_have_decl=0
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_DECL_TZNAME $ac_have_decl
6811 _ACEOF
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6814 $as_echo_n "checking for tzname... " >&6; }
6815 if ${ac_cv_var_tzname+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #include <time.h>
6821 #if !HAVE_DECL_TZNAME
6822 extern char *tzname[];
6823 #endif
6826 main ()
6828 return tzname[0][0];
6830 return 0;
6832 _ACEOF
6833 if ac_fn_c_try_link "$LINENO"; then :
6834 ac_cv_var_tzname=yes
6835 else
6836 ac_cv_var_tzname=no
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6842 $as_echo "$ac_cv_var_tzname" >&6; }
6843 if test $ac_cv_var_tzname = yes; then
6845 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6850 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6851 if test "x$ac_cv_type_off_t" = xyes; then :
6853 else
6855 cat >>confdefs.h <<_ACEOF
6856 #define off_t long int
6857 _ACEOF
6861 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6862 if test "x$ac_cv_type_pid_t" = xyes; then :
6864 else
6866 cat >>confdefs.h <<_ACEOF
6867 #define pid_t int
6868 _ACEOF
6872 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6873 if test "x$ac_cv_type_size_t" = xyes; then :
6875 else
6877 cat >>confdefs.h <<_ACEOF
6878 #define size_t unsigned int
6879 _ACEOF
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6884 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6885 if ${ac_cv_type_uid_t+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #include <sys/types.h>
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "uid_t" >/dev/null 2>&1; then :
6895 ac_cv_type_uid_t=yes
6896 else
6897 ac_cv_type_uid_t=no
6899 rm -f conftest*
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6903 $as_echo "$ac_cv_type_uid_t" >&6; }
6904 if test $ac_cv_type_uid_t = no; then
6906 $as_echo "#define uid_t int" >>confdefs.h
6909 $as_echo "#define gid_t int" >>confdefs.h
6914 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6915 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6917 cat >>confdefs.h <<_ACEOF
6918 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6919 _ACEOF
6925 # Look for some functions
6926 for ac_func in getpagesize kqueue statfs statvfs \
6927 clone kse_create rfork_thread thr_create sa_register \
6928 getcontext makecontext setcontext sigaltstack swapcontext
6929 do :
6930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6935 _ACEOF
6938 done
6944 for ac_header in $ac_header_list
6945 do :
6946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6950 cat >>confdefs.h <<_ACEOF
6951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 _ACEOF
6956 done
6965 for ac_func in getpagesize
6966 do :
6967 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6968 if test "x$ac_cv_func_getpagesize" = xyes; then :
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_GETPAGESIZE 1
6971 _ACEOF
6974 done
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6977 $as_echo_n "checking for working mmap... " >&6; }
6978 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test "$cross_compiling" = yes; then :
6982 ac_cv_func_mmap_fixed_mapped=no
6983 else
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 $ac_includes_default
6987 /* malloc might have been renamed as rpl_malloc. */
6988 #undef malloc
6990 /* Thanks to Mike Haertel and Jim Avera for this test.
6991 Here is a matrix of mmap possibilities:
6992 mmap private not fixed
6993 mmap private fixed at somewhere currently unmapped
6994 mmap private fixed at somewhere already mapped
6995 mmap shared not fixed
6996 mmap shared fixed at somewhere currently unmapped
6997 mmap shared fixed at somewhere already mapped
6998 For private mappings, we should verify that changes cannot be read()
6999 back from the file, nor mmap's back from the file at a different
7000 address. (There have been systems where private was not correctly
7001 implemented like the infamous i386 svr4.0, and systems where the
7002 VM page cache was not coherent with the file system buffer cache
7003 like early versions of FreeBSD and possibly contemporary NetBSD.)
7004 For shared mappings, we should conversely verify that changes get
7005 propagated back to all the places they're supposed to be.
7007 Grep wants private fixed already mapped.
7008 The main things grep needs to know about mmap are:
7009 * does it exist and is it safe to write into the mmap'd area
7010 * how to use it (BSD variants) */
7012 #include <fcntl.h>
7013 #include <sys/mman.h>
7015 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7016 char *malloc ();
7017 #endif
7019 /* This mess was copied from the GNU getpagesize.h. */
7020 #ifndef HAVE_GETPAGESIZE
7021 # ifdef _SC_PAGESIZE
7022 # define getpagesize() sysconf(_SC_PAGESIZE)
7023 # else /* no _SC_PAGESIZE */
7024 # ifdef HAVE_SYS_PARAM_H
7025 # include <sys/param.h>
7026 # ifdef EXEC_PAGESIZE
7027 # define getpagesize() EXEC_PAGESIZE
7028 # else /* no EXEC_PAGESIZE */
7029 # ifdef NBPG
7030 # define getpagesize() NBPG * CLSIZE
7031 # ifndef CLSIZE
7032 # define CLSIZE 1
7033 # endif /* no CLSIZE */
7034 # else /* no NBPG */
7035 # ifdef NBPC
7036 # define getpagesize() NBPC
7037 # else /* no NBPC */
7038 # ifdef PAGESIZE
7039 # define getpagesize() PAGESIZE
7040 # endif /* PAGESIZE */
7041 # endif /* no NBPC */
7042 # endif /* no NBPG */
7043 # endif /* no EXEC_PAGESIZE */
7044 # else /* no HAVE_SYS_PARAM_H */
7045 # define getpagesize() 8192 /* punt totally */
7046 # endif /* no HAVE_SYS_PARAM_H */
7047 # endif /* no _SC_PAGESIZE */
7049 #endif /* no HAVE_GETPAGESIZE */
7052 main ()
7054 char *data, *data2, *data3;
7055 const char *cdata2;
7056 int i, pagesize;
7057 int fd, fd2;
7059 pagesize = getpagesize ();
7061 /* First, make a file with some known garbage in it. */
7062 data = (char *) malloc (pagesize);
7063 if (!data)
7064 return 1;
7065 for (i = 0; i < pagesize; ++i)
7066 *(data + i) = rand ();
7067 umask (0);
7068 fd = creat ("conftest.mmap", 0600);
7069 if (fd < 0)
7070 return 2;
7071 if (write (fd, data, pagesize) != pagesize)
7072 return 3;
7073 close (fd);
7075 /* Next, check that the tail of a page is zero-filled. File must have
7076 non-zero length, otherwise we risk SIGBUS for entire page. */
7077 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7078 if (fd2 < 0)
7079 return 4;
7080 cdata2 = "";
7081 if (write (fd2, cdata2, 1) != 1)
7082 return 5;
7083 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7084 if (data2 == MAP_FAILED)
7085 return 6;
7086 for (i = 0; i < pagesize; ++i)
7087 if (*(data2 + i))
7088 return 7;
7089 close (fd2);
7090 if (munmap (data2, pagesize))
7091 return 8;
7093 /* Next, try to mmap the file at a fixed address which already has
7094 something else allocated at it. If we can, also make sure that
7095 we see the same garbage. */
7096 fd = open ("conftest.mmap", O_RDWR);
7097 if (fd < 0)
7098 return 9;
7099 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7100 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7101 return 10;
7102 for (i = 0; i < pagesize; ++i)
7103 if (*(data + i) != *(data2 + i))
7104 return 11;
7106 /* Finally, make sure that changes to the mapped area do not
7107 percolate back to the file as seen by read(). (This is a bug on
7108 some variants of i386 svr4.0.) */
7109 for (i = 0; i < pagesize; ++i)
7110 *(data2 + i) = *(data2 + i) + 1;
7111 data3 = (char *) malloc (pagesize);
7112 if (!data3)
7113 return 12;
7114 if (read (fd, data3, pagesize) != pagesize)
7115 return 13;
7116 for (i = 0; i < pagesize; ++i)
7117 if (*(data + i) != *(data3 + i))
7118 return 14;
7119 close (fd);
7120 return 0;
7122 _ACEOF
7123 if ac_fn_c_try_run "$LINENO"; then :
7124 ac_cv_func_mmap_fixed_mapped=yes
7125 else
7126 ac_cv_func_mmap_fixed_mapped=no
7128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7129 conftest.$ac_objext conftest.beam conftest.$ac_ext
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7134 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7135 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7137 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7140 rm -f conftest.mmap conftest.txt
7145 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7146 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7147 aros_config_ldflags=""
7149 aros_shared_default=yes
7151 aros_shared_cflags="-fPIC"
7152 aros_shared_aflags=""
7153 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7154 aros_kernel_ldflags="-Wl,-rpath,./lib"
7156 aros_kernel_ar_flags="cr"
7157 aros_target_ar_flags="cr"
7158 aros_target_nm_flags="-C -ul"
7159 aros_target_strip_flags="--strip-unneeded -R.comment"
7161 aros_compiler_libs=
7162 aros_arch_libs=
7164 aros_target_genmap="-Wl,-Map -Xlinker"
7166 # Native flavour stuff
7167 aros_serial_debug="0"
7169 # Palm native flavour stuff
7170 aros_palm_debug_hack="0"
7172 # Unix flavour stuff
7173 aros_nesting_supervisor="0"
7175 # Collect-aros stuff: "-ius" to ignore undefined symbols
7176 ignore_undefined_symbols=""
7178 # Check for X11 by default
7179 need_x11="auto"
7181 #-----------------------------------------------------------------------------
7184 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7185 # it switched on by default, and we use the host compiler, so it compiles AROS
7186 # code with this enabled resulting in link failures as we don't have support
7187 # for it.
7189 # We use two methods to disable it. For the host compiler (used to compile
7190 # some hosted modules), we test to see if the compiler supports stack
7191 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7192 # work on all platforms.
7194 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7195 # (this is done unconditionally, as it should have no effect on compilers
7196 # without the stack protection feature). This may be specific to the way that
7197 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7198 # strong enough to disable it in a generic way though, so we'll live with it
7199 # until another vendor ships GCC with it enabled in a different way, and deal
7200 # with it then.
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7204 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7205 save_cflags="$CFLAGS"
7206 CFLAGS="$CFLAGS -fno-stack-protector"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7211 main ()
7215 return 0;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 use_no_stack_protector="yes"
7220 else
7221 use_no_stack_protector="no"
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7225 $as_echo "$use_no_stack_protector" >&6; }
7226 if test "x-$use_no_stack_protector" = "x-yes" ; then
7227 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7229 CFLAGS="$save_cflags"
7231 #-----------------------------------------------------------------------------
7233 # Disable pointer-signedness warnings if the compiler recognises the option
7234 # (this only works for the host compiler at the moment)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7237 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7238 save_cflags="$CFLAGS"
7239 CFLAGS="$CFLAGS -Wno-pointer-sign"
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7244 main ()
7248 return 0;
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252 use_no_sign_warning="yes"
7253 else
7254 use_no_sign_warning="no"
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7258 $as_echo "$use_no_sign_warning" >&6; }
7259 if test "x-$use_no_sign_warning" = "x-yes" ; then
7260 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7262 CFLAGS="$save_cflags"
7264 #-----------------------------------------------------------------------------
7266 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7269 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7270 save_cflags="$CFLAGS"
7271 CFLAGS="$CFLAGS -fgnu89-inline"
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7276 main ()
7280 return 0;
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 use_gnu89_inline="yes"
7285 else
7286 use_gnu89_inline="no"
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7290 $as_echo "$use_gnu89_inline" >&6; }
7291 if test "x-$use_gnu89_inline" = "x-yes" ; then
7292 gnu89_inline="-fgnu89-inline"
7294 CFLAGS="$save_cflags"
7296 #-----------------------------------------------------------------------------
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7299 $as_echo_n "checking for type of build... " >&6; }
7300 # Check whether --enable-build_type was given.
7301 if test "${enable_build_type+set}" = set; then :
7302 enableval=$enable_build_type; build_type=$enableval
7303 else
7304 build_type="personal"
7308 if test "$build_type" = "nightly"; then
7309 build_type_string="NIGHTLY"
7310 elif test "$build_type" = "snapshot"; then
7311 build_type_string="SNAPSHOT"
7312 elif test "$build_type" = "milestone"; then
7313 build_type_string="MILESTONE"
7314 elif test "$build_type" = "release"; then
7315 build_type_string="RELEASE"
7316 else
7317 build_type_string="PERSONAL"
7318 build_type="personal"
7321 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7324 $as_echo "$build_type" >&6; }
7326 #-----------------------------------------------------------------------------
7327 all_debug_types="messages stack modules mungwall symbols"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7330 $as_echo_n "checking which debug types to enable... " >&6; }
7331 # Check whether --enable-debug was given.
7332 if test "${enable_debug+set}" = set; then :
7333 enableval=$enable_debug; debug="$enableval"
7334 else
7335 debug=""
7339 if test "$debug" = "" -o "$debug" = "no"; then
7340 debug="none"
7341 elif test "$debug" = "yes"; then
7342 debug="all"
7345 if test "$debug" = "all" ; then
7346 debug="messages stack modules symbols"
7347 for d in $all_debug_types; do
7348 export aros_${d}_debug="1"
7349 done
7350 else
7351 for d in $all_debug_types; do
7352 export aros_${d}_debug="0"
7353 done
7356 if test "$debug" != "none"; then
7357 debug=`echo $debug | sed s/,/\ /g`
7358 for d in $debug; do
7359 found="0"
7360 for d2 in $all_debug_types; do
7361 if test "$d2" = "$d"; then
7362 found="1"
7363 break
7365 done
7366 if test "$found" = "0"; then
7367 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7369 export aros_${d}_debug="1"
7370 done
7371 aros_debug="yes"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7374 $as_echo "$debug" >&6; }
7376 if test "$aros_messages_debug" = "1"; then
7377 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7378 else
7379 aros_messages_debug=""
7381 if test "$aros_symbols_debug" = "1"; then
7382 aros_symbols_debug="-g"
7383 else
7384 aros_symbols_debug=""
7387 # These are the flags to pass when compiling debugged programs
7388 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7389 aros_debug_aflags=""
7390 aros_debug_ldflags="$aros_symbols_debug"
7392 #-----------------------------------------------------------------------------
7393 # Checking for distcc and ccache.
7395 # Always apply the transforms in this particular order. Basically you should
7396 # always run 'ccache distcc compiler' in that order for the best performance.
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7399 $as_echo_n "checking whether to enable distcc... " >&6; }
7400 # Check whether --enable-distcc was given.
7401 if test "${enable_distcc+set}" = set; then :
7402 enableval=$enable_distcc; distcc="$enableval"
7403 else
7404 distcc="no"
7407 if test "$distcc" != "" -a "$distcc" != "no"; then
7408 # AC_CHECK_PROG will print out the result in this case
7409 # Extract the first word of "distcc", so it can be a program name with args.
7410 set dummy distcc; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_path_DISTCC+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 case $DISTCC in
7417 [\\/]* | ?:[\\/]*)
7418 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7432 done
7433 done
7434 IFS=$as_save_IFS
7436 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7438 esac
7440 DISTCC=$ac_cv_path_DISTCC
7441 if test -n "$DISTCC"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7443 $as_echo "$DISTCC" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7456 $as_echo_n "checking whether to enable ccache... " >&6; }
7457 # Check whether --enable-ccache was given.
7458 if test "${enable_ccache+set}" = set; then :
7459 enableval=$enable_ccache; ccache="$enableval"
7460 else
7461 ccache="no"
7464 if test "$ccache" != "" -a "$ccache" != "no"; then
7465 # AC_CHECK_PROG will print out the result in this case
7466 # Extract the first word of "ccache", so it can be a program name with args.
7467 set dummy ccache; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_CCACHE+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$CCACHE"; then
7474 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_CCACHE="ccache"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 CCACHE=$ac_cv_prog_CCACHE
7494 if test -n "$CCACHE"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7496 $as_echo "$CCACHE" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7508 #-----------------------------------------------------------------------------
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7510 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7512 # Check whether --with-kernel-gcc-version was given.
7513 if test "${with_kernel_gcc_version+set}" = set; then :
7514 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7515 else
7516 kernel_tool_version=""
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7520 $as_echo "$kernel_tool_version" >&6; }
7522 #-----------------------------------------------------------------------------
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7524 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7526 # Check whether --with-gcc-version was given.
7527 if test "${with_gcc_version+set}" = set; then :
7528 withval=$with_gcc_version; target_tool_version="$withval"
7529 else
7530 target_tool_version="default"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7534 $as_echo "$target_tool_version" >&6; }
7536 #-----------------------------------------------------------------------------
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7538 $as_echo_n "checking what optimization flags to use... " >&6; }
7540 # Check whether --with-optimization was given.
7541 if test "${with_optimization+set}" = set; then :
7542 withval=$with_optimization; optimization="$withval"
7543 else
7544 optimization="unknown"
7547 if test "$optimization" = "unknown"; then
7548 if test "$debug" != "none"; then
7549 optimization="-O0"
7550 else
7551 optimization="-O2"
7554 aros_config_cflags="$aros_config_cflags $optimization"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7556 $as_echo "$optimization" >&6; }
7558 #-----------------------------------------------------------------------------
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7560 $as_echo_n "checking what paranoia flags to use... " >&6; }
7562 # Check whether --with-paranoia was given.
7563 if test "${with_paranoia+set}" = set; then :
7564 withval=$with_paranoia; paranoia_flags="$withval"
7565 else
7566 paranoia_flags="default"
7569 if test "$paranoia_flags" = "default"; then
7570 paranoia_flags=""
7571 else if test "$paranoia_flags" = "yes"; then
7572 paranoia_flags="-Wall -Werror"
7573 fi fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7575 $as_echo "$paranoia_flags" >&6; }
7576 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7578 #-----------------------------------------------------------------------------
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7580 $as_echo_n "checking what target variant to enable... " >&6; }
7581 # Check whether --enable-target_variant was given.
7582 if test "${enable_target_variant+set}" = set; then :
7583 enableval=$enable_target_variant; target_variant=$enableval
7584 else
7585 target_variant=""
7588 if test "$target_variant" = ""; then
7589 aros_target_variant=""
7590 aros_target_suffix=""
7591 enableval="none"
7592 else
7593 aros_target_variant="$target_variant"
7594 aros_target_suffix="-$target_variant"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7597 $as_echo "$enableval" >&6; }
7599 #-----------------------------------------------------------------------------
7600 # Target-specific defaults. You can override then on a per-target basis.
7602 # Bootloader name. Currently used by PC target.
7603 target_bootloader="none"
7605 #-----------------------------------------------------------------------------
7606 # Additional options for some specific targets
7608 case "$aros_target_variant" in
7609 ios)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7611 $as_echo_n "checking XCode path... " >&6; }
7613 # Check whether --with-xcode was given.
7614 if test "${with_xcode+set}" = set; then :
7615 withval=$with_xcode; aros_xcode_path="$withval"
7616 else
7617 aros_xcode_path="/Developer"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7621 $as_echo "$aros_xcode_path" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7624 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7626 # Check whether --with-sdk-version was given.
7627 if test "${with_sdk_version+set}" = set; then :
7628 withval=$with_sdk_version; aros_sdk_version="$withval"
7629 else
7630 aros_sdk_version="4.1"
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7634 $as_echo "$aros_sdk_version" >&6; }
7638 "android")
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7640 $as_echo_n "checking Android SDK path... " >&6; }
7642 # Check whether --with-sdk was given.
7643 if test "${with_sdk+set}" = set; then :
7644 withval=$with_sdk; aros_android_sdk="$withval"
7645 else
7646 aros_android_sdk=$default_android_sdk
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7650 $as_echo "$aros_android_sdk" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7653 $as_echo_n "checking Android NDK path... " >&6; }
7655 # Check whether --with-ndk was given.
7656 if test "${with_ndk+set}" = set; then :
7657 withval=$with_ndk; aros_android_ndk="$withval"
7658 else
7659 aros_android_ndk="none"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7663 $as_echo "$aros_android_ndk" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7666 $as_echo_n "checking what Android SDK version to use... " >&6; }
7668 # Check whether --with-sdk-version was given.
7669 if test "${with_sdk_version+set}" = set; then :
7670 withval=$with_sdk_version; aros_sdk_version="$withval"
7671 else
7672 aros_sdk_version="12"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7676 $as_echo "$aros_sdk_version" >&6; }
7678 if test "$aros_android_ndk" != "none"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7680 $as_echo_n "checking what Android NDK version to use... " >&6; }
7682 # Check whether --with-ndk-version was given.
7683 if test "${with_ndk_version+set}" = set; then :
7684 withval=$with_ndk_version; aros_ndk_version="$withval"
7685 else
7686 aros_ndk_version="9"
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7690 $as_echo "$aros_ndk_version" >&6; }
7693 export PATH="$aros_android_sdk/tools:$PATH"
7694 # Extract the first word of "$android_tool", so it can be a program name with args.
7695 set dummy $android_tool; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_path_android_tool+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 case $android_tool in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7722 esac
7724 android_tool=$ac_cv_path_android_tool
7725 if test -n "$android_tool"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7727 $as_echo "$android_tool" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7734 if test "$android_tool" = ""; then
7735 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7738 aros_android_level=android-$aros_sdk_version
7739 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7740 echo "Platform $aros_android_level is not installed in your SDK"
7741 echo "Use --with-sdk-version=<API level number> to select another platform version"
7742 echo "You can check what plaform versions are installed in your SDK"
7743 echo "by examining contents of $aros_android_sdk/platforms directory"
7744 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7747 # Extract the first word of "ant", so it can be a program name with args.
7748 set dummy ant; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_path_ant+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 case $ant in
7755 [\\/]* | ?:[\\/]*)
7756 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7775 esac
7777 ant=$ac_cv_path_ant
7778 if test -n "$ant"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7780 $as_echo "$ant" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7787 if test "$ant" = ""; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7789 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7792 if test "$host_os" = "mingw32"; then
7793 android_tool="cmd //c $android_tool"
7797 esac
7799 #-----------------------------------------------------------------------------
7800 # External toolchains
7801 kernel_tool_prefix="none"
7802 aros_tool_prefix="none"
7803 elf_tool_prefix="${target_cpu}-elf-"
7805 # This is the target configuration switch.
7806 case "$target_os" in
7807 linux*)
7808 aros_target_arch="linux"
7809 aros_target_family="unix"
7810 case "$target_cpu" in
7811 *m68k*)
7812 aros_target_cpu="m68k"
7813 aros_object_format="m68kelf"
7814 aros_flavour="emulcompat"
7815 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7816 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7817 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7818 gcc_target_cpu="mc68000"
7820 *i?86*)
7821 aros_target_cpu="i386"
7822 aros_object_format="elf_i386"
7823 aros_flavour="emulation"
7824 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7825 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7826 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7827 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7828 aros_config_ldflags="-m32 -march=i486"
7829 aros_kernel_ldflags="-Wl,-melf_i386"
7830 aros_default_wbdepth=8
7831 gcc_target_cpu="i386"
7832 pci_hidd_target="hidd-pci-linux"
7833 android_tool_dir_prefix="x86"
7834 android_tool_prefix="i686-android-linux"
7835 android_ndk_arch="x86"
7837 *x86_64*)
7838 aros_target_cpu="x86_64"
7839 aros_object_format="elf_x86_64"
7840 aros_flavour="emulation"
7841 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7842 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7843 aros_default_wbdepth=8
7844 pci_hidd_target="hidd-pci-linux"
7846 *powerpc*)
7847 aros_target_cpu="ppc"
7848 aros_object_format="elf32ppc"
7849 aros_flavour="emulation"
7850 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7851 aros_default_wbdepth=8
7852 gcc_target_cpu="ppc"
7854 # TODO
7855 # Same as powerpc, but I need this for the nightly build to work again.
7856 # Actually, the nightly should be made working with powerpc target.
7857 # That just was too much work for the moment, another week or two.
7858 *ppc*)
7859 aros_target_cpu="ppc"
7860 aros_object_format="elf32ppc"
7861 aros_flavour="emulation"
7862 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7863 aros_default_wbdepth=8
7864 gcc_target_cpu="ppc"
7866 *armhf*)
7867 aros_target_cpu="arm"
7868 target_cpu="arm"
7869 aros_object_format="armelf_linux_eabi"
7870 aros_flavour="emulation"
7871 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7872 gcc_target_cpu="arm"
7873 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7874 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7875 aros_arch_libs="-laeabi"
7876 gcc_default_float_abi="hard"
7877 android_tool_dir_prefix="arm-linux-androideabi"
7878 android_tool_prefix="arm-linux-androideabi"
7879 android_ndk_arch="arm"
7880 kernel_tool_prefix="arm-linux-gnueabihf-"
7882 *arm*)
7883 aros_target_cpu="arm"
7884 aros_object_format="armelf_linux_eabi"
7885 aros_flavour="emulation"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7887 gcc_target_cpu="arm"
7888 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7889 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7890 aros_arch_libs="-laeabi"
7891 android_tool_dir_prefix="arm-linux-androideabi"
7892 android_tool_prefix="arm-linux-androideabi"
7893 android_ndk_arch="arm"
7894 kernel_tool_prefix="arm-linux-gnueabi-"
7897 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7899 esac
7900 case "$aros_target_variant" in
7901 android)
7903 if test "$android_ndk_arch" = ""; then
7904 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7907 aros_default_wbwidth=320
7908 aros_default_wbheight=480
7909 if test "$aros_android_ndk" = "none"; then
7910 aros_kernel_cflags="-mandroid"
7911 aros_kernel_ldflags="-mandroid"
7912 CFLAGS="-mandroid"
7913 else
7914 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7915 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7916 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7917 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7918 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7919 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7921 need_x11=no
7922 x11_hidd_target=kernel-hidd-androidgfx-kobj
7923 # Disable implicit PIC mode
7924 aros_target_cflags="$aros_target_cflags -fno-pic"
7925 kernel_tool_prefix="$android_tool_prefix-"
7927 esac
7931 aros_target_arch="pc"
7932 aros_shared_default="no"
7933 target_bootloader="grub2"
7934 case "$target_cpu" in
7935 *i?86*)
7936 aros_target_cpu="i386"
7939 if test "$aros_object_format" = "" ; then
7940 aros_object_format="elf_i386"
7942 aros_flavour="standalone"
7943 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7944 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7945 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7946 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7947 aros_config_ldflags="-m32 -march=i486"
7948 aros_kernel_ldflags="-Wl,-melf_i386"
7949 aros_default_wbwidth=640
7950 aros_default_wbheight=480
7951 gcc_target_cpu="i386"
7953 *x86_64*)
7954 aros_target_cpu="x86_64"
7955 aros_serial_debug=1
7956 if test "$aros_object_format" = "" ; then
7957 aros_object_format="elf_x86_64"
7959 aros_flavour="standalone"
7960 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7961 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7962 aros_kernel_ldflags=""
7963 aros_default_wbwidth=640
7964 aros_default_wbheight=480
7967 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7969 esac
7972 prep)
7973 aros_target_arch="prep"
7974 aros_shared_default="no"
7975 aros_target_cpu="ppc"
7976 aros_object_format="elf32ppc"
7977 aros_flavour="ppcnative"
7978 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7979 aros_kernel_ldflags=""
7980 aros_default_wbwidth=640
7981 aros_default_wbheight=480
7982 gcc_target_cpu="ppc"
7985 freebsd*)
7986 aros_target_arch="freebsd"
7987 aros_target_family="unix"
7988 aros_target_cpu="i386"
7989 aros_flavour="emulation"
7990 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7991 gcc_target_cpu="i386"
7993 aros_target_strip_flags="-x"
7996 darwin*)
7997 aros_target_arch="darwin"
7998 aros_target_family="unix"
7999 aros_flavour="emulation"
8000 case "$target_cpu" in
8001 *i?86*)
8002 aros_ios_platform="iPhoneSimulator"
8003 aros_target_cpu="i386"
8004 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8005 aros_kernel_ldflags=""
8006 aros_macosx_version="10.4"
8007 aros_default_wbdepth=8
8008 gcc_target_cpu="i386"
8009 aros_object_format="elf_i386"
8010 aros_kernel_ar_flags="-cr"
8011 aros_target_strip_flags="-x"
8012 kernel_tool_flags="-m32"
8014 *x86_64*)
8015 aros_target_cpu="x86_64"
8016 aros_object_format="elf_x86_64"
8017 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8018 aros_macosx_version="10.6"
8019 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8020 aros_kernel_cflags="-m64"
8021 aros_kernel_ldflags="-m64"
8022 aros_target_cflags="-mcmodel=large"
8023 aros_default_wbdepth=8
8024 aros_kernel_ar="ar"
8025 aros_kernel_ar_flags="-cr"
8026 aros_kernel_ld="ld"
8027 aros_kernel_as="as"
8028 aros_kernel_ranlib="ranlib"
8029 aros_kernel_nm="nm"
8030 aros_kernel_strip="strip"
8031 kernel_tool_prefix="i686-apple-darwin10-"
8033 *ppc*)
8034 aros_target_cpu="ppc"
8035 aros_object_format="elf32ppc"
8036 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8037 aros_kernel_ldflags=""
8038 aros_macosx_version="10.0"
8039 aros_default_wbdepth=8
8040 gcc_target_cpu="ppc"
8041 aros_kernel_ar="ar"
8042 aros_kernel_ar_flags="-cr"
8043 aros_kernel_ld="ld -arch ppc"
8044 aros_kernel_as="as -arch ppc"
8045 aros_kernel_ranlib="ranlib -arch ppc"
8046 aros_kernel_nm="nm -arch ppc"
8047 aros_kernel_strip="strip -arch ppc"
8048 kernel_tool_prefix="powerpc-apple-darwin10-"
8050 *arm*)
8051 aros_ios_platform="iPhoneOS"
8052 aros_target_cpu="arm"
8053 aros_object_format="armelf_linux_eabi"
8054 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8055 aros_arch_libs="-laeabi"
8056 aros_default_wbdepth=8
8057 gcc_target_cpu="arm"
8058 aros_kernel_ar="ar"
8059 aros_kernel_ar_flags="-cr"
8060 aros_kernel_ld="ld -arch arm"
8061 aros_kernel_ranlib="ranlib -arch arm"
8062 kernel_tool_prefix="arm-apple-darwin10-"
8063 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8066 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8068 esac
8069 case "$aros_target_variant" in
8070 ios)
8071 aros_ios_version="3.0"
8072 aros_default_wbwidth=320
8073 aros_default_wbheight=480
8074 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8075 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8076 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8077 need_x11=no
8078 # This is here because it may depend on iOS or SDK version
8079 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8080 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8081 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8084 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8085 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8087 esac
8090 dragonfly*)
8091 aros_target_arch="dragonfly"
8092 aros_target_family="unix"
8093 aros_flavour="emulation"
8094 case "$target_cpu" in
8095 *i?86*)
8096 aros_target_cpu="i386"
8097 aros_object_format="elf_i386"
8098 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8100 *x86_64*)
8101 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8102 aros_target_cpu="x86_64"
8103 aros_object_format="elf_x86_64"
8104 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8107 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8109 esac
8112 netbsd*)
8113 aros_target_arch="netbsd"
8114 aros_target_family="unix"
8115 case "$target_cpu" in
8116 *m68k*)
8117 aros_target_cpu="m68k"
8118 aros_object_format="m68kelf"
8119 aros_flavour="emulcompat"
8120 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8121 gcc_target_cpu="mc68000"
8123 *i?86*)
8124 aros_target_cpu="i386"
8125 aros_object_format="elf_i386"
8126 aros_flavour="emulation"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8128 aros_default_wbdepth=8
8129 gcc_target_cpu="i386"
8132 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8134 esac
8135 aros_target_genmap="-Wl,-M -Xlinker >"
8136 aros_flavour="emulation"
8137 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8140 openbsd*)
8141 aros_target_arch="openbsd"
8142 aros_target_family="unix"
8143 case "$target_cpu" in
8144 *i?86*)
8145 aros_target_cpu="i386"
8146 aros_object_format="elf_i386"
8147 aros_flavour="emulation"
8148 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8149 gcc_target_cpu="i386"
8152 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8154 esac
8155 aros_target_genmap="-Wl,-M -Xlinker >"
8156 aros_target_nm_flags="-u"
8157 aros_flavour="emulation"
8160 solaris*)
8161 aros_target_arch="solaris"
8162 aros_target_family="unix"
8163 case "$target_cpu" in
8164 *i?86*)
8165 aros_target_cpu="i386"
8166 aros_object_format="elf_i386"
8167 aros_flavour="emulation"
8168 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8169 aros_default_wbdepth=8
8170 gcc_target_cpu="i386"
8172 *sparc*)
8173 aros_target_cpu="sparc"
8174 aros_object_format="elf_sparc"
8175 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8176 gcc_target_cpu="sparc"
8179 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8181 esac
8182 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8183 aros_flavour="emulation"
8186 morphos*)
8187 aros_target_arch="morphos"
8188 aros_shared_default="no"
8189 aros_target_cpu="ppc"
8190 aros_object_format="elf_ppc"
8191 aros_flavour="nativecompat"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8193 gcc_target_cpu="ppc"
8196 sam440)
8197 aros_target_arch="sam440"
8198 aros_shared_default="no"
8199 aros_target_cpu="ppc"
8200 aros_object_format="elf32ppc"
8201 aros_flavour="ppcnative"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8203 aros_kernel_ldflags=""
8204 aros_default_wbwidth=1024
8205 aros_default_wbheight=768
8206 aros_default_wbdepth=24
8207 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8208 gcc_target_cpu="powerpc"
8211 efika)
8212 aros_target_arch="efika"
8213 aros_shared_default="no"
8214 aros_target_cpu="arm"
8215 aros_object_format="armelf_linux_eabi"
8216 aros_flavour="standalone"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8218 aros_kernel_ldflags=""
8219 aros_default_wbwidth=1024
8220 aros_default_wbheight=600
8221 aros_arch_libs="-laeabi"
8222 gcc_default_cpu="armv7-a"
8223 gcc_default_fpu="vfpv3"
8224 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8225 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8226 case "$target_cpu" in
8227 *armhf*)
8228 gcc_default_float_abi="hard"
8229 target_cpu=arm
8230 aros_target_cpu=arm
8232 *arm*)
8233 gcc_default_float_abi="softfp"
8236 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8238 esac
8241 chrp)
8242 aros_target_arch="chrp"
8243 aros_shared_default="no"
8244 aros_target_cpu="ppc"
8245 aros_object_format="elf32ppc"
8246 aros_flavour="ppcnative"
8247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8248 aros_kernel_ldflags=""
8249 aros_default_wbwidth=640
8250 aros_default_wbheight=480
8251 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8252 gcc_target_cpu="powerpc"
8253 case "$aros_target_variant" in
8254 efika)
8255 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8257 esac
8260 r*pi)
8261 aros_flavour="standalone"
8262 aros_target_arch="raspi"
8263 aros_target_cpu="arm"
8264 aros_object_format="armelf_linux_eabi"
8265 aros_shared_default="no"
8266 aros_arch_libs="-laeabi"
8268 gcc_default_cpu="armv6"
8269 gcc_default_cpu_tune="arm1176jzf-s"
8270 case "$target_cpu" in
8271 *armhf*)
8272 gcc_default_float_abi="hard"
8274 *arm*)
8275 gcc_default_float_abi="softfp"
8278 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8280 esac
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8283 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8284 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8285 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8286 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8289 amiga*)
8290 aros_target_arch="amiga"
8291 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8292 aros_shared_default="no"
8294 case "$target_cpu" in
8295 *m68k*)
8296 # Check whether --enable-amigaos_compliance was given.
8297 if test "${enable_amigaos_compliance+set}" = set; then :
8298 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8301 aros_enable_mmu=no
8302 aros_target_cpu="m68k"
8303 aros_object_format="m68kelf"
8304 aros_flavour="standcompat"
8305 gcc_target_cpu="m68000"
8306 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8307 aros_config_aflags="$aros_config_aflags"
8308 aros_target_strip_flags="-R.comment --strip-debug"
8309 aros_default_wbwidth=640
8310 aros_default_wbheight=256
8311 aros_default_wbdepth=2
8313 *ppc*)
8314 aros_cpu="ppc"
8315 aros_flavour="native"
8316 gcc_target_cpu="ppc"
8319 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8321 esac
8324 mingw*)
8325 aros_target_arch="mingw32"
8326 aros_shared_default="no"
8327 aros_flavour="emulation"
8328 aros_shared_cflags=""
8329 need_crosstools="yes"
8330 need_dlopen="no"
8331 rescomp="windres"
8332 case "$target_cpu" in
8333 *i?86*)
8334 aros_target_cpu="i386"
8335 aros_object_format="elf_i386"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8337 aros_default_wbdepth=8
8338 gcc_target_cpu="i386"
8340 kernel_tool_prefix="i386-mingw32-"
8342 *x86_64*)
8343 aros_target_cpu="x86_64"
8344 aros_object_format="elf_x86_64"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8346 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8347 aros_default_wbdepth=8
8348 kernel_tool_prefix="x86_64-w64-mingw32-"
8350 *arm*)
8351 aros_target_cpu="arm"
8352 aros_object_format="armelf_linux_eabi"
8353 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8354 aros_arch_libs="-laeabi"
8355 aros_default_wbdepth=8
8356 gcc_target_cpu="arm"
8357 gcc_default_float_abi="soft"
8358 kernel_tool_prefix="arm-mingw32ce-"
8359 aros_default_wbwidth=160
8360 aros_default_wbheight=160
8363 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8365 esac
8366 if test $host_os = "cygwin"; then
8367 aros_kernel_cflags="-mno-cygwin"
8370 pp*)
8371 aros_target_arch="pp"
8372 aros_shared_default="no"
8373 case "$target_cpu" in
8374 *m68k*)
8375 aros_target_cpu="m68k"
8376 aros_object_format="m68kelf"
8377 aros_flavour="palmnative"
8378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8379 aros_default_wbwidth=160
8380 aros_default_wbheight=160
8381 aros_default_wbdepth=1
8382 aros_target_ar_flags="cru"
8383 aros_compiler_libs="-lgcc1"
8384 aros_shared_default=no
8385 aros_shared_cflags="-fpic"
8386 aros_shared_aflags=""
8387 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8388 aros_kernel_ldflags="-Wl,-rpath,./lib"
8389 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8390 aros_debug_aflags=""
8391 aros_debug_ldflags="$aros_symbols_debug"
8392 aros_mungwall_debug="0"
8393 aros_modules_debug="0"
8394 gcc_target_cpu="mc68000"
8395 ignore_undefined_symbols="-ius"
8398 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8400 esac
8403 mac*)
8404 aros_target_arch="mac"
8405 aros_shared_default="no"
8406 case "$target_cpu" in
8407 *m68k*)
8408 aros_target_cpu="m68k"
8409 aros_object_format="m68kelf"
8410 aros_flavour="mac68knative"
8411 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8412 aros_default_wbwidth=512
8413 aros_default_wbheight=384
8414 aros_default_wbdepth=8
8415 aros_target_ar_flags="cru"
8416 aros_compiler_libs="-lgcc1"
8417 aros_shared_default=no
8418 aros_shared_cflags="-fpic"
8419 aros_shared_aflags=""
8420 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8421 aros_kernel_ldflags="-Wl,-rpath,./lib"
8422 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8423 aros_debug_aflags=""
8424 aros_debug_ldflags="$aros_symbols_debug"
8425 aros_mungwall_debug="0"
8426 aros_modules_debug="0"
8427 gcc_target_cpu="mc68000"
8428 ignore_undefined_symbols="-ius"
8431 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8433 esac
8437 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8439 esac
8441 #-----------------------------------------------------------------------------
8442 crosstools_guess=yes
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8445 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8447 # Check whether --with-kernel-toolchain-prefix was given.
8448 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8449 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8453 $as_echo "$kernel_tool_prefix" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8456 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8458 # Check whether --with-elf-toolchain-prefix was given.
8459 if test "${with_elf_toolchain_prefix+set}" = set; then :
8460 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8461 crosstools_guess=no
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8465 $as_echo "$elf_tool_prefix" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8468 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8470 # Check whether --with-aros-toolchain was given.
8471 if test "${with_aros_toolchain+set}" = set; then :
8472 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8473 crosstools_guess=no
8476 if test "$aros_tool_prefix" = "yes" ; then
8477 aros_tool_prefix=$aros_target_cpu-aros-
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8480 $as_echo "$aros_tool_prefix" >&6; }
8482 #-----------------------------------------------------------------------------
8483 # Checking if we should build crosstools..
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8485 $as_echo_n "checking whether to build crosstools... " >&6; }
8486 # Check whether --enable-crosstools was given.
8487 if test "${enable_crosstools+set}" = set; then :
8488 enableval=$enable_crosstools; crosstools="$enableval"
8489 else
8490 crosstools="$crosstools_guess"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8494 $as_echo "$crosstools" >&6; }
8496 if test "${crosstools}" = "yes"; then
8497 if test "${crosstools_guess}" = "no"; then
8498 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8503 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8505 # Check whether --with-aros-toolchain-install was given.
8506 if test "${with_aros_toolchain_install+set}" = set; then :
8507 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8510 if test "x$aros_toolchain_install" = "x"; then
8511 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8512 else
8513 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8514 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8517 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8520 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8521 # Check whether --enable-objc was given.
8522 if test "${enable_objc+set}" = set; then :
8523 enableval=$enable_objc; objc="$enableval"
8524 else
8525 objc="yes"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8529 $as_echo "$objc" >&6; }
8530 if test "x$objc" = "xyes"; then
8531 objc_target="objc"
8532 else
8533 objc_target="no-objc"
8536 # Now process extra architecture-specific options.
8537 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8538 # as well as floating-point ABI.
8539 case "$aros_target_cpu" in
8540 arm)
8541 if test "$gcc_default_cpu" = ""; then
8542 gcc_default_cpu="armv6"
8544 if test "$gcc_default_fpu" = ""; then
8545 gcc_default_fpu="vfp"
8547 if test "$gcc_default_float_abi" = ""; then
8548 gcc_default_float_abi="softfp"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8552 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8554 # Check whether --with-cpu was given.
8555 if test "${with_cpu+set}" = set; then :
8556 withval=$with_cpu; aros_gcc_cpu="$withval"
8557 else
8558 aros_gcc_cpu=$gcc_default_cpu
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8562 $as_echo "$aros_gcc_cpu" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8565 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8567 # Check whether --with-fpu was given.
8568 if test "${with_fpu+set}" = set; then :
8569 withval=$with_fpu; aros_gcc_fpu="$withval"
8570 else
8571 aros_gcc_fpu=$gcc_default_fpu
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8575 $as_echo "$aros_gcc_fpu" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8578 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8580 # Check whether --with-float was given.
8581 if test "${with_float+set}" = set; then :
8582 withval=$with_float; aros_gcc_float_abi="$withval"
8583 else
8584 aros_gcc_float_abi=$gcc_default_float_abi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8588 $as_echo "$aros_gcc_float_abi" >&6; }
8590 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"
8591 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"
8593 esac
8595 # Some formats need custom ELF specs.
8596 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8597 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8598 elf_specs_in=config/${aros_object_format}-specs.in
8599 else
8600 elf_specs_in=config/elf-specs.in
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8604 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8606 # Check whether --with-aros-gcc was given.
8607 if test "${with_aros_gcc+set}" = set; then :
8608 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8609 else
8610 aros_gcc_version=""
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8614 $as_echo "$aros_gcc_version" >&6; }
8616 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8617 # Since we override specs, we may need to put these defines there
8618 if test "$gcc_target_cpu" != ""; then
8619 gcc_target_cpu="-D__${gcc_target_cpu}__"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8623 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8625 # Check whether --with-portssources was given.
8626 if test "${with_portssources+set}" = set; then :
8627 withval=$with_portssources; with_portssrcdir=$withval
8628 else
8629 with_portssrcdir="default"
8632 if test "$with_portssrcdir" = "default"; then
8633 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8634 else
8635 AROS_PORTSSRCDIR="$with_portssrcdir"
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8638 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8641 $as_echo_n "checking which bootloader to use... " >&6; }
8643 # Check whether --with-bootloader was given.
8644 if test "${with_bootloader+set}" = set; then :
8645 withval=$with_bootloader; target_bootloader=$withval
8646 else
8647 target_bootloader=$target_bootloader
8650 if test "$target_bootloader" = "none"; then
8651 aros_target_bootloader=""
8652 else
8653 aros_target_bootloader="$target_bootloader"
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8656 $as_echo "$target_bootloader" >&6; }
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8659 $as_echo_n "checking which icon-set to use... " >&6; }
8661 # Check whether --with-iconset was given.
8662 if test "${with_iconset+set}" = set; then :
8663 withval=$with_iconset; target_iconset=$withval
8664 else
8665 target_iconset="default"
8668 if test "$target_iconset" = "default"; then
8669 aros_target_iconset="Gorilla"
8670 target_iconset="default (Gorilla)"
8671 else
8672 aros_target_iconset="$target_iconset"
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8675 $as_echo "$target_iconset" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8678 $as_echo_n "checking which GUI Theme to use... " >&6; }
8680 # Check whether --with-theme was given.
8681 if test "${with_theme+set}" = set; then :
8682 withval=$with_theme; target_guitheme=$withval
8683 else
8684 target_guitheme="default"
8687 if test "$target_guitheme" = "default"; then
8688 aros_target_guitheme="Ice"
8689 else
8690 aros_target_guitheme="$target_guitheme"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8693 $as_echo "$aros_target_guitheme" >&6; }
8695 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8696 # for target code)
8697 cross_compiling=no
8699 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8700 cross_compiling=yes
8703 if test "$aros_host_cpu" == "x86_64" ; then
8704 if test "$aros_target_cpu" == "i386" ; then
8705 cross_compiling=no
8709 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8710 if test "$aros_host_arch" != "$aros_target_arch" ; then
8711 cross_compiling=yes
8713 else
8714 if test "$host_cc_elf" = "no" ; then
8715 cross_compiling=yes
8719 if test "$cross_compiling" = "no" ; then
8720 kernel_tool_prefix=""
8721 if test "$host_cc_elf" = "yes" ; then
8722 elf_tool_prefix=""
8726 #######################################################################
8727 ## Compute what toolchains to use, and their paths ##
8728 #######################################################################
8730 # This takes, as input:
8731 # crosstools {yes,no}
8732 # kernel_tool_version {"",[version]}
8733 # aros_gcc_version {"",[version]}
8734 # kernel_tool_prefix {none,[some-arch-os-]}
8735 # target_tool_prefix ${aros_target_cpu}-aros-
8736 # aros_tool_prefix ${aros_target_cpu}-aros-
8738 # The output is
8739 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8740 # Where the 'kernel' binaries are located
8741 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8742 # Where the 'target' binaries are located
8743 # (not the symlink farm - that is aros_target_*!)
8745 # The rules are:
8746 # if crosstools then
8747 # if kernel_tools_prefix = "no-kernel-prefix-"
8748 # aros_kernel_* = crosstools cc paths
8749 # aros_kernel_cc = elf cc wrapper around crosstools cc
8750 # else
8751 # VALIDATE(${kernel_tools_prefix}*)
8752 # aros_kernel_* = ${kernel_tools_prefix}*
8753 # if ${kernel_tools_prefix}cc is an AROS gcc
8754 # aros_kernel_cc = ${kernel_tools_prefix}cc
8755 # else
8756 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8757 # fi
8758 # fi
8760 # orig_target_* = aros built crosstools
8761 # orig_target_cc = elf cc wrapper around crosstools cc
8762 # else
8763 # VALIDATE(${kernel_tools_prefix}*)
8765 # orig_target_* = aros_kernel_*
8766 # if aros_kernel_cc is an AROS gcc
8767 # orig_target_cc = aros_kernel_cc
8768 # else
8769 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8770 # fi
8771 # fi
8773 target_tool_prefix="${aros_target_cpu}-aros-"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8776 $as_echo_n "checking which kernel tools... " >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8778 $as_echo "$kernel_tool_prefix" >&6; };
8780 if test "$kernel_tool_prefix" = "none" ; then
8781 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8782 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8784 else
8785 # Kernel tools required - find them
8786 # Note that 'normally', aros_kernel_* overrides will be
8787 # empty, unless specified in the per-arch sections above.
8788 if test "x$aros_kernel_cpp" = "x"; then
8789 aros_kernel_cpp=${kernel_tool_prefix}cpp
8792 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8793 if test "$cross_compiling" = "yes" ; then
8794 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8795 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 case $aros_kernel_cpp in
8802 [\\/]* | ?:[\\/]*)
8803 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8817 done
8818 done
8819 IFS=$as_save_IFS
8822 esac
8824 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8825 if test -n "$aros_kernel_cpp"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8827 $as_echo "$aros_kernel_cpp" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8834 else
8835 if test "$GCC" = "yes"; then
8836 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8837 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8838 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 case $aros_kernel_cpp in
8845 [\\/]* | ?:[\\/]*)
8846 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in `dirname $aros_gcc_cpp`
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8860 done
8861 done
8862 IFS=$as_save_IFS
8865 esac
8867 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8868 if test -n "$aros_kernel_cpp"; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8870 $as_echo "$aros_kernel_cpp" >&6; }
8871 else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8878 if test "$aros_kernel_cpp" = ""; then
8879 # Extract the first word of "cpp", so it can be a program name with args.
8880 set dummy cpp; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 case $aros_kernel_cpp in
8887 [\\/]* | ?:[\\/]*)
8888 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8902 done
8903 done
8904 IFS=$as_save_IFS
8907 esac
8909 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8910 if test -n "$aros_kernel_cpp"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8912 $as_echo "$aros_kernel_cpp" >&6; }
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8921 else
8922 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8923 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 case $aros_kernel_cpp in
8930 [\\/]* | ?:[\\/]*)
8931 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8945 done
8946 done
8947 IFS=$as_save_IFS
8950 esac
8952 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8953 if test -n "$aros_kernel_cpp"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8955 $as_echo "$aros_kernel_cpp" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8964 if test "$aros_kernel_cpp" = ""; then
8965 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8967 if test "x$aros_kernel_cc" = "x"; then
8968 aros_kernel_cc=${kernel_tool_prefix}gcc
8971 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8972 if test "$cross_compiling" = "yes" ; then
8973 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8974 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 case $aros_kernel_cc in
8981 [\\/]* | ?:[\\/]*)
8982 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9001 esac
9003 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9004 if test -n "$aros_kernel_cc"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9006 $as_echo "$aros_kernel_cc" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9013 else
9014 if test "$GCC" = "yes"; then
9015 aros_gcc_cc=`$CC -print-prog-name=cc`
9016 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9017 set dummy `basename $aros_gcc_cc`; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 case $aros_kernel_cc in
9024 [\\/]* | ?:[\\/]*)
9025 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in `dirname $aros_gcc_cc`
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9039 done
9040 done
9041 IFS=$as_save_IFS
9044 esac
9046 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9047 if test -n "$aros_kernel_cc"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9049 $as_echo "$aros_kernel_cc" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9057 if test "$aros_kernel_cc" = ""; then
9058 # Extract the first word of "cc", so it can be a program name with args.
9059 set dummy cc; ac_word=$2
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061 $as_echo_n "checking for $ac_word... " >&6; }
9062 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 case $aros_kernel_cc in
9066 [\\/]* | ?:[\\/]*)
9067 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 break 2
9081 done
9082 done
9083 IFS=$as_save_IFS
9086 esac
9088 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9089 if test -n "$aros_kernel_cc"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9091 $as_echo "$aros_kernel_cc" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9100 else
9101 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9102 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 case $aros_kernel_cc in
9109 [\\/]* | ?:[\\/]*)
9110 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9129 esac
9131 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9132 if test -n "$aros_kernel_cc"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9134 $as_echo "$aros_kernel_cc" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9143 if test "$aros_kernel_cc" = ""; then
9144 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9146 if test "x$aros_kernel_cxx" = "x"; then
9147 aros_kernel_cxx=${kernel_tool_prefix}g++
9150 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9151 if test "$cross_compiling" = "yes" ; then
9152 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9153 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 case $aros_kernel_cxx in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9180 esac
9182 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9183 if test -n "$aros_kernel_cxx"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9185 $as_echo "$aros_kernel_cxx" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9192 else
9193 if test "$GCC" = "yes"; then
9194 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9195 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9196 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 case $aros_kernel_cxx in
9203 [\\/]* | ?:[\\/]*)
9204 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in `dirname $aros_gcc_cxx`
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9218 done
9219 done
9220 IFS=$as_save_IFS
9223 esac
9225 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9226 if test -n "$aros_kernel_cxx"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9228 $as_echo "$aros_kernel_cxx" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test "$aros_kernel_cxx" = ""; then
9237 # Extract the first word of "cxx", so it can be a program name with args.
9238 set dummy cxx; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 case $aros_kernel_cxx in
9245 [\\/]* | ?:[\\/]*)
9246 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9260 done
9261 done
9262 IFS=$as_save_IFS
9265 esac
9267 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9268 if test -n "$aros_kernel_cxx"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9270 $as_echo "$aros_kernel_cxx" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9279 else
9280 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9281 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $aros_kernel_cxx in
9288 [\\/]* | ?:[\\/]*)
9289 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9305 IFS=$as_save_IFS
9308 esac
9310 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9311 if test -n "$aros_kernel_cxx"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9313 $as_echo "$aros_kernel_cxx" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9322 # If it's set, make sure it's really there
9323 if test "x$aros_kernel_cxx" != "x" ; then
9324 if test "$aros_kernel_cxx" = ""; then
9325 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9329 if test "$aros_kernel_ld" = ""; then
9330 if test "$cross_compiling" = "yes" ; then
9331 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9332 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 case $aros_kernel_ld in
9339 [\\/]* | ?:[\\/]*)
9340 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9350 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9354 done
9355 done
9356 IFS=$as_save_IFS
9359 esac
9361 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9362 if test -n "$aros_kernel_ld"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9364 $as_echo "$aros_kernel_ld" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9371 else
9372 if test "$GCC" = "yes"; then
9373 aros_gcc_ld=`$CC -print-prog-name=ld`
9374 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9375 set dummy `basename $aros_gcc_ld`; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 case $aros_kernel_ld in
9382 [\\/]* | ?:[\\/]*)
9383 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in `dirname $aros_gcc_ld`
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9393 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9397 done
9398 done
9399 IFS=$as_save_IFS
9402 esac
9404 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9405 if test -n "$aros_kernel_ld"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9407 $as_echo "$aros_kernel_ld" >&6; }
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9415 if test "$aros_kernel_ld" = ""; then
9416 # Extract the first word of "ld", so it can be a program name with args.
9417 set dummy ld; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $aros_kernel_ld in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9444 esac
9446 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9447 if test -n "$aros_kernel_ld"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9449 $as_echo "$aros_kernel_ld" >&6; }
9450 else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9458 else
9459 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9460 set dummy $aros_kernel_ld; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 case $aros_kernel_ld in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9482 done
9483 done
9484 IFS=$as_save_IFS
9487 esac
9489 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9490 if test -n "$aros_kernel_ld"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9492 $as_echo "$aros_kernel_ld" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9501 if test "$aros_kernel_ld" = ""; then
9502 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9505 if test "$aros_kernel_as" = ""; then
9506 if test "$cross_compiling" = "yes" ; then
9507 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9508 set dummy ${kernel_tool_prefix}as; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_path_aros_kernel_as+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 case $aros_kernel_as in
9515 [\\/]* | ?:[\\/]*)
9516 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9535 esac
9537 aros_kernel_as=$ac_cv_path_aros_kernel_as
9538 if test -n "$aros_kernel_as"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9540 $as_echo "$aros_kernel_as" >&6; }
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9547 else
9548 if test "$GCC" = "yes"; then
9549 aros_gcc_as=`$CC -print-prog-name=as`
9550 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9551 set dummy `basename $aros_gcc_as`; ac_word=$2
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if ${ac_cv_path_aros_kernel_as+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 case $aros_kernel_as in
9558 [\\/]* | ?:[\\/]*)
9559 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in `dirname $aros_gcc_as`
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9569 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9573 done
9574 done
9575 IFS=$as_save_IFS
9578 esac
9580 aros_kernel_as=$ac_cv_path_aros_kernel_as
9581 if test -n "$aros_kernel_as"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9583 $as_echo "$aros_kernel_as" >&6; }
9584 else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9591 if test "$aros_kernel_as" = ""; then
9592 # Extract the first word of "as", so it can be a program name with args.
9593 set dummy as; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if ${ac_cv_path_aros_kernel_as+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 case $aros_kernel_as in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9615 done
9616 done
9617 IFS=$as_save_IFS
9620 esac
9622 aros_kernel_as=$ac_cv_path_aros_kernel_as
9623 if test -n "$aros_kernel_as"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9625 $as_echo "$aros_kernel_as" >&6; }
9626 else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9634 else
9635 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9636 set dummy $aros_kernel_as; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_aros_kernel_as+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 case $aros_kernel_as in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9658 done
9659 done
9660 IFS=$as_save_IFS
9663 esac
9665 aros_kernel_as=$ac_cv_path_aros_kernel_as
9666 if test -n "$aros_kernel_as"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9668 $as_echo "$aros_kernel_as" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9677 if test "$aros_kernel_as" = ""; then
9678 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9681 if test "$aros_kernel_ar" = ""; then
9682 if test "$cross_compiling" = "yes" ; then
9683 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9684 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 case $aros_kernel_ar in
9691 [\\/]* | ?:[\\/]*)
9692 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9702 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9706 done
9707 done
9708 IFS=$as_save_IFS
9711 esac
9713 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9714 if test -n "$aros_kernel_ar"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9716 $as_echo "$aros_kernel_ar" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9723 else
9724 if test "$GCC" = "yes"; then
9725 aros_gcc_ar=`$CC -print-prog-name=ar`
9726 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9727 set dummy `basename $aros_gcc_ar`; ac_word=$2
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 case $aros_kernel_ar in
9734 [\\/]* | ?:[\\/]*)
9735 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in `dirname $aros_gcc_ar`
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9754 esac
9756 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9757 if test -n "$aros_kernel_ar"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9759 $as_echo "$aros_kernel_ar" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9767 if test "$aros_kernel_ar" = ""; then
9768 # Extract the first word of "ar", so it can be a program name with args.
9769 set dummy ar; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 case $aros_kernel_ar in
9776 [\\/]* | ?:[\\/]*)
9777 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9783 IFS=$as_save_IFS
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 break 2
9791 done
9792 done
9793 IFS=$as_save_IFS
9796 esac
9798 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9799 if test -n "$aros_kernel_ar"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9801 $as_echo "$aros_kernel_ar" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9810 else
9811 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9812 set dummy $aros_kernel_ar; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 case $aros_kernel_ar in
9819 [\\/]* | ?:[\\/]*)
9820 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9834 done
9835 done
9836 IFS=$as_save_IFS
9839 esac
9841 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9842 if test -n "$aros_kernel_ar"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9844 $as_echo "$aros_kernel_ar" >&6; }
9845 else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9853 if test "$aros_kernel_ar" = ""; then
9854 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9857 if test "$aros_kernel_ranlib" = ""; then
9858 if test "$cross_compiling" = "yes" ; then
9859 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9860 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 case $aros_kernel_ranlib in
9867 [\\/]* | ?:[\\/]*)
9868 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9882 done
9883 done
9884 IFS=$as_save_IFS
9887 esac
9889 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9890 if test -n "$aros_kernel_ranlib"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9892 $as_echo "$aros_kernel_ranlib" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9899 else
9900 if test "$GCC" = "yes"; then
9901 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9902 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9903 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 case $aros_kernel_ranlib in
9910 [\\/]* | ?:[\\/]*)
9911 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in `dirname $aros_gcc_ranlib`
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9930 esac
9932 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9933 if test -n "$aros_kernel_ranlib"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9935 $as_echo "$aros_kernel_ranlib" >&6; }
9936 else
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; }
9943 if test "$aros_kernel_ranlib" = ""; then
9944 # Extract the first word of "ranlib", so it can be a program name with args.
9945 set dummy ranlib; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 case $aros_kernel_ranlib in
9952 [\\/]* | ?:[\\/]*)
9953 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9967 done
9968 done
9969 IFS=$as_save_IFS
9972 esac
9974 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9975 if test -n "$aros_kernel_ranlib"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9977 $as_echo "$aros_kernel_ranlib" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9986 else
9987 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9988 set dummy $aros_kernel_ranlib; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 case $aros_kernel_ranlib in
9995 [\\/]* | ?:[\\/]*)
9996 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10010 done
10011 done
10012 IFS=$as_save_IFS
10015 esac
10017 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10018 if test -n "$aros_kernel_ranlib"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10020 $as_echo "$aros_kernel_ranlib" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10029 if test "$aros_kernel_ranlib" = ""; then
10030 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10033 if test "$aros_kernel_nm" = ""; then
10034 if test "$cross_compiling" = "yes" ; then
10035 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10036 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 case $aros_kernel_nm in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10060 IFS=$as_save_IFS
10063 esac
10065 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10066 if test -n "$aros_kernel_nm"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10068 $as_echo "$aros_kernel_nm" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10075 else
10076 if test "$GCC" = "yes"; then
10077 aros_gcc_nm=`$CC -print-prog-name=nm`
10078 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10079 set dummy `basename $aros_gcc_nm`; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 case $aros_kernel_nm in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in `dirname $aros_gcc_nm`
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10106 esac
10108 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10109 if test -n "$aros_kernel_nm"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10111 $as_echo "$aros_kernel_nm" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10119 if test "$aros_kernel_nm" = ""; then
10120 # Extract the first word of "nm", so it can be a program name with args.
10121 set dummy nm; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 case $aros_kernel_nm in
10128 [\\/]* | ?:[\\/]*)
10129 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10148 esac
10150 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10151 if test -n "$aros_kernel_nm"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10153 $as_echo "$aros_kernel_nm" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10162 else
10163 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10164 set dummy $aros_kernel_nm; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 case $aros_kernel_nm in
10171 [\\/]* | ?:[\\/]*)
10172 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10182 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10191 esac
10193 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10194 if test -n "$aros_kernel_nm"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10196 $as_echo "$aros_kernel_nm" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10205 if test "$aros_kernel_nm" = ""; then
10206 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10209 if test "$aros_kernel_strip" = ""; then
10210 if test "$cross_compiling" = "yes" ; then
10211 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10212 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 case $aros_kernel_strip in
10219 [\\/]* | ?:[\\/]*)
10220 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10230 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10234 done
10235 done
10236 IFS=$as_save_IFS
10239 esac
10241 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10242 if test -n "$aros_kernel_strip"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10244 $as_echo "$aros_kernel_strip" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10251 else
10252 if test "$GCC" = "yes"; then
10253 aros_gcc_strip=`$CC -print-prog-name=strip`
10254 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10255 set dummy `basename $aros_gcc_strip`; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 case $aros_kernel_strip in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in `dirname $aros_gcc_strip`
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10277 done
10278 done
10279 IFS=$as_save_IFS
10282 esac
10284 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10285 if test -n "$aros_kernel_strip"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10287 $as_echo "$aros_kernel_strip" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test "$aros_kernel_strip" = ""; then
10296 # Extract the first word of "strip", so it can be a program name with args.
10297 set dummy strip; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_kernel_strip in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10324 esac
10326 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10327 if test -n "$aros_kernel_strip"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10329 $as_echo "$aros_kernel_strip" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10338 else
10339 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10340 set dummy $aros_kernel_strip; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 case $aros_kernel_strip in
10347 [\\/]* | ?:[\\/]*)
10348 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10362 done
10363 done
10364 IFS=$as_save_IFS
10367 esac
10369 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10370 if test -n "$aros_kernel_strip"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10372 $as_echo "$aros_kernel_strip" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10381 if test "$aros_kernel_strip" = ""; then
10382 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10385 # Objcopy and objdump are not required for the kernel
10386 # toolchain on many architectures.
10387 # So we'll look for them, but not make them strictly required.
10389 if test "$aros_kernel_objcopy" = ""; then
10390 if test "$cross_compiling" = "yes" ; then
10391 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10392 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 case $aros_kernel_objcopy in
10399 [\\/]* | ?:[\\/]*)
10400 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10419 esac
10421 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10422 if test -n "$aros_kernel_objcopy"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10424 $as_echo "$aros_kernel_objcopy" >&6; }
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10431 else
10432 if test "$GCC" = "yes"; then
10433 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10434 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10435 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437 $as_echo_n "checking for $ac_word... " >&6; }
10438 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 case $aros_kernel_objcopy in
10442 [\\/]* | ?:[\\/]*)
10443 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in `dirname $aros_gcc_objcopy`
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10457 done
10458 done
10459 IFS=$as_save_IFS
10462 esac
10464 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10465 if test -n "$aros_kernel_objcopy"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10467 $as_echo "$aros_kernel_objcopy" >&6; }
10468 else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10475 if test "$aros_kernel_objcopy" = ""; then
10476 # Extract the first word of "objcopy", so it can be a program name with args.
10477 set dummy objcopy; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 case $aros_kernel_objcopy in
10484 [\\/]* | ?:[\\/]*)
10485 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10499 done
10500 done
10501 IFS=$as_save_IFS
10504 esac
10506 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10507 if test -n "$aros_kernel_objcopy"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10509 $as_echo "$aros_kernel_objcopy" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10518 else
10519 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10520 set dummy $aros_kernel_objcopy; ac_word=$2
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 $as_echo_n "checking for $ac_word... " >&6; }
10523 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 case $aros_kernel_objcopy in
10527 [\\/]* | ?:[\\/]*)
10528 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10542 done
10543 done
10544 IFS=$as_save_IFS
10547 esac
10549 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10550 if test -n "$aros_kernel_objcopy"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10552 $as_echo "$aros_kernel_objcopy" >&6; }
10553 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; }
10562 if test "$aros_kernel_objdump" = ""; then
10563 if test "$cross_compiling" = "yes" ; then
10564 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10565 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 case $aros_kernel_objdump in
10572 [\\/]* | ?:[\\/]*)
10573 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10583 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 break 2
10587 done
10588 done
10589 IFS=$as_save_IFS
10592 esac
10594 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10595 if test -n "$aros_kernel_objdump"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10597 $as_echo "$aros_kernel_objdump" >&6; }
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10604 else
10605 if test "$GCC" = "yes"; then
10606 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10607 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10608 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 case $aros_kernel_objdump in
10615 [\\/]* | ?:[\\/]*)
10616 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in `dirname $aros_gcc_objdump`
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10630 done
10631 done
10632 IFS=$as_save_IFS
10635 esac
10637 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10638 if test -n "$aros_kernel_objdump"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10640 $as_echo "$aros_kernel_objdump" >&6; }
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10648 if test "$aros_kernel_objdump" = ""; then
10649 # Extract the first word of "objdump", so it can be a program name with args.
10650 set dummy objdump; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 case $aros_kernel_objdump in
10657 [\\/]* | ?:[\\/]*)
10658 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10672 done
10673 done
10674 IFS=$as_save_IFS
10677 esac
10679 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10680 if test -n "$aros_kernel_objdump"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10682 $as_echo "$aros_kernel_objdump" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10691 else
10692 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10693 set dummy $aros_kernel_objdump; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 case $aros_kernel_objdump in
10700 [\\/]* | ?:[\\/]*)
10701 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10715 done
10716 done
10717 IFS=$as_save_IFS
10720 esac
10722 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10723 if test -n "$aros_kernel_objdump"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10725 $as_echo "$aros_kernel_objdump" >&6; }
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10734 if test "x${crosstools}" != "xyes" ; then
10735 if test "$aros_kernel_objcopy" = ""; then
10736 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10738 if test "$aros_kernel_objdump" = ""; then
10739 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10745 $as_echo_n "checking which target tools to use... " >&6; }
10746 if test "$crosstools" = "yes"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10748 $as_echo "$target_tool_prefix" >&6; }
10749 # We are are building AROS crosstools
10750 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10751 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10752 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10753 orig_target_cpp="${tmp_tool_prefix}cpp"
10754 orig_target_ld="${tmp_tool_prefix}ld"
10755 orig_target_as="${tmp_tool_prefix}as"
10756 orig_target_ar="${tmp_tool_prefix}ar"
10757 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10758 orig_target_nm="${tmp_tool_prefix}nm"
10759 orig_target_strip="${tmp_tool_prefix}strip"
10760 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10761 orig_target_objdump="${tmp_tool_prefix}objdump"
10762 else
10763 # Determine whether AROS or ELF tools should be used
10764 if test "$aros_tool_prefix" = "none"; then
10765 aros_tool_prefix="${elf_tool_prefix}"
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10769 $as_echo "$aros_tool_prefix" >&6; }
10770 # We are *not* building AROS crosstools - use the AROS or ELF tools
10772 if test "${aros_tool_prefix}cpp" = ""; then
10773 if test "$cross_compiling" = "yes" ; then
10774 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10775 set dummy ${target_tool_prefix}cpp; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if ${ac_cv_path_orig_target_cpp+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 case $orig_target_cpp in
10782 [\\/]* | ?:[\\/]*)
10783 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10802 esac
10804 orig_target_cpp=$ac_cv_path_orig_target_cpp
10805 if test -n "$orig_target_cpp"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10807 $as_echo "$orig_target_cpp" >&6; }
10808 else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10814 else
10815 if test "$GCC" = "yes"; then
10816 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10817 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10818 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if ${ac_cv_path_orig_target_cpp+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 case $orig_target_cpp in
10825 [\\/]* | ?:[\\/]*)
10826 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in `dirname $aros_gcc_cpp`
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10840 done
10841 done
10842 IFS=$as_save_IFS
10845 esac
10847 orig_target_cpp=$ac_cv_path_orig_target_cpp
10848 if test -n "$orig_target_cpp"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10850 $as_echo "$orig_target_cpp" >&6; }
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10858 if test "$orig_target_cpp" = ""; then
10859 # Extract the first word of "cpp", so it can be a program name with args.
10860 set dummy cpp; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if ${ac_cv_path_orig_target_cpp+:} false; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 case $orig_target_cpp in
10867 [\\/]* | ?:[\\/]*)
10868 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10882 done
10883 done
10884 IFS=$as_save_IFS
10887 esac
10889 orig_target_cpp=$ac_cv_path_orig_target_cpp
10890 if test -n "$orig_target_cpp"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10892 $as_echo "$orig_target_cpp" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10901 else
10902 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10903 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905 $as_echo_n "checking for $ac_word... " >&6; }
10906 if ${ac_cv_path_orig_target_cpp+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 case $orig_target_cpp in
10910 [\\/]* | ?:[\\/]*)
10911 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10921 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10925 done
10926 done
10927 IFS=$as_save_IFS
10930 esac
10932 orig_target_cpp=$ac_cv_path_orig_target_cpp
10933 if test -n "$orig_target_cpp"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10935 $as_echo "$orig_target_cpp" >&6; }
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10944 if test "$orig_target_cpp" = ""; then
10945 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10948 if test "${aros_tool_prefix}gcc" = ""; then
10949 if test "$cross_compiling" = "yes" ; then
10950 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10951 set dummy ${target_tool_prefix}gcc; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if ${ac_cv_path_orig_target_cc+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 case $orig_target_cc in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971 break 2
10973 done
10974 done
10975 IFS=$as_save_IFS
10978 esac
10980 orig_target_cc=$ac_cv_path_orig_target_cc
10981 if test -n "$orig_target_cc"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10983 $as_echo "$orig_target_cc" >&6; }
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10990 else
10991 if test "$GCC" = "yes"; then
10992 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10993 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10994 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_path_orig_target_cc+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 case $orig_target_cc in
11001 [\\/]* | ?:[\\/]*)
11002 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in `dirname $aros_gcc_gcc`
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11012 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11016 done
11017 done
11018 IFS=$as_save_IFS
11021 esac
11023 orig_target_cc=$ac_cv_path_orig_target_cc
11024 if test -n "$orig_target_cc"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11026 $as_echo "$orig_target_cc" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11034 if test "$orig_target_cc" = ""; then
11035 # Extract the first word of "gcc", so it can be a program name with args.
11036 set dummy gcc; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_path_orig_target_cc+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 case $orig_target_cc in
11043 [\\/]* | ?:[\\/]*)
11044 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in $PATH
11050 IFS=$as_save_IFS
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
11053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11054 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 break 2
11058 done
11059 done
11060 IFS=$as_save_IFS
11063 esac
11065 orig_target_cc=$ac_cv_path_orig_target_cc
11066 if test -n "$orig_target_cc"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11068 $as_echo "$orig_target_cc" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11077 else
11078 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11079 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_path_orig_target_cc+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 case $orig_target_cc in
11086 [\\/]* | ?:[\\/]*)
11087 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11101 done
11102 done
11103 IFS=$as_save_IFS
11106 esac
11108 orig_target_cc=$ac_cv_path_orig_target_cc
11109 if test -n "$orig_target_cc"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11111 $as_echo "$orig_target_cc" >&6; }
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11120 if test "$orig_target_cc" = ""; then
11121 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11124 if test "${aros_tool_prefix}g++" = ""; then
11125 if test "$cross_compiling" = "yes" ; then
11126 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11127 set dummy ${target_tool_prefix}g++; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_orig_target_cxx+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $orig_target_cxx in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 orig_target_cxx=$ac_cv_path_orig_target_cxx
11157 if test -n "$orig_target_cxx"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11159 $as_echo "$orig_target_cxx" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 else
11167 if test "$GCC" = "yes"; then
11168 aros_gcc_g++=`$CC -print-prog-name=g++`
11169 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11170 set dummy `basename $aros_gcc_g++`; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if ${ac_cv_path_orig_target_cxx+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $orig_target_cxx in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in `dirname $aros_gcc_g++`
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11192 done
11193 done
11194 IFS=$as_save_IFS
11197 esac
11199 orig_target_cxx=$ac_cv_path_orig_target_cxx
11200 if test -n "$orig_target_cxx"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11202 $as_echo "$orig_target_cxx" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11210 if test "$orig_target_cxx" = ""; then
11211 # Extract the first word of "g++", so it can be a program name with args.
11212 set dummy g++; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_path_orig_target_cxx+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 case $orig_target_cxx in
11219 [\\/]* | ?:[\\/]*)
11220 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11234 done
11235 done
11236 IFS=$as_save_IFS
11239 esac
11241 orig_target_cxx=$ac_cv_path_orig_target_cxx
11242 if test -n "$orig_target_cxx"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11244 $as_echo "$orig_target_cxx" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11253 else
11254 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11255 set dummy ${aros_tool_prefix}g++; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_path_orig_target_cxx+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 case $orig_target_cxx in
11262 [\\/]* | ?:[\\/]*)
11263 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11277 done
11278 done
11279 IFS=$as_save_IFS
11282 esac
11284 orig_target_cxx=$ac_cv_path_orig_target_cxx
11285 if test -n "$orig_target_cxx"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11287 $as_echo "$orig_target_cxx" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11296 if test "$orig_target_cxx" = ""; then
11297 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11300 if test "${aros_tool_prefix}ld" = ""; then
11301 if test "$cross_compiling" = "yes" ; then
11302 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11303 set dummy ${target_tool_prefix}gcc; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if ${ac_cv_path_orig_target_ld+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 case $orig_target_ld in
11310 [\\/]* | ?:[\\/]*)
11311 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11325 done
11326 done
11327 IFS=$as_save_IFS
11330 esac
11332 orig_target_ld=$ac_cv_path_orig_target_ld
11333 if test -n "$orig_target_ld"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11335 $as_echo "$orig_target_ld" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 else
11343 if test "$GCC" = "yes"; then
11344 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11345 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11346 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_orig_target_ld+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 case $orig_target_ld in
11353 [\\/]* | ?:[\\/]*)
11354 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in `dirname $aros_gcc_gcc`
11360 IFS=$as_save_IFS
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11364 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11368 done
11369 done
11370 IFS=$as_save_IFS
11373 esac
11375 orig_target_ld=$ac_cv_path_orig_target_ld
11376 if test -n "$orig_target_ld"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11378 $as_echo "$orig_target_ld" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test "$orig_target_ld" = ""; then
11387 # Extract the first word of "gcc", so it can be a program name with args.
11388 set dummy gcc; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_path_orig_target_ld+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 case $orig_target_ld in
11395 [\\/]* | ?:[\\/]*)
11396 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11410 done
11411 done
11412 IFS=$as_save_IFS
11415 esac
11417 orig_target_ld=$ac_cv_path_orig_target_ld
11418 if test -n "$orig_target_ld"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11420 $as_echo "$orig_target_ld" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11429 else
11430 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11431 set dummy ${aros_tool_prefix}ld; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if ${ac_cv_path_orig_target_ld+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 case $orig_target_ld in
11438 [\\/]* | ?:[\\/]*)
11439 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11453 done
11454 done
11455 IFS=$as_save_IFS
11458 esac
11460 orig_target_ld=$ac_cv_path_orig_target_ld
11461 if test -n "$orig_target_ld"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11463 $as_echo "$orig_target_ld" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11472 if test "$orig_target_ld" = ""; then
11473 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11476 if test "${aros_tool_prefix}as" = ""; then
11477 if test "$cross_compiling" = "yes" ; then
11478 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11479 set dummy ${target_tool_prefix}as; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_path_orig_target_as+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 case $orig_target_as in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11506 esac
11508 orig_target_as=$ac_cv_path_orig_target_as
11509 if test -n "$orig_target_as"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11511 $as_echo "$orig_target_as" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11518 else
11519 if test "$GCC" = "yes"; then
11520 aros_gcc_as=`$CC -print-prog-name=as`
11521 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11522 set dummy `basename $aros_gcc_as`; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_path_orig_target_as+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 case $orig_target_as in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in `dirname $aros_gcc_as`
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11544 done
11545 done
11546 IFS=$as_save_IFS
11549 esac
11551 orig_target_as=$ac_cv_path_orig_target_as
11552 if test -n "$orig_target_as"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11554 $as_echo "$orig_target_as" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11562 if test "$orig_target_as" = ""; then
11563 # Extract the first word of "as", so it can be a program name with args.
11564 set dummy as; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_path_orig_target_as+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 case $orig_target_as in
11571 [\\/]* | ?:[\\/]*)
11572 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11586 done
11587 done
11588 IFS=$as_save_IFS
11591 esac
11593 orig_target_as=$ac_cv_path_orig_target_as
11594 if test -n "$orig_target_as"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11596 $as_echo "$orig_target_as" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11605 else
11606 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11607 set dummy ${aros_tool_prefix}as; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_path_orig_target_as+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 case $orig_target_as in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11629 done
11630 done
11631 IFS=$as_save_IFS
11634 esac
11636 orig_target_as=$ac_cv_path_orig_target_as
11637 if test -n "$orig_target_as"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11639 $as_echo "$orig_target_as" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11648 if test "$orig_target_as" = ""; then
11649 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11652 if test "${aros_tool_prefix}ar" = ""; then
11653 if test "$cross_compiling" = "yes" ; then
11654 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11655 set dummy ${target_tool_prefix}ar; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_orig_target_ar+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 case $orig_target_ar in
11662 [\\/]* | ?:[\\/]*)
11663 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11677 done
11678 done
11679 IFS=$as_save_IFS
11682 esac
11684 orig_target_ar=$ac_cv_path_orig_target_ar
11685 if test -n "$orig_target_ar"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11687 $as_echo "$orig_target_ar" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11694 else
11695 if test "$GCC" = "yes"; then
11696 aros_gcc_ar=`$CC -print-prog-name=ar`
11697 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11698 set dummy `basename $aros_gcc_ar`; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_orig_target_ar+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 case $orig_target_ar in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in `dirname $aros_gcc_ar`
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11725 esac
11727 orig_target_ar=$ac_cv_path_orig_target_ar
11728 if test -n "$orig_target_ar"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11730 $as_echo "$orig_target_ar" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11738 if test "$orig_target_ar" = ""; then
11739 # Extract the first word of "ar", so it can be a program name with args.
11740 set dummy ar; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_path_orig_target_ar+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 case $orig_target_ar in
11747 [\\/]* | ?:[\\/]*)
11748 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11762 done
11763 done
11764 IFS=$as_save_IFS
11767 esac
11769 orig_target_ar=$ac_cv_path_orig_target_ar
11770 if test -n "$orig_target_ar"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11772 $as_echo "$orig_target_ar" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11781 else
11782 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11783 set dummy ${aros_tool_prefix}ar; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_path_orig_target_ar+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 case $orig_target_ar in
11790 [\\/]* | ?:[\\/]*)
11791 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11805 done
11806 done
11807 IFS=$as_save_IFS
11810 esac
11812 orig_target_ar=$ac_cv_path_orig_target_ar
11813 if test -n "$orig_target_ar"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11815 $as_echo "$orig_target_ar" >&6; }
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11824 if test "$orig_target_ar" = ""; then
11825 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11828 if test "${aros_tool_prefix}ranlib" = ""; then
11829 if test "$cross_compiling" = "yes" ; then
11830 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11831 set dummy ${target_tool_prefix}ar; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 case $orig_target_ranlib in
11838 [\\/]* | ?:[\\/]*)
11839 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11853 done
11854 done
11855 IFS=$as_save_IFS
11858 esac
11860 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11861 if test -n "$orig_target_ranlib"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11863 $as_echo "$orig_target_ranlib" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 else
11871 if test "$GCC" = "yes"; then
11872 aros_gcc_ar=`$CC -print-prog-name=ar`
11873 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11874 set dummy `basename $aros_gcc_ar`; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 case $orig_target_ranlib in
11881 [\\/]* | ?:[\\/]*)
11882 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in `dirname $aros_gcc_ar`
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11896 done
11897 done
11898 IFS=$as_save_IFS
11901 esac
11903 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11904 if test -n "$orig_target_ranlib"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11906 $as_echo "$orig_target_ranlib" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test "$orig_target_ranlib" = ""; then
11915 # Extract the first word of "ar", so it can be a program name with args.
11916 set dummy ar; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 case $orig_target_ranlib in
11923 [\\/]* | ?:[\\/]*)
11924 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11943 esac
11945 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11946 if test -n "$orig_target_ranlib"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11948 $as_echo "$orig_target_ranlib" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11957 else
11958 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11959 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 case $orig_target_ranlib in
11966 [\\/]* | ?:[\\/]*)
11967 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11977 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11981 done
11982 done
11983 IFS=$as_save_IFS
11986 esac
11988 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11989 if test -n "$orig_target_ranlib"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11991 $as_echo "$orig_target_ranlib" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
12000 if test "$orig_target_ranlib" = ""; then
12001 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12004 if test "${aros_tool_prefix}nm" = ""; then
12005 if test "$cross_compiling" = "yes" ; then
12006 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12007 set dummy ${target_tool_prefix}nm; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if ${ac_cv_path_orig_target_nm+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 case $orig_target_nm in
12014 [\\/]* | ?:[\\/]*)
12015 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12034 esac
12036 orig_target_nm=$ac_cv_path_orig_target_nm
12037 if test -n "$orig_target_nm"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12039 $as_echo "$orig_target_nm" >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12046 else
12047 if test "$GCC" = "yes"; then
12048 aros_gcc_nm=`$CC -print-prog-name=nm`
12049 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12050 set dummy `basename $aros_gcc_nm`; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_orig_target_nm+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $orig_target_nm in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in `dirname $aros_gcc_nm`
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12072 done
12073 done
12074 IFS=$as_save_IFS
12077 esac
12079 orig_target_nm=$ac_cv_path_orig_target_nm
12080 if test -n "$orig_target_nm"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12082 $as_echo "$orig_target_nm" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12090 if test "$orig_target_nm" = ""; then
12091 # Extract the first word of "nm", so it can be a program name with args.
12092 set dummy nm; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_path_orig_target_nm+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 case $orig_target_nm in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12114 done
12115 done
12116 IFS=$as_save_IFS
12119 esac
12121 orig_target_nm=$ac_cv_path_orig_target_nm
12122 if test -n "$orig_target_nm"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12124 $as_echo "$orig_target_nm" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12133 else
12134 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12135 set dummy ${aros_tool_prefix}nm; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_path_orig_target_nm+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 case $orig_target_nm in
12142 [\\/]* | ?:[\\/]*)
12143 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12157 done
12158 done
12159 IFS=$as_save_IFS
12162 esac
12164 orig_target_nm=$ac_cv_path_orig_target_nm
12165 if test -n "$orig_target_nm"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12167 $as_echo "$orig_target_nm" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12176 if test "$orig_target_nm" = ""; then
12177 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12180 if test "${aros_tool_prefix}strip" = ""; then
12181 if test "$cross_compiling" = "yes" ; then
12182 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12183 set dummy ${target_tool_prefix}strip; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_orig_target_strip+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 case $orig_target_strip in
12190 [\\/]* | ?:[\\/]*)
12191 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12205 done
12206 done
12207 IFS=$as_save_IFS
12210 esac
12212 orig_target_strip=$ac_cv_path_orig_target_strip
12213 if test -n "$orig_target_strip"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12215 $as_echo "$orig_target_strip" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12222 else
12223 if test "$GCC" = "yes"; then
12224 aros_gcc_strip=`$CC -print-prog-name=strip`
12225 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12226 set dummy `basename $aros_gcc_strip`; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_path_orig_target_strip+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $orig_target_strip in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in `dirname $aros_gcc_strip`
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12244 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12253 esac
12255 orig_target_strip=$ac_cv_path_orig_target_strip
12256 if test -n "$orig_target_strip"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12258 $as_echo "$orig_target_strip" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test "$orig_target_strip" = ""; then
12267 # Extract the first word of "strip", so it can be a program name with args.
12268 set dummy strip; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_orig_target_strip+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 case $orig_target_strip in
12275 [\\/]* | ?:[\\/]*)
12276 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12290 done
12291 done
12292 IFS=$as_save_IFS
12295 esac
12297 orig_target_strip=$ac_cv_path_orig_target_strip
12298 if test -n "$orig_target_strip"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12300 $as_echo "$orig_target_strip" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12309 else
12310 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12311 set dummy ${aros_tool_prefix}strip; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_path_orig_target_strip+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 case $orig_target_strip in
12318 [\\/]* | ?:[\\/]*)
12319 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12329 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12338 esac
12340 orig_target_strip=$ac_cv_path_orig_target_strip
12341 if test -n "$orig_target_strip"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12343 $as_echo "$orig_target_strip" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12352 if test "$orig_target_strip" = ""; then
12353 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12356 if test "${aros_tool_prefix}objcopy" = ""; then
12357 if test "$cross_compiling" = "yes" ; then
12358 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12359 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 case $orig_target_objcopy in
12366 [\\/]* | ?:[\\/]*)
12367 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 break 2
12381 done
12382 done
12383 IFS=$as_save_IFS
12386 esac
12388 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12389 if test -n "$orig_target_objcopy"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12391 $as_echo "$orig_target_objcopy" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12398 else
12399 if test "$GCC" = "yes"; then
12400 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12401 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12402 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case $orig_target_objcopy in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in `dirname $aros_gcc_objcopy`
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12424 done
12425 done
12426 IFS=$as_save_IFS
12429 esac
12431 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12432 if test -n "$orig_target_objcopy"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12434 $as_echo "$orig_target_objcopy" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12442 if test "$orig_target_objcopy" = ""; then
12443 # Extract the first word of "objcopy", so it can be a program name with args.
12444 set dummy objcopy; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 case $orig_target_objcopy in
12451 [\\/]* | ?:[\\/]*)
12452 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 break 2
12466 done
12467 done
12468 IFS=$as_save_IFS
12471 esac
12473 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12474 if test -n "$orig_target_objcopy"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12476 $as_echo "$orig_target_objcopy" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12485 else
12486 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12487 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 case $orig_target_objcopy in
12494 [\\/]* | ?:[\\/]*)
12495 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12509 done
12510 done
12511 IFS=$as_save_IFS
12514 esac
12516 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12517 if test -n "$orig_target_objcopy"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12519 $as_echo "$orig_target_objcopy" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12528 if test "$orig_target_objcopy" = ""; then
12529 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12532 if test "${aros_tool_prefix}objdump" = ""; then
12533 if test "$cross_compiling" = "yes" ; then
12534 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12535 set dummy ${target_tool_prefix}objdump; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_path_orig_target_objdump+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 case $orig_target_objdump in
12542 [\\/]* | ?:[\\/]*)
12543 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $PATH
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12553 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12557 done
12558 done
12559 IFS=$as_save_IFS
12562 esac
12564 orig_target_objdump=$ac_cv_path_orig_target_objdump
12565 if test -n "$orig_target_objdump"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12567 $as_echo "$orig_target_objdump" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12574 else
12575 if test "$GCC" = "yes"; then
12576 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12577 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12578 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_orig_target_objdump+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 case $orig_target_objdump in
12585 [\\/]* | ?:[\\/]*)
12586 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in `dirname $aros_gcc_objdump`
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12600 done
12601 done
12602 IFS=$as_save_IFS
12605 esac
12607 orig_target_objdump=$ac_cv_path_orig_target_objdump
12608 if test -n "$orig_target_objdump"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12610 $as_echo "$orig_target_objdump" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12618 if test "$orig_target_objdump" = ""; then
12619 # Extract the first word of "objdump", so it can be a program name with args.
12620 set dummy objdump; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_path_orig_target_objdump+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 case $orig_target_objdump in
12627 [\\/]* | ?:[\\/]*)
12628 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12634 IFS=$as_save_IFS
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12638 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 break 2
12642 done
12643 done
12644 IFS=$as_save_IFS
12647 esac
12649 orig_target_objdump=$ac_cv_path_orig_target_objdump
12650 if test -n "$orig_target_objdump"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12652 $as_echo "$orig_target_objdump" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12661 else
12662 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12663 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_path_orig_target_objdump+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 case $orig_target_objdump in
12670 [\\/]* | ?:[\\/]*)
12671 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12681 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12685 done
12686 done
12687 IFS=$as_save_IFS
12690 esac
12692 orig_target_objdump=$ac_cv_path_orig_target_objdump
12693 if test -n "$orig_target_objdump"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12695 $as_echo "$orig_target_objdump" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12704 if test "$orig_target_objdump" = ""; then
12705 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12709 if test "$kernel_tool_prefix" = "none" ; then
12710 # No kernel tools specified
12711 # Assume target tools == kernel tools with ELF wrapper
12712 aros_kernel_cc=$orig_target_cc
12713 aros_kernel_cxx=$orig_target_cxx
12714 aros_kernel_cpp=$orig_target_cpp
12715 aros_kernel_ld=$orig_target_ld
12716 aros_kernel_as=$orig_target_as
12717 aros_kernel_ar=$orig_target_ar
12718 aros_kernel_ranlib=$orig_target_ranlib
12719 aros_kernel_nm=$orig_target_nm
12720 aros_kernel_strip=$orig_target_strip
12721 aros_kernel_objcopy=$orig_target_objcopy
12722 aros_kernel_objdump=$orig_target_objdump
12723 use_kernel_cc_wrapper=yes
12726 # At this point, all aros_kernel_* and aros_target_*
12727 # tools should be set up correctly
12729 CC="$aros_kernel_cc $kernel_tool_flags"
12730 CPP="$aros_kernel_cpp"
12732 #-----------------------------------------------------------------------------
12734 # Disable pointer-signedness warnings if the compiler recognises the option
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12737 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12738 save_cflags="$CFLAGS"
12739 if test "$crosstools" != "yes" ; then
12740 CFLAGS="$CFLAGS -Wno-pointer-sign"
12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12745 main ()
12749 return 0;
12751 _ACEOF
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753 use_no_sign_warning="yes"
12754 else
12755 use_no_sign_warning="no"
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 else
12759 # we do know it is supported for the smallest version of gcc we are going to build
12760 # we assume it's also supported by later versions
12761 use_no_sign_warning=yes
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12764 $as_echo "$use_no_sign_warning" >&6; }
12765 if test "x-$use_no_sign_warning" = "x-yes" ; then
12766 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12768 CFLAGS="$save_cflags"
12770 #-----------------------------------------------------------------------------
12772 # Find all the tools we need to compile. This could be cross-compiling
12773 # though! If that is the case we use the GNU form of the target and
12774 # simply add this to the front of the binary name. This is rather simple,
12775 # but it should work under most circumstances.
12777 # The default tools are to use the same as the host, but only if the
12778 # host and target CPU are the same. With GCC this is normally enough.
12781 aros_cc_pre=""
12782 aros_shared_ld="$aros_host_ld"
12784 aros_target_mkdep="$aros_host_mkdep"
12786 # The default tools executables to be linked to.
12787 if test "$rescomp" != ""; then
12788 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12789 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 case $aros_kernel_rescomp in
12796 [\\/]* | ?:[\\/]*)
12797 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12816 esac
12818 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12819 if test -n "$aros_kernel_rescomp"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12821 $as_echo "$aros_kernel_rescomp" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12828 if test "$aros_kernel_rescomp" = ""; then
12829 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12833 # Set up the sources for the symlink farm
12834 if test "$crosstools" = "yes"; then
12835 crosstools_target=tools-crosstools
12838 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12839 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12842 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12843 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12844 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12845 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12846 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12847 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12848 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12850 # aros_cc_pre is a variable that is added to the front of the compiler name
12851 # in the generated aros-gcc shell script. We need this to enable the cache
12852 # to work across cleaned builds. Also, support DISTCC using the correct
12853 # environment variable.
12856 if test "x${DISTCC}" != "x" ; then
12857 if test "x${CCACHE}" != "x" ; then
12858 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12859 else
12860 aros_cc_pre="${DISTCC} "
12862 else
12863 if test "x${CCACHE}" != "x" ; then
12864 aros_cc_pre="${CCACHE} "
12868 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12870 aros_target_nostdinc_cflags=-nostdinc
12872 aros_target_nostartup_ldflags=-nostartfiles
12874 aros_target_nix_ldflags=-nix
12876 aros_target_detach_ldflags=-detach
12878 aros_target_nostdlib_ldflags=-nostdlib
12881 # Target tools
12882 if test "$crosstools" != "yes"; then
12883 if test "$GCC" = "yes"; then
12884 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12886 else
12887 # We do not know which gcc version we are going to build and what we need to know
12888 # here is different for different versions so this will be set later during the
12889 # build of crosstools.
12890 aros_target_cc_path=@aros_target_cc_path@
12892 aros_target_cpp="${prefix}cpp"
12893 aros_target_cc="${prefix}gcc"
12894 aros_target_cxx="${prefix}g++"
12895 aros_target_as="${prefix}as"
12896 aros_target_ld="${prefix}ld"
12897 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12898 aros_target_objcopy="${prefix}objcopy"
12899 aros_target_objdump="${prefix}objdump"
12900 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12901 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12902 aros_target_strip="${prefix}strip"
12903 aros_plain_nm="${prefix}nm"
12904 aros_plain_ar="${prefix}ar"
12906 # Check whether --enable-includes was given.
12907 if test "${enable_includes+set}" = set; then :
12908 enableval=$enable_includes; aros_target_incl=$enable_includes
12909 else
12910 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12914 if test "$aros_kernel_includes" = ""; then
12915 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12916 aros_kernel_includes="-isystem $aros_target_incl"
12920 if test "$aros_kernel_includes" != "" ; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12922 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12923 if test "$aros_kernel_cc_includes" = "" ; then
12924 # Try to guess where the directory is.
12925 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12926 if test -d $aros_kernel_cc_includes; then
12927 # Check if there is also an include-fixed directory and add it
12928 # to kernel compiler's include path as it may contain some of
12929 # the headers we need.
12930 if test -d "$aros_kernel_cc_includes"-fixed; then
12931 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12933 # Check for specific includes directory. Neede for Ubuntu 11.10
12934 if test -d "/usr/include/i386-linux-gnu"; then
12935 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12937 else
12938 # The directory doesn't exist, we need to do some more work.
12939 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12941 # These are the headers we're looking for.
12942 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12943 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12944 zutil.h stdint.h"
12946 dirs=
12947 for h in $headers; do
12948 # Which other headers are needed by each of the above?
12949 deps=$(echo "#include <$h>" | \
12950 $aros_kernel_cc -E -M - 2>/dev/null | \
12951 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12953 # Copy all the needed headers to a directory beneath gendir.
12954 for d in $deps; do
12955 h=$(basename $d)
12956 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12957 sed -n "s,^.*/include\(/.*\),\1,p")
12958 ! test -d $dir && mkdir -p $dir
12959 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12960 done
12961 done
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12965 $as_echo "$aros_kernel_cc_includes" >&6; }
12966 # Adding -nostdinc to kernel includes as they are always used together.
12967 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12970 if test "$crosstools" != "yes"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12972 $as_echo_n "checking for the target compiler's include path... " >&6; }
12973 if test "$aros_target_cc_includes" = "" ; then
12974 #try to guess where the directory is
12975 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12976 if ! test -d $aros_target_cc_includes; then
12977 #the directory doesn't exist, we need to do some more work
12978 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12980 #these are the headers we're looking for
12981 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12982 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12983 zutil.h"
12985 dirs=
12986 for h in $headers; do
12987 #which other headers each of the above headers needs?
12988 deps=$(echo "#include <$h>" | \
12989 $orig_target_cc -E -M - 2>/dev/null | \
12990 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12992 #copy all the needed headers to a directory beneath gendir
12993 for d in $deps; do
12994 h=$(basename $d)
12995 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12996 sed -n "s,^.*/include\(/.*\),\1,p")
12997 ! test -d $dir && mkdir -p $dir
12998 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12999 done
13000 done
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13004 $as_echo "$aros_target_cc_includes" >&6; }
13005 else
13006 # We do not know which gcc version we are going to build and what we need to know
13007 # here is different for different versions so this will be set later during the
13008 # build of crosstools.
13009 aros_target_cc_includes=@aros_target_cc_includes@
13013 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13014 # On GCC >= 4.0 -iquote should be used
13017 save_cc="$CC"
13018 save_cflags="$CFLAGS"
13019 CFLAGS="-iquote."
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13021 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13022 if test "x-$crosstools" != "x-yes"; then
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13027 main ()
13031 return 0;
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 has_iquote="yes"
13036 else
13037 has_iquote="no"
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 else
13041 # we do know it is supported for the smallest version of gcc we are going to build
13042 # we assume it's also supported by later versions
13043 has_iquote=yes
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13046 $as_echo "$has_iquote" >&6; }
13047 if test "x-$has_iquote" = "x-yes" ; then
13048 host_cflags_iquote=-iquote
13049 host_cflags_iquote_end=
13050 else
13051 host_cflags_iquote=-I
13052 host_cflags_iquote_end=-I-
13054 kernel_cflags_iquote=$host_cflags_iquote
13055 kernel_cflags_iquote_end=$host_cflags_iquote_end
13056 if test "x-$cross_compiling" = "x-yes"; then
13057 CC="$aros_kernel_cc"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13059 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13060 if test "x-$crosstools" != "x-yes"; then
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13065 main ()
13069 return 0;
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073 use_no_stack_protector="yes"
13074 else
13075 use_no_stack_protector="no"
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 else
13079 # we do know it is supported for the smallest version of gcc we are going to build
13080 # we assume it's also supported by later versions
13081 use_no_stack_protector=yes
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13084 $as_echo "$use_no_stack_protector" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13086 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13087 if test "x-$crosstools" != "x-yes"; then
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13092 main ()
13096 return 0;
13098 _ACEOF
13099 if ac_fn_c_try_compile "$LINENO"; then :
13100 has_iquote="yes"
13101 else
13102 has_iquote="no"
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 else
13106 # we do know it is supported for the smallest version of gcc we are going to build
13107 # we assume it's also supported by later versions
13108 has_iquote=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13111 $as_echo "$has_iquote" >&6; }
13112 if test "x-$has_iquote" = "x-yes" ; then
13113 kernel_cflags_iquote=-iquote
13114 kernel_cflags_iquote_end=
13115 else
13116 kernel_cflags_iquote=-I
13117 kernel_cflags_iquote_end=-I-
13120 aros_cflags_iquote=$kernel_cflags_iquote
13121 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13122 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13123 CC="$orig_target_cc"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13125 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13126 if test "x-$crosstools" != "x-yes"; then
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13131 main ()
13135 return 0;
13137 _ACEOF
13138 if ac_fn_c_try_compile "$LINENO"; then :
13139 has_iquote="yes"
13140 else
13141 has_iquote="no"
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 else
13145 # we do know it is supported for the smallest version of gcc we are going to build
13146 # we assume it's also supported by later versions
13147 has_iquote=yes
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13150 $as_echo "$has_iquote" >&6; }
13151 if test "x-$has_iquote" = "x-yes" ; then
13152 aros_cflags_iquote=-iquote
13153 aros_cflags_iquote_end=
13154 else
13155 aros_cflags_iquote=-I
13156 aros_cflags_iquote_end=-I-
13159 if test "x-$use_no_stack_protector" = "x-yes" ; then
13160 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13164 #-----------------------------------------------------------------------------
13166 # Check if the target compiler supports some options used for delinting:
13167 # -Wunused-but-set-variable
13168 # -Warray-bounds
13169 # -Wenum-compare
13170 # -Wstrict-overflow
13171 # -Wformat-security
13173 if test "x-$crosstools" != "x-yes"; then
13174 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13175 CC="$orig_target_cc"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13178 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13179 CFLAGS=-Wunused-but-set-variable
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13184 main ()
13188 return 0;
13190 _ACEOF
13191 if ac_fn_c_try_compile "$LINENO"; then :
13192 aros_unused_but_set_variable="yes"
13193 else
13194 aros_unused_but_set_variable="no"
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13198 $as_echo "$aros_unused_but_set_variable" >&6; }
13199 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13200 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13204 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13205 CFLAGS=-Warray-bounds
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13210 main ()
13214 return 0;
13216 _ACEOF
13217 if ac_fn_c_try_compile "$LINENO"; then :
13218 aros_array_bounds="yes"
13219 else
13220 aros_array_bounds="no"
13222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13224 $as_echo "$aros_array_bounds" >&6; }
13225 if test "x-$aros_array_bounds" = "x-yes" ; then
13226 aros_cflags_array_bounds=-Wno-array-bounds
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13230 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13231 CFLAGS=-Wenum-compare
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13236 main ()
13240 return 0;
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244 aros_enum_compare="yes"
13245 else
13246 aros_enum_compare="no"
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13250 $as_echo "$aros_enum_compare" >&6; }
13251 if test "x-$aros_enum_compare" = "x-yes" ; then
13252 aros_cflags_enum_compare=-Wno-enum-compare
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13256 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13257 CFLAGS=-Wstrict-overflow
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_compile "$LINENO"; then :
13270 aros_strict_overflow="yes"
13271 else
13272 aros_strict_overflow="no"
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13276 $as_echo "$aros_strict_overflow" >&6; }
13277 if test "x-$aros_strict_overflow" = "x-yes" ; then
13278 aros_cflags_strict_overflow=-Wno-strict-overflow
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13282 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13283 CFLAGS=-Wformat-security
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13288 main ()
13292 return 0;
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296 aros_format_security="yes"
13297 else
13298 aros_format_security="no"
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13302 $as_echo "$aros_format_security" >&6; }
13303 if test "x-$aros_format_security" = "x-yes" ; then
13304 aros_cflags_format_security=-Wno-format-security
13306 else
13307 # We do not know which gcc version we are going to build and what we need to know
13308 # here is different for different versions so this will be set later during the
13309 # build of crosstools.
13310 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13311 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13312 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13313 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13314 aros_cflags_format_security=@aros_cflags_format_security@
13317 #-----------------------------------------------------------------------------
13319 # Check if we can explicitly choose older version of symbol hashing
13321 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13322 CC="$aros_kernel_cc"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13324 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13329 main ()
13333 return 0;
13335 _ACEOF
13336 if ac_fn_c_try_link "$LINENO"; then :
13337 use_hash_style="yes"
13338 else
13339 use_hash_style="no"
13341 rm -f core conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13344 $as_echo "$use_hash_style" >&6; }
13345 if test "x-$use_hash_style" = "x-yes" ; then
13346 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13348 CC="$save_cc"
13349 CFLAGS="$save_cflags"
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13360 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13362 # Check whether --with-resolution was given.
13363 if test "${with_resolution+set}" = set; then :
13364 withval=$with_resolution; resolution=$withval
13365 else
13366 resolution=none
13369 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13370 if test "$resolution" = "yes" ; then
13371 resolution="none"
13373 if test "$resolution" = "no" ; then
13374 resolution="none"
13376 if test "$resolution" != "none" ; then
13377 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13378 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13379 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13382 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13383 aros_cv_default_wbwidth=$aros_default_wbwidth
13384 aros_cv_default_wbheight=$aros_default_wbheight
13385 aros_cv_default_wbdepth=$aros_default_wbdepth
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13388 $as_echo_n "checking if serial debug is enabled... " >&6; }
13390 # Check whether --with-serial-debug was given.
13391 if test "${with_serial_debug+set}" = set; then :
13392 withval=$with_serial_debug; serial_debug=$withval
13393 else
13394 serial_debug=none
13397 if test "$aros_serial_debug" = 0 ; then
13398 serial_debug_forced=""
13399 if test "$serial_debug" = "yes" ; then
13400 serial_debug="1"
13402 if test "$serial_debug" = "no" ; then
13403 serial_debug="none"
13405 else
13406 serial_debug_forced="(forced)"
13407 serial_debug=$aros_serial_debug
13409 if test "$serial_debug" != "none" ; then
13410 aros_serial_debug=$serial_debug
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13412 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13419 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13420 # Check whether --enable-palm_debug_hack was given.
13421 if test "${enable_palm_debug_hack+set}" = set; then :
13422 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13423 else
13424 palm_debug_hack="no"
13427 if test "$palm_debug_hack" = "yes" ; then
13428 aros_palm_debug_hack="1"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13431 $as_echo "$palm_debug_hack" >&6; }
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13434 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13435 # Check whether --enable-usb30_code was given.
13436 if test "${enable_usb30_code+set}" = set; then :
13437 enableval=$enable_usb30_code; usb30_code="yes"
13438 else
13439 usb30_code="no"
13442 if test "$usb30_code" = "yes" ; then
13443 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13444 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13447 $as_echo "$usb30_code" >&6; }
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13450 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13451 # Check whether --enable-nesting_supervisor was given.
13452 if test "${enable_nesting_supervisor+set}" = set; then :
13453 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13454 else
13455 nesting_supervisor="no"
13458 if test "$nesting_supervisor" = "yes" ; then
13459 aros_nesting_supervisor="1"
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13462 $as_echo "$nesting_supervisor" >&6; }
13464 if test "$aros_enable_mmu" = "" ; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13466 $as_echo_n "checking if MMU support is enabled... " >&6; }
13467 # Check whether --enable-mmu was given.
13468 if test "${enable_mmu+set}" = set; then :
13469 enableval=$enable_mmu; aros_enable_mmu=$enableval
13470 else
13471 aros_enable_mmu="yes"
13474 if test "$aros_enable_mmu" = "" ; then
13475 aros_enable_mmu="yes"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13478 $as_echo "$aros_enable_mmu" >&6; }
13480 if test "$aros_enable_mmu" = "no" ; then
13481 aros_enable_mmu="0"
13482 else
13483 aros_enable_mmu="1"
13487 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13489 if test "x-$need_dlopen" != "x-no" ; then
13490 save_libs="$LIBS"
13491 LIBS=""
13492 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13493 if test "x$ac_cv_func_dlopen" = xyes; then :
13494 have_dl="yes"
13495 else
13496 have_dl="no"
13499 if test "x-$have_dl" = "x-no" ; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13501 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13502 if ${ac_cv_lib_dl_dlopen+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 ac_check_lib_save_LIBS=$LIBS
13506 LIBS="-ldl $LIBS"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13513 #ifdef __cplusplus
13514 extern "C"
13515 #endif
13516 char dlopen ();
13518 main ()
13520 return dlopen ();
13522 return 0;
13524 _ACEOF
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_lib_dl_dlopen=yes
13527 else
13528 ac_cv_lib_dl_dlopen=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13535 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13536 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13537 have_dl="yes"
13538 aros_host_ldflags="$aros_host_ldflags -ldl"
13539 else
13540 have_dl="no"
13544 if test "x-$have_dl" = "x-no" ; then
13545 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13547 LIBS="$save_libs"
13551 # Check whether --enable-x11_hidd was given.
13552 if test "${enable_x11_hidd+set}" = set; then :
13553 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13554 else
13555 x11_hidd="$need_x11"
13558 case "x-$x11_hidd" in
13559 x-yes|x-no|x-auto) ;;
13560 *) x11_hidd="$need_x11" ;;
13561 esac
13563 ENABLE_X11=0
13565 if test "x-$x11_hidd" != "x-no" ; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13568 $as_echo_n "checking for X... " >&6; }
13571 # Check whether --with-x was given.
13572 if test "${with_x+set}" = set; then :
13573 withval=$with_x;
13576 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13577 if test "x$with_x" = xno; then
13578 # The user explicitly disabled X.
13579 have_x=disabled
13580 else
13581 case $x_includes,$x_libraries in #(
13582 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
13583 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 # One or both of the vars are not set, and there is no cached value.
13587 ac_x_includes=no ac_x_libraries=no
13588 rm -f -r conftest.dir
13589 if mkdir conftest.dir; then
13590 cd conftest.dir
13591 cat >Imakefile <<'_ACEOF'
13592 incroot:
13593 @echo incroot='${INCROOT}'
13594 usrlibdir:
13595 @echo usrlibdir='${USRLIBDIR}'
13596 libdir:
13597 @echo libdir='${LIBDIR}'
13598 _ACEOF
13599 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13600 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13601 for ac_var in incroot usrlibdir libdir; do
13602 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13603 done
13604 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13605 for ac_extension in a so sl dylib la dll; do
13606 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13607 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13608 ac_im_usrlibdir=$ac_im_libdir; break
13610 done
13611 # Screen out bogus values from the imake configuration. They are
13612 # bogus both because they are the default anyway, and because
13613 # using them would break gcc on systems where it needs fixed includes.
13614 case $ac_im_incroot in
13615 /usr/include) ac_x_includes= ;;
13616 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13617 esac
13618 case $ac_im_usrlibdir in
13619 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13620 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13621 esac
13623 cd ..
13624 rm -f -r conftest.dir
13627 # Standard set of common directories for X headers.
13628 # Check X11 before X11Rn because it is often a symlink to the current release.
13629 ac_x_header_dirs='
13630 /usr/X11/include
13631 /usr/X11R7/include
13632 /usr/X11R6/include
13633 /usr/X11R5/include
13634 /usr/X11R4/include
13636 /usr/include/X11
13637 /usr/include/X11R7
13638 /usr/include/X11R6
13639 /usr/include/X11R5
13640 /usr/include/X11R4
13642 /usr/local/X11/include
13643 /usr/local/X11R7/include
13644 /usr/local/X11R6/include
13645 /usr/local/X11R5/include
13646 /usr/local/X11R4/include
13648 /usr/local/include/X11
13649 /usr/local/include/X11R7
13650 /usr/local/include/X11R6
13651 /usr/local/include/X11R5
13652 /usr/local/include/X11R4
13654 /usr/X386/include
13655 /usr/x386/include
13656 /usr/XFree86/include/X11
13658 /usr/include
13659 /usr/local/include
13660 /usr/unsupported/include
13661 /usr/athena/include
13662 /usr/local/x11r5/include
13663 /usr/lpp/Xamples/include
13665 /usr/openwin/include
13666 /usr/openwin/share/include'
13668 if test "$ac_x_includes" = no; then
13669 # Guess where to find include files, by looking for Xlib.h.
13670 # First, try using that file with no special directory specified.
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 #include <X11/Xlib.h>
13674 _ACEOF
13675 if ac_fn_c_try_cpp "$LINENO"; then :
13676 # We can compile using X headers with no special include directory.
13677 ac_x_includes=
13678 else
13679 for ac_dir in $ac_x_header_dirs; do
13680 if test -r "$ac_dir/X11/Xlib.h"; then
13681 ac_x_includes=$ac_dir
13682 break
13684 done
13686 rm -f conftest.err conftest.i conftest.$ac_ext
13687 fi # $ac_x_includes = no
13689 if test "$ac_x_libraries" = no; then
13690 # Check for the libraries.
13691 # See if we find them without any special options.
13692 # Don't add to $LIBS permanently.
13693 ac_save_LIBS=$LIBS
13694 LIBS="-lX11 $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 #include <X11/Xlib.h>
13699 main ()
13701 XrmInitialize ()
13703 return 0;
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707 LIBS=$ac_save_LIBS
13708 # We can link X programs with no special library path.
13709 ac_x_libraries=
13710 else
13711 LIBS=$ac_save_LIBS
13712 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13714 # Don't even attempt the hair of trying to link an X program!
13715 for ac_extension in a so sl dylib la dll; do
13716 if test -r "$ac_dir/libX11.$ac_extension"; then
13717 ac_x_libraries=$ac_dir
13718 break 2
13720 done
13721 done
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 fi # $ac_x_libraries = no
13727 case $ac_x_includes,$ac_x_libraries in #(
13728 no,* | *,no | *\'*)
13729 # Didn't find X, or a directory has "'" in its name.
13730 ac_cv_have_x="have_x=no";; #(
13732 # Record where we found X for the cache.
13733 ac_cv_have_x="have_x=yes\
13734 ac_x_includes='$ac_x_includes'\
13735 ac_x_libraries='$ac_x_libraries'"
13736 esac
13738 ;; #(
13739 *) have_x=yes;;
13740 esac
13741 eval "$ac_cv_have_x"
13742 fi # $with_x != no
13744 if test "$have_x" != yes; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13746 $as_echo "$have_x" >&6; }
13747 no_x=yes
13748 else
13749 # If each of the values was on the command line, it overrides each guess.
13750 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13751 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13752 # Update the cache value to reflect the command line values.
13753 ac_cv_have_x="have_x=yes\
13754 ac_x_includes='$x_includes'\
13755 ac_x_libraries='$x_libraries'"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13757 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13761 x_cflags=
13762 for path in $x_libraries
13764 x_cflags="$x_cflags -L$path"
13765 done
13767 for path in $x_includes
13769 x_cflags="$x_cflags -I$path"
13770 done
13772 if test "x-$no_x" = "x-yes" ; then
13774 if test "x-$x11_hidd" != "x-auto" ; then
13775 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13778 else
13779 x11_hidd_target=kernel-x11gfx-kobj
13780 ENABLE_X11=1
13782 # Check whether --enable-x11_shm was given.
13783 if test "${enable_x11_shm+set}" = set; then :
13784 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13785 else
13786 x11_hidd_shm="auto"
13789 case "x-$x11_hidd_shm" in
13790 x-yes|x-no|x-auto) ;;
13791 *) x11_hidd_shm="auto" ;;
13792 esac
13794 have_xshm=no
13796 if test "x-$x11_hidd_shm" != "x-no" ; then
13798 for ac_header in sys/ipc.h
13799 do :
13800 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13801 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_SYS_IPC_H 1
13804 _ACEOF
13808 done
13810 for ac_header in sys/shm.h
13811 do :
13812 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13813 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_SYS_SHM_H 1
13816 _ACEOF
13820 done
13823 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13825 save_cflags="$CFLAGS"
13826 CFLAGS="$CFLAGS $x_cflags"
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13828 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13829 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lXext $LIBS"
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13837 /* Override any GCC internal prototype to avoid an error.
13838 Use char because int might match the return type of a GCC
13839 builtin and then its argument prototype would still apply. */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 char XShmQueryExtension ();
13845 main ()
13847 return XShmQueryExtension ();
13849 return 0;
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 ac_cv_lib_Xext_XShmQueryExtension=yes
13854 else
13855 ac_cv_lib_Xext_XShmQueryExtension=no
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13862 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13863 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13864 have_xshm=yes
13867 CFLAGS="$save_cflags"
13871 if test "x-$have_xshm" = "x-yes" ; then
13872 DO_XSHM_SUPPORT="1"
13873 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13874 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13875 else
13876 DO_XSHM_SUPPORT="0"
13880 # Check whether --enable-x11_vidmode was given.
13881 if test "${enable_x11_vidmode+set}" = set; then :
13882 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13883 else
13884 x11_hidd_vidmode="auto"
13887 case "x-$x11_hidd_vidmode" in
13888 x-yes|x-no|x-auto) ;;
13889 *) x11_hidd_vidmode="auto" ;;
13890 esac
13892 have_vidmode=no
13894 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13896 save_cflags="$CFLAGS"
13897 CFLAGS="$CFLAGS $x_cflags"
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13899 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13900 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-lXxf86vm $LIBS"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char XF86VidModeQueryExtension ();
13916 main ()
13918 return XF86VidModeQueryExtension ();
13920 return 0;
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13925 else
13926 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13933 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13934 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13935 have_vidmode=yes
13938 CFLAGS="$save_cflags"
13941 if test "x-$have_vidmode" = "x-yes" ; then
13942 DO_VIDMODE_SUPPORT="1"
13943 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13944 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13945 else
13946 DO_VIDMODE_SUPPORT="0"
13950 aros_host_x11_includes=$x_includes
13951 aros_host_x11_libdirs=$x_libraries
13955 # Check whether --enable-sdl_hidd was given.
13956 if test "${enable_sdl_hidd+set}" = set; then :
13957 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13958 else
13959 sdl_hidd="auto"
13962 case "x-$sdl_hidd" in
13963 x-yes|x-no|x-auto) ;;
13964 *) sdl_hidd="auto" ;;
13965 esac
13967 if test "x-$sdl_hidd" != "x-no" ; then
13970 # Check whether --with-sdl-prefix was given.
13971 if test "${with_sdl_prefix+set}" = set; then :
13972 withval=$with_sdl_prefix; sdl_prefix="$withval"
13973 else
13974 sdl_prefix=""
13978 # Check whether --with-sdl-exec-prefix was given.
13979 if test "${with_sdl_exec_prefix+set}" = set; then :
13980 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13981 else
13982 sdl_exec_prefix=""
13985 # Check whether --enable-sdltest was given.
13986 if test "${enable_sdltest+set}" = set; then :
13987 enableval=$enable_sdltest;
13988 else
13989 enable_sdltest=yes
13993 if test x$sdl_exec_prefix != x ; then
13994 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13995 if test x${SDL_CONFIG+set} != xset ; then
13996 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13999 if test x$sdl_prefix != x ; then
14000 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14001 if test x${SDL_CONFIG+set} != xset ; then
14002 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14006 as_save_PATH="$PATH"
14007 if test "x$prefix" != xNONE; then
14008 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14010 # Extract the first word of "sdl-config", so it can be a program name with args.
14011 set dummy sdl-config; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 case $SDL_CONFIG in
14018 [\\/]* | ?:[\\/]*)
14019 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023 for as_dir in $PATH
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
14028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14029 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14033 done
14034 done
14035 IFS=$as_save_IFS
14037 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14039 esac
14041 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14042 if test -n "$SDL_CONFIG"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14044 $as_echo "$SDL_CONFIG" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14051 PATH="$as_save_PATH"
14052 min_sdl_version=1.2.10
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14054 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14055 no_sdl=""
14056 if test "$SDL_CONFIG" = "no" ; then
14057 no_sdl=yes
14058 else
14059 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14060 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14062 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14063 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14064 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14065 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14066 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14067 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14068 if test "x$enable_sdltest" = "xyes" ; then
14069 ac_save_CFLAGS="$CFLAGS"
14070 ac_save_CXXFLAGS="$CXXFLAGS"
14071 ac_save_LIBS="$LIBS"
14072 CFLAGS="$CFLAGS $SDL_CFLAGS"
14073 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14074 LIBS="$LIBS $SDL_LIBS"
14075 rm -f conf.sdltest
14076 if test "$cross_compiling" = yes; then :
14077 echo $ac_n "cross compiling; assumed OK... $ac_c"
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 #include <stdio.h>
14083 #include <stdlib.h>
14084 #include <string.h>
14085 #include "SDL.h"
14087 char*
14088 my_strdup (char *str)
14090 char *new_str;
14092 if (str)
14094 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14095 strcpy (new_str, str);
14097 else
14098 new_str = NULL;
14100 return new_str;
14103 int main (int argc, char *argv[])
14105 int major, minor, micro;
14106 char *tmp_version;
14108 /* This hangs on some systems (?)
14109 system ("touch conf.sdltest");
14111 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14113 /* HP/UX 9 (%@#!) writes to sscanf strings */
14114 tmp_version = my_strdup("$min_sdl_version");
14115 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14116 printf("%s, bad version string\n", "$min_sdl_version");
14117 exit(1);
14120 if (($sdl_major_version > major) ||
14121 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14122 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14124 return 0;
14126 else
14128 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14129 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14130 printf("*** best to upgrade to the required version.\n");
14131 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14132 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14133 printf("*** config.cache before re-running configure\n");
14134 return 1;
14139 _ACEOF
14140 if ac_fn_c_try_run "$LINENO"; then :
14142 else
14143 no_sdl=yes
14145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14146 conftest.$ac_objext conftest.beam conftest.$ac_ext
14149 CFLAGS="$ac_save_CFLAGS"
14150 CXXFLAGS="$ac_save_CXXFLAGS"
14151 LIBS="$ac_save_LIBS"
14154 if test "x$no_sdl" = x ; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14156 $as_echo "yes" >&6; }
14157 have_sdl="yes"
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161 if test "$SDL_CONFIG" = "no" ; then
14162 echo "*** The sdl-config script installed by SDL could not be found"
14163 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14164 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14165 echo "*** full path to sdl-config."
14166 else
14167 if test -f conf.sdltest ; then
14169 else
14170 echo "*** Could not run SDL test program, checking why..."
14171 CFLAGS="$CFLAGS $SDL_CFLAGS"
14172 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14173 LIBS="$LIBS $SDL_LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 #include <stdio.h>
14178 #include "SDL.h"
14180 int main(int argc, char *argv[])
14181 { return 0; }
14182 #undef main
14183 #define main K_and_R_C_main
14186 main ()
14188 return 0;
14190 return 0;
14192 _ACEOF
14193 if ac_fn_c_try_link "$LINENO"; then :
14194 echo "*** The test program compiled, but did not run. This usually means"
14195 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14196 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14197 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14198 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14199 echo "*** is required on your system"
14200 echo "***"
14201 echo "*** If you have an old version installed, it is best to remove it, although"
14202 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14203 else
14204 echo "*** The test program failed to compile or link. See the file config.log for the"
14205 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14206 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14207 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14211 CFLAGS="$ac_save_CFLAGS"
14212 CXXFLAGS="$ac_save_CXXFLAGS"
14213 LIBS="$ac_save_LIBS"
14216 SDL_CFLAGS=""
14217 SDL_LIBS=""
14218 have_sdl="no"
14222 rm -f conf.sdltest
14225 if test "x-$have_sdl" != "x-yes" ; then
14227 if test "x-$sdl_hidd" != "x-auto" ; then
14228 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14231 else
14232 sdl_hidd_target=kernel-hidd-sdl
14233 aros_host_sdl_cflags=SDL_CFLAGS
14234 aros_host_sdl_libs=SDL_LIBS
14238 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14239 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14244 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14245 oss_library_target=workbench-libs-oss-unix
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14251 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14252 # Check whether --enable-dbus was given.
14253 if test "${enable_dbus+set}" = set; then :
14254 enableval=$enable_dbus; dbus="yes"
14255 else
14256 dbus="no"
14259 if test "$dbus" = "yes" ; then
14260 ENABLE_DBUS=1
14261 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14262 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14263 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14264 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14265 else
14266 ENABLE_DBUS=0
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14269 $as_echo "$dbus" >&6; }
14271 if test "$use_kernel_cc_wrapper" = "yes" ; then
14272 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14275 if test "${crosstools}" != "yes" ; then
14276 aros_target_toolchain=no
14277 else
14278 aros_target_toolchain=yes
14282 # Generic
14294 # Compatability with other Amiga-like operation systems
14297 # Host related
14325 # Target Related
14389 # Delinting target compiler flags
14396 # Graphics Related
14413 # Native version related
14416 # Palm native version related
14419 # Unix/Hosted version related
14422 # MMU related
14425 # Apple iOS related
14430 # ARM default GCC target related
14436 # Android related
14440 # DBUS related
14447 #X11 related
14450 # Debug related
14456 # Collect-aros stuff: "-ius" to ignore undefined symbols
14459 # C compiler related
14462 #ObjC compiler related
14465 # USB3.0 code
14468 case "$aros_flavour" in
14469 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14470 aros_flavour="emulation" ;;
14471 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14472 aros_flavour="emulation" ;;
14473 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14474 aros_flavour="standalone";;
14475 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14476 aros_flavour="standalone";;
14477 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14478 aros_flavour="native" ;;
14479 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14480 aros_flavour="native" ;;
14481 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14482 aros_flavour="linklib" ;;
14483 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14484 aros_flavour="palmnative" ;;
14485 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14486 aros_flavour="mac68knative" ;;
14487 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14488 aros_flavour="ppcnative" ;;
14489 esac
14491 if test ! -d ${aros_inc_dir} ; then
14492 ${MKDIR} ${aros_inc_dir}
14494 if test ! -d ${aros_geninc_dir} ; then
14495 ${MKDIR} ${aros_geninc_dir}
14497 if test ! -d ${aros_hostcfg_dir} ; then
14498 ${MKDIR} ${aros_hostcfg_dir}
14500 if test ! -d ${aros_targetcfg_dir} ; then
14501 ${MKDIR} ${aros_targetcfg_dir}
14503 if test ! -d ${aros_tools_dir} ; then
14504 ${MKDIR} ${aros_tools_dir}
14506 if test ! -d ${aros_scripts_dir} ; then
14507 ${MKDIR} ${aros_scripts_dir}
14510 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14513 ac_config_commands="$ac_config_commands compiler_executable"
14515 ac_config_commands="$ac_config_commands genmf_executable"
14518 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"
14521 cat >confcache <<\_ACEOF
14522 # This file is a shell script that caches the results of configure
14523 # tests run on this system so they can be shared between configure
14524 # scripts and configure runs, see configure's option --config-cache.
14525 # It is not useful on other systems. If it contains results you don't
14526 # want to keep, you may remove or edit it.
14528 # config.status only pays attention to the cache file if you give it
14529 # the --recheck option to rerun configure.
14531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14533 # following values.
14535 _ACEOF
14537 # The following way of writing the cache mishandles newlines in values,
14538 # but we know of no workaround that is simple, portable, and efficient.
14539 # So, we kill variables containing newlines.
14540 # Ultrix sh set writes to stderr and can't be redirected directly,
14541 # and sets the high bit in the cache file unless we assign to the vars.
14543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14544 eval ac_val=\$$ac_var
14545 case $ac_val in #(
14546 *${as_nl}*)
14547 case $ac_var in #(
14548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14550 esac
14551 case $ac_var in #(
14552 _ | IFS | as_nl) ;; #(
14553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14554 *) { eval $ac_var=; unset $ac_var;} ;;
14555 esac ;;
14556 esac
14557 done
14559 (set) 2>&1 |
14560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14561 *${as_nl}ac_space=\ *)
14562 # `set' does not quote correctly, so add quotes: double-quote
14563 # substitution turns \\\\ into \\, and sed turns \\ into \.
14564 sed -n \
14565 "s/'/'\\\\''/g;
14566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14567 ;; #(
14569 # `set' quotes correctly as required by POSIX, so do not add quotes.
14570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14572 esac |
14573 sort
14575 sed '
14576 /^ac_cv_env_/b end
14577 t clear
14578 :clear
14579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14580 t end
14581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14582 :end' >>confcache
14583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14584 if test -w "$cache_file"; then
14585 if test "x$cache_file" != "x/dev/null"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14587 $as_echo "$as_me: updating cache $cache_file" >&6;}
14588 if test ! -f "$cache_file" || test -h "$cache_file"; then
14589 cat confcache >"$cache_file"
14590 else
14591 case $cache_file in #(
14592 */* | ?:*)
14593 mv -f confcache "$cache_file"$$ &&
14594 mv -f "$cache_file"$$ "$cache_file" ;; #(
14596 mv -f confcache "$cache_file" ;;
14597 esac
14600 else
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14605 rm -f confcache
14607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14608 # Let make expand exec_prefix.
14609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14611 DEFS=-DHAVE_CONFIG_H
14613 ac_libobjs=
14614 ac_ltlibobjs=
14616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14617 # 1. Remove the extension, and $U if already installed.
14618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14621 # will be set to the directory where LIBOBJS objects are built.
14622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14624 done
14625 LIBOBJS=$ac_libobjs
14627 LTLIBOBJS=$ac_ltlibobjs
14631 : "${CONFIG_STATUS=./config.status}"
14632 ac_write_fail=0
14633 ac_clean_files_save=$ac_clean_files
14634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14637 as_write_fail=0
14638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14639 #! $SHELL
14640 # Generated by $as_me.
14641 # Run this file to recreate the current configuration.
14642 # Compiler output produced by configure, useful for debugging
14643 # configure, is in config.log if it exists.
14645 debug=false
14646 ac_cs_recheck=false
14647 ac_cs_silent=false
14649 SHELL=\${CONFIG_SHELL-$SHELL}
14650 export SHELL
14651 _ASEOF
14652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14653 ## -------------------- ##
14654 ## M4sh Initialization. ##
14655 ## -------------------- ##
14657 # Be more Bourne compatible
14658 DUALCASE=1; export DUALCASE # for MKS sh
14659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14660 emulate sh
14661 NULLCMD=:
14662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14663 # is contrary to our usage. Disable this feature.
14664 alias -g '${1+"$@"}'='"$@"'
14665 setopt NO_GLOB_SUBST
14666 else
14667 case `(set -o) 2>/dev/null` in #(
14668 *posix*) :
14669 set -o posix ;; #(
14670 *) :
14672 esac
14676 as_nl='
14678 export as_nl
14679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14683 # Prefer a ksh shell builtin over an external printf program on Solaris,
14684 # but without wasting forks for bash or zsh.
14685 if test -z "$BASH_VERSION$ZSH_VERSION" \
14686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14687 as_echo='print -r --'
14688 as_echo_n='print -rn --'
14689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14690 as_echo='printf %s\n'
14691 as_echo_n='printf %s'
14692 else
14693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14694 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14695 as_echo_n='/usr/ucb/echo -n'
14696 else
14697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14698 as_echo_n_body='eval
14699 arg=$1;
14700 case $arg in #(
14701 *"$as_nl"*)
14702 expr "X$arg" : "X\\(.*\\)$as_nl";
14703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14704 esac;
14705 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14707 export as_echo_n_body
14708 as_echo_n='sh -c $as_echo_n_body as_echo'
14710 export as_echo_body
14711 as_echo='sh -c $as_echo_body as_echo'
14714 # The user is always right.
14715 if test "${PATH_SEPARATOR+set}" != set; then
14716 PATH_SEPARATOR=:
14717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14718 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14719 PATH_SEPARATOR=';'
14724 # IFS
14725 # We need space, tab and new line, in precisely that order. Quoting is
14726 # there to prevent editors from complaining about space-tab.
14727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14728 # splitting by setting IFS to empty value.)
14729 IFS=" "" $as_nl"
14731 # Find who we are. Look in the path if we contain no directory separator.
14732 as_myself=
14733 case $0 in #((
14734 *[\\/]* ) as_myself=$0 ;;
14735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 for as_dir in $PATH
14738 IFS=$as_save_IFS
14739 test -z "$as_dir" && as_dir=.
14740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14741 done
14742 IFS=$as_save_IFS
14745 esac
14746 # We did not find ourselves, most probably we were run as `sh COMMAND'
14747 # in which case we are not to be found in the path.
14748 if test "x$as_myself" = x; then
14749 as_myself=$0
14751 if test ! -f "$as_myself"; then
14752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14753 exit 1
14756 # Unset variables that we do not need and which cause bugs (e.g. in
14757 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14758 # suppresses any "Segmentation fault" message there. '((' could
14759 # trigger a bug in pdksh 5.2.14.
14760 for as_var in BASH_ENV ENV MAIL MAILPATH
14761 do eval test x\${$as_var+set} = xset \
14762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14763 done
14764 PS1='$ '
14765 PS2='> '
14766 PS4='+ '
14768 # NLS nuisances.
14769 LC_ALL=C
14770 export LC_ALL
14771 LANGUAGE=C
14772 export LANGUAGE
14774 # CDPATH.
14775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14779 # ----------------------------------------
14780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14782 # script with STATUS, using 1 if that was 0.
14783 as_fn_error ()
14785 as_status=$1; test $as_status -eq 0 && as_status=1
14786 if test "$4"; then
14787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14790 $as_echo "$as_me: error: $2" >&2
14791 as_fn_exit $as_status
14792 } # as_fn_error
14795 # as_fn_set_status STATUS
14796 # -----------------------
14797 # Set $? to STATUS, without forking.
14798 as_fn_set_status ()
14800 return $1
14801 } # as_fn_set_status
14803 # as_fn_exit STATUS
14804 # -----------------
14805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14806 as_fn_exit ()
14808 set +e
14809 as_fn_set_status $1
14810 exit $1
14811 } # as_fn_exit
14813 # as_fn_unset VAR
14814 # ---------------
14815 # Portably unset VAR.
14816 as_fn_unset ()
14818 { eval $1=; unset $1;}
14820 as_unset=as_fn_unset
14821 # as_fn_append VAR VALUE
14822 # ----------------------
14823 # Append the text in VALUE to the end of the definition contained in VAR. Take
14824 # advantage of any shell optimizations that allow amortized linear growth over
14825 # repeated appends, instead of the typical quadratic growth present in naive
14826 # implementations.
14827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14828 eval 'as_fn_append ()
14830 eval $1+=\$2
14832 else
14833 as_fn_append ()
14835 eval $1=\$$1\$2
14837 fi # as_fn_append
14839 # as_fn_arith ARG...
14840 # ------------------
14841 # Perform arithmetic evaluation on the ARGs, and store the result in the
14842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14843 # must be portable across $(()) and expr.
14844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14845 eval 'as_fn_arith ()
14847 as_val=$(( $* ))
14849 else
14850 as_fn_arith ()
14852 as_val=`expr "$@" || test $? -eq 1`
14854 fi # as_fn_arith
14857 if expr a : '\(a\)' >/dev/null 2>&1 &&
14858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14859 as_expr=expr
14860 else
14861 as_expr=false
14864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14865 as_basename=basename
14866 else
14867 as_basename=false
14870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14871 as_dirname=dirname
14872 else
14873 as_dirname=false
14876 as_me=`$as_basename -- "$0" ||
14877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14878 X"$0" : 'X\(//\)$' \| \
14879 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14880 $as_echo X/"$0" |
14881 sed '/^.*\/\([^/][^/]*\)\/*$/{
14882 s//\1/
14885 /^X\/\(\/\/\)$/{
14886 s//\1/
14889 /^X\/\(\/\).*/{
14890 s//\1/
14893 s/.*/./; q'`
14895 # Avoid depending upon Character Ranges.
14896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14899 as_cr_digits='0123456789'
14900 as_cr_alnum=$as_cr_Letters$as_cr_digits
14902 ECHO_C= ECHO_N= ECHO_T=
14903 case `echo -n x` in #(((((
14904 -n*)
14905 case `echo 'xy\c'` in
14906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14907 xy) ECHO_C='\c';;
14908 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14909 ECHO_T=' ';;
14910 esac;;
14912 ECHO_N='-n';;
14913 esac
14915 rm -f conf$$ conf$$.exe conf$$.file
14916 if test -d conf$$.dir; then
14917 rm -f conf$$.dir/conf$$.file
14918 else
14919 rm -f conf$$.dir
14920 mkdir conf$$.dir 2>/dev/null
14922 if (echo >conf$$.file) 2>/dev/null; then
14923 if ln -s conf$$.file conf$$ 2>/dev/null; then
14924 as_ln_s='ln -s'
14925 # ... but there are two gotchas:
14926 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14927 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14928 # In both cases, we have to default to `cp -p'.
14929 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14930 as_ln_s='cp -p'
14931 elif ln conf$$.file conf$$ 2>/dev/null; then
14932 as_ln_s=ln
14933 else
14934 as_ln_s='cp -p'
14936 else
14937 as_ln_s='cp -p'
14939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14940 rmdir conf$$.dir 2>/dev/null
14943 # as_fn_mkdir_p
14944 # -------------
14945 # Create "$as_dir" as a directory, including parents if necessary.
14946 as_fn_mkdir_p ()
14949 case $as_dir in #(
14950 -*) as_dir=./$as_dir;;
14951 esac
14952 test -d "$as_dir" || eval $as_mkdir_p || {
14953 as_dirs=
14954 while :; do
14955 case $as_dir in #(
14956 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14957 *) as_qdir=$as_dir;;
14958 esac
14959 as_dirs="'$as_qdir' $as_dirs"
14960 as_dir=`$as_dirname -- "$as_dir" ||
14961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14962 X"$as_dir" : 'X\(//\)[^/]' \| \
14963 X"$as_dir" : 'X\(//\)$' \| \
14964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14965 $as_echo X"$as_dir" |
14966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14967 s//\1/
14970 /^X\(\/\/\)[^/].*/{
14971 s//\1/
14974 /^X\(\/\/\)$/{
14975 s//\1/
14978 /^X\(\/\).*/{
14979 s//\1/
14982 s/.*/./; q'`
14983 test -d "$as_dir" && break
14984 done
14985 test -z "$as_dirs" || eval "mkdir $as_dirs"
14986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14989 } # as_fn_mkdir_p
14990 if mkdir -p . 2>/dev/null; then
14991 as_mkdir_p='mkdir -p "$as_dir"'
14992 else
14993 test -d ./-p && rmdir ./-p
14994 as_mkdir_p=false
14997 if test -x / >/dev/null 2>&1; then
14998 as_test_x='test -x'
14999 else
15000 if ls -dL / >/dev/null 2>&1; then
15001 as_ls_L_option=L
15002 else
15003 as_ls_L_option=
15005 as_test_x='
15006 eval sh -c '\''
15007 if test -d "$1"; then
15008 test -d "$1/.";
15009 else
15010 case $1 in #(
15011 -*)set "./$1";;
15012 esac;
15013 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15014 ???[sx]*):;;*)false;;esac;fi
15015 '\'' sh
15018 as_executable_p=$as_test_x
15020 # Sed expression to map a string onto a valid CPP name.
15021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15023 # Sed expression to map a string onto a valid variable name.
15024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15027 exec 6>&1
15028 ## ----------------------------------- ##
15029 ## Main body of $CONFIG_STATUS script. ##
15030 ## ----------------------------------- ##
15031 _ASEOF
15032 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15035 # Save the log message, to keep $0 and so on meaningful, and to
15036 # report actual input values of CONFIG_FILES etc. instead of their
15037 # values after options handling.
15038 ac_log="
15039 This file was extended by $as_me, which was
15040 generated by GNU Autoconf 2.68. Invocation command line was
15042 CONFIG_FILES = $CONFIG_FILES
15043 CONFIG_HEADERS = $CONFIG_HEADERS
15044 CONFIG_LINKS = $CONFIG_LINKS
15045 CONFIG_COMMANDS = $CONFIG_COMMANDS
15046 $ $0 $@
15048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15051 _ACEOF
15053 case $ac_config_files in *"
15054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15055 esac
15057 case $ac_config_headers in *"
15058 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15059 esac
15062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063 # Files that config.status was made for.
15064 config_files="$ac_config_files"
15065 config_headers="$ac_config_headers"
15066 config_commands="$ac_config_commands"
15068 _ACEOF
15070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 ac_cs_usage="\
15072 \`$as_me' instantiates files and other configuration actions
15073 from templates according to the current configuration. Unless the files
15074 and actions are specified as TAGs, all are instantiated by default.
15076 Usage: $0 [OPTION]... [TAG]...
15078 -h, --help print this help, then exit
15079 -V, --version print version number and configuration settings, then exit
15080 --config print configuration, then exit
15081 -q, --quiet, --silent
15082 do not print progress messages
15083 -d, --debug don't remove temporary files
15084 --recheck update $as_me by reconfiguring in the same conditions
15085 --file=FILE[:TEMPLATE]
15086 instantiate the configuration file FILE
15087 --header=FILE[:TEMPLATE]
15088 instantiate the configuration header FILE
15090 Configuration files:
15091 $config_files
15093 Configuration headers:
15094 $config_headers
15096 Configuration commands:
15097 $config_commands
15099 Report bugs to the package provider."
15101 _ACEOF
15102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15104 ac_cs_version="\\
15105 config.status
15106 configured by $0, generated by GNU Autoconf 2.68,
15107 with options \\"\$ac_cs_config\\"
15109 Copyright (C) 2010 Free Software Foundation, Inc.
15110 This config.status script is free software; the Free Software Foundation
15111 gives unlimited permission to copy, distribute and modify it."
15113 ac_pwd='$ac_pwd'
15114 srcdir='$srcdir'
15115 test -n "\$AWK" || AWK=awk
15116 _ACEOF
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119 # The default lists apply if the user does not specify any file.
15120 ac_need_defaults=:
15121 while test $# != 0
15123 case $1 in
15124 --*=?*)
15125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15127 ac_shift=:
15129 --*=)
15130 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15131 ac_optarg=
15132 ac_shift=:
15135 ac_option=$1
15136 ac_optarg=$2
15137 ac_shift=shift
15139 esac
15141 case $ac_option in
15142 # Handling of the options.
15143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15144 ac_cs_recheck=: ;;
15145 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15146 $as_echo "$ac_cs_version"; exit ;;
15147 --config | --confi | --conf | --con | --co | --c )
15148 $as_echo "$ac_cs_config"; exit ;;
15149 --debug | --debu | --deb | --de | --d | -d )
15150 debug=: ;;
15151 --file | --fil | --fi | --f )
15152 $ac_shift
15153 case $ac_optarg in
15154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15155 '') as_fn_error $? "missing file argument" ;;
15156 esac
15157 as_fn_append CONFIG_FILES " '$ac_optarg'"
15158 ac_need_defaults=false;;
15159 --header | --heade | --head | --hea )
15160 $ac_shift
15161 case $ac_optarg in
15162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15163 esac
15164 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15165 ac_need_defaults=false;;
15166 --he | --h)
15167 # Conflict between --help and --header
15168 as_fn_error $? "ambiguous option: \`$1'
15169 Try \`$0 --help' for more information.";;
15170 --help | --hel | -h )
15171 $as_echo "$ac_cs_usage"; exit ;;
15172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15174 ac_cs_silent=: ;;
15176 # This is an error.
15177 -*) as_fn_error $? "unrecognized option: \`$1'
15178 Try \`$0 --help' for more information." ;;
15180 *) as_fn_append ac_config_targets " $1"
15181 ac_need_defaults=false ;;
15183 esac
15184 shift
15185 done
15187 ac_configure_extra_args=
15189 if $ac_cs_silent; then
15190 exec 6>/dev/null
15191 ac_configure_extra_args="$ac_configure_extra_args --silent"
15194 _ACEOF
15195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15196 if \$ac_cs_recheck; then
15197 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15198 shift
15199 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15200 CONFIG_SHELL='$SHELL'
15201 export CONFIG_SHELL
15202 exec "\$@"
15205 _ACEOF
15206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15207 exec 5>>config.log
15209 echo
15210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15211 ## Running $as_me. ##
15212 _ASBOX
15213 $as_echo "$ac_log"
15214 } >&5
15216 _ACEOF
15217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15219 # INIT-COMMANDS
15222 aros_host_exe_suffix=${aros_host_exe_suffix}
15223 aros_tools_dir=${aros_tools_dir}
15224 aros_target_cpu=${aros_target_cpu}
15225 aros_target_arch=${aros_target_arch}
15226 aros_target_suffix=${aros_target_suffix}
15227 orig_target_nm=${orig_target_nm}
15228 orig_target_as=${orig_target_as}
15229 orig_target_ar=${orig_target_ar}
15230 orig_target_ranlib=${orig_target_ranlib}
15231 orig_target_objdump=${orig_target_objdump}
15232 orig_target_objcopy=${orig_target_objcopy}
15233 orig_target_strip=${orig_target_strip}
15234 aros_kernel_ld=${aros_kernel_ld}
15237 aros_tools_dir=${aros_tools_dir}
15240 _ACEOF
15242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244 # Handling of arguments.
15245 for ac_config_target in $ac_config_targets
15247 case $ac_config_target in
15248 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15249 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15250 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15251 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15252 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15253 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15254 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15255 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15256 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15257 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15258 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15259 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15260 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15261 "${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" ;;
15262 "${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" ;;
15263 "${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" ;;
15264 "${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" ;;
15265 "${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" ;;
15266 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15267 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15268 "${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" ;;
15270 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15271 esac
15272 done
15275 # If the user did not use the arguments to specify the items to instantiate,
15276 # then the envvar interface is used. Set only those that are not.
15277 # We use the long form for the default assignment because of an extremely
15278 # bizarre bug on SunOS 4.1.3.
15279 if $ac_need_defaults; then
15280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15285 # Have a temporary directory for convenience. Make it in the build tree
15286 # simply because there is no reason against having it here, and in addition,
15287 # creating and moving files from /tmp can sometimes cause problems.
15288 # Hook for its removal unless debugging.
15289 # Note that there is a small window in which the directory will not be cleaned:
15290 # after its creation but before its name has been assigned to `$tmp'.
15291 $debug ||
15293 tmp= ac_tmp=
15294 trap 'exit_status=$?
15295 : "${ac_tmp:=$tmp}"
15296 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15298 trap 'as_fn_exit 1' 1 2 13 15
15300 # Create a (secure) tmp directory for tmp files.
15303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15304 test -d "$tmp"
15305 } ||
15307 tmp=./conf$$-$RANDOM
15308 (umask 077 && mkdir "$tmp")
15309 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15310 ac_tmp=$tmp
15312 # Set up the scripts for CONFIG_FILES section.
15313 # No need to generate them if there are no CONFIG_FILES.
15314 # This happens for instance with `./config.status config.h'.
15315 if test -n "$CONFIG_FILES"; then
15318 ac_cr=`echo X | tr X '\015'`
15319 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15320 # But we know of no other shell where ac_cr would be empty at this
15321 # point, so we can use a bashism as a fallback.
15322 if test "x$ac_cr" = x; then
15323 eval ac_cr=\$\'\\r\'
15325 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15326 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15327 ac_cs_awk_cr='\\r'
15328 else
15329 ac_cs_awk_cr=$ac_cr
15332 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15333 _ACEOF
15337 echo "cat >conf$$subs.awk <<_ACEOF" &&
15338 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15339 echo "_ACEOF"
15340 } >conf$$subs.sh ||
15341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15343 ac_delim='%!_!# '
15344 for ac_last_try in false false false false false :; do
15345 . ./conf$$subs.sh ||
15346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15348 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15349 if test $ac_delim_n = $ac_delim_num; then
15350 break
15351 elif $ac_last_try; then
15352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15353 else
15354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15356 done
15357 rm -f conf$$subs.sh
15359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15360 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15361 _ACEOF
15362 sed -n '
15364 s/^/S["/; s/!.*/"]=/
15367 s/^[^!]*!//
15368 :repl
15369 t repl
15370 s/'"$ac_delim"'$//
15371 t delim
15374 s/\(.\{148\}\)..*/\1/
15375 t more1
15376 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15379 b repl
15380 :more1
15381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15384 s/.\{148\}//
15385 t nl
15386 :delim
15388 s/\(.\{148\}\)..*/\1/
15389 t more2
15390 s/["\\]/\\&/g; s/^/"/; s/$/"/
15393 :more2
15394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15397 s/.\{148\}//
15398 t delim
15399 ' <conf$$subs.awk | sed '
15400 /^[^""]/{
15402 s/\n//
15404 ' >>$CONFIG_STATUS || ac_write_fail=1
15405 rm -f conf$$subs.awk
15406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15407 _ACAWK
15408 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15409 for (key in S) S_is_set[key] = 1
15410 FS = "\a"
15414 line = $ 0
15415 nfields = split(line, field, "@")
15416 substed = 0
15417 len = length(field[1])
15418 for (i = 2; i < nfields; i++) {
15419 key = field[i]
15420 keylen = length(key)
15421 if (S_is_set[key]) {
15422 value = S[key]
15423 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15424 len += length(value) + length(field[++i])
15425 substed = 1
15426 } else
15427 len += 1 + keylen
15430 print line
15433 _ACAWK
15434 _ACEOF
15435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15436 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15437 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15438 else
15440 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15441 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15442 _ACEOF
15444 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15445 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15446 # trailing colons and then remove the whole line if VPATH becomes empty
15447 # (actually we leave an empty line to preserve line numbers).
15448 if test "x$srcdir" = x.; then
15449 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15451 s///
15452 s/^/:/
15453 s/[ ]*$/:/
15454 s/:\$(srcdir):/:/g
15455 s/:\${srcdir}:/:/g
15456 s/:@srcdir@:/:/g
15457 s/^:*//
15458 s/:*$//
15460 s/\(=[ ]*\).*/\1/
15462 s/\n//
15463 s/^[^=]*=[ ]*$//
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468 fi # test -n "$CONFIG_FILES"
15470 # Set up the scripts for CONFIG_HEADERS section.
15471 # No need to generate them if there are no CONFIG_HEADERS.
15472 # This happens for instance with `./config.status Makefile'.
15473 if test -n "$CONFIG_HEADERS"; then
15474 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15475 BEGIN {
15476 _ACEOF
15478 # Transform confdefs.h into an awk script `defines.awk', embedded as
15479 # here-document in config.status, that substitutes the proper values into
15480 # config.h.in to produce config.h.
15482 # Create a delimiter string that does not exist in confdefs.h, to ease
15483 # handling of long lines.
15484 ac_delim='%!_!# '
15485 for ac_last_try in false false :; do
15486 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15487 if test -z "$ac_tt"; then
15488 break
15489 elif $ac_last_try; then
15490 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15491 else
15492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15494 done
15496 # For the awk script, D is an array of macro values keyed by name,
15497 # likewise P contains macro parameters if any. Preserve backslash
15498 # newline sequences.
15500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15501 sed -n '
15502 s/.\{148\}/&'"$ac_delim"'/g
15503 t rset
15504 :rset
15505 s/^[ ]*#[ ]*define[ ][ ]*/ /
15506 t def
15508 :def
15509 s/\\$//
15510 t bsnl
15511 s/["\\]/\\&/g
15512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15513 D["\1"]=" \3"/p
15514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15516 :bsnl
15517 s/["\\]/\\&/g
15518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15519 D["\1"]=" \3\\\\\\n"\\/p
15520 t cont
15521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15522 t cont
15524 :cont
15526 s/.\{148\}/&'"$ac_delim"'/g
15527 t clear
15528 :clear
15529 s/\\$//
15530 t bsnlc
15531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15533 :bsnlc
15534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15535 b cont
15536 ' <confdefs.h | sed '
15537 s/'"$ac_delim"'/"\\\
15538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 for (key in D) D_is_set[key] = 1
15542 FS = "\a"
15544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15545 line = \$ 0
15546 split(line, arg, " ")
15547 if (arg[1] == "#") {
15548 defundef = arg[2]
15549 mac1 = arg[3]
15550 } else {
15551 defundef = substr(arg[1], 2)
15552 mac1 = arg[2]
15554 split(mac1, mac2, "(") #)
15555 macro = mac2[1]
15556 prefix = substr(line, 1, index(line, defundef) - 1)
15557 if (D_is_set[macro]) {
15558 # Preserve the white space surrounding the "#".
15559 print prefix "define", macro P[macro] D[macro]
15560 next
15561 } else {
15562 # Replace #undef with comments. This is necessary, for example,
15563 # in the case of _POSIX_SOURCE, which is predefined and required
15564 # on some systems where configure will not decide to define it.
15565 if (defundef == "undef") {
15566 print "/*", prefix defundef, macro, "*/"
15567 next
15571 { print }
15572 _ACAWK
15573 _ACEOF
15574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15575 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15576 fi # test -n "$CONFIG_HEADERS"
15579 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15580 shift
15581 for ac_tag
15583 case $ac_tag in
15584 :[FHLC]) ac_mode=$ac_tag; continue;;
15585 esac
15586 case $ac_mode$ac_tag in
15587 :[FHL]*:*);;
15588 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
15589 :[FH]-) ac_tag=-:-;;
15590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15591 esac
15592 ac_save_IFS=$IFS
15593 IFS=:
15594 set x $ac_tag
15595 IFS=$ac_save_IFS
15596 shift
15597 ac_file=$1
15598 shift
15600 case $ac_mode in
15601 :L) ac_source=$1;;
15602 :[FH])
15603 ac_file_inputs=
15604 for ac_f
15606 case $ac_f in
15607 -) ac_f="$ac_tmp/stdin";;
15608 *) # Look for the file first in the build tree, then in the source tree
15609 # (if the path is not absolute). The absolute path cannot be DOS-style,
15610 # because $ac_f cannot contain `:'.
15611 test -f "$ac_f" ||
15612 case $ac_f in
15613 [\\/$]*) false;;
15614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15615 esac ||
15616 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
15617 esac
15618 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15619 as_fn_append ac_file_inputs " '$ac_f'"
15620 done
15622 # Let's still pretend it is `configure' which instantiates (i.e., don't
15623 # use $as_me), people would be surprised to read:
15624 # /* config.h. Generated by config.status. */
15625 configure_input='Generated from '`
15626 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15627 `' by configure.'
15628 if test x"$ac_file" != x-; then
15629 configure_input="$ac_file. $configure_input"
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15631 $as_echo "$as_me: creating $ac_file" >&6;}
15633 # Neutralize special characters interpreted by sed in replacement strings.
15634 case $configure_input in #(
15635 *\&* | *\|* | *\\* )
15636 ac_sed_conf_input=`$as_echo "$configure_input" |
15637 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15638 *) ac_sed_conf_input=$configure_input;;
15639 esac
15641 case $ac_tag in
15642 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15644 esac
15646 esac
15648 ac_dir=`$as_dirname -- "$ac_file" ||
15649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15650 X"$ac_file" : 'X\(//\)[^/]' \| \
15651 X"$ac_file" : 'X\(//\)$' \| \
15652 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15653 $as_echo X"$ac_file" |
15654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15655 s//\1/
15658 /^X\(\/\/\)[^/].*/{
15659 s//\1/
15662 /^X\(\/\/\)$/{
15663 s//\1/
15666 /^X\(\/\).*/{
15667 s//\1/
15670 s/.*/./; q'`
15671 as_dir="$ac_dir"; as_fn_mkdir_p
15672 ac_builddir=.
15674 case "$ac_dir" in
15675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15678 # A ".." for each directory in $ac_dir_suffix.
15679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15680 case $ac_top_builddir_sub in
15681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15683 esac ;;
15684 esac
15685 ac_abs_top_builddir=$ac_pwd
15686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15687 # for backward compatibility:
15688 ac_top_builddir=$ac_top_build_prefix
15690 case $srcdir in
15691 .) # We are building in place.
15692 ac_srcdir=.
15693 ac_top_srcdir=$ac_top_builddir_sub
15694 ac_abs_top_srcdir=$ac_pwd ;;
15695 [\\/]* | ?:[\\/]* ) # Absolute name.
15696 ac_srcdir=$srcdir$ac_dir_suffix;
15697 ac_top_srcdir=$srcdir
15698 ac_abs_top_srcdir=$srcdir ;;
15699 *) # Relative name.
15700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15701 ac_top_srcdir=$ac_top_build_prefix$srcdir
15702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15703 esac
15704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15707 case $ac_mode in
15710 # CONFIG_FILE
15713 _ACEOF
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716 # If the template does not know about datarootdir, expand it.
15717 # FIXME: This hack should be removed a few years after 2.60.
15718 ac_datarootdir_hack=; ac_datarootdir_seen=
15719 ac_sed_dataroot='
15720 /datarootdir/ {
15724 /@datadir@/p
15725 /@docdir@/p
15726 /@infodir@/p
15727 /@localedir@/p
15728 /@mandir@/p'
15729 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15730 *datarootdir*) ac_datarootdir_seen=yes;;
15731 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15733 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15734 _ACEOF
15735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736 ac_datarootdir_hack='
15737 s&@datadir@&$datadir&g
15738 s&@docdir@&$docdir&g
15739 s&@infodir@&$infodir&g
15740 s&@localedir@&$localedir&g
15741 s&@mandir@&$mandir&g
15742 s&\\\${datarootdir}&$datarootdir&g' ;;
15743 esac
15744 _ACEOF
15746 # Neutralize VPATH when `$srcdir' = `.'.
15747 # Shell code in configure.ac might set extrasub.
15748 # FIXME: do we really want to maintain this feature?
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 ac_sed_extra="$ac_vpsub
15751 $extrasub
15752 _ACEOF
15753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15756 s|@configure_input@|$ac_sed_conf_input|;t t
15757 s&@top_builddir@&$ac_top_builddir_sub&;t t
15758 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15759 s&@srcdir@&$ac_srcdir&;t t
15760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15761 s&@top_srcdir@&$ac_top_srcdir&;t t
15762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15763 s&@builddir@&$ac_builddir&;t t
15764 s&@abs_builddir@&$ac_abs_builddir&;t t
15765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15766 $ac_datarootdir_hack
15768 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15769 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15772 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15774 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15776 which seems to be undefined. Please make sure it is defined" >&5
15777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15778 which seems to be undefined. Please make sure it is defined" >&2;}
15780 rm -f "$ac_tmp/stdin"
15781 case $ac_file in
15782 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15783 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15784 esac \
15785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15789 # CONFIG_HEADER
15791 if test x"$ac_file" != x-; then
15793 $as_echo "/* $configure_input */" \
15794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15795 } >"$ac_tmp/config.h" \
15796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15797 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15800 else
15801 rm -f "$ac_file"
15802 mv "$ac_tmp/config.h" "$ac_file" \
15803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15805 else
15806 $as_echo "/* $configure_input */" \
15807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15808 || as_fn_error $? "could not create -" "$LINENO" 5
15812 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15813 $as_echo "$as_me: executing $ac_file commands" >&6;}
15815 esac
15818 case $ac_file$ac_mode in
15819 "compiler_executable":C)
15820 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15821 mkdir -p $prefix
15822 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15823 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15825 echo ${prefix2}
15826 echo ${prefix3}
15827 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15829 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15830 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15831 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15832 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15833 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15834 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15835 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15837 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15839 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15841 esac
15842 done # for ac_tag
15845 as_fn_exit 0
15846 _ACEOF
15847 ac_clean_files=$ac_clean_files_save
15849 test $ac_write_fail = 0 ||
15850 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15853 # configure is writing to config.log, and then calls config.status.
15854 # config.status does its own redirection, appending to config.log.
15855 # Unfortunately, on DOS this fails, as config.log is still kept open
15856 # by configure, so config.status won't be able to write to it; its
15857 # output is simply discarded. So we exec the FD to /dev/null,
15858 # effectively closing config.log, so it can be properly (re)opened and
15859 # appended to by config.status. When coming back to configure, we
15860 # need to make the FD available again.
15861 if test "$no_create" != yes; then
15862 ac_cs_success=:
15863 ac_config_status_args=
15864 test "$silent" = yes &&
15865 ac_config_status_args="$ac_config_status_args --quiet"
15866 exec 5>/dev/null
15867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15868 exec 5>>config.log
15869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15870 # would make configure fail if this is the last instruction.
15871 $ac_cs_success || as_fn_exit 1
15873 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15875 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15880 #XXX compatability...
15881 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15883 if test -n "$aros_shared_cflags" ; then
15884 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15885 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg