Here are the promised fixes to make freetype 2.5.0 buildable again:
[AROS.git] / configure
blob0a18e9e342e045ea5b48d762faa291d6e58b9cde
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_level
639 gcc_default_float_abi
640 gcc_default_fpu
641 gcc_default_cpu_tune
642 gcc_default_cpu
643 aros_ios_sdk
644 aros_ios_version
645 aros_ios_platform
646 aros_enable_mmu
647 aros_nesting_supervisor
648 aros_palm_debug_hack
649 aros_serial_debug
650 aros_host_sdl_libs
651 aros_host_sdl_cflags
652 aros_host_x11_libdirs
653 aros_host_x11_includes
654 DO_VIDMODE_SUPPORT
655 DO_XSHM_SUPPORT
656 aros_default_wbdepth
657 aros_default_wbheight
658 aros_default_wbwidth
659 oss_library_target
660 pci_hidd_target
661 sdl_hidd_target
662 x11_hidd_target
663 aros_cflags_format_security
664 aros_cflags_strict_overflow
665 aros_cflags_enum_compare
666 aros_cflags_array_bounds
667 aros_cflags_unused_but_set_variable
668 crosstools_cxx_target
669 crosstools_target
670 aros_target_strip_flags
671 aros_target_genmap
672 aros_debug_ldflags
673 aros_debug_aflags
674 aros_debug_cflags
675 aros_target_cflags
676 aros_kernel_ldflags
677 aros_kernel_objcflags
678 aros_kernel_includes
679 aros_kernel_cflags
680 aros_shared_ldflags
681 aros_shared_aflags
682 aros_shared_cflags
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_arch_libs
687 aros_compiler_libs
688 aros_object_format
689 aros_shared_ld
690 aros_shared_default
691 aros_target_nm
692 aros_target_strip
693 aros_target_objcopy
694 aros_target_objdump
695 aros_target_cc_path
696 aros_target_cc_includes
697 aros_target_ld
698 aros_target_as
699 aros_target_cpp
700 aros_target_cxx
701 aros_target_cc
702 aros_plain_ar
703 aros_plain_nm
704 aros_target_ranlib
705 aros_target_ar
706 aros_target_suffix
707 aros_target_variant
708 aros_target_cpu
709 aros_target_family
710 aros_target_arch
711 aros_target_bootloader
712 aros_target_iconset
713 aros_target_guitheme
714 aros_tools_dir
715 aros_host_lib_suffix
716 aros_host_exe_suffix
717 aros_host_mkargs
718 aros_host_mkdep
719 aros_host_debug
720 aros_host_ldflags
721 gnu89_inline
722 aros_host_cxxflags
723 aros_host_cflags
724 aros_host_make
725 aros_host_cxx
726 aros_host_cc
727 aros_host_cpp
728 aros_host_cpu
729 aros_host_arch
730 aros_cc_pre
731 aros_amigaos_compliance
732 AROS_PORTSSRCDIR
733 AROS_CROSSTOOLSDIR
734 SRCDIR
735 AROS_BUILDDIR_UNIX
736 AROS_BUILDDIR
737 aros_target_toolchain
738 aros_flavour_uc
739 aros_flavour
740 aros_cpu
741 aros_arch
742 SDL_LIBS
743 SDL_CFLAGS
744 SDL_CONFIG
745 XMKMF
746 aros_cflags_iquote_end
747 aros_cflags_iquote
748 kernel_cflags_iquote_end
749 kernel_cflags_iquote
750 host_cflags_iquote_end
751 host_cflags_iquote
752 aros_target_nostdlib_ldflags
753 aros_target_detach_ldflags
754 aros_target_nix_ldflags
755 aros_target_nostartup_ldflags
756 aros_target_nostdinc_cflags
757 aros_kernel_rescomp
758 orig_target_objdump
759 orig_target_objcopy
760 orig_target_strip
761 orig_target_nm
762 orig_target_ranlib
763 orig_target_ar
764 orig_target_as
765 orig_target_ld
766 orig_target_cxx
767 orig_target_cc
768 orig_target_cpp
769 aros_kernel_objdump
770 aros_kernel_objcopy
771 aros_kernel_strip
772 aros_kernel_nm
773 aros_kernel_ranlib
774 aros_kernel_ar
775 aros_kernel_as
776 aros_kernel_ld
777 aros_kernel_cxx
778 aros_kernel_cc
779 aros_kernel_cpp
781 android_tool
782 CCACHE
783 DISTCC
784 LIBOBJS
785 EGREP
786 GREP
788 TEST
791 pkgpyexecdir
792 pyexecdir
793 pkgpythondir
794 pythondir
795 PYTHON_PLATFORM
796 PYTHON_EXEC_PREFIX
797 PYTHON_PREFIX
798 PYTHON_VERSION
799 PYTHON
800 PATCH
801 CHMOD
803 PPMTOILBM
804 PNGTOPNM
805 FLEX
806 BISON
809 UNIQ
810 SORT
811 TOUCH
812 MKDIR
813 ECHO
817 aros_host_strip
818 aros_host_ranlib
819 aros_host_ar
820 aros_host_automake
821 aros_host_autoheader
822 aros_host_autoconf
823 aros_host_aclocal
824 aros_host_ld
825 MMAKE
828 ac_ct_CC
829 CFLAGS
831 OBJEXT
832 EXEEXT
833 ac_ct_CXX
834 CPPFLAGS
835 LDFLAGS
836 CXXFLAGS
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 localstatedir
866 sharedstatedir
867 sysconfdir
868 datadir
869 datarootdir
870 libexecdir
871 sbindir
872 bindir
873 program_transform_name
874 prefix
875 exec_prefix
876 PACKAGE_URL
877 PACKAGE_BUGREPORT
878 PACKAGE_STRING
879 PACKAGE_VERSION
880 PACKAGE_TARNAME
881 PACKAGE_NAME
882 PATH_SEPARATOR
883 SHELL'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_build_type
888 enable_debug
889 enable_distcc
890 enable_ccache
891 with_kernel_gcc_version
892 with_gcc_version
893 with_optimization
894 with_paranoia
895 enable_target_variant
896 with_xcode
897 with_sdk_version
898 with_sdk
899 with_ndk
900 with_ndk_version
901 enable_amigaos_compliance
902 with_kernel_toolchain_prefix
903 with_elf_toolchain_prefix
904 with_aros_toolchain
905 enable_crosstools
906 with_aros_toolchain_install
907 enable_objc
908 with_cpu
909 with_fpu
910 with_float
911 with_portssources
912 with_bootloader
913 with_iconset
914 with_theme
915 enable_includes
916 with_resolution
917 with_serial_debug
918 enable_palm_debug_hack
919 enable_usb30_code
920 enable_nesting_supervisor
921 enable_mmu
922 enable_x11_hidd
923 with_x
924 enable_x11_shm
925 enable_x11_vidmode
926 enable_sdl_hidd
927 with_sdl_prefix
928 with_sdl_exec_prefix
929 enable_sdltest
930 enable_dbus
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
936 CXXFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
942 CFLAGS
944 PYTHON
945 XMKMF'
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
996 ac_prev=
997 ac_dashdash=
998 for ac_option
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1003 ac_prev=
1004 continue
1007 case $ac_option in
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *=) ac_optarg= ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error $? "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error $? "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1438 /^X\(\/\/\)$/{
1439 s//\1/
1442 /^X\(\/\).*/{
1443 s//\1/
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1451 else
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking ...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 X features:
1544 --x-includes=DIR X include files are in DIR
1545 --x-libraries=DIR X library files are in DIR
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-build-type=TYPE
1562 Select the build type. Available types are:
1563 personal, nightly, snapshot, milestone, release. Do
1564 NOT use this option unless you know what you are
1565 doing! (default=personal)
1566 --enable-debug=list Enable different types of debug. Commas or
1567 whitespaces can be used to separate the items in the
1568 list. Available types of debug are: all, none,
1569 messages, stack, mungwall, modules, symbols. If no
1570 list is provided then "all" is assumed.
1571 (default=none)
1572 --enable-distcc Use distcc as a front end to the compiler
1573 (default=no).
1574 --enable-ccache Use ccache as a front end to the compiler
1575 (default=no).
1576 --enable-target-variant=NAME
1577 Enable a specific target variant(default=none)
1578 --enable-amigaos-compliance=VERSION
1579 Enforce userspace AmigaOS compliance to a specific
1580 KickStart version (default=none).
1581 --disable-crosstools Do not build cross-compiler toolchain
1582 --disable-objc Build without Objectve-C support
1583 --enable-includes=dir Alternative system include directory
1584 --enable-palm-debug-hack
1585 Enable palm debug output hack in palm native
1586 (default=no)
1587 --enable-usb30-code Enable usb3.0 code (default=no)
1588 --enable-nesting-supervisor
1589 Enable nesting supervisor support in unix
1590 (default=no)
1591 --disable-mmu Disable MMU support (default=enabled)
1592 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1593 --enable-x11-shm use X11 shared memory (default=auto)
1594 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1595 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1596 --disable-sdltest Do not try to compile and run a test SDL program
1597 --enable-dbus Enable DBUS support via dbus.library (default=no)
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-kernel-gcc-version=VERSION
1603 Use gcc-VERSION for building bootstrap
1604 --with-gcc-version=VERSION
1605 Use gcc-VERSION for building AROS
1606 --with-optimization=FLAGS
1607 Use optimization flags FLAGS (default=-O2).
1608 --with-paranoia=FLAGS CC flags to enable paranoia
1609 --with-xcode=PATH Specify XCode path for iOS targets
1610 (default=/Developer).
1611 --with-sdk-version=VERSION
1612 Use iOS SDK version VERSION (default=4.1).
1613 --with-sdk=PATH Specify Android SDK path
1614 (default=$default_android_sdk).
1615 --with-ndk=PATH Specify Android NDK path (default=none).
1616 --with-sdk-version=LEVEL
1617 Use Android SDK for API LEVEL (default=12).
1618 --with-ndk-version=LEVEL
1619 Use Android NDK for API LEVEL (default=9).
1620 --with-kernel-toolchain-prefix=...
1621 Specify crosscompile toolchain prefix for kernel
1622 objects
1623 --with-elf-toolchain-prefix=...
1624 Specify crosscompile toolchain prefix to wrap for
1625 AROS objects
1626 --with-aros-toolchain=PREFIX
1627 Specify prebuilt AROS toolchain
1628 --with-aros-toolchain-install=DIR
1629 Where to install or search for cross tools binaries
1630 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1631 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1632 --with-float=<spec> Specify floating point ABI
1633 (default=$gcc_default_float_abi).
1634 --with-portssources=DIR Where to download sourcecode for external ports
1635 --with-bootloader=NAME Use a specific bootloader
1636 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1637 --with-theme=NAME Use a specific GUI Theme
1638 --with-resolution=XRESxYRESxDEPTH
1639 Default resolution of the initial WorkbenchScreen
1640 --with-serial-debug Enable serial debug output in native (default=no)
1641 --with-x use the X Window System
1642 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1643 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1645 Some influential environment variables:
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 CPP C preprocessor
1656 PYTHON the Python interpreter
1657 XMKMF Path to xmkmf, Makefile generator for X Window System
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1662 Report bugs to the package provider.
1663 _ACEOF
1664 ac_status=$?
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" ||
1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672 continue
1673 ac_builddir=.
1675 case "$ac_dir" in
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679 # A ".." for each directory in $ac_dir_suffix.
1680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681 case $ac_top_builddir_sub in
1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 esac ;;
1685 esac
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1691 case $srcdir in
1692 .) # We are building in place.
1693 ac_srcdir=.
1694 ac_top_srcdir=$ac_top_builddir_sub
1695 ac_abs_top_srcdir=$ac_pwd ;;
1696 [\\/]* | ?:[\\/]* ) # Absolute name.
1697 ac_srcdir=$srcdir$ac_dir_suffix;
1698 ac_top_srcdir=$srcdir
1699 ac_abs_top_srcdir=$srcdir ;;
1700 *) # Relative name.
1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702 ac_top_srcdir=$ac_top_build_prefix$srcdir
1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704 esac
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707 cd "$ac_dir" || { ac_status=$?; continue; }
1708 # Check for guested configure.
1709 if test -f "$ac_srcdir/configure.gnu"; then
1710 echo &&
1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712 elif test -f "$ac_srcdir/configure"; then
1713 echo &&
1714 $SHELL "$ac_srcdir/configure" --help=recursive
1715 else
1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717 fi || ac_status=$?
1718 cd "$ac_pwd" || { ac_status=$?; break; }
1719 done
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1724 cat <<\_ACEOF
1725 configure
1726 generated by GNU Autoconf 2.69
1728 Copyright (C) 2012 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1731 _ACEOF
1732 exit
1735 ## ------------------------ ##
1736 ## Autoconf initialization. ##
1737 ## ------------------------ ##
1739 # ac_fn_cxx_try_compile LINENO
1740 # ----------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_cxx_try_compile ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext
1746 if { { ac_try="$ac_compile"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_compile") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_cxx_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest.$ac_objext; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 ac_retval=1
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_cxx_try_compile
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=1
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_compile
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } > conftest.i && {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=1
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_cpp
1852 # ac_fn_c_try_link LINENO
1853 # -----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_link ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext conftest$ac_exeext
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest$ac_exeext && {
1878 test "$cross_compiling" = yes ||
1879 test -x conftest$ac_exeext
1880 }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1889 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1890 # interfere with the next link command; also delete a directory that is
1891 # left behind by Apple's compiler. We do this before executing the actions.
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_try_link
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1902 # accordingly.
1903 ac_fn_c_check_header_mongrel ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 else
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1926 else
1927 ac_header_compiler=no
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1942 else
1943 ac_header_preproc=no
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 yes:no: )
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 no:yes:* )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 esac
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 eval "$3=\$ac_header_compiler"
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_mongrel
1985 # ac_fn_c_try_run LINENO
1986 # ----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1988 # that executables *can* be run.
1989 ac_fn_c_try_run ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2003 { { case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_try") 2>&5
2010 ac_status=$?
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; }; }; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: program exited with status $ac_status" >&5
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=$ac_status
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2025 } # ac_fn_c_try_run
2027 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2028 # -------------------------------------------------------
2029 # Tests whether HEADER exists and can be compiled using the include files in
2030 # INCLUDES, setting the cache variable VAR accordingly.
2031 ac_fn_c_check_header_compile ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_compile
2058 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2059 # ----------------------------------------------------
2060 # Tries to find if the field MEMBER exists in type AGGR, after including
2061 # INCLUDES, setting cache variable VAR accordingly.
2062 ac_fn_c_check_member ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2066 $as_echo_n "checking for $2.$3... " >&6; }
2067 if eval \${$4+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static $2 ac_aggr;
2077 if (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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static $2 ac_aggr;
2093 if (sizeof ac_aggr.$3)
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$4=yes"
2101 else
2102 eval "$4=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$4
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_member
2115 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2116 # ---------------------------------------------
2117 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2118 # accordingly.
2119 ac_fn_c_check_decl ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 as_decl_name=`echo $2|sed 's/ *(.*//'`
2123 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2125 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 main ()
2135 #ifndef $as_decl_name
2136 #ifdef __cplusplus
2137 (void) $as_decl_use;
2138 #else
2139 (void) $as_decl_name;
2140 #endif
2141 #endif
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 eval "$3=yes"
2149 else
2150 eval "$3=no"
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_c_check_decl
2161 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2162 # -------------------------------------------
2163 # Tests whether TYPE exists after having included INCLUDES, setting cache
2164 # variable VAR accordingly.
2165 ac_fn_c_check_type ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172 else
2173 eval "$3=no"
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 if (sizeof ($2))
2181 return 0;
2183 return 0;
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 main ()
2193 if (sizeof (($2)))
2194 return 0;
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2201 else
2202 eval "$3=yes"
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 } # ac_fn_c_check_type
2215 # ac_fn_c_check_func LINENO FUNC VAR
2216 # ----------------------------------
2217 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2218 ac_fn_c_check_func ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2230 #define $2 innocuous_$2
2232 /* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char $2 (); below.
2234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2235 <limits.h> exists even on freestanding compilers. */
2237 #ifdef __STDC__
2238 # include <limits.h>
2239 #else
2240 # include <assert.h>
2241 #endif
2243 #undef $2
2245 /* Override any GCC internal prototype to avoid an error.
2246 Use char because int might match the return type of a GCC
2247 builtin and then its argument prototype would still apply. */
2248 #ifdef __cplusplus
2249 extern "C"
2250 #endif
2251 char $2 ();
2252 /* The GNU C library defines this for functions which it implements
2253 to always fail with ENOSYS. Some functions are actually named
2254 something starting with __ and the normal name is an alias. */
2255 #if defined __stub_$2 || defined __stub___$2
2256 choke me
2257 #endif
2260 main ()
2262 return $2 ();
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_link "$LINENO"; then :
2268 eval "$3=yes"
2269 else
2270 eval "$3=no"
2272 rm -f core conftest.err conftest.$ac_objext \
2273 conftest$ac_exeext conftest.$ac_ext
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 } # ac_fn_c_check_func
2281 cat >config.log <<_ACEOF
2282 This file contains any messages produced by compilers while
2283 running configure, to aid debugging if configure makes a mistake.
2285 It was created by $as_me, which was
2286 generated by GNU Autoconf 2.69. Invocation command line was
2288 $ $0 $@
2290 _ACEOF
2291 exec 5>>config.log
2293 cat <<_ASUNAME
2294 ## --------- ##
2295 ## Platform. ##
2296 ## --------- ##
2298 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2299 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2300 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2301 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2302 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2305 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2308 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2309 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2310 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2311 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2312 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2313 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315 _ASUNAME
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 $as_echo "PATH: $as_dir"
2323 done
2324 IFS=$as_save_IFS
2326 } >&5
2328 cat >&5 <<_ACEOF
2331 ## ----------- ##
2332 ## Core tests. ##
2333 ## ----------- ##
2335 _ACEOF
2338 # Keep a trace of the command line.
2339 # Strip out --no-create and --no-recursion so they do not pile up.
2340 # Strip out --silent because we don't want to record it for future runs.
2341 # Also quote any args containing shell meta-characters.
2342 # Make two passes to allow for proper duplicate-argument suppression.
2343 ac_configure_args=
2344 ac_configure_args0=
2345 ac_configure_args1=
2346 ac_must_keep_next=false
2347 for ac_pass in 1 2
2349 for ac_arg
2351 case $ac_arg in
2352 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2354 | -silent | --silent | --silen | --sile | --sil)
2355 continue ;;
2356 *\'*)
2357 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 esac
2359 case $ac_pass in
2360 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 as_fn_append ac_configure_args1 " '$ac_arg'"
2363 if test $ac_must_keep_next = true; then
2364 ac_must_keep_next=false # Got value, back to normal.
2365 else
2366 case $ac_arg in
2367 *=* | --config-cache | -C | -disable-* | --disable-* \
2368 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2369 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2370 | -with-* | --with-* | -without-* | --without-* | --x)
2371 case "$ac_configure_args0 " in
2372 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2373 esac
2375 -* ) ac_must_keep_next=true ;;
2376 esac
2378 as_fn_append ac_configure_args " '$ac_arg'"
2380 esac
2381 done
2382 done
2383 { ac_configure_args0=; unset ac_configure_args0;}
2384 { ac_configure_args1=; unset ac_configure_args1;}
2386 # When interrupted or exit'd, cleanup temporary files, and complete
2387 # config.log. We remove comments because anyway the quotes in there
2388 # would cause problems or look ugly.
2389 # WARNING: Use '\'' to represent an apostrophe within the trap.
2390 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2391 trap 'exit_status=$?
2392 # Save into config.log some information that might help in debugging.
2394 echo
2396 $as_echo "## ---------------- ##
2397 ## Cache variables. ##
2398 ## ---------------- ##"
2399 echo
2400 # The following way of writing the cache mishandles newlines in values,
2402 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2403 eval ac_val=\$$ac_var
2404 case $ac_val in #(
2405 *${as_nl}*)
2406 case $ac_var in #(
2407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2409 esac
2410 case $ac_var in #(
2411 _ | IFS | as_nl) ;; #(
2412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2413 *) { eval $ac_var=; unset $ac_var;} ;;
2414 esac ;;
2415 esac
2416 done
2417 (set) 2>&1 |
2418 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2419 *${as_nl}ac_space=\ *)
2420 sed -n \
2421 "s/'\''/'\''\\\\'\'''\''/g;
2422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2423 ;; #(
2425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 esac |
2428 sort
2430 echo
2432 $as_echo "## ----------------- ##
2433 ## Output variables. ##
2434 ## ----------------- ##"
2435 echo
2436 for ac_var in $ac_subst_vars
2438 eval ac_val=\$$ac_var
2439 case $ac_val in
2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 esac
2442 $as_echo "$ac_var='\''$ac_val'\''"
2443 done | sort
2444 echo
2446 if test -n "$ac_subst_files"; then
2447 $as_echo "## ------------------- ##
2448 ## File substitutions. ##
2449 ## ------------------- ##"
2450 echo
2451 for ac_var in $ac_subst_files
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2462 if test -s confdefs.h; then
2463 $as_echo "## ----------- ##
2464 ## confdefs.h. ##
2465 ## ----------- ##"
2466 echo
2467 cat confdefs.h
2468 echo
2470 test "$ac_signal" != 0 &&
2471 $as_echo "$as_me: caught signal $ac_signal"
2472 $as_echo "$as_me: exit $exit_status"
2473 } >&5
2474 rm -f core *.core core.conftest.* &&
2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476 exit $exit_status
2478 for ac_signal in 1 2 13 15; do
2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2480 done
2481 ac_signal=0
2483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2484 rm -f -r conftest* confdefs.h
2486 $as_echo "/* confdefs.h */" > confdefs.h
2488 # Predefined preprocessor variables.
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_NAME "$PACKAGE_NAME"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496 _ACEOF
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_STRING "$PACKAGE_STRING"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_URL "$PACKAGE_URL"
2512 _ACEOF
2515 # Let the site file select an alternate cache file if it wants to.
2516 # Prefer an explicitly selected file to automatically selected ones.
2517 ac_site_file1=NONE
2518 ac_site_file2=NONE
2519 if test -n "$CONFIG_SITE"; then
2520 # We do not want a PATH search for config.site.
2521 case $CONFIG_SITE in #((
2522 -*) ac_site_file1=./$CONFIG_SITE;;
2523 */*) ac_site_file1=$CONFIG_SITE;;
2524 *) ac_site_file1=./$CONFIG_SITE;;
2525 esac
2526 elif test "x$prefix" != xNONE; then
2527 ac_site_file1=$prefix/share/config.site
2528 ac_site_file2=$prefix/etc/config.site
2529 else
2530 ac_site_file1=$ac_default_prefix/share/config.site
2531 ac_site_file2=$ac_default_prefix/etc/config.site
2533 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 test "x$ac_site_file" = xNONE && continue
2536 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2538 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2539 sed 's/^/| /' "$ac_site_file" >&5
2540 . "$ac_site_file" \
2541 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543 as_fn_error $? "failed to load site script $ac_site_file
2544 See \`config.log' for more details" "$LINENO" 5; }
2546 done
2548 if test -r "$cache_file"; then
2549 # Some versions of bash will fail to source /dev/null (special files
2550 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2551 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2553 $as_echo "$as_me: loading cache $cache_file" >&6;}
2554 case $cache_file in
2555 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2556 *) . "./$cache_file";;
2557 esac
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2561 $as_echo "$as_me: creating cache $cache_file" >&6;}
2562 >$cache_file
2565 as_fn_append ac_header_list " stdlib.h"
2566 as_fn_append ac_header_list " unistd.h"
2567 as_fn_append ac_header_list " sys/param.h"
2568 # Check that the precious variables saved in the cache have kept the same
2569 # value.
2570 ac_cache_corrupted=false
2571 for ac_var in $ac_precious_vars; do
2572 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2573 eval ac_new_set=\$ac_env_${ac_var}_set
2574 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2575 eval ac_new_val=\$ac_env_${ac_var}_value
2576 case $ac_old_set,$ac_new_set in
2577 set,)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2581 ,set)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2583 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2584 ac_cache_corrupted=: ;;
2585 ,);;
2587 if test "x$ac_old_val" != "x$ac_new_val"; then
2588 # differences in whitespace do not lead to failure.
2589 ac_old_val_w=`echo x $ac_old_val`
2590 ac_new_val_w=`echo x $ac_new_val`
2591 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2593 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2594 ac_cache_corrupted=:
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2597 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2598 eval $ac_var=\$ac_old_val
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2601 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2603 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2604 fi;;
2605 esac
2606 # Pass precious variables to config.status.
2607 if test "$ac_new_set" = set; then
2608 case $ac_new_val in
2609 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2610 *) ac_arg=$ac_var=$ac_new_val ;;
2611 esac
2612 case " $ac_configure_args " in
2613 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2614 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615 esac
2617 done
2618 if $ac_cache_corrupted; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2622 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2623 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625 ## -------------------- ##
2626 ## Main body of script. ##
2627 ## -------------------- ##
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 ac_aux_dir=
2638 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2639 if test -f "$ac_dir/install-sh"; then
2640 ac_aux_dir=$ac_dir
2641 ac_install_sh="$ac_aux_dir/install-sh -c"
2642 break
2643 elif test -f "$ac_dir/install.sh"; then
2644 ac_aux_dir=$ac_dir
2645 ac_install_sh="$ac_aux_dir/install.sh -c"
2646 break
2647 elif test -f "$ac_dir/shtool"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/shtool install -c"
2650 break
2652 done
2653 if test -z "$ac_aux_dir"; then
2654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2657 # These three variables are undocumented and unsupported,
2658 # and are intended to be withdrawn in a future Autoconf release.
2659 # They can cause serious problems if a builder's source tree is in a directory
2660 # whose full name contains unusual characters.
2661 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2662 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2663 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2667 # Check what host we are running on.
2668 # If a target is not suggested, we use this one.
2669 # Note that what we call a target, Autoconf calls a host.
2670 # Make sure we can run config.sub.
2671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2672 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2675 $as_echo_n "checking build system type... " >&6; }
2676 if ${ac_cv_build+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 ac_build_alias=$build_alias
2680 test "x$ac_build_alias" = x &&
2681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2682 test "x$ac_build_alias" = x &&
2683 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2689 $as_echo "$ac_cv_build" >&6; }
2690 case $ac_cv_build in
2691 *-*-*) ;;
2692 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2693 esac
2694 build=$ac_cv_build
2695 ac_save_IFS=$IFS; IFS='-'
2696 set x $ac_cv_build
2697 shift
2698 build_cpu=$1
2699 build_vendor=$2
2700 shift; shift
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2703 build_os=$*
2704 IFS=$ac_save_IFS
2705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2709 $as_echo_n "checking host system type... " >&6; }
2710 if ${ac_cv_host+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test "x$host_alias" = x; then
2714 ac_cv_host=$ac_cv_build
2715 else
2716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2722 $as_echo "$ac_cv_host" >&6; }
2723 case $ac_cv_host in
2724 *-*-*) ;;
2725 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2726 esac
2727 host=$ac_cv_host
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_host
2730 shift
2731 host_cpu=$1
2732 host_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 host_os=$*
2737 IFS=$ac_save_IFS
2738 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2742 # The AROS target is slightly different to the normal GNU style
2743 # format. We don't have the middle part, and we reverse the order
2744 # of the $(CPU) and $(OS) bits.
2746 # Don't strip the version of the target yet, it might be
2747 # useful on some systems.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2750 $as_echo_n "checking for AROS style target... " >&6; }
2752 if test "$target" = "NONE" ; then
2753 target=$host_os-$host_cpu
2754 else
2755 if test "$target" = "" ; then
2756 target=$host_os-$host_cpu
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2760 $as_echo "$target" >&6; }
2762 if test "$host_os" = "mingw32" ; then
2763 PWDCMD="pwd -W"
2766 # Don't know where else to put this...
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2768 $as_echo_n "checking building AROS in... " >&6; }
2769 AROS_BUILDDIR=`${PWDCMD-pwd}`
2770 AROS_BUILDDIR_UNIX=${PWD}
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2772 $as_echo "$AROS_BUILDDIR" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2775 $as_echo_n "checking AROS source in... " >&6; }
2776 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2777 SRCDIR=${srcpwd}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2779 $as_echo "$SRCDIR" >&6; }
2781 # Parse the target field into something useful.
2783 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2784 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2787 # Some debug output, to be removed again.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2789 $as_echo_n "checking for target system (debug output)... " >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2791 $as_echo "$target_os" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2793 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2795 $as_echo "$target_cpu" >&6; }
2797 aros_default_wbwidth=800
2798 aros_default_wbheight=600
2799 aros_default_wbdepth=4
2802 # The first step is to find the host binaries.
2803 # Check for a compiler.
2804 # Due to a bug in autoconf check for c++ compiler first.
2805 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2806 ac_ext=cpp
2807 ac_cpp='$CXXCPP $CPPFLAGS'
2808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2811 if test -z "$CXX"; then
2812 if test -n "$CCC"; then
2813 CXX=$CCC
2814 else
2815 if test -n "$ac_tool_prefix"; then
2816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_CXX+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CXX"; then
2826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2845 CXX=$ac_cv_prog_CXX
2846 if test -n "$CXX"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2848 $as_echo "$CXX" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$CXX" && break
2856 done
2858 if test -z "$CXX"; then
2859 ac_ct_CXX=$CXX
2860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_CXX"; then
2870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_CXX="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2890 if test -n "$ac_ct_CXX"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2892 $as_echo "$ac_ct_CXX" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2899 test -n "$ac_ct_CXX" && break
2900 done
2902 if test "x$ac_ct_CXX" = x; then
2903 CXX="g++"
2904 else
2905 case $cross_compiling:$ac_tool_warned in
2906 yes:)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909 ac_tool_warned=yes ;;
2910 esac
2911 CXX=$ac_ct_CXX
2917 # Provide some information about the compiler.
2918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2919 set X $ac_compile
2920 ac_compiler=$2
2921 for ac_option in --version -v -V -qversion; do
2922 { { ac_try="$ac_compiler $ac_option >&5"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930 ac_status=$?
2931 if test -s conftest.err; then
2932 sed '10a\
2933 ... rest of stderr output deleted ...
2934 10q' conftest.err >conftest.er1
2935 cat conftest.er1 >&5
2937 rm -f conftest.er1 conftest.err
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }
2940 done
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2946 main ()
2950 return 0;
2952 _ACEOF
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2957 # of exeext.
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2959 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2962 # The possible output files:
2963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965 ac_rmfiles=
2966 for ac_file in $ac_files
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 esac
2972 done
2973 rm -f $ac_rmfiles
2975 if { { ac_try="$ac_link_default"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link_default") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2989 # so that the user can short-circuit this test for compilers unknown to
2990 # Autoconf.
2991 for ac_file in $ac_files ''
2993 test -f "$ac_file" || continue
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 [ab].out )
2998 # We found the default executable, but exeext='' is most
2999 # certainly right.
3000 break;;
3001 *.* )
3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 then :; else
3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 # We set ac_cv_exeext here because the later test for it is not
3007 # safe: cross compilers may not add the suffix if given an `-o'
3008 # argument, so we may need to know it at that point already.
3009 # Even if this section looks crufty: it has the advantage of
3010 # actually working.
3011 break;;
3013 break;;
3014 esac
3015 done
3016 test "$ac_cv_exeext" = no && ac_cv_exeext=
3018 else
3019 ac_file=''
3021 if test -z "$ac_file"; then :
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error 77 "C++ compiler cannot create executables
3030 See \`config.log' for more details" "$LINENO" 5; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033 $as_echo "yes" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3036 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038 $as_echo "$ac_file" >&6; }
3039 ac_exeext=$ac_cv_exeext
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3044 $as_echo_n "checking for suffix of executables... " >&6; }
3045 if { { ac_try="$ac_link"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link") 2>&5
3053 ac_status=$?
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3058 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 # `rm'.
3060 for ac_file in conftest.exe conftest conftest.*; do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 break;;
3066 * ) break;;
3067 esac
3068 done
3069 else
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 rm -f conftest conftest$ac_cv_exeext
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3079 rm -f conftest.$ac_ext
3080 EXEEXT=$ac_cv_exeext
3081 ac_exeext=$EXEEXT
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084 #include <stdio.h>
3086 main ()
3088 FILE *f = fopen ("conftest.out", "w");
3089 return ferror (f) || fclose (f) != 0;
3092 return 0;
3094 _ACEOF
3095 ac_clean_files="$ac_clean_files conftest.out"
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3099 $as_echo_n "checking whether we are cross compiling... " >&6; }
3100 if test "$cross_compiling" != yes; then
3101 { { ac_try="$ac_link"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }
3112 if { ac_try='./conftest$ac_cv_exeext'
3113 { { case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; }; then
3123 cross_compiling=no
3124 else
3125 if test "$cross_compiling" = maybe; then
3126 cross_compiling=yes
3127 else
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot run C++ compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details" "$LINENO" 5; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3137 $as_echo "$cross_compiling" >&6; }
3139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3142 $as_echo_n "checking for suffix of object files... " >&6; }
3143 if ${ac_cv_objext+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3150 main ()
3154 return 0;
3156 _ACEOF
3157 rm -f conftest.o conftest.obj
3158 if { { ac_try="$ac_compile"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compile") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 for ac_file in conftest.o conftest.obj conftest.*; do
3170 test -f "$ac_file" || continue;
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 break;;
3175 esac
3176 done
3177 else
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details" "$LINENO" 5; }
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3189 $as_echo "$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3191 ac_objext=$OBJEXT
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3194 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3201 main ()
3203 #ifndef __GNUC__
3204 choke me
3205 #endif
3208 return 0;
3210 _ACEOF
3211 if ac_fn_cxx_try_compile "$LINENO"; then :
3212 ac_compiler_gnu=yes
3213 else
3214 ac_compiler_gnu=no
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3223 GXX=yes
3224 else
3225 GXX=
3227 ac_test_CXXFLAGS=${CXXFLAGS+set}
3228 ac_save_CXXFLAGS=$CXXFLAGS
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3231 if ${ac_cv_prog_cxx_g+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3235 ac_cxx_werror_flag=yes
3236 ac_cv_prog_cxx_g=no
3237 CXXFLAGS="-g"
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3242 main ()
3246 return 0;
3248 _ACEOF
3249 if ac_fn_cxx_try_compile "$LINENO"; then :
3250 ac_cv_prog_cxx_g=yes
3251 else
3252 CXXFLAGS=""
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 :
3266 else
3267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3268 CXXFLAGS="-g"
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 if ac_fn_cxx_try_compile "$LINENO"; then :
3281 ac_cv_prog_cxx_g=yes
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3292 if test "$ac_test_CXXFLAGS" = set; then
3293 CXXFLAGS=$ac_save_CXXFLAGS
3294 elif test $ac_cv_prog_cxx_g = yes; then
3295 if test "$GXX" = yes; then
3296 CXXFLAGS="-g -O2"
3297 else
3298 CXXFLAGS="-g"
3300 else
3301 if test "$GXX" = yes; then
3302 CXXFLAGS="-O2"
3303 else
3304 CXXFLAGS=
3307 ac_ext=c
3308 ac_cpp='$CPP $CPPFLAGS'
3309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_CC+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3357 if test -z "$ac_cv_prog_CC"; then
3358 ac_ct_CC=$CC
3359 # Extract the first word of "gcc", so it can be a program name with args.
3360 set dummy gcc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$ac_ct_CC"; then
3367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_ac_ct_CC="gcc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3380 done
3381 done
3382 IFS=$as_save_IFS
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 CC=$ac_ct_CC
3406 else
3407 CC="$ac_cv_prog_CC"
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}cc; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_CC="${ac_tool_prefix}cc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3433 done
3434 done
3435 IFS=$as_save_IFS
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3451 if test -z "$CC"; then
3452 # Extract the first word of "cc", so it can be a program name with args.
3453 set dummy cc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 ac_prog_rejected=no
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3471 ac_prog_rejected=yes
3472 continue
3474 ac_cv_prog_CC="cc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3480 IFS=$as_save_IFS
3482 if test $ac_prog_rejected = yes; then
3483 # We found a bogon in the path, so make sure we never use it.
3484 set dummy $ac_cv_prog_CC
3485 shift
3486 if test $# != 0; then
3487 # We chose a different compiler from the bogus one.
3488 # However, it has the same basename, so the bogon will be chosen
3489 # first if we set CC to just the basename; use the full file name.
3490 shift
3491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$CC"; then
3508 if test -n "$ac_tool_prefix"; then
3509 for ac_prog in cl.exe
3511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_CC+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 $as_echo "$CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$CC" && break
3549 done
3551 if test -z "$CC"; then
3552 ac_ct_CC=$CC
3553 for ac_prog in cl.exe
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_ac_ct_CC="$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3592 test -n "$ac_ct_CC" && break
3593 done
3595 if test "x$ac_ct_CC" = x; then
3596 CC=""
3597 else
3598 case $cross_compiling:$ac_tool_warned in
3599 yes:)
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602 ac_tool_warned=yes ;;
3603 esac
3604 CC=$ac_ct_CC
3611 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "no acceptable C compiler found in \$PATH
3614 See \`config.log' for more details" "$LINENO" 5; }
3616 # Provide some information about the compiler.
3617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3618 set X $ac_compile
3619 ac_compiler=$2
3620 for ac_option in --version -v -V -qversion; do
3621 { { ac_try="$ac_compiler $ac_option >&5"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3629 ac_status=$?
3630 if test -s conftest.err; then
3631 sed '10a\
3632 ... rest of stderr output deleted ...
3633 10q' conftest.err >conftest.er1
3634 cat conftest.er1 >&5
3636 rm -f conftest.er1 conftest.err
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }
3639 done
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643 if ${ac_cv_c_compiler_gnu+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3650 main ()
3652 #ifndef __GNUC__
3653 choke me
3654 #endif
3657 return 0;
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_compiler_gnu=yes
3662 else
3663 ac_compiler_gnu=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673 else
3674 GCC=
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if ${ac_cv_prog_cc_g+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_g=yes
3700 else
3701 CFLAGS=""
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 :
3715 else
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3717 CFLAGS="-g"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3722 main ()
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_g=yes
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3740 $as_echo "$ac_cv_prog_cc_g" >&6; }
3741 if test "$ac_test_CFLAGS" = set; then
3742 CFLAGS=$ac_save_CFLAGS
3743 elif test $ac_cv_prog_cc_g = yes; then
3744 if test "$GCC" = yes; then
3745 CFLAGS="-g -O2"
3746 else
3747 CFLAGS="-g"
3749 else
3750 if test "$GCC" = yes; then
3751 CFLAGS="-O2"
3752 else
3753 CFLAGS=
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3757 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3758 if ${ac_cv_prog_cc_c89+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_cv_prog_cc_c89=no
3762 ac_save_CC=$CC
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <stdarg.h>
3766 #include <stdio.h>
3767 struct stat;
3768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3769 struct buf { int x; };
3770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3771 static char *e (p, i)
3772 char **p;
3773 int i;
3775 return p[i];
3777 static char *f (char * (*g) (char **, int), char **p, ...)
3779 char *s;
3780 va_list v;
3781 va_start (v,p);
3782 s = g (p, va_arg (v,int));
3783 va_end (v);
3784 return s;
3787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3788 function prototypes and stuff, but not '\xHH' hex character constants.
3789 These don't provoke an error unfortunately, instead are silently treated
3790 as 'x'. The following induces an error, until -std is added to get
3791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3792 array size at least. It's necessary to write '\x00'==0 to get something
3793 that's true only with -std. */
3794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3797 inside strings and character constants. */
3798 #define FOO(x) 'x'
3799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801 int test (int i, double x);
3802 struct s1 {int (*f) (int a);};
3803 struct s2 {int (*f) (double a);};
3804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3805 int argc;
3806 char **argv;
3808 main ()
3810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 return 0;
3814 _ACEOF
3815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 CC="$ac_save_CC $ac_arg"
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_c89=$ac_arg
3822 rm -f core conftest.err conftest.$ac_objext
3823 test "x$ac_cv_prog_cc_c89" != "xno" && break
3824 done
3825 rm -f conftest.$ac_ext
3826 CC=$ac_save_CC
3829 # AC_CACHE_VAL
3830 case "x$ac_cv_prog_cc_c89" in
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833 $as_echo "none needed" >&6; } ;;
3834 xno)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;;
3838 CC="$CC $ac_cv_prog_cc_c89"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3841 esac
3842 if test "x$ac_cv_prog_cc_c89" != xno; then :
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 case $ac_cv_prog_cc_stdc in #(
3853 no) :
3854 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3855 *) :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3858 if ${ac_cv_prog_cc_c99+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c99=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdbool.h>
3867 #include <stdlib.h>
3868 #include <wchar.h>
3869 #include <stdio.h>
3871 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3872 #define debug(...) fprintf (stderr, __VA_ARGS__)
3873 #define showlist(...) puts (#__VA_ARGS__)
3874 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3875 static void
3876 test_varargs_macros (void)
3878 int x = 1234;
3879 int y = 5678;
3880 debug ("Flag");
3881 debug ("X = %d\n", x);
3882 showlist (The first, second, and third items.);
3883 report (x>y, "x is %d but y is %d", x, y);
3886 // Check long long types.
3887 #define BIG64 18446744073709551615ull
3888 #define BIG32 4294967295ul
3889 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3890 #if !BIG_OK
3891 your preprocessor is broken;
3892 #endif
3893 #if BIG_OK
3894 #else
3895 your preprocessor is broken;
3896 #endif
3897 static long long int bignum = -9223372036854775807LL;
3898 static unsigned long long int ubignum = BIG64;
3900 struct incomplete_array
3902 int datasize;
3903 double data[];
3906 struct named_init {
3907 int number;
3908 const wchar_t *name;
3909 double average;
3912 typedef const char *ccp;
3914 static inline int
3915 test_restrict (ccp restrict text)
3917 // See if C++-style comments work.
3918 // Iterate through items via the restricted pointer.
3919 // Also check for declarations in for loops.
3920 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3921 continue;
3922 return 0;
3925 // Check varargs and va_copy.
3926 static void
3927 test_varargs (const char *format, ...)
3929 va_list args;
3930 va_start (args, format);
3931 va_list args_copy;
3932 va_copy (args_copy, args);
3934 const char *str;
3935 int number;
3936 float fnumber;
3938 while (*format)
3940 switch (*format++)
3942 case 's': // string
3943 str = va_arg (args_copy, const char *);
3944 break;
3945 case 'd': // int
3946 number = va_arg (args_copy, int);
3947 break;
3948 case 'f': // float
3949 fnumber = va_arg (args_copy, double);
3950 break;
3951 default:
3952 break;
3955 va_end (args_copy);
3956 va_end (args);
3960 main ()
3963 // Check bool.
3964 _Bool success = false;
3966 // Check restrict.
3967 if (test_restrict ("String literal") == 0)
3968 success = true;
3969 char *restrict newvar = "Another string";
3971 // Check varargs.
3972 test_varargs ("s, d' f .", "string", 65, 34.234);
3973 test_varargs_macros ();
3975 // Check flexible array members.
3976 struct incomplete_array *ia =
3977 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3978 ia->datasize = 10;
3979 for (int i = 0; i < ia->datasize; ++i)
3980 ia->data[i] = i * 1.234;
3982 // Check named initializers.
3983 struct named_init ni = {
3984 .number = 34,
3985 .name = L"Test wide string",
3986 .average = 543.34343,
3989 ni.number = 58;
3991 int dynamic_array[ni.number];
3992 dynamic_array[ni.number - 1] = 543;
3994 // work around unused variable warnings
3995 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3996 || dynamic_array[ni.number - 1] != 543);
3999 return 0;
4001 _ACEOF
4002 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4004 CC="$ac_save_CC $ac_arg"
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006 ac_cv_prog_cc_c99=$ac_arg
4008 rm -f core conftest.err conftest.$ac_objext
4009 test "x$ac_cv_prog_cc_c99" != "xno" && break
4010 done
4011 rm -f conftest.$ac_ext
4012 CC=$ac_save_CC
4015 # AC_CACHE_VAL
4016 case "x$ac_cv_prog_cc_c99" in
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4019 $as_echo "none needed" >&6; } ;;
4020 xno)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4022 $as_echo "unsupported" >&6; } ;;
4024 CC="$CC $ac_cv_prog_cc_c99"
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4026 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4027 esac
4028 if test "x$ac_cv_prog_cc_c99" != xno; then :
4029 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033 if ${ac_cv_prog_cc_c89+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_cv_prog_cc_c89=no
4037 ac_save_CC=$CC
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <stdarg.h>
4041 #include <stdio.h>
4042 struct stat;
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4047 char **p;
4048 int i;
4050 return p[i];
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4054 char *s;
4055 va_list v;
4056 va_start (v,p);
4057 s = g (p, va_arg (v,int));
4058 va_end (v);
4059 return s;
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4073 #define FOO(x) 'x'
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 int argc;
4081 char **argv;
4083 main ()
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4087 return 0;
4089 _ACEOF
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC
4104 # AC_CACHE_VAL
4105 case "x$ac_cv_prog_cc_c89" in
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4109 xno)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116 esac
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4118 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4119 else
4120 ac_cv_prog_cc_stdc=no
4125 esac
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4127 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4128 if ${ac_cv_prog_cc_stdc+:} false; then :
4129 $as_echo_n "(cached) " >&6
4132 case $ac_cv_prog_cc_stdc in #(
4133 no) :
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;; #(
4136 '') :
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138 $as_echo "none needed" >&6; } ;; #(
4139 *) :
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4141 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4142 esac
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4151 # On Suns, sometimes $CPP names a directory.
4152 if test -n "$CPP" && test -d "$CPP"; then
4153 CPP=
4155 if test -z "$CPP"; then
4156 if ${ac_cv_prog_CPP+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 # Double quotes because CPP needs to be expanded
4160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4162 ac_preproc_ok=false
4163 for ac_c_preproc_warn_flag in '' yes
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4182 else
4183 # Broken: fails on valid input.
4184 continue
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4193 _ACEOF
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4195 # Broken: success on invalid input.
4196 continue
4197 else
4198 # Passes both tests.
4199 ac_preproc_ok=:
4200 break
4202 rm -f conftest.err conftest.i conftest.$ac_ext
4204 done
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.i conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then :
4208 break
4211 done
4212 ac_cv_prog_CPP=$CPP
4215 CPP=$ac_cv_prog_CPP
4216 else
4217 ac_cv_prog_CPP=$CPP
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4220 $as_echo "$CPP" >&6; }
4221 ac_preproc_ok=false
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #ifdef __STDC__
4233 # include <limits.h>
4234 #else
4235 # include <assert.h>
4236 #endif
4237 Syntax error
4238 _ACEOF
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4241 else
4242 # Broken: fails on valid input.
4243 continue
4245 rm -f conftest.err conftest.i conftest.$ac_ext
4247 # OK, works on sane cases. Now check whether nonexistent headers
4248 # can be detected and how.
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4252 _ACEOF
4253 if ac_fn_c_try_cpp "$LINENO"; then :
4254 # Broken: success on invalid input.
4255 continue
4256 else
4257 # Passes both tests.
4258 ac_preproc_ok=:
4259 break
4261 rm -f conftest.err conftest.i conftest.$ac_ext
4263 done
4264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265 rm -f conftest.i conftest.err conftest.$ac_ext
4266 if $ac_preproc_ok; then :
4268 else
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details" "$LINENO" 5; }
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 # Check for a compatible awk
4283 for ac_prog in gawk nawk
4285 # Extract the first word of "$ac_prog", so it can be a program name with args.
4286 set dummy $ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_AWK+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$AWK"; then
4293 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_AWK="$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 AWK=$ac_cv_prog_AWK
4313 if test -n "$AWK"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4315 $as_echo "$AWK" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4322 test -n "$AWK" && break
4323 done
4325 if test "$AWK" = ""; then
4326 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4328 # Extract the first word of "mmake", so it can be a program name with args.
4329 set dummy mmake; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_MMAKE+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if test -n "$MMAKE"; then
4336 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_prog_MMAKE="mmake "
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4351 IFS=$as_save_IFS
4355 MMAKE=$ac_cv_prog_MMAKE
4356 if test -n "$MMAKE"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4358 $as_echo "$MMAKE" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4366 # Perform some default variable assignments. Note all of these will be
4367 # Regenerated from the script, so there is no need to cache them.
4369 aros_host_cpp="$CPP"
4370 aros_host_cc="$CC"
4371 aros_host_cxx="$CXX"
4372 if test "$GCC" = "yes"; then
4373 aros_gcc_ld=`$CC -print-prog-name=ld`
4374 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4375 set dummy `basename $aros_gcc_ld`; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_path_aros_host_ld+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 case $aros_host_ld in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in `dirname $aros_gcc_ld`
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4399 IFS=$as_save_IFS
4402 esac
4404 aros_host_ld=$ac_cv_path_aros_host_ld
4405 if test -n "$aros_host_ld"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4407 $as_echo "$aros_host_ld" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 if test "$aros_host_ld" = ""; then
4416 # Extract the first word of "ld", so it can be a program name with args.
4417 set dummy ld; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_path_aros_host_ld+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 case $aros_host_ld in
4424 [\\/]* | ?:[\\/]*)
4425 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4444 esac
4446 aros_host_ld=$ac_cv_path_aros_host_ld
4447 if test -n "$aros_host_ld"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4449 $as_echo "$aros_host_ld" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4457 if test "$aros_host_ld" = ""; then
4458 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4460 aros_host_make="make"
4461 aros_host_cflags=$CFLAGS
4462 aros_host_cxxflags=$CXXFLAGS
4463 aros_host_ldflags=$LDFLAGS
4464 aros_host_debug="-g -O0"
4465 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4466 aros_host_mkargs="--no-print-directory"
4467 aros_host_exe_suffix="$EXEEXT"
4468 aros_host_lib_suffix=""
4470 # Ignore all compliance, AROS ROMs = 0
4471 # KickStart v1.0 = 30
4472 # KickStart v1.3 = 34
4473 # KickStart v2.0 = 37
4474 # KickStart v3.0 = 39
4475 # KickStart v3.1 = 40
4476 # AmigaOS v3.5 = 44
4477 aros_amigaos_compliance=0
4479 for ac_prog in aclocal aclocal19 aclocal-1.9
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$aros_host_aclocal"; then
4489 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_aros_host_aclocal="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4509 if test -n "$aros_host_aclocal"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4511 $as_echo "$aros_host_aclocal" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$aros_host_aclocal" && break
4519 done
4521 for ac_prog in autoconf autoconf259 autoconf253
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$aros_host_autoconf"; then
4531 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_aros_host_autoconf="$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4551 if test -n "$aros_host_autoconf"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4553 $as_echo "$aros_host_autoconf" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4560 test -n "$aros_host_autoconf" && break
4561 done
4563 for ac_prog in autoheader autoheader259 autoheader253
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$aros_host_autoheader"; then
4573 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_aros_host_autoheader="$ac_prog"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4588 IFS=$as_save_IFS
4592 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4593 if test -n "$aros_host_autoheader"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4595 $as_echo "$aros_host_autoheader" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4602 test -n "$aros_host_autoheader" && break
4603 done
4605 for ac_prog in automake automake19 automake-1.9
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_aros_host_automake+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$aros_host_automake"; then
4615 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_aros_host_automake="$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 aros_host_automake=$ac_cv_prog_aros_host_automake
4635 if test -n "$aros_host_automake"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4637 $as_echo "$aros_host_automake" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 test -n "$aros_host_automake" && break
4645 done
4648 if test "$aros_host_aclocal" = ""; then
4649 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4651 if test "$aros_host_automake" = ""; then
4652 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4655 case "$aros_host_cc" in
4656 *gcc*)
4657 aros_host_cc_pipe="-pipe"
4659 icc)
4660 aros_host_cc_pipe=""
4663 aros_host_cc_pipe=""
4665 esac
4667 aros_kernel_cc_includes=""
4668 aros_target_cc_includes=""
4669 host_cc_elf=yes
4671 # ----------------------------------------------------------------------------------------
4672 # Host-specific defaults
4674 # This is the main host configuration section. It is where the host
4675 # can change the values of any variables it needs to change. We do
4676 # not look at anything that compiles to the target yet, we'll get
4677 # to that later.
4679 case "$host_os" in
4680 aros*)
4681 aros_host_arch="aros"
4682 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4683 case "$host_cpu" in
4684 *i?86*)
4685 aros_host_cpu="i386"
4687 *x86_64*)
4688 aros_host_cpu="x86_64"
4690 *powerpc*)
4691 aros_host_cpu="ppc"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4695 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4696 aros_host_cpu="$host_cpu"
4698 esac
4701 linux*)
4702 aros_host_arch="linux"
4703 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4704 android_build_os="linux-x86"
4705 android_tool="android"
4706 default_android_sdk="/opt/android-sdk-linux_x86"
4707 case "$host_cpu" in
4708 *i?86*)
4709 aros_host_cpu="i386"
4711 *x86_64*)
4712 aros_host_cpu="x86_64"
4714 *m68k*)
4715 aros_host_cpu="m68k"
4717 *powerpc*)
4718 aros_host_cpu="ppc"
4720 *arm*)
4721 aros_host_cpu="arm"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4725 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4726 aros_host_cpu="$host_cpu"
4728 esac
4731 freebsd*)
4732 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4733 aros_host_make="gmake"
4734 aros_host_arch="freebsd"
4735 aros_host_cpu="i386"
4737 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4739 case $host_os in
4740 freebsd[234]*)
4741 aros_object_format="elf_i386"
4745 aros_object_format="elf_i386_fbsd"
4747 esac
4751 darwin*)
4752 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4753 aros_host_arch="darwin"
4754 host_cc_elf=no
4755 android_build_os="darwin-x86"
4756 android_tool="android"
4757 default_android_sdk="/android-sdk-mac_x86"
4758 case "$host_cpu" in
4759 *i?86*)
4760 aros_host_cpu="i386"
4762 *x86_64*)
4763 aros_host_cpu="x86_64"
4765 *powerpc*)
4766 aros_host_cpu="ppc"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4770 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4771 aros_host_cpu="$host_cpu"
4773 esac
4775 aros_host_ldflags="$aros_host_ldflags -liconv"
4779 dragonfly*)
4780 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4781 aros_host_make="gmake"
4782 aros_host_arch="dragonfly"
4783 case $host_cpu in
4784 *i?86*)
4785 aros_host_cpu="i386"
4787 *amd64*)
4788 aros_host_cpu="x86_64"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4792 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4793 aros_host_cpu="$host_cpu"
4795 esac
4798 netbsd*)
4799 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4800 aros_host_make="gmake"
4801 aros_host_arch="netbsd"
4802 case "$host_cpu" in
4803 *i?86*)
4804 aros_host_cpu="i386"
4806 *m68k*)
4807 aros_host_cpu="m68k"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu="$host_cpu"
4814 esac
4815 aros_host_lib_suffix=".0.0"
4818 openbsd*)
4819 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4820 aros_host_make="gmake"
4821 aros_host_arch="openbsd"
4822 case "$host_cpu" in
4823 *i?86*)
4824 aros_host_cpu="i386"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4828 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4829 aros_host_cpu="$host_cpu"
4831 esac
4834 solaris*)
4835 aros_host_arch="solaris"
4836 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4837 case "$host_cpu" in
4838 *i?86*)
4839 aros_host_cpu="i386"
4841 *sparc*)
4842 aros_host_cpu="sparc"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4852 morphos*)
4853 aros_host_arch="morphos"
4854 aros_host_cpu="ppc"
4855 host_cc_elf=no
4858 amiga*)
4859 aros_host_arch="amiga"
4860 host_cc_elf=no
4861 SORT="/gg/bin/sort"
4862 TEST="/gg/bin/test"
4863 UNIQ="/gg/bin/uniq"
4864 FOR="for"
4865 TOUCH="/gg/bin/touch"
4866 case "$host_cpu" in
4867 *m68k*)
4868 aros_host_cpu="m68k"
4870 *powerpc*)
4871 aros_host_cpu="ppc"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4875 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4876 aros_host_cpu="$host_cpu"
4878 esac
4881 cygwin*)
4882 aros_host_arch="cygwin"
4883 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4884 host_cc_elf=no
4885 android_build_os="windows"
4886 android_tool="android.bat"
4887 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4889 case "$host_cpu" in
4890 *i?86*)
4891 aros_host_cpu="i386"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4895 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4896 aros_host_cpu="$host_cpu"
4898 esac
4901 mingw32*)
4902 aros_host_arch="mingw32"
4903 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4904 host_cc_elf=no
4905 android_build_os="windows"
4906 android_tool="android.bat"
4907 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4909 case "$host_cpu" in
4910 *i?86*)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4913 $as_echo_n "checking for Windows native gcc target... " >&6; }
4914 host_cpu=`gcc -dumpmachine`
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4916 $as_echo "$host_cpu" >&6; }
4919 esac
4921 case "$host_cpu" in
4922 *i?86*)
4923 aros_host_cpu="i386"
4926 mingw32*)
4927 aros_host_cpu="i386"
4930 *x86_64*)
4931 aros_host_cpu="x86_64"
4932 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4937 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4938 aros_host_cpu="$host_cpu"
4940 esac
4943 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4945 esac
4947 # Extract the first word of "ar", so it can be a program name with args.
4948 set dummy ar; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_aros_host_ar+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$aros_host_ar"; then
4955 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_aros_host_ar="ar cr"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 aros_host_ar=$ac_cv_prog_aros_host_ar
4975 if test -n "$aros_host_ar"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4977 $as_echo "$aros_host_ar" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 if test "$aros_host_ar" = ""; then
4985 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4987 # Extract the first word of "ranlib", so it can be a program name with args.
4988 set dummy ranlib; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$aros_host_ranlib"; then
4995 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_aros_host_ranlib="ranlib "
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5015 if test -n "$aros_host_ranlib"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5017 $as_echo "$aros_host_ranlib" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 if test "$aros_host_ranlib" = ""; then
5025 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5027 # Extract the first word of "strip", so it can be a program name with args.
5028 set dummy strip; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_aros_host_strip+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$aros_host_strip"; then
5035 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_aros_host_strip="strip "
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 aros_host_strip=$ac_cv_prog_aros_host_strip
5055 if test -n "$aros_host_strip"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5057 $as_echo "$aros_host_strip" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 if test "$aros_host_strip" = ""; then
5065 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5068 # Extract the first word of "rm", so it can be a program name with args.
5069 set dummy rm; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_RM+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$RM"; then
5076 ac_cv_prog_RM="$RM" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_RM="rm -rf"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5089 done
5090 done
5091 IFS=$as_save_IFS
5095 RM=$ac_cv_prog_RM
5096 if test -n "$RM"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5098 $as_echo "$RM" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5105 if test "$RM" = ""; then
5106 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5108 # Extract the first word of "cp", so it can be a program name with args.
5109 set dummy cp; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_CP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$CP"; then
5116 ac_cv_prog_CP="$CP" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_CP="cp "
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5135 CP=$ac_cv_prog_CP
5136 if test -n "$CP"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5138 $as_echo "$CP" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5145 if test "$CP" = ""; then
5146 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5148 # Extract the first word of "mv", so it can be a program name with args.
5149 set dummy mv; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_MV+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$MV"; then
5156 ac_cv_prog_MV="$MV" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_MV="mv "
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 MV=$ac_cv_prog_MV
5176 if test -n "$MV"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5178 $as_echo "$MV" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 if test "$MV" = ""; then
5186 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5188 # Extract the first word of "echo", so it can be a program name with args.
5189 set dummy echo; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ECHO+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$ECHO"; then
5196 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ECHO="echo "
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 ECHO=$ac_cv_prog_ECHO
5216 if test -n "$ECHO"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5218 $as_echo "$ECHO" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5225 if test "$ECHO" = ""; then
5226 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5228 # Extract the first word of "mkdir", so it can be a program name with args.
5229 set dummy mkdir; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_MKDIR+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$MKDIR"; then
5236 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_MKDIR="mkdir -p"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5255 MKDIR=$ac_cv_prog_MKDIR
5256 if test -n "$MKDIR"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5258 $as_echo "$MKDIR" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 if test "$MKDIR" = ""; then
5266 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5268 # Extract the first word of "touch", so it can be a program name with args.
5269 set dummy touch; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_TOUCH+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$TOUCH"; then
5276 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_TOUCH="touch "
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 TOUCH=$ac_cv_prog_TOUCH
5296 if test -n "$TOUCH"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5298 $as_echo "$TOUCH" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 if test "$TOUCH" = ""; then
5306 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5308 # Extract the first word of "sort", so it can be a program name with args.
5309 set dummy sort; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_SORT+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$SORT"; then
5316 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_SORT="sort "
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 SORT=$ac_cv_prog_SORT
5336 if test -n "$SORT"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5338 $as_echo "$SORT" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5345 if test "$SORT" = ""; then
5346 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5348 # Extract the first word of "uniq", so it can be a program name with args.
5349 set dummy uniq; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_UNIQ+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$UNIQ"; then
5356 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_UNIQ="uniq "
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 UNIQ=$ac_cv_prog_UNIQ
5376 if test -n "$UNIQ"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5378 $as_echo "$UNIQ" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 if test "$UNIQ" = ""; then
5386 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5388 # Extract the first word of "true", so it can be a program name with args.
5389 set dummy true; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_NOP+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$NOP"; then
5396 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_NOP="true "
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5415 NOP=$ac_cv_prog_NOP
5416 if test -n "$NOP"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5418 $as_echo "$NOP" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5425 if test "$NOP" = ""; then
5426 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5428 # Extract the first word of "cat", so it can be a program name with args.
5429 set dummy cat; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_CAT+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$CAT"; then
5436 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_CAT="cat "
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5449 done
5450 done
5451 IFS=$as_save_IFS
5455 CAT=$ac_cv_prog_CAT
5456 if test -n "$CAT"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5458 $as_echo "$CAT" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5465 if test "$CAT" = ""; then
5466 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5468 # Extract the first word of "bison", so it can be a program name with args.
5469 set dummy bison; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_BISON+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$BISON"; then
5476 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_BISON="bison "
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5491 IFS=$as_save_IFS
5495 BISON=$ac_cv_prog_BISON
5496 if test -n "$BISON"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5498 $as_echo "$BISON" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5505 if test "$BISON" = ""; then
5506 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5508 # Extract the first word of "flex", so it can be a program name with args.
5509 set dummy flex; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_FLEX+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$FLEX"; then
5516 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_FLEX="flex "
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 FLEX=$ac_cv_prog_FLEX
5536 if test -n "$FLEX"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5538 $as_echo "$FLEX" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5545 if test "$FLEX" = ""; then
5546 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5548 # Extract the first word of "pngtopnm", so it can be a program name with args.
5549 set dummy pngtopnm; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$PNGTOPNM"; then
5556 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_PNGTOPNM="pngtopnm "
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5571 IFS=$as_save_IFS
5575 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5576 if test -n "$PNGTOPNM"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5578 $as_echo "$PNGTOPNM" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5585 if test "$PNGTOPNM" = ""; then
5586 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5588 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5589 set dummy ppmtoilbm; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$PPMTOILBM"; then
5596 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5615 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5616 if test -n "$PPMTOILBM"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5618 $as_echo "$PPMTOILBM" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 if test "$PPMTOILBM" = ""; then
5626 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5628 # Extract the first word of "sed", so it can be a program name with args.
5629 set dummy sed; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_SED+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$SED"; then
5636 ac_cv_prog_SED="$SED" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_SED="sed "
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 SED=$ac_cv_prog_SED
5656 if test -n "$SED"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5658 $as_echo "$SED" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 if test "$SED" = ""; then
5666 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5668 # Extract the first word of "chmod", so it can be a program name with args.
5669 set dummy chmod; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_CHMOD+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$CHMOD"; then
5676 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_CHMOD="chmod "
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5689 done
5690 done
5691 IFS=$as_save_IFS
5695 CHMOD=$ac_cv_prog_CHMOD
5696 if test -n "$CHMOD"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5698 $as_echo "$CHMOD" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 if test "$CHMOD" = ""; then
5706 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5708 # Extract the first word of "patch", so it can be a program name with args.
5709 set dummy patch; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_PATCH+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$PATCH"; then
5716 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_PATCH="patch "
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 PATCH=$ac_cv_prog_PATCH
5736 if test -n "$PATCH"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5738 $as_echo "$PATCH" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 if test "$PATCH" = ""; then
5746 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5755 if test -n "$PYTHON"; then
5756 # If the user set $PYTHON, use it and don't search something else.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5758 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5759 prog="import sys
5760 # split strings by '.' and convert to numeric. Append some zeros
5761 # because we need at least 4 digits for the hex conversion.
5762 # map returns an iterator in Python 3.0 and a list in 2.x
5763 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5764 minverhex = 0
5765 # xrange is not present in Python 3.0 and range returns an iterator
5766 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5767 sys.exit(sys.hexversion < minverhex)"
5768 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5769 ($PYTHON -c "$prog") >&5 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then :
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5774 $as_echo "yes" >&6; }
5775 else
5776 as_fn_error $? "too old" "$LINENO" 5
5778 am_display_PYTHON=$PYTHON
5779 else
5780 # Otherwise, try each interpreter until we find one that satisfies
5781 # VERSION.
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5783 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5784 if ${am_cv_pathless_PYTHON+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5788 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
5789 test "$am_cv_pathless_PYTHON" = none && break
5790 prog="import sys
5791 # split strings by '.' and convert to numeric. Append some zeros
5792 # because we need at least 4 digits for the hex conversion.
5793 # map returns an iterator in Python 3.0 and a list in 2.x
5794 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5795 minverhex = 0
5796 # xrange is not present in Python 3.0 and range returns an iterator
5797 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5798 sys.exit(sys.hexversion < minverhex)"
5799 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5800 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; then :
5804 break
5806 done
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5809 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5810 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5811 if test "$am_cv_pathless_PYTHON" = none; then
5812 PYTHON=:
5813 else
5814 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5815 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_path_PYTHON+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 case $PYTHON in
5822 [\\/]* | ?:[\\/]*)
5823 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5842 esac
5844 PYTHON=$ac_cv_path_PYTHON
5845 if test -n "$PYTHON"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5847 $as_echo "$PYTHON" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5855 am_display_PYTHON=$am_cv_pathless_PYTHON
5859 if test "$PYTHON" = :; then
5860 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5861 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5865 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5866 if ${am_cv_python_version+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5872 $as_echo "$am_cv_python_version" >&6; }
5873 PYTHON_VERSION=$am_cv_python_version
5877 PYTHON_PREFIX='${prefix}'
5879 PYTHON_EXEC_PREFIX='${exec_prefix}'
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5884 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5885 if ${am_cv_python_platform+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5891 $as_echo "$am_cv_python_platform" >&6; }
5892 PYTHON_PLATFORM=$am_cv_python_platform
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5898 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5899 if ${am_cv_python_pythondir+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test "x$prefix" = xNONE
5903 then
5904 am_py_prefix=$ac_default_prefix
5905 else
5906 am_py_prefix=$prefix
5908 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`
5909 case $am_cv_python_pythondir in
5910 $am_py_prefix*)
5911 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5912 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5915 case $am_py_prefix in
5916 /usr|/System*) ;;
5918 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5920 esac
5922 esac
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5926 $as_echo "$am_cv_python_pythondir" >&6; }
5927 pythondir=$am_cv_python_pythondir
5931 pkgpythondir=\${pythondir}/$PACKAGE
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5935 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5936 if ${am_cv_python_pyexecdir+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test "x$exec_prefix" = xNONE
5940 then
5941 am_py_exec_prefix=$am_py_prefix
5942 else
5943 am_py_exec_prefix=$exec_prefix
5945 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`
5946 case $am_cv_python_pyexecdir in
5947 $am_py_exec_prefix*)
5948 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5949 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5952 case $am_py_exec_prefix in
5953 /usr|/System*) ;;
5955 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5957 esac
5959 esac
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5963 $as_echo "$am_cv_python_pyexecdir" >&6; }
5964 pyexecdir=$am_cv_python_pyexecdir
5968 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5978 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5979 if ${ac_cv_lib_png_png_read_png+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 ac_check_lib_save_LIBS=$LIBS
5983 LIBS="-lpng $LIBS"
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5987 /* Override any GCC internal prototype to avoid an error.
5988 Use char because int might match the return type of a GCC
5989 builtin and then its argument prototype would still apply. */
5990 #ifdef __cplusplus
5991 extern "C"
5992 #endif
5993 char png_read_png ();
5995 main ()
5997 return png_read_png ();
5999 return 0;
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 ac_cv_lib_png_png_read_png=yes
6004 else
6005 ac_cv_lib_png_png_read_png=no
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 LIBS=$ac_check_lib_save_LIBS
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6012 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6013 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6014 cat >>confdefs.h <<_ACEOF
6015 #define HAVE_LIBPNG 1
6016 _ACEOF
6018 LIBS="-lpng $LIBS"
6022 if test "$ac_cv_lib_png_png_read_png" = ""; then
6023 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6026 FOR=for
6028 IF=if
6030 TEST=test
6032 CMP=cmp
6036 # Check for some includes for the X11 HIDD and the kernel
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6039 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6040 if ${ac_cv_path_GREP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -z "$GREP"; then
6044 ac_path_GREP_found=false
6045 # Loop through the user's path and test for each of PROGNAME-LIST
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_prog in grep ggrep; do
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6054 as_fn_executable_p "$ac_path_GREP" || continue
6055 # Check for GNU ac_path_GREP and select it if it is found.
6056 # Check for GNU $ac_path_GREP
6057 case `"$ac_path_GREP" --version 2>&1` in
6058 *GNU*)
6059 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6061 ac_count=0
6062 $as_echo_n 0123456789 >"conftest.in"
6063 while :
6065 cat "conftest.in" "conftest.in" >"conftest.tmp"
6066 mv "conftest.tmp" "conftest.in"
6067 cp "conftest.in" "conftest.nl"
6068 $as_echo 'GREP' >> "conftest.nl"
6069 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6071 as_fn_arith $ac_count + 1 && ac_count=$as_val
6072 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6073 # Best one so far, save it but keep looking for a better one
6074 ac_cv_path_GREP="$ac_path_GREP"
6075 ac_path_GREP_max=$ac_count
6077 # 10*(2^10) chars as input seems more than enough
6078 test $ac_count -gt 10 && break
6079 done
6080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081 esac
6083 $ac_path_GREP_found && break 3
6084 done
6085 done
6086 done
6087 IFS=$as_save_IFS
6088 if test -z "$ac_cv_path_GREP"; then
6089 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6091 else
6092 ac_cv_path_GREP=$GREP
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6097 $as_echo "$ac_cv_path_GREP" >&6; }
6098 GREP="$ac_cv_path_GREP"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6102 $as_echo_n "checking for egrep... " >&6; }
6103 if ${ac_cv_path_EGREP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6107 then ac_cv_path_EGREP="$GREP -E"
6108 else
6109 if test -z "$EGREP"; then
6110 ac_path_EGREP_found=false
6111 # Loop through the user's path and test for each of PROGNAME-LIST
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_prog in egrep; do
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6120 as_fn_executable_p "$ac_path_EGREP" || continue
6121 # Check for GNU ac_path_EGREP and select it if it is found.
6122 # Check for GNU $ac_path_EGREP
6123 case `"$ac_path_EGREP" --version 2>&1` in
6124 *GNU*)
6125 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6127 ac_count=0
6128 $as_echo_n 0123456789 >"conftest.in"
6129 while :
6131 cat "conftest.in" "conftest.in" >"conftest.tmp"
6132 mv "conftest.tmp" "conftest.in"
6133 cp "conftest.in" "conftest.nl"
6134 $as_echo 'EGREP' >> "conftest.nl"
6135 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6137 as_fn_arith $ac_count + 1 && ac_count=$as_val
6138 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6139 # Best one so far, save it but keep looking for a better one
6140 ac_cv_path_EGREP="$ac_path_EGREP"
6141 ac_path_EGREP_max=$ac_count
6143 # 10*(2^10) chars as input seems more than enough
6144 test $ac_count -gt 10 && break
6145 done
6146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6147 esac
6149 $ac_path_EGREP_found && break 3
6150 done
6151 done
6152 done
6153 IFS=$as_save_IFS
6154 if test -z "$ac_cv_path_EGREP"; then
6155 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6157 else
6158 ac_cv_path_EGREP=$EGREP
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6164 $as_echo "$ac_cv_path_EGREP" >&6; }
6165 EGREP="$ac_cv_path_EGREP"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6169 $as_echo_n "checking for ANSI C header files... " >&6; }
6170 if ${ac_cv_header_stdc+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <stdlib.h>
6176 #include <stdarg.h>
6177 #include <string.h>
6178 #include <float.h>
6181 main ()
6185 return 0;
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_cv_header_stdc=yes
6190 else
6191 ac_cv_header_stdc=no
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 if test $ac_cv_header_stdc = yes; then
6196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <string.h>
6201 _ACEOF
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "memchr" >/dev/null 2>&1; then :
6205 else
6206 ac_cv_header_stdc=no
6208 rm -f conftest*
6212 if test $ac_cv_header_stdc = yes; then
6213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <stdlib.h>
6218 _ACEOF
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 $EGREP "free" >/dev/null 2>&1; then :
6222 else
6223 ac_cv_header_stdc=no
6225 rm -f conftest*
6229 if test $ac_cv_header_stdc = yes; then
6230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6231 if test "$cross_compiling" = yes; then :
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <ctype.h>
6237 #include <stdlib.h>
6238 #if ((' ' & 0x0FF) == 0x020)
6239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6241 #else
6242 # define ISLOWER(c) \
6243 (('a' <= (c) && (c) <= 'i') \
6244 || ('j' <= (c) && (c) <= 'r') \
6245 || ('s' <= (c) && (c) <= 'z'))
6246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6247 #endif
6249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6251 main ()
6253 int i;
6254 for (i = 0; i < 256; i++)
6255 if (XOR (islower (i), ISLOWER (i))
6256 || toupper (i) != TOUPPER (i))
6257 return 2;
6258 return 0;
6260 _ACEOF
6261 if ac_fn_c_try_run "$LINENO"; then :
6263 else
6264 ac_cv_header_stdc=no
6266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6267 conftest.$ac_objext conftest.beam conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6273 $as_echo "$ac_cv_header_stdc" >&6; }
6274 if test $ac_cv_header_stdc = yes; then
6276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6282 inttypes.h stdint.h unistd.h
6283 do :
6284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6288 cat >>confdefs.h <<_ACEOF
6289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6290 _ACEOF
6294 done
6297 for ac_header in sys/ipc.h sys/shm.h \
6298 sys/mmap.h sys/mman.h sysexits.h \
6299 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6301 do :
6302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307 _ACEOF
6311 done
6314 for ac_header in sys/mount.h
6315 do :
6316 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6318 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6319 cat >>confdefs.h <<_ACEOF
6320 #define HAVE_SYS_MOUNT_H 1
6321 _ACEOF
6325 done
6328 ac_header_dirent=no
6329 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6330 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6332 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6333 if eval \${$as_ac_Header+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #include <sys/types.h>
6339 #include <$ac_hdr>
6342 main ()
6344 if ((DIR *) 0)
6345 return 0;
6347 return 0;
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351 eval "$as_ac_Header=yes"
6352 else
6353 eval "$as_ac_Header=no"
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 eval ac_res=\$$as_ac_Header
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6359 $as_echo "$ac_res" >&6; }
6360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6361 cat >>confdefs.h <<_ACEOF
6362 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6363 _ACEOF
6365 ac_header_dirent=$ac_hdr; break
6368 done
6369 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6370 if test $ac_header_dirent = dirent.h; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6372 $as_echo_n "checking for library containing opendir... " >&6; }
6373 if ${ac_cv_search_opendir+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 ac_func_search_save_LIBS=$LIBS
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6380 /* Override any GCC internal prototype to avoid an error.
6381 Use char because int might match the return type of a GCC
6382 builtin and then its argument prototype would still apply. */
6383 #ifdef __cplusplus
6384 extern "C"
6385 #endif
6386 char opendir ();
6388 main ()
6390 return opendir ();
6392 return 0;
6394 _ACEOF
6395 for ac_lib in '' dir; do
6396 if test -z "$ac_lib"; then
6397 ac_res="none required"
6398 else
6399 ac_res=-l$ac_lib
6400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6402 if ac_fn_c_try_link "$LINENO"; then :
6403 ac_cv_search_opendir=$ac_res
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext
6407 if ${ac_cv_search_opendir+:} false; then :
6408 break
6410 done
6411 if ${ac_cv_search_opendir+:} false; then :
6413 else
6414 ac_cv_search_opendir=no
6416 rm conftest.$ac_ext
6417 LIBS=$ac_func_search_save_LIBS
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6420 $as_echo "$ac_cv_search_opendir" >&6; }
6421 ac_res=$ac_cv_search_opendir
6422 if test "$ac_res" != no; then :
6423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6429 $as_echo_n "checking for library containing opendir... " >&6; }
6430 if ${ac_cv_search_opendir+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 ac_func_search_save_LIBS=$LIBS
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6437 /* Override any GCC internal prototype to avoid an error.
6438 Use char because int might match the return type of a GCC
6439 builtin and then its argument prototype would still apply. */
6440 #ifdef __cplusplus
6441 extern "C"
6442 #endif
6443 char opendir ();
6445 main ()
6447 return opendir ();
6449 return 0;
6451 _ACEOF
6452 for ac_lib in '' x; do
6453 if test -z "$ac_lib"; then
6454 ac_res="none required"
6455 else
6456 ac_res=-l$ac_lib
6457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6459 if ac_fn_c_try_link "$LINENO"; then :
6460 ac_cv_search_opendir=$ac_res
6462 rm -f core conftest.err conftest.$ac_objext \
6463 conftest$ac_exeext
6464 if ${ac_cv_search_opendir+:} false; then :
6465 break
6467 done
6468 if ${ac_cv_search_opendir+:} false; then :
6470 else
6471 ac_cv_search_opendir=no
6473 rm conftest.$ac_ext
6474 LIBS=$ac_func_search_save_LIBS
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6477 $as_echo "$ac_cv_search_opendir" >&6; }
6478 ac_res=$ac_cv_search_opendir
6479 if test "$ac_res" != no; then :
6480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6487 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6488 if ${ac_cv_header_stat_broken+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 #include <sys/types.h>
6494 #include <sys/stat.h>
6496 #if defined S_ISBLK && defined S_IFDIR
6497 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6498 #endif
6500 #if defined S_ISBLK && defined S_IFCHR
6501 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6502 #endif
6504 #if defined S_ISLNK && defined S_IFREG
6505 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6506 #endif
6508 #if defined S_ISSOCK && defined S_IFREG
6509 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6510 #endif
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 ac_cv_header_stat_broken=no
6515 else
6516 ac_cv_header_stat_broken=yes
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6521 $as_echo "$ac_cv_header_stat_broken" >&6; }
6522 if test $ac_cv_header_stat_broken = yes; then
6524 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6529 $as_echo_n "checking for ANSI C header files... " >&6; }
6530 if ${ac_cv_header_stdc+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #include <stdlib.h>
6536 #include <stdarg.h>
6537 #include <string.h>
6538 #include <float.h>
6541 main ()
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 ac_cv_header_stdc=yes
6550 else
6551 ac_cv_header_stdc=no
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 if test $ac_cv_header_stdc = yes; then
6556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <string.h>
6561 _ACEOF
6562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6563 $EGREP "memchr" >/dev/null 2>&1; then :
6565 else
6566 ac_cv_header_stdc=no
6568 rm -f conftest*
6572 if test $ac_cv_header_stdc = yes; then
6573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <stdlib.h>
6578 _ACEOF
6579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6580 $EGREP "free" >/dev/null 2>&1; then :
6582 else
6583 ac_cv_header_stdc=no
6585 rm -f conftest*
6589 if test $ac_cv_header_stdc = yes; then
6590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6591 if test "$cross_compiling" = yes; then :
6593 else
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 #include <ctype.h>
6597 #include <stdlib.h>
6598 #if ((' ' & 0x0FF) == 0x020)
6599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6601 #else
6602 # define ISLOWER(c) \
6603 (('a' <= (c) && (c) <= 'i') \
6604 || ('j' <= (c) && (c) <= 'r') \
6605 || ('s' <= (c) && (c) <= 'z'))
6606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6607 #endif
6609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6611 main ()
6613 int i;
6614 for (i = 0; i < 256; i++)
6615 if (XOR (islower (i), ISLOWER (i))
6616 || toupper (i) != TOUPPER (i))
6617 return 2;
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_run "$LINENO"; then :
6623 else
6624 ac_cv_header_stdc=no
6626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6627 conftest.$ac_objext conftest.beam conftest.$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6633 $as_echo "$ac_cv_header_stdc" >&6; }
6634 if test $ac_cv_header_stdc = yes; then
6636 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6641 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6642 if ${ac_cv_header_sys_wait_h+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 #include <sys/types.h>
6648 #include <sys/wait.h>
6649 #ifndef WEXITSTATUS
6650 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6651 #endif
6652 #ifndef WIFEXITED
6653 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6654 #endif
6657 main ()
6659 int s;
6660 wait (&s);
6661 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6663 return 0;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 ac_cv_header_sys_wait_h=yes
6668 else
6669 ac_cv_header_sys_wait_h=no
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6674 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6675 if test $ac_cv_header_sys_wait_h = yes; then
6677 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6682 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6683 if ${ac_cv_header_time+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <sys/types.h>
6689 #include <sys/time.h>
6690 #include <time.h>
6693 main ()
6695 if ((struct tm *) 0)
6696 return 0;
6698 return 0;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 ac_cv_header_time=yes
6703 else
6704 ac_cv_header_time=no
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6709 $as_echo "$ac_cv_header_time" >&6; }
6710 if test $ac_cv_header_time = yes; then
6712 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6716 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6717 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6719 cat >>confdefs.h <<_ACEOF
6720 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6721 _ACEOF
6724 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6729 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6730 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6734 _ACEOF
6737 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6739 else
6740 case " $LIBOBJS " in
6741 *" fileblocks.$ac_objext "* ) ;;
6742 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6744 esac
6749 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6750 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_STRUCT_STAT_ST_RDEV 1
6754 _ACEOF
6757 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6763 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6764 if ${ac_cv_struct_tm+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <sys/types.h>
6770 #include <time.h>
6773 main ()
6775 struct tm tm;
6776 int *p = &tm.tm_sec;
6777 return !p;
6779 return 0;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 ac_cv_struct_tm=time.h
6784 else
6785 ac_cv_struct_tm=sys/time.h
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6790 $as_echo "$ac_cv_struct_tm" >&6; }
6791 if test $ac_cv_struct_tm = sys/time.h; then
6793 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6797 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6798 #include <$ac_cv_struct_tm>
6801 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_STRUCT_TM_TM_ZONE 1
6805 _ACEOF
6810 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6812 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6814 else
6815 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6817 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6818 ac_have_decl=1
6819 else
6820 ac_have_decl=0
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_DECL_TZNAME $ac_have_decl
6825 _ACEOF
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6828 $as_echo_n "checking for tzname... " >&6; }
6829 if ${ac_cv_var_tzname+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <time.h>
6835 #if !HAVE_DECL_TZNAME
6836 extern char *tzname[];
6837 #endif
6840 main ()
6842 return tzname[0][0];
6844 return 0;
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 ac_cv_var_tzname=yes
6849 else
6850 ac_cv_var_tzname=no
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6856 $as_echo "$ac_cv_var_tzname" >&6; }
6857 if test $ac_cv_var_tzname = yes; then
6859 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6864 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6865 if test "x$ac_cv_type_off_t" = xyes; then :
6867 else
6869 cat >>confdefs.h <<_ACEOF
6870 #define off_t long int
6871 _ACEOF
6875 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6876 if test "x$ac_cv_type_pid_t" = xyes; then :
6878 else
6880 cat >>confdefs.h <<_ACEOF
6881 #define pid_t int
6882 _ACEOF
6886 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6887 if test "x$ac_cv_type_size_t" = xyes; then :
6889 else
6891 cat >>confdefs.h <<_ACEOF
6892 #define size_t unsigned int
6893 _ACEOF
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6898 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6899 if ${ac_cv_type_uid_t+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <sys/types.h>
6906 _ACEOF
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 $EGREP "uid_t" >/dev/null 2>&1; then :
6909 ac_cv_type_uid_t=yes
6910 else
6911 ac_cv_type_uid_t=no
6913 rm -f conftest*
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6917 $as_echo "$ac_cv_type_uid_t" >&6; }
6918 if test $ac_cv_type_uid_t = no; then
6920 $as_echo "#define uid_t int" >>confdefs.h
6923 $as_echo "#define gid_t int" >>confdefs.h
6928 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6929 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6931 cat >>confdefs.h <<_ACEOF
6932 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6933 _ACEOF
6939 # Look for some functions
6940 for ac_func in getpagesize kqueue statfs statvfs \
6941 clone kse_create rfork_thread thr_create sa_register \
6942 getcontext makecontext setcontext sigaltstack swapcontext
6943 do :
6944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6946 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6947 cat >>confdefs.h <<_ACEOF
6948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6949 _ACEOF
6952 done
6958 for ac_header in $ac_header_list
6959 do :
6960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6963 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6964 cat >>confdefs.h <<_ACEOF
6965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6966 _ACEOF
6970 done
6979 for ac_func in getpagesize
6980 do :
6981 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6982 if test "x$ac_cv_func_getpagesize" = xyes; then :
6983 cat >>confdefs.h <<_ACEOF
6984 #define HAVE_GETPAGESIZE 1
6985 _ACEOF
6988 done
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6991 $as_echo_n "checking for working mmap... " >&6; }
6992 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 if test "$cross_compiling" = yes; then :
6996 ac_cv_func_mmap_fixed_mapped=no
6997 else
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 /* malloc might have been renamed as rpl_malloc. */
7002 #undef malloc
7004 /* Thanks to Mike Haertel and Jim Avera for this test.
7005 Here is a matrix of mmap possibilities:
7006 mmap private not fixed
7007 mmap private fixed at somewhere currently unmapped
7008 mmap private fixed at somewhere already mapped
7009 mmap shared not fixed
7010 mmap shared fixed at somewhere currently unmapped
7011 mmap shared fixed at somewhere already mapped
7012 For private mappings, we should verify that changes cannot be read()
7013 back from the file, nor mmap's back from the file at a different
7014 address. (There have been systems where private was not correctly
7015 implemented like the infamous i386 svr4.0, and systems where the
7016 VM page cache was not coherent with the file system buffer cache
7017 like early versions of FreeBSD and possibly contemporary NetBSD.)
7018 For shared mappings, we should conversely verify that changes get
7019 propagated back to all the places they're supposed to be.
7021 Grep wants private fixed already mapped.
7022 The main things grep needs to know about mmap are:
7023 * does it exist and is it safe to write into the mmap'd area
7024 * how to use it (BSD variants) */
7026 #include <fcntl.h>
7027 #include <sys/mman.h>
7029 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7030 char *malloc ();
7031 #endif
7033 /* This mess was copied from the GNU getpagesize.h. */
7034 #ifndef HAVE_GETPAGESIZE
7035 # ifdef _SC_PAGESIZE
7036 # define getpagesize() sysconf(_SC_PAGESIZE)
7037 # else /* no _SC_PAGESIZE */
7038 # ifdef HAVE_SYS_PARAM_H
7039 # include <sys/param.h>
7040 # ifdef EXEC_PAGESIZE
7041 # define getpagesize() EXEC_PAGESIZE
7042 # else /* no EXEC_PAGESIZE */
7043 # ifdef NBPG
7044 # define getpagesize() NBPG * CLSIZE
7045 # ifndef CLSIZE
7046 # define CLSIZE 1
7047 # endif /* no CLSIZE */
7048 # else /* no NBPG */
7049 # ifdef NBPC
7050 # define getpagesize() NBPC
7051 # else /* no NBPC */
7052 # ifdef PAGESIZE
7053 # define getpagesize() PAGESIZE
7054 # endif /* PAGESIZE */
7055 # endif /* no NBPC */
7056 # endif /* no NBPG */
7057 # endif /* no EXEC_PAGESIZE */
7058 # else /* no HAVE_SYS_PARAM_H */
7059 # define getpagesize() 8192 /* punt totally */
7060 # endif /* no HAVE_SYS_PARAM_H */
7061 # endif /* no _SC_PAGESIZE */
7063 #endif /* no HAVE_GETPAGESIZE */
7066 main ()
7068 char *data, *data2, *data3;
7069 const char *cdata2;
7070 int i, pagesize;
7071 int fd, fd2;
7073 pagesize = getpagesize ();
7075 /* First, make a file with some known garbage in it. */
7076 data = (char *) malloc (pagesize);
7077 if (!data)
7078 return 1;
7079 for (i = 0; i < pagesize; ++i)
7080 *(data + i) = rand ();
7081 umask (0);
7082 fd = creat ("conftest.mmap", 0600);
7083 if (fd < 0)
7084 return 2;
7085 if (write (fd, data, pagesize) != pagesize)
7086 return 3;
7087 close (fd);
7089 /* Next, check that the tail of a page is zero-filled. File must have
7090 non-zero length, otherwise we risk SIGBUS for entire page. */
7091 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7092 if (fd2 < 0)
7093 return 4;
7094 cdata2 = "";
7095 if (write (fd2, cdata2, 1) != 1)
7096 return 5;
7097 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7098 if (data2 == MAP_FAILED)
7099 return 6;
7100 for (i = 0; i < pagesize; ++i)
7101 if (*(data2 + i))
7102 return 7;
7103 close (fd2);
7104 if (munmap (data2, pagesize))
7105 return 8;
7107 /* Next, try to mmap the file at a fixed address which already has
7108 something else allocated at it. If we can, also make sure that
7109 we see the same garbage. */
7110 fd = open ("conftest.mmap", O_RDWR);
7111 if (fd < 0)
7112 return 9;
7113 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7114 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7115 return 10;
7116 for (i = 0; i < pagesize; ++i)
7117 if (*(data + i) != *(data2 + i))
7118 return 11;
7120 /* Finally, make sure that changes to the mapped area do not
7121 percolate back to the file as seen by read(). (This is a bug on
7122 some variants of i386 svr4.0.) */
7123 for (i = 0; i < pagesize; ++i)
7124 *(data2 + i) = *(data2 + i) + 1;
7125 data3 = (char *) malloc (pagesize);
7126 if (!data3)
7127 return 12;
7128 if (read (fd, data3, pagesize) != pagesize)
7129 return 13;
7130 for (i = 0; i < pagesize; ++i)
7131 if (*(data + i) != *(data3 + i))
7132 return 14;
7133 close (fd);
7134 return 0;
7136 _ACEOF
7137 if ac_fn_c_try_run "$LINENO"; then :
7138 ac_cv_func_mmap_fixed_mapped=yes
7139 else
7140 ac_cv_func_mmap_fixed_mapped=no
7142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7143 conftest.$ac_objext conftest.beam conftest.$ac_ext
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7148 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7149 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7151 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7154 rm -f conftest.mmap conftest.txt
7159 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7160 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7161 aros_config_ldflags=""
7163 aros_shared_default=yes
7165 aros_shared_cflags="-fPIC"
7166 aros_shared_aflags=""
7167 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7168 aros_kernel_ldflags="-Wl,-rpath,./lib"
7170 aros_kernel_ar_flags="cr"
7171 aros_target_ar_flags="cr"
7172 aros_target_nm_flags="-C -ul"
7173 aros_target_strip_flags="--strip-unneeded -R.comment"
7175 aros_compiler_libs=
7176 aros_arch_libs=
7178 aros_target_genmap="-Wl,-Map -Xlinker"
7180 # Native flavour stuff
7181 aros_serial_debug="0"
7183 # Palm native flavour stuff
7184 aros_palm_debug_hack="0"
7186 # Unix flavour stuff
7187 aros_nesting_supervisor="0"
7189 # Collect-aros stuff: "-ius" to ignore undefined symbols
7190 ignore_undefined_symbols=""
7192 # Check for X11 by default
7193 need_x11="auto"
7195 #-----------------------------------------------------------------------------
7198 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7199 # it switched on by default, and we use the host compiler, so it compiles AROS
7200 # code with this enabled resulting in link failures as we don't have support
7201 # for it.
7203 # We use two methods to disable it. For the host compiler (used to compile
7204 # some hosted modules), we test to see if the compiler supports stack
7205 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7206 # work on all platforms.
7208 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7209 # (this is done unconditionally, as it should have no effect on compilers
7210 # without the stack protection feature). This may be specific to the way that
7211 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7212 # strong enough to disable it in a generic way though, so we'll live with it
7213 # until another vendor ships GCC with it enabled in a different way, and deal
7214 # with it then.
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7218 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7219 save_cflags="$CFLAGS"
7220 CFLAGS="$CFLAGS -fno-stack-protector"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7225 main ()
7229 return 0;
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 use_no_stack_protector="yes"
7234 else
7235 use_no_stack_protector="no"
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7239 $as_echo "$use_no_stack_protector" >&6; }
7240 if test "x-$use_no_stack_protector" = "x-yes" ; then
7241 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7243 CFLAGS="$save_cflags"
7245 #-----------------------------------------------------------------------------
7247 # Disable pointer-signedness warnings if the compiler recognises the option
7248 # (this only works for the host compiler at the moment)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7251 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7252 save_cflags="$CFLAGS"
7253 CFLAGS="$CFLAGS -Wno-pointer-sign"
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7258 main ()
7262 return 0;
7264 _ACEOF
7265 if ac_fn_c_try_compile "$LINENO"; then :
7266 use_no_sign_warning="yes"
7267 else
7268 use_no_sign_warning="no"
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7272 $as_echo "$use_no_sign_warning" >&6; }
7273 if test "x-$use_no_sign_warning" = "x-yes" ; then
7274 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7276 CFLAGS="$save_cflags"
7278 #-----------------------------------------------------------------------------
7280 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7283 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7284 save_cflags="$CFLAGS"
7285 CFLAGS="$CFLAGS -fgnu89-inline"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7290 main ()
7294 return 0;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 use_gnu89_inline="yes"
7299 else
7300 use_gnu89_inline="no"
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7304 $as_echo "$use_gnu89_inline" >&6; }
7305 if test "x-$use_gnu89_inline" = "x-yes" ; then
7306 gnu89_inline="-fgnu89-inline"
7308 CFLAGS="$save_cflags"
7310 #-----------------------------------------------------------------------------
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7313 $as_echo_n "checking for type of build... " >&6; }
7314 # Check whether --enable-build_type was given.
7315 if test "${enable_build_type+set}" = set; then :
7316 enableval=$enable_build_type; build_type=$enableval
7317 else
7318 build_type="personal"
7322 if test "$build_type" = "nightly"; then
7323 build_type_string="NIGHTLY"
7324 elif test "$build_type" = "snapshot"; then
7325 build_type_string="SNAPSHOT"
7326 elif test "$build_type" = "milestone"; then
7327 build_type_string="MILESTONE"
7328 elif test "$build_type" = "release"; then
7329 build_type_string="RELEASE"
7330 else
7331 build_type_string="PERSONAL"
7332 build_type="personal"
7335 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7338 $as_echo "$build_type" >&6; }
7340 #-----------------------------------------------------------------------------
7341 all_debug_types="messages stack modules mungwall symbols"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7344 $as_echo_n "checking which debug types to enable... " >&6; }
7345 # Check whether --enable-debug was given.
7346 if test "${enable_debug+set}" = set; then :
7347 enableval=$enable_debug; debug="$enableval"
7348 else
7349 debug=""
7353 if test "$debug" = "" -o "$debug" = "no"; then
7354 debug="none"
7355 elif test "$debug" = "yes"; then
7356 debug="all"
7359 if test "$debug" = "all" ; then
7360 debug="messages stack modules symbols"
7361 for d in $all_debug_types; do
7362 export aros_${d}_debug="1"
7363 done
7364 else
7365 for d in $all_debug_types; do
7366 export aros_${d}_debug="0"
7367 done
7370 if test "$debug" != "none"; then
7371 debug=`echo $debug | sed s/,/\ /g`
7372 for d in $debug; do
7373 found="0"
7374 for d2 in $all_debug_types; do
7375 if test "$d2" = "$d"; then
7376 found="1"
7377 break
7379 done
7380 if test "$found" = "0"; then
7381 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7383 export aros_${d}_debug="1"
7384 done
7385 aros_debug="yes"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7388 $as_echo "$debug" >&6; }
7390 if test "$aros_messages_debug" = "1"; then
7391 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7392 else
7393 aros_messages_debug=""
7395 if test "$aros_symbols_debug" = "1"; then
7396 aros_symbols_debug="-g"
7397 else
7398 aros_symbols_debug=""
7401 # These are the flags to pass when compiling debugged programs
7402 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7403 aros_debug_aflags=""
7404 aros_debug_ldflags="$aros_symbols_debug"
7406 #-----------------------------------------------------------------------------
7407 # Checking for distcc and ccache.
7409 # Always apply the transforms in this particular order. Basically you should
7410 # always run 'ccache distcc compiler' in that order for the best performance.
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7413 $as_echo_n "checking whether to enable distcc... " >&6; }
7414 # Check whether --enable-distcc was given.
7415 if test "${enable_distcc+set}" = set; then :
7416 enableval=$enable_distcc; distcc="$enableval"
7417 else
7418 distcc="no"
7421 if test "$distcc" != "" -a "$distcc" != "no"; then
7422 # AC_CHECK_PROG will print out the result in this case
7423 # Extract the first word of "distcc", so it can be a program name with args.
7424 set dummy distcc; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_path_DISTCC+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 case $DISTCC in
7431 [\\/]* | ?:[\\/]*)
7432 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7446 done
7447 done
7448 IFS=$as_save_IFS
7450 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7452 esac
7454 DISTCC=$ac_cv_path_DISTCC
7455 if test -n "$DISTCC"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7457 $as_echo "$DISTCC" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7470 $as_echo_n "checking whether to enable ccache... " >&6; }
7471 # Check whether --enable-ccache was given.
7472 if test "${enable_ccache+set}" = set; then :
7473 enableval=$enable_ccache; ccache="$enableval"
7474 else
7475 ccache="no"
7478 if test "$ccache" != "" -a "$ccache" != "no"; then
7479 # AC_CHECK_PROG will print out the result in this case
7480 # Extract the first word of "ccache", so it can be a program name with args.
7481 set dummy ccache; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_CCACHE+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 if test -n "$CCACHE"; then
7488 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_CCACHE="ccache"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7503 IFS=$as_save_IFS
7507 CCACHE=$ac_cv_prog_CCACHE
7508 if test -n "$CCACHE"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7510 $as_echo "$CCACHE" >&6; }
7511 else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7522 #-----------------------------------------------------------------------------
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7524 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7526 # Check whether --with-kernel-gcc-version was given.
7527 if test "${with_kernel_gcc_version+set}" = set; then :
7528 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7529 else
7530 kernel_tool_version=""
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7534 $as_echo "$kernel_tool_version" >&6; }
7536 #-----------------------------------------------------------------------------
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7538 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7540 # Check whether --with-gcc-version was given.
7541 if test "${with_gcc_version+set}" = set; then :
7542 withval=$with_gcc_version; target_tool_version="$withval"
7543 else
7544 target_tool_version=""
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7548 $as_echo "$target_tool_version" >&6; }
7550 #-----------------------------------------------------------------------------
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7552 $as_echo_n "checking what optimization flags to use... " >&6; }
7554 # Check whether --with-optimization was given.
7555 if test "${with_optimization+set}" = set; then :
7556 withval=$with_optimization; optimization="$withval"
7557 else
7558 optimization="unknown"
7561 if test "$optimization" = "unknown"; then
7562 if test "$debug" != "none"; then
7563 optimization="-O0"
7564 else
7565 optimization="-O2"
7568 aros_config_cflags="$aros_config_cflags $optimization"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7570 $as_echo "$optimization" >&6; }
7572 #-----------------------------------------------------------------------------
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7574 $as_echo_n "checking what paranoia flags to use... " >&6; }
7576 # Check whether --with-paranoia was given.
7577 if test "${with_paranoia+set}" = set; then :
7578 withval=$with_paranoia; paranoia_flags="$withval"
7579 else
7580 paranoia_flags="default"
7583 if test "$paranoia_flags" = "default"; then
7584 paranoia_flags=""
7585 else if test "$paranoia_flags" = "yes"; then
7586 paranoia_flags="-Wall -Werror"
7587 fi fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7589 $as_echo "$paranoia_flags" >&6; }
7590 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7592 #-----------------------------------------------------------------------------
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7594 $as_echo_n "checking what target variant to enable... " >&6; }
7595 # Check whether --enable-target_variant was given.
7596 if test "${enable_target_variant+set}" = set; then :
7597 enableval=$enable_target_variant; target_variant=$enableval
7598 else
7599 target_variant=""
7602 if test "$target_variant" = ""; then
7603 aros_target_variant=""
7604 aros_target_suffix=""
7605 enableval="none"
7606 else
7607 aros_target_variant="$target_variant"
7608 aros_target_suffix="-$target_variant"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7611 $as_echo "$enableval" >&6; }
7613 #-----------------------------------------------------------------------------
7614 # Target-specific defaults. You can override then on a per-target basis.
7616 # Bootloader name. Currently used by PC target.
7617 target_bootloader="none"
7619 #-----------------------------------------------------------------------------
7620 # Additional options for some specific targets
7622 case "$aros_target_variant" in
7623 ios)
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7625 $as_echo_n "checking XCode path... " >&6; }
7627 # Check whether --with-xcode was given.
7628 if test "${with_xcode+set}" = set; then :
7629 withval=$with_xcode; aros_xcode_path="$withval"
7630 else
7631 aros_xcode_path="/Developer"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7635 $as_echo "$aros_xcode_path" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7638 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7640 # Check whether --with-sdk-version was given.
7641 if test "${with_sdk_version+set}" = set; then :
7642 withval=$with_sdk_version; aros_sdk_version="$withval"
7643 else
7644 aros_sdk_version="4.1"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7648 $as_echo "$aros_sdk_version" >&6; }
7652 "android")
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7654 $as_echo_n "checking Android SDK path... " >&6; }
7656 # Check whether --with-sdk was given.
7657 if test "${with_sdk+set}" = set; then :
7658 withval=$with_sdk; aros_android_sdk="$withval"
7659 else
7660 aros_android_sdk=$default_android_sdk
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7664 $as_echo "$aros_android_sdk" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7667 $as_echo_n "checking Android NDK path... " >&6; }
7669 # Check whether --with-ndk was given.
7670 if test "${with_ndk+set}" = set; then :
7671 withval=$with_ndk; aros_android_ndk="$withval"
7672 else
7673 aros_android_ndk="none"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7677 $as_echo "$aros_android_ndk" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7680 $as_echo_n "checking what Android SDK version to use... " >&6; }
7682 # Check whether --with-sdk-version was given.
7683 if test "${with_sdk_version+set}" = set; then :
7684 withval=$with_sdk_version; aros_sdk_version="$withval"
7685 else
7686 aros_sdk_version="12"
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7690 $as_echo "$aros_sdk_version" >&6; }
7692 if test "$aros_android_ndk" != "none"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7694 $as_echo_n "checking what Android NDK version to use... " >&6; }
7696 # Check whether --with-ndk-version was given.
7697 if test "${with_ndk_version+set}" = set; then :
7698 withval=$with_ndk_version; aros_ndk_version="$withval"
7699 else
7700 aros_ndk_version="9"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7704 $as_echo "$aros_ndk_version" >&6; }
7707 export PATH="$aros_android_sdk/tools:$PATH"
7708 # Extract the first word of "$android_tool", so it can be a program name with args.
7709 set dummy $android_tool; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_path_android_tool+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 case $android_tool in
7716 [\\/]* | ?:[\\/]*)
7717 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7731 done
7732 done
7733 IFS=$as_save_IFS
7736 esac
7738 android_tool=$ac_cv_path_android_tool
7739 if test -n "$android_tool"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7741 $as_echo "$android_tool" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7748 if test "$android_tool" = ""; then
7749 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7752 aros_android_level=android-$aros_sdk_version
7753 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7754 echo "Platform $aros_android_level is not installed in your SDK"
7755 echo "Use --with-sdk-version=<API level number> to select another platform version"
7756 echo "You can check what plaform versions are installed in your SDK"
7757 echo "by examining contents of $aros_android_sdk/platforms directory"
7758 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7761 # Extract the first word of "ant", so it can be a program name with args.
7762 set dummy ant; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_path_ant+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 case $ant in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7784 done
7785 done
7786 IFS=$as_save_IFS
7789 esac
7791 ant=$ac_cv_path_ant
7792 if test -n "$ant"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7794 $as_echo "$ant" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 if test "$ant" = ""; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7803 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7806 if test "$host_os" = "mingw32"; then
7807 android_tool="cmd //c $android_tool"
7811 esac
7813 #-----------------------------------------------------------------------------
7814 # External toolchains
7815 kernel_tool_prefix="none"
7816 aros_tool_prefix="none"
7817 elf_tool_prefix="${target_cpu}-elf-"
7819 # This is the target configuration switch.
7820 case "$target_os" in
7821 linux*)
7822 aros_target_arch="linux"
7823 aros_target_family="unix"
7824 case "$target_cpu" in
7825 *m68k*)
7826 aros_target_cpu="m68k"
7827 aros_object_format="m68kelf"
7828 aros_flavour="emulcompat"
7829 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7830 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7831 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7832 gcc_target_cpu="mc68000"
7834 *i?86*)
7835 aros_target_cpu="i386"
7836 aros_object_format="elf_i386"
7837 aros_flavour="emulation"
7838 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7839 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7840 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7841 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7842 aros_config_ldflags="-m32 -march=i486"
7843 aros_kernel_ldflags="-Wl,-melf_i386"
7844 aros_default_wbdepth=8
7845 gcc_target_cpu="i386"
7846 pci_hidd_target="hidd-pci-linux"
7847 android_tool_dir_prefix="x86"
7848 android_tool_prefix="i686-android-linux"
7849 android_ndk_arch="x86"
7851 *x86_64*)
7852 aros_target_cpu="x86_64"
7853 aros_object_format="elf_x86_64"
7854 aros_flavour="emulation"
7855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7856 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7857 aros_default_wbdepth=8
7858 pci_hidd_target="hidd-pci-linux"
7860 *powerpc*)
7861 aros_target_cpu="ppc"
7862 aros_object_format="elf32ppc"
7863 aros_flavour="emulation"
7864 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7865 aros_default_wbdepth=8
7866 gcc_target_cpu="ppc"
7868 # TODO
7869 # Same as powerpc, but I need this for the nightly build to work again.
7870 # Actually, the nightly should be made working with powerpc target.
7871 # That just was too much work for the moment, another week or two.
7872 *ppc*)
7873 aros_target_cpu="ppc"
7874 aros_object_format="elf32ppc"
7875 aros_flavour="emulation"
7876 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7877 aros_default_wbdepth=8
7878 gcc_target_cpu="ppc"
7880 *armhf*)
7881 aros_target_cpu="arm"
7882 target_cpu="arm"
7883 aros_object_format="armelf_linux_eabi"
7884 aros_flavour="emulation"
7885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7886 gcc_target_cpu="arm"
7887 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7888 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7889 aros_arch_libs="-laeabi"
7890 gcc_default_float_abi="hard"
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-gnueabihf-"
7896 *arm*)
7897 aros_target_cpu="arm"
7898 aros_object_format="armelf_linux_eabi"
7899 aros_flavour="emulation"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7901 gcc_target_cpu="arm"
7902 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7903 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7904 aros_arch_libs="-laeabi"
7905 android_tool_dir_prefix="arm-linux-androideabi"
7906 android_tool_prefix="arm-linux-androideabi"
7907 android_ndk_arch="arm"
7908 kernel_tool_prefix="arm-linux-gnueabi-"
7911 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7913 esac
7914 case "$aros_target_variant" in
7915 android)
7917 if test "$android_ndk_arch" = ""; then
7918 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7921 aros_default_wbwidth=320
7922 aros_default_wbheight=480
7923 if test "$aros_android_ndk" = "none"; then
7924 aros_kernel_cflags="-mandroid"
7925 aros_kernel_ldflags="-mandroid"
7926 CFLAGS="-mandroid"
7927 else
7928 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7929 kernel_tool_version=""
7930 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7931 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7932 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7933 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7934 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7936 need_x11=no
7937 x11_hidd_target=kernel-hidd-androidgfx-kobj
7938 # Disable implicit PIC mode
7939 aros_target_cflags="$aros_target_cflags -fno-pic"
7940 kernel_tool_prefix="$android_tool_prefix-"
7942 esac
7946 aros_target_arch="pc"
7947 aros_shared_default="no"
7948 target_bootloader="grub2"
7949 case "$target_cpu" in
7950 *i?86*)
7951 aros_target_cpu="i386"
7954 if test "$aros_object_format" = "" ; then
7955 aros_object_format="elf_i386"
7957 aros_flavour="standalone"
7958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7959 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7960 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7961 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7962 aros_config_ldflags="-m32 -march=i486"
7963 aros_kernel_ldflags="-Wl,-melf_i386"
7964 aros_default_wbwidth=640
7965 aros_default_wbheight=480
7966 gcc_target_cpu="i386"
7968 *x86_64*)
7969 aros_target_cpu="x86_64"
7970 aros_serial_debug=1
7971 if test "$aros_object_format" = "" ; then
7972 aros_object_format="elf_x86_64"
7974 aros_flavour="standalone"
7975 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7976 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7977 aros_kernel_ldflags=""
7978 aros_default_wbwidth=640
7979 aros_default_wbheight=480
7982 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7984 esac
7987 prep)
7988 aros_target_arch="prep"
7989 aros_shared_default="no"
7990 aros_target_cpu="ppc"
7991 aros_object_format="elf32ppc"
7992 aros_flavour="ppcnative"
7993 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7994 aros_kernel_ldflags=""
7995 aros_default_wbwidth=640
7996 aros_default_wbheight=480
7997 gcc_target_cpu="ppc"
8000 freebsd*)
8001 aros_target_arch="freebsd"
8002 aros_target_family="unix"
8003 aros_target_cpu="i386"
8004 aros_flavour="emulation"
8005 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8006 gcc_target_cpu="i386"
8008 aros_target_strip_flags="-x"
8011 darwin*)
8012 aros_target_arch="darwin"
8013 aros_target_family="unix"
8014 aros_flavour="emulation"
8015 case "$target_cpu" in
8016 *i?86*)
8017 aros_ios_platform="iPhoneSimulator"
8018 aros_target_cpu="i386"
8019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8020 aros_kernel_ldflags=""
8021 aros_macosx_version="10.4"
8022 aros_default_wbdepth=8
8023 gcc_target_cpu="i386"
8024 aros_object_format="elf_i386"
8025 aros_kernel_ar_flags="-cr"
8026 aros_target_strip_flags="-x"
8027 kernel_tool_flags="-m32"
8029 *x86_64*)
8030 aros_target_cpu="x86_64"
8031 aros_object_format="elf_x86_64"
8032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8033 aros_macosx_version="10.6"
8034 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8035 aros_kernel_cflags="-m64"
8036 aros_kernel_ldflags="-m64"
8037 aros_target_cflags="-mcmodel=large"
8038 aros_default_wbdepth=8
8039 aros_kernel_ar="ar"
8040 aros_kernel_ar_flags="-cr"
8041 aros_kernel_ld="ld"
8042 aros_kernel_as="as"
8043 aros_kernel_ranlib="ranlib"
8044 aros_kernel_nm="nm"
8045 aros_kernel_strip="strip"
8046 kernel_tool_prefix="i686-apple-darwin10-"
8048 *ppc*)
8049 aros_target_cpu="ppc"
8050 aros_object_format="elf32ppc"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8052 aros_kernel_ldflags=""
8053 aros_macosx_version="10.0"
8054 aros_default_wbdepth=8
8055 gcc_target_cpu="ppc"
8056 aros_kernel_ar="ar"
8057 aros_kernel_ar_flags="-cr"
8058 aros_kernel_ld="ld -arch ppc"
8059 aros_kernel_as="as -arch ppc"
8060 aros_kernel_ranlib="ranlib -arch ppc"
8061 aros_kernel_nm="nm -arch ppc"
8062 aros_kernel_strip="strip -arch ppc"
8063 kernel_tool_prefix="powerpc-apple-darwin10-"
8065 *arm*)
8066 aros_ios_platform="iPhoneOS"
8067 aros_target_cpu="arm"
8068 aros_object_format="armelf_linux_eabi"
8069 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8070 aros_arch_libs="-laeabi"
8071 aros_default_wbdepth=8
8072 gcc_target_cpu="arm"
8073 aros_kernel_ar="ar"
8074 aros_kernel_ar_flags="-cr"
8075 aros_kernel_ld="ld -arch arm"
8076 aros_kernel_ranlib="ranlib -arch arm"
8077 kernel_tool_prefix="arm-apple-darwin10-"
8078 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8081 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8083 esac
8084 case "$aros_target_variant" in
8085 ios)
8086 aros_ios_version="3.0"
8087 aros_default_wbwidth=320
8088 aros_default_wbheight=480
8089 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8090 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8091 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8092 need_x11=no
8093 # This is here because it may depend on iOS or SDK version
8094 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8095 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8096 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8099 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8100 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8102 esac
8105 dragonfly*)
8106 aros_target_arch="dragonfly"
8107 aros_target_family="unix"
8108 aros_flavour="emulation"
8109 case "$target_cpu" in
8110 *i?86*)
8111 aros_target_cpu="i386"
8112 aros_object_format="elf_i386"
8113 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8115 *x86_64*)
8116 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8117 aros_target_cpu="x86_64"
8118 aros_object_format="elf_x86_64"
8119 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8122 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8124 esac
8127 netbsd*)
8128 aros_target_arch="netbsd"
8129 aros_target_family="unix"
8130 case "$target_cpu" in
8131 *m68k*)
8132 aros_target_cpu="m68k"
8133 aros_object_format="m68kelf"
8134 aros_flavour="emulcompat"
8135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8136 gcc_target_cpu="mc68000"
8138 *i?86*)
8139 aros_target_cpu="i386"
8140 aros_object_format="elf_i386"
8141 aros_flavour="emulation"
8142 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8143 aros_default_wbdepth=8
8144 gcc_target_cpu="i386"
8147 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8149 esac
8150 aros_target_genmap="-Wl,-M -Xlinker >"
8151 aros_flavour="emulation"
8152 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8155 openbsd*)
8156 aros_target_arch="openbsd"
8157 aros_target_family="unix"
8158 case "$target_cpu" in
8159 *i?86*)
8160 aros_target_cpu="i386"
8161 aros_object_format="elf_i386"
8162 aros_flavour="emulation"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8164 gcc_target_cpu="i386"
8167 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8169 esac
8170 aros_target_genmap="-Wl,-M -Xlinker >"
8171 aros_target_nm_flags="-u"
8172 aros_flavour="emulation"
8175 solaris*)
8176 aros_target_arch="solaris"
8177 aros_target_family="unix"
8178 case "$target_cpu" in
8179 *i?86*)
8180 aros_target_cpu="i386"
8181 aros_object_format="elf_i386"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8184 aros_default_wbdepth=8
8185 gcc_target_cpu="i386"
8187 *sparc*)
8188 aros_target_cpu="sparc"
8189 aros_object_format="elf_sparc"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8191 gcc_target_cpu="sparc"
8194 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8196 esac
8197 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8198 aros_flavour="emulation"
8201 morphos*)
8202 aros_target_arch="morphos"
8203 aros_shared_default="no"
8204 aros_target_cpu="ppc"
8205 aros_object_format="elf_ppc"
8206 aros_flavour="nativecompat"
8207 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8208 gcc_target_cpu="ppc"
8211 sam440)
8212 aros_target_arch="sam440"
8213 aros_shared_default="no"
8214 aros_target_cpu="ppc"
8215 aros_object_format="elf32ppc"
8216 aros_flavour="ppcnative"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8218 aros_kernel_ldflags=""
8219 aros_default_wbwidth=1024
8220 aros_default_wbheight=768
8221 aros_default_wbdepth=24
8222 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8223 gcc_target_cpu="powerpc"
8226 efika)
8227 aros_target_arch="efika"
8228 aros_shared_default="no"
8229 aros_target_cpu="arm"
8230 aros_object_format="armelf_linux_eabi"
8231 aros_flavour="standalone"
8232 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8233 aros_kernel_ldflags=""
8234 aros_default_wbwidth=1024
8235 aros_default_wbheight=600
8236 aros_arch_libs="-laeabi"
8237 gcc_default_cpu="armv7-a"
8238 gcc_default_fpu="vfpv3"
8239 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8240 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8241 case "$target_cpu" in
8242 *armhf*)
8243 gcc_default_float_abi="hard"
8244 target_cpu=arm
8245 aros_target_cpu=arm
8247 *arm*)
8248 gcc_default_float_abi="softfp"
8251 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8253 esac
8256 chrp)
8257 aros_target_arch="chrp"
8258 aros_shared_default="no"
8259 aros_target_cpu="ppc"
8260 aros_object_format="elf32ppc"
8261 aros_flavour="ppcnative"
8262 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8263 aros_kernel_ldflags=""
8264 aros_default_wbwidth=640
8265 aros_default_wbheight=480
8266 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8267 gcc_target_cpu="powerpc"
8268 case "$aros_target_variant" in
8269 efika)
8270 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8272 esac
8275 r*pi)
8276 aros_flavour="standalone"
8277 aros_target_arch="raspi"
8278 aros_target_cpu="arm"
8279 aros_object_format="armelf_linux_eabi"
8280 aros_shared_default="no"
8281 aros_arch_libs="-laeabi"
8283 gcc_default_cpu="armv6"
8284 gcc_default_cpu_tune="arm1176jzf-s"
8285 case "$target_cpu" in
8286 *armhf*)
8287 gcc_default_float_abi="hard"
8289 *arm*)
8290 gcc_default_float_abi="softfp"
8293 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8295 esac
8297 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8298 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8299 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8300 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8301 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8304 amiga*)
8305 aros_target_arch="amiga"
8306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8307 aros_shared_default="no"
8309 case "$target_cpu" in
8310 *m68k*)
8311 # Check whether --enable-amigaos_compliance was given.
8312 if test "${enable_amigaos_compliance+set}" = set; then :
8313 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8316 aros_enable_mmu=no
8317 aros_target_cpu="m68k"
8318 aros_object_format="m68kelf"
8319 aros_flavour="standcompat"
8320 gcc_target_cpu="m68000"
8321 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8322 aros_config_aflags="$aros_config_aflags"
8323 aros_target_strip_flags="-R.comment --strip-debug"
8324 aros_default_wbwidth=640
8325 aros_default_wbheight=256
8326 aros_default_wbdepth=2
8328 *ppc*)
8329 aros_cpu="ppc"
8330 aros_flavour="native"
8331 gcc_target_cpu="ppc"
8334 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8336 esac
8339 mingw*)
8340 aros_target_arch="mingw32"
8341 aros_shared_default="no"
8342 aros_flavour="emulation"
8343 aros_shared_cflags=""
8344 need_crosstools="yes"
8345 need_dlopen="no"
8346 rescomp="windres"
8347 case "$target_cpu" in
8348 *i?86*)
8349 aros_target_cpu="i386"
8350 aros_object_format="elf_i386"
8351 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8352 aros_default_wbdepth=8
8353 gcc_target_cpu="i386"
8355 kernel_tool_prefix="i386-mingw32-"
8357 *x86_64*)
8358 aros_target_cpu="x86_64"
8359 aros_object_format="elf_x86_64"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8361 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8362 aros_default_wbdepth=8
8363 kernel_tool_prefix="x86_64-w64-mingw32-"
8365 *arm*)
8366 aros_target_cpu="arm"
8367 aros_object_format="armelf_linux_eabi"
8368 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8369 aros_arch_libs="-laeabi"
8370 aros_default_wbdepth=8
8371 gcc_target_cpu="arm"
8372 gcc_default_float_abi="soft"
8373 kernel_tool_prefix="arm-mingw32ce-"
8374 aros_default_wbwidth=160
8375 aros_default_wbheight=160
8378 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8380 esac
8381 if test $host_os = "cygwin"; then
8382 aros_kernel_cflags="-mno-cygwin"
8385 pp*)
8386 aros_target_arch="pp"
8387 aros_shared_default="no"
8388 case "$target_cpu" in
8389 *m68k*)
8390 aros_target_cpu="m68k"
8391 aros_object_format="m68kelf"
8392 aros_flavour="palmnative"
8393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8394 aros_default_wbwidth=160
8395 aros_default_wbheight=160
8396 aros_default_wbdepth=1
8397 aros_target_ar_flags="cru"
8398 aros_compiler_libs="-lgcc1"
8399 aros_shared_default=no
8400 aros_shared_cflags="-fpic"
8401 aros_shared_aflags=""
8402 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8403 aros_kernel_ldflags="-Wl,-rpath,./lib"
8404 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8405 aros_debug_aflags=""
8406 aros_debug_ldflags="$aros_symbols_debug"
8407 aros_mungwall_debug="0"
8408 aros_modules_debug="0"
8409 gcc_target_cpu="mc68000"
8410 ignore_undefined_symbols="-ius"
8413 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8415 esac
8418 mac*)
8419 aros_target_arch="mac"
8420 aros_shared_default="no"
8421 case "$target_cpu" in
8422 *m68k*)
8423 aros_target_cpu="m68k"
8424 aros_object_format="m68kelf"
8425 aros_flavour="mac68knative"
8426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8427 aros_default_wbwidth=512
8428 aros_default_wbheight=384
8429 aros_default_wbdepth=8
8430 aros_target_ar_flags="cru"
8431 aros_compiler_libs="-lgcc1"
8432 aros_shared_default=no
8433 aros_shared_cflags="-fpic"
8434 aros_shared_aflags=""
8435 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8436 aros_kernel_ldflags="-Wl,-rpath,./lib"
8437 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8438 aros_debug_aflags=""
8439 aros_debug_ldflags="$aros_symbols_debug"
8440 aros_mungwall_debug="0"
8441 aros_modules_debug="0"
8442 gcc_target_cpu="mc68000"
8443 ignore_undefined_symbols="-ius"
8446 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8448 esac
8452 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8454 esac
8456 #-----------------------------------------------------------------------------
8457 crosstools_guess=yes
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8460 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8462 # Check whether --with-kernel-toolchain-prefix was given.
8463 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8464 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8468 $as_echo "$kernel_tool_prefix" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8471 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8473 # Check whether --with-elf-toolchain-prefix was given.
8474 if test "${with_elf_toolchain_prefix+set}" = set; then :
8475 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8476 crosstools_guess=no
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8480 $as_echo "$elf_tool_prefix" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8483 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8485 # Check whether --with-aros-toolchain was given.
8486 if test "${with_aros_toolchain+set}" = set; then :
8487 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8488 crosstools_guess=no
8491 if test "$aros_tool_prefix" = "yes" ; then
8492 aros_tool_prefix=$aros_target_cpu-aros-
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8495 $as_echo "$aros_tool_prefix" >&6; }
8497 #-----------------------------------------------------------------------------
8498 # Checking if we should build crosstools..
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8500 $as_echo_n "checking whether to build crosstools... " >&6; }
8501 # Check whether --enable-crosstools was given.
8502 if test "${enable_crosstools+set}" = set; then :
8503 enableval=$enable_crosstools; crosstools="$enableval"
8504 else
8505 crosstools="$crosstools_guess"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8509 $as_echo "$crosstools" >&6; }
8511 if test "${crosstools}" = "yes"; then
8512 if test "${crosstools_guess}" = "no"; then
8513 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8518 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8520 # Check whether --with-aros-toolchain-install was given.
8521 if test "${with_aros_toolchain_install+set}" = set; then :
8522 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8525 if test "x$aros_toolchain_install" = "x"; then
8526 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8527 else
8528 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8529 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8532 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8535 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8536 # Check whether --enable-objc was given.
8537 if test "${enable_objc+set}" = set; then :
8538 enableval=$enable_objc; objc="$enableval"
8539 else
8540 objc="yes"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8544 $as_echo "$objc" >&6; }
8545 if test "x$objc" = "xyes"; then
8546 objc_target="objc"
8547 else
8548 objc_target="no-objc"
8551 # Now process extra architecture-specific options.
8552 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8553 # as well as floating-point ABI.
8554 case "$aros_target_cpu" in
8555 arm)
8556 if test "$gcc_default_cpu" = ""; then
8557 gcc_default_cpu="armv6"
8559 if test "$gcc_default_fpu" = ""; then
8560 gcc_default_fpu="vfp"
8562 if test "$gcc_default_float_abi" = ""; then
8563 gcc_default_float_abi="softfp"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8567 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8569 # Check whether --with-cpu was given.
8570 if test "${with_cpu+set}" = set; then :
8571 withval=$with_cpu; aros_gcc_cpu="$withval"
8572 else
8573 aros_gcc_cpu=$gcc_default_cpu
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8577 $as_echo "$aros_gcc_cpu" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8580 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8582 # Check whether --with-fpu was given.
8583 if test "${with_fpu+set}" = set; then :
8584 withval=$with_fpu; aros_gcc_fpu="$withval"
8585 else
8586 aros_gcc_fpu=$gcc_default_fpu
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8590 $as_echo "$aros_gcc_fpu" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8593 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8595 # Check whether --with-float was given.
8596 if test "${with_float+set}" = set; then :
8597 withval=$with_float; aros_gcc_float_abi="$withval"
8598 else
8599 aros_gcc_float_abi=$gcc_default_float_abi
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8603 $as_echo "$aros_gcc_float_abi" >&6; }
8605 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"
8606 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"
8608 esac
8610 # Some formats need custom ELF specs.
8611 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8612 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8613 elf_specs_in=config/${aros_object_format}-specs.in
8614 else
8615 elf_specs_in=config/elf-specs.in
8618 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8619 # Since we override specs, we may need to put these defines there
8620 if test "$gcc_target_cpu" != ""; then
8621 gcc_target_cpu="-D__${gcc_target_cpu}__"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8625 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8627 # Check whether --with-portssources was given.
8628 if test "${with_portssources+set}" = set; then :
8629 withval=$with_portssources; with_portssrcdir=$withval
8630 else
8631 with_portssrcdir="default"
8634 if test "$with_portssrcdir" = "default"; then
8635 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8636 else
8637 AROS_PORTSSRCDIR="$with_portssrcdir"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8640 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8643 $as_echo_n "checking which bootloader to use... " >&6; }
8645 # Check whether --with-bootloader was given.
8646 if test "${with_bootloader+set}" = set; then :
8647 withval=$with_bootloader; target_bootloader=$withval
8648 else
8649 target_bootloader=$target_bootloader
8652 if test "$target_bootloader" = "none"; then
8653 aros_target_bootloader=""
8654 else
8655 aros_target_bootloader="$target_bootloader"
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8658 $as_echo "$target_bootloader" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8661 $as_echo_n "checking which icon-set to use... " >&6; }
8663 # Check whether --with-iconset was given.
8664 if test "${with_iconset+set}" = set; then :
8665 withval=$with_iconset; target_iconset=$withval
8666 else
8667 target_iconset="default"
8670 if test "$target_iconset" = "default"; then
8671 aros_target_iconset="Gorilla"
8672 target_iconset="default (Gorilla)"
8673 else
8674 aros_target_iconset="$target_iconset"
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8677 $as_echo "$target_iconset" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8680 $as_echo_n "checking which GUI Theme to use... " >&6; }
8682 # Check whether --with-theme was given.
8683 if test "${with_theme+set}" = set; then :
8684 withval=$with_theme; target_guitheme=$withval
8685 else
8686 target_guitheme="default"
8689 if test "$target_guitheme" = "default"; then
8690 aros_target_guitheme="Ice"
8691 else
8692 aros_target_guitheme="$target_guitheme"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8695 $as_echo "$aros_target_guitheme" >&6; }
8697 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8698 # for target code)
8699 cross_compiling=no
8701 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8702 cross_compiling=yes
8705 if test "$aros_host_cpu" == "x86_64" ; then
8706 if test "$aros_target_cpu" == "i386" ; then
8707 cross_compiling=no
8711 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8712 if test "$aros_host_arch" != "$aros_target_arch" ; then
8713 cross_compiling=yes
8715 else
8716 if test "$host_cc_elf" = "no" ; then
8717 cross_compiling=yes
8721 if test "$cross_compiling" = "no" ; then
8722 kernel_tool_prefix=""
8723 if test "$host_cc_elf" = "yes" ; then
8724 elf_tool_prefix=""
8728 if test "$kernel_tool_version" != ""; then
8729 kernel_tool_version="-$kernel_tool_version"
8731 if test "$target_tool_version" != ""; then
8732 target_tool_version="-$target_tool_version"
8735 #######################################################################
8736 ## Compute what toolchains to use, and their paths ##
8737 #######################################################################
8739 # This takes, as input:
8740 # crosstools {yes,no}
8741 # kernel_tool_version {"",[version]}
8742 # target_tool_version {"",[version]}
8743 # kernel_tool_prefix {none,[some-arch-os-]}
8744 # target_tool_prefix ${aros_target_cpu}-aros-
8745 # aros_tool_prefix ${aros_target_cpu}-aros-
8747 # The output is
8748 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8749 # Where the 'kernel' binaries are located
8750 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8751 # Where the 'target' binaries are located
8752 # (not the symlink farm - that is aros_target_*!)
8754 # The rules are:
8755 # if crosstools then
8756 # if kernel_tools_prefix = "no-kernel-prefix-"
8757 # aros_kernel_* = crosstools cc paths
8758 # aros_kernel_cc = elf cc wrapper around crosstools cc
8759 # else
8760 # VALIDATE(${kernel_tools_prefix}*)
8761 # aros_kernel_* = ${kernel_tools_prefix}*
8762 # if ${kernel_tools_prefix}cc is an AROS gcc
8763 # aros_kernel_cc = ${kernel_tools_prefix}cc
8764 # else
8765 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8766 # fi
8767 # fi
8769 # orig_target_* = aros built crosstools
8770 # orig_target_cc = elf cc wrapper around crosstools cc
8771 # else
8772 # VALIDATE(${kernel_tools_prefix}*)
8774 # orig_target_* = aros_kernel_*
8775 # if aros_kernel_cc is an AROS gcc
8776 # orig_target_cc = aros_kernel_cc
8777 # else
8778 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8779 # fi
8780 # fi
8782 target_tool_prefix="${aros_target_cpu}-aros-"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8785 $as_echo_n "checking which kernel tools... " >&6; }
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8787 $as_echo "$kernel_tool_prefix" >&6; };
8789 if test "$kernel_tool_prefix" = "none" ; then
8790 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8791 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8793 else
8794 # Kernel tools required - find them
8795 # Note that 'normally', aros_kernel_* overrides will be
8796 # empty, unless specified in the per-arch sections above.
8797 if test "x$aros_kernel_cpp" = "x"; then
8798 aros_kernel_cpp=${kernel_tool_prefix}cpp
8801 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8802 if test "$cross_compiling" = "yes" ; then
8803 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8804 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 case $aros_kernel_cpp in
8811 [\\/]* | ?:[\\/]*)
8812 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 break 2
8826 done
8827 done
8828 IFS=$as_save_IFS
8831 esac
8833 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8834 if test -n "$aros_kernel_cpp"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8836 $as_echo "$aros_kernel_cpp" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8843 else
8844 if test "$GCC" = "yes"; then
8845 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8846 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8847 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849 $as_echo_n "checking for $ac_word... " >&6; }
8850 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 case $aros_kernel_cpp in
8854 [\\/]* | ?:[\\/]*)
8855 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in `dirname $aros_gcc_cpp`
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8869 done
8870 done
8871 IFS=$as_save_IFS
8874 esac
8876 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8877 if test -n "$aros_kernel_cpp"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8879 $as_echo "$aros_kernel_cpp" >&6; }
8880 else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8887 if test "$aros_kernel_cpp" = ""; then
8888 # Extract the first word of "cpp", so it can be a program name with args.
8889 set dummy cpp; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 case $aros_kernel_cpp in
8896 [\\/]* | ?:[\\/]*)
8897 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8911 done
8912 done
8913 IFS=$as_save_IFS
8916 esac
8918 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8919 if test -n "$aros_kernel_cpp"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8921 $as_echo "$aros_kernel_cpp" >&6; }
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8930 else
8931 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8932 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 case $aros_kernel_cpp in
8939 [\\/]* | ?:[\\/]*)
8940 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8954 done
8955 done
8956 IFS=$as_save_IFS
8959 esac
8961 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8962 if test -n "$aros_kernel_cpp"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8964 $as_echo "$aros_kernel_cpp" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8973 if test "$aros_kernel_cpp" = ""; then
8974 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8976 if test "x$aros_kernel_cc" = "x"; then
8977 aros_kernel_cc=${kernel_tool_prefix}gcc
8980 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8981 if test "$cross_compiling" = "yes" ; then
8982 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8983 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 case $aros_kernel_cc in
8990 [\\/]* | ?:[\\/]*)
8991 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $PATH
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9005 done
9006 done
9007 IFS=$as_save_IFS
9010 esac
9012 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9013 if test -n "$aros_kernel_cc"; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9015 $as_echo "$aros_kernel_cc" >&6; }
9016 else
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9022 else
9023 if test "$GCC" = "yes"; then
9024 aros_gcc_cc=`$CC -print-prog-name=cc`
9025 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9026 set dummy `basename $aros_gcc_cc`; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 case $aros_kernel_cc in
9033 [\\/]* | ?:[\\/]*)
9034 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in `dirname $aros_gcc_cc`
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9048 done
9049 done
9050 IFS=$as_save_IFS
9053 esac
9055 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9056 if test -n "$aros_kernel_cc"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9058 $as_echo "$aros_kernel_cc" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9066 if test "$aros_kernel_cc" = ""; then
9067 # Extract the first word of "cc", so it can be a program name with args.
9068 set dummy cc; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 case $aros_kernel_cc in
9075 [\\/]* | ?:[\\/]*)
9076 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in $PATH
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9086 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9090 done
9091 done
9092 IFS=$as_save_IFS
9095 esac
9097 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9098 if test -n "$aros_kernel_cc"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9100 $as_echo "$aros_kernel_cc" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9109 else
9110 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9111 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 case $aros_kernel_cc in
9118 [\\/]* | ?:[\\/]*)
9119 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9138 esac
9140 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9141 if test -n "$aros_kernel_cc"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9143 $as_echo "$aros_kernel_cc" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9152 if test "$aros_kernel_cc" = ""; then
9153 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9155 if test "x$aros_kernel_cxx" = "x"; then
9156 aros_kernel_cxx=${kernel_tool_prefix}g++
9159 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9160 if test "$cross_compiling" = "yes" ; then
9161 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9162 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 case $aros_kernel_cxx in
9169 [\\/]* | ?:[\\/]*)
9170 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 break 2
9184 done
9185 done
9186 IFS=$as_save_IFS
9189 esac
9191 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9192 if test -n "$aros_kernel_cxx"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9194 $as_echo "$aros_kernel_cxx" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9201 else
9202 if test "$GCC" = "yes"; then
9203 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9204 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9205 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 case $aros_kernel_cxx in
9212 [\\/]* | ?:[\\/]*)
9213 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in `dirname $aros_gcc_cxx`
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9223 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9232 esac
9234 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9235 if test -n "$aros_kernel_cxx"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9237 $as_echo "$aros_kernel_cxx" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9245 if test "$aros_kernel_cxx" = ""; then
9246 # Extract the first word of "cxx", so it can be a program name with args.
9247 set dummy cxx; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 case $aros_kernel_cxx in
9254 [\\/]* | ?:[\\/]*)
9255 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9269 done
9270 done
9271 IFS=$as_save_IFS
9274 esac
9276 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9277 if test -n "$aros_kernel_cxx"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9279 $as_echo "$aros_kernel_cxx" >&6; }
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9288 else
9289 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9290 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 case $aros_kernel_cxx in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9317 esac
9319 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9320 if test -n "$aros_kernel_cxx"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9322 $as_echo "$aros_kernel_cxx" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9331 # If it's set, make sure it's really there
9332 if test "x$aros_kernel_cxx" != "x" ; then
9333 if test "$aros_kernel_cxx" = ""; then
9334 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9338 if test "$aros_kernel_ld" = ""; then
9339 if test "$cross_compiling" = "yes" ; then
9340 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9341 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 case $aros_kernel_ld in
9348 [\\/]* | ?:[\\/]*)
9349 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353 for as_dir in $PATH
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9363 done
9364 done
9365 IFS=$as_save_IFS
9368 esac
9370 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9371 if test -n "$aros_kernel_ld"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9373 $as_echo "$aros_kernel_ld" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9380 else
9381 if test "$GCC" = "yes"; then
9382 aros_gcc_ld=`$CC -print-prog-name=ld`
9383 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9384 set dummy `basename $aros_gcc_ld`; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 case $aros_kernel_ld in
9391 [\\/]* | ?:[\\/]*)
9392 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in `dirname $aros_gcc_ld`
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9406 done
9407 done
9408 IFS=$as_save_IFS
9411 esac
9413 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9414 if test -n "$aros_kernel_ld"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9416 $as_echo "$aros_kernel_ld" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9424 if test "$aros_kernel_ld" = ""; then
9425 # Extract the first word of "ld", so it can be a program name with args.
9426 set dummy ld; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 case $aros_kernel_ld in
9433 [\\/]* | ?:[\\/]*)
9434 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9444 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9453 esac
9455 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9456 if test -n "$aros_kernel_ld"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9458 $as_echo "$aros_kernel_ld" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9467 else
9468 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9469 set dummy $aros_kernel_ld; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 case $aros_kernel_ld in
9476 [\\/]* | ?:[\\/]*)
9477 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9496 esac
9498 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9499 if test -n "$aros_kernel_ld"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9501 $as_echo "$aros_kernel_ld" >&6; }
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9510 if test "$aros_kernel_ld" = ""; then
9511 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9514 if test "$aros_kernel_as" = ""; then
9515 if test "$cross_compiling" = "yes" ; then
9516 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9517 set dummy ${kernel_tool_prefix}as; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_aros_kernel_as+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 case $aros_kernel_as in
9524 [\\/]* | ?:[\\/]*)
9525 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 break 2
9539 done
9540 done
9541 IFS=$as_save_IFS
9544 esac
9546 aros_kernel_as=$ac_cv_path_aros_kernel_as
9547 if test -n "$aros_kernel_as"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9549 $as_echo "$aros_kernel_as" >&6; }
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9556 else
9557 if test "$GCC" = "yes"; then
9558 aros_gcc_as=`$CC -print-prog-name=as`
9559 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9560 set dummy `basename $aros_gcc_as`; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_path_aros_kernel_as+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 case $aros_kernel_as in
9567 [\\/]* | ?:[\\/]*)
9568 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in `dirname $aros_gcc_as`
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9582 done
9583 done
9584 IFS=$as_save_IFS
9587 esac
9589 aros_kernel_as=$ac_cv_path_aros_kernel_as
9590 if test -n "$aros_kernel_as"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9592 $as_echo "$aros_kernel_as" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9600 if test "$aros_kernel_as" = ""; then
9601 # Extract the first word of "as", so it can be a program name with args.
9602 set dummy as; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_path_aros_kernel_as+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 case $aros_kernel_as in
9609 [\\/]* | ?:[\\/]*)
9610 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614 for as_dir in $PATH
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 break 2
9624 done
9625 done
9626 IFS=$as_save_IFS
9629 esac
9631 aros_kernel_as=$ac_cv_path_aros_kernel_as
9632 if test -n "$aros_kernel_as"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9634 $as_echo "$aros_kernel_as" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9643 else
9644 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9645 set dummy $aros_kernel_as; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_path_aros_kernel_as+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 case $aros_kernel_as in
9652 [\\/]* | ?:[\\/]*)
9653 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 for as_dir in $PATH
9659 IFS=$as_save_IFS
9660 test -z "$as_dir" && as_dir=.
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9663 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 break 2
9667 done
9668 done
9669 IFS=$as_save_IFS
9672 esac
9674 aros_kernel_as=$ac_cv_path_aros_kernel_as
9675 if test -n "$aros_kernel_as"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9677 $as_echo "$aros_kernel_as" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9686 if test "$aros_kernel_as" = ""; then
9687 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9690 if test "$aros_kernel_ar" = ""; then
9691 if test "$cross_compiling" = "yes" ; then
9692 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9693 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 case $aros_kernel_ar in
9700 [\\/]* | ?:[\\/]*)
9701 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 for as_dir in $PATH
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9715 done
9716 done
9717 IFS=$as_save_IFS
9720 esac
9722 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9723 if test -n "$aros_kernel_ar"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9725 $as_echo "$aros_kernel_ar" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9732 else
9733 if test "$GCC" = "yes"; then
9734 aros_gcc_ar=`$CC -print-prog-name=ar`
9735 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9736 set dummy `basename $aros_gcc_ar`; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 case $aros_kernel_ar in
9743 [\\/]* | ?:[\\/]*)
9744 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in `dirname $aros_gcc_ar`
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9754 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9758 done
9759 done
9760 IFS=$as_save_IFS
9763 esac
9765 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9766 if test -n "$aros_kernel_ar"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9768 $as_echo "$aros_kernel_ar" >&6; }
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9776 if test "$aros_kernel_ar" = ""; then
9777 # Extract the first word of "ar", so it can be a program name with args.
9778 set dummy ar; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 case $aros_kernel_ar in
9785 [\\/]* | ?:[\\/]*)
9786 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9802 IFS=$as_save_IFS
9805 esac
9807 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9808 if test -n "$aros_kernel_ar"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9810 $as_echo "$aros_kernel_ar" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9819 else
9820 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9821 set dummy $aros_kernel_ar; ac_word=$2
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 $as_echo_n "checking for $ac_word... " >&6; }
9824 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 case $aros_kernel_ar in
9828 [\\/]* | ?:[\\/]*)
9829 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $PATH
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9843 done
9844 done
9845 IFS=$as_save_IFS
9848 esac
9850 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9851 if test -n "$aros_kernel_ar"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9853 $as_echo "$aros_kernel_ar" >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9862 if test "$aros_kernel_ar" = ""; then
9863 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9866 if test "$aros_kernel_ranlib" = ""; then
9867 if test "$cross_compiling" = "yes" ; then
9868 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9869 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 case $aros_kernel_ranlib in
9876 [\\/]* | ?:[\\/]*)
9877 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9891 done
9892 done
9893 IFS=$as_save_IFS
9896 esac
9898 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9899 if test -n "$aros_kernel_ranlib"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9901 $as_echo "$aros_kernel_ranlib" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9908 else
9909 if test "$GCC" = "yes"; then
9910 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9911 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9912 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 case $aros_kernel_ranlib in
9919 [\\/]* | ?:[\\/]*)
9920 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in `dirname $aros_gcc_ranlib`
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9934 done
9935 done
9936 IFS=$as_save_IFS
9939 esac
9941 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9942 if test -n "$aros_kernel_ranlib"; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9944 $as_echo "$aros_kernel_ranlib" >&6; }
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9952 if test "$aros_kernel_ranlib" = ""; then
9953 # Extract the first word of "ranlib", so it can be a program name with args.
9954 set dummy ranlib; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 case $aros_kernel_ranlib in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9972 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9976 done
9977 done
9978 IFS=$as_save_IFS
9981 esac
9983 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9984 if test -n "$aros_kernel_ranlib"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9986 $as_echo "$aros_kernel_ranlib" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9995 else
9996 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9997 set dummy $aros_kernel_ranlib; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 case $aros_kernel_ranlib in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10019 done
10020 done
10021 IFS=$as_save_IFS
10024 esac
10026 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10027 if test -n "$aros_kernel_ranlib"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10029 $as_echo "$aros_kernel_ranlib" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10038 if test "$aros_kernel_ranlib" = ""; then
10039 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10042 if test "$aros_kernel_nm" = ""; then
10043 if test "$cross_compiling" = "yes" ; then
10044 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10045 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 case $aros_kernel_nm in
10052 [\\/]* | ?:[\\/]*)
10053 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10059 IFS=$as_save_IFS
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 break 2
10067 done
10068 done
10069 IFS=$as_save_IFS
10072 esac
10074 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10075 if test -n "$aros_kernel_nm"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10077 $as_echo "$aros_kernel_nm" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10084 else
10085 if test "$GCC" = "yes"; then
10086 aros_gcc_nm=`$CC -print-prog-name=nm`
10087 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10088 set dummy `basename $aros_gcc_nm`; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 case $aros_kernel_nm in
10095 [\\/]* | ?:[\\/]*)
10096 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in `dirname $aros_gcc_nm`
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10110 done
10111 done
10112 IFS=$as_save_IFS
10115 esac
10117 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10118 if test -n "$aros_kernel_nm"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10120 $as_echo "$aros_kernel_nm" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10128 if test "$aros_kernel_nm" = ""; then
10129 # Extract the first word of "nm", so it can be a program name with args.
10130 set dummy nm; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $aros_kernel_nm in
10137 [\\/]* | ?:[\\/]*)
10138 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10157 esac
10159 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10160 if test -n "$aros_kernel_nm"; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10162 $as_echo "$aros_kernel_nm" >&6; }
10163 else
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10171 else
10172 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10173 set dummy $aros_kernel_nm; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 case $aros_kernel_nm in
10180 [\\/]* | ?:[\\/]*)
10181 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10195 done
10196 done
10197 IFS=$as_save_IFS
10200 esac
10202 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10203 if test -n "$aros_kernel_nm"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10205 $as_echo "$aros_kernel_nm" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10214 if test "$aros_kernel_nm" = ""; then
10215 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10218 if test "$aros_kernel_strip" = ""; then
10219 if test "$cross_compiling" = "yes" ; then
10220 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10221 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 case $aros_kernel_strip in
10228 [\\/]* | ?:[\\/]*)
10229 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10243 done
10244 done
10245 IFS=$as_save_IFS
10248 esac
10250 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10251 if test -n "$aros_kernel_strip"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10253 $as_echo "$aros_kernel_strip" >&6; }
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10260 else
10261 if test "$GCC" = "yes"; then
10262 aros_gcc_strip=`$CC -print-prog-name=strip`
10263 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10264 set dummy `basename $aros_gcc_strip`; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 case $aros_kernel_strip in
10271 [\\/]* | ?:[\\/]*)
10272 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in `dirname $aros_gcc_strip`
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10286 done
10287 done
10288 IFS=$as_save_IFS
10291 esac
10293 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10294 if test -n "$aros_kernel_strip"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10296 $as_echo "$aros_kernel_strip" >&6; }
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test "$aros_kernel_strip" = ""; then
10305 # Extract the first word of "strip", so it can be a program name with args.
10306 set dummy strip; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 case $aros_kernel_strip in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10336 if test -n "$aros_kernel_strip"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10338 $as_echo "$aros_kernel_strip" >&6; }
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10347 else
10348 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10349 set dummy $aros_kernel_strip; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 case $aros_kernel_strip in
10356 [\\/]* | ?:[\\/]*)
10357 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10371 done
10372 done
10373 IFS=$as_save_IFS
10376 esac
10378 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10379 if test -n "$aros_kernel_strip"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10381 $as_echo "$aros_kernel_strip" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10390 if test "$aros_kernel_strip" = ""; then
10391 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10394 # Objcopy and objdump are not required for the kernel
10395 # toolchain on many architectures.
10396 # So we'll look for them, but not make them strictly required.
10398 if test "$aros_kernel_objcopy" = ""; then
10399 if test "$cross_compiling" = "yes" ; then
10400 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10401 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 case $aros_kernel_objcopy in
10408 [\\/]* | ?:[\\/]*)
10409 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413 for as_dir in $PATH
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10423 done
10424 done
10425 IFS=$as_save_IFS
10428 esac
10430 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10431 if test -n "$aros_kernel_objcopy"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10433 $as_echo "$aros_kernel_objcopy" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10440 else
10441 if test "$GCC" = "yes"; then
10442 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10443 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10444 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 case $aros_kernel_objcopy in
10451 [\\/]* | ?:[\\/]*)
10452 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in `dirname $aros_gcc_objcopy`
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10466 done
10467 done
10468 IFS=$as_save_IFS
10471 esac
10473 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10474 if test -n "$aros_kernel_objcopy"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10476 $as_echo "$aros_kernel_objcopy" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10484 if test "$aros_kernel_objcopy" = ""; then
10485 # Extract the first word of "objcopy", so it can be a program name with args.
10486 set dummy objcopy; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 case $aros_kernel_objcopy in
10493 [\\/]* | ?:[\\/]*)
10494 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10508 done
10509 done
10510 IFS=$as_save_IFS
10513 esac
10515 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10516 if test -n "$aros_kernel_objcopy"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10518 $as_echo "$aros_kernel_objcopy" >&6; }
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10527 else
10528 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10529 set dummy $aros_kernel_objcopy; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531 $as_echo_n "checking for $ac_word... " >&6; }
10532 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 case $aros_kernel_objcopy in
10536 [\\/]* | ?:[\\/]*)
10537 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10551 done
10552 done
10553 IFS=$as_save_IFS
10556 esac
10558 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10559 if test -n "$aros_kernel_objcopy"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10561 $as_echo "$aros_kernel_objcopy" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10571 if test "$aros_kernel_objdump" = ""; then
10572 if test "$cross_compiling" = "yes" ; then
10573 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10574 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 case $aros_kernel_objdump in
10581 [\\/]* | ?:[\\/]*)
10582 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10601 esac
10603 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10604 if test -n "$aros_kernel_objdump"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10606 $as_echo "$aros_kernel_objdump" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10613 else
10614 if test "$GCC" = "yes"; then
10615 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10616 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10617 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 case $aros_kernel_objdump in
10624 [\\/]* | ?:[\\/]*)
10625 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in `dirname $aros_gcc_objdump`
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10639 done
10640 done
10641 IFS=$as_save_IFS
10644 esac
10646 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10647 if test -n "$aros_kernel_objdump"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10649 $as_echo "$aros_kernel_objdump" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10657 if test "$aros_kernel_objdump" = ""; then
10658 # Extract the first word of "objdump", so it can be a program name with args.
10659 set dummy objdump; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 case $aros_kernel_objdump in
10666 [\\/]* | ?:[\\/]*)
10667 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10681 done
10682 done
10683 IFS=$as_save_IFS
10686 esac
10688 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10689 if test -n "$aros_kernel_objdump"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10691 $as_echo "$aros_kernel_objdump" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10700 else
10701 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10702 set dummy $aros_kernel_objdump; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 case $aros_kernel_objdump in
10709 [\\/]* | ?:[\\/]*)
10710 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10724 done
10725 done
10726 IFS=$as_save_IFS
10729 esac
10731 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10732 if test -n "$aros_kernel_objdump"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10734 $as_echo "$aros_kernel_objdump" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10743 if test "x${crosstools}" != "xyes" ; then
10744 if test "$aros_kernel_objcopy" = ""; then
10745 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10747 if test "$aros_kernel_objdump" = ""; then
10748 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10754 $as_echo_n "checking which target tools to use... " >&6; }
10755 if test "$crosstools" = "yes"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10757 $as_echo "$target_tool_prefix" >&6; }
10758 # We are are building AROS crosstools
10759 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10760 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10761 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10762 orig_target_cpp="${tmp_tool_prefix}cpp"
10763 orig_target_ld="${tmp_tool_prefix}ld"
10764 orig_target_as="${tmp_tool_prefix}as"
10765 orig_target_ar="${tmp_tool_prefix}ar"
10766 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10767 orig_target_nm="${tmp_tool_prefix}nm"
10768 orig_target_strip="${tmp_tool_prefix}strip"
10769 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10770 orig_target_objdump="${tmp_tool_prefix}objdump"
10771 else
10772 # Determine whether AROS or ELF tools should be used
10773 if test "$aros_tool_prefix" = "none"; then
10774 aros_tool_prefix="${elf_tool_prefix}"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10778 $as_echo "$aros_tool_prefix" >&6; }
10779 # We are *not* building AROS crosstools - use the AROS or ELF tools
10781 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10782 if test "$cross_compiling" = "yes" ; then
10783 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10784 set dummy ${target_tool_prefix}cpp; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_orig_target_cpp+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $orig_target_cpp in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 orig_target_cpp=$ac_cv_path_orig_target_cpp
10814 if test -n "$orig_target_cpp"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10816 $as_echo "$orig_target_cpp" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10823 else
10824 if test "$GCC" = "yes"; then
10825 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10826 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10827 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829 $as_echo_n "checking for $ac_word... " >&6; }
10830 if ${ac_cv_path_orig_target_cpp+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 case $orig_target_cpp in
10834 [\\/]* | ?:[\\/]*)
10835 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in `dirname $aros_gcc_cpp`
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10849 done
10850 done
10851 IFS=$as_save_IFS
10854 esac
10856 orig_target_cpp=$ac_cv_path_orig_target_cpp
10857 if test -n "$orig_target_cpp"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10859 $as_echo "$orig_target_cpp" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 if test "$orig_target_cpp" = ""; then
10868 # Extract the first word of "cpp", so it can be a program name with args.
10869 set dummy cpp; ac_word=$2
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871 $as_echo_n "checking for $ac_word... " >&6; }
10872 if ${ac_cv_path_orig_target_cpp+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 case $orig_target_cpp in
10876 [\\/]* | ?:[\\/]*)
10877 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10893 IFS=$as_save_IFS
10896 esac
10898 orig_target_cpp=$ac_cv_path_orig_target_cpp
10899 if test -n "$orig_target_cpp"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10901 $as_echo "$orig_target_cpp" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10910 else
10911 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
10912 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if ${ac_cv_path_orig_target_cpp+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917 else
10918 case $orig_target_cpp in
10919 [\\/]* | ?:[\\/]*)
10920 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10934 done
10935 done
10936 IFS=$as_save_IFS
10939 esac
10941 orig_target_cpp=$ac_cv_path_orig_target_cpp
10942 if test -n "$orig_target_cpp"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10944 $as_echo "$orig_target_cpp" >&6; }
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10953 if test "$orig_target_cpp" = ""; then
10954 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10957 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
10958 if test "$cross_compiling" = "yes" ; then
10959 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10960 set dummy ${target_tool_prefix}gcc; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_orig_target_cc+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 case $orig_target_cc in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10987 esac
10989 orig_target_cc=$ac_cv_path_orig_target_cc
10990 if test -n "$orig_target_cc"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10992 $as_echo "$orig_target_cc" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10999 else
11000 if test "$GCC" = "yes"; then
11001 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11002 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11003 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_orig_target_cc+:} false; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 case $orig_target_cc in
11010 [\\/]* | ?:[\\/]*)
11011 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in `dirname $aros_gcc_gcc`
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
11019 for ac_exec_ext in '' $ac_executable_extensions; do
11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023 break 2
11025 done
11026 done
11027 IFS=$as_save_IFS
11030 esac
11032 orig_target_cc=$ac_cv_path_orig_target_cc
11033 if test -n "$orig_target_cc"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11035 $as_echo "$orig_target_cc" >&6; }
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11043 if test "$orig_target_cc" = ""; then
11044 # Extract the first word of "gcc", so it can be a program name with args.
11045 set dummy gcc; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_path_orig_target_cc+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 case $orig_target_cc in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11072 esac
11074 orig_target_cc=$ac_cv_path_orig_target_cc
11075 if test -n "$orig_target_cc"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11077 $as_echo "$orig_target_cc" >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11086 else
11087 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11088 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_path_orig_target_cc+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 case $orig_target_cc in
11095 [\\/]* | ?:[\\/]*)
11096 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11110 done
11111 done
11112 IFS=$as_save_IFS
11115 esac
11117 orig_target_cc=$ac_cv_path_orig_target_cc
11118 if test -n "$orig_target_cc"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11120 $as_echo "$orig_target_cc" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11129 if test "$orig_target_cc" = ""; then
11130 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11133 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11134 if test "$cross_compiling" = "yes" ; then
11135 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11136 set dummy ${target_tool_prefix}g++; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_path_orig_target_cxx+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 case $orig_target_cxx in
11143 [\\/]* | ?:[\\/]*)
11144 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11158 done
11159 done
11160 IFS=$as_save_IFS
11163 esac
11165 orig_target_cxx=$ac_cv_path_orig_target_cxx
11166 if test -n "$orig_target_cxx"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11168 $as_echo "$orig_target_cxx" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11175 else
11176 if test "$GCC" = "yes"; then
11177 aros_gcc_g++=`$CC -print-prog-name=g++`
11178 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11179 set dummy `basename $aros_gcc_g++`; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if ${ac_cv_path_orig_target_cxx+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 case $orig_target_cxx in
11186 [\\/]* | ?:[\\/]*)
11187 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in `dirname $aros_gcc_g++`
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11197 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11206 esac
11208 orig_target_cxx=$ac_cv_path_orig_target_cxx
11209 if test -n "$orig_target_cxx"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11211 $as_echo "$orig_target_cxx" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11219 if test "$orig_target_cxx" = ""; then
11220 # Extract the first word of "g++", so it can be a program name with args.
11221 set dummy g++; ac_word=$2
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 $as_echo_n "checking for $ac_word... " >&6; }
11224 if ${ac_cv_path_orig_target_cxx+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 case $orig_target_cxx in
11228 [\\/]* | ?:[\\/]*)
11229 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11248 esac
11250 orig_target_cxx=$ac_cv_path_orig_target_cxx
11251 if test -n "$orig_target_cxx"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11253 $as_echo "$orig_target_cxx" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11262 else
11263 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11264 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if ${ac_cv_path_orig_target_cxx+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 case $orig_target_cxx in
11271 [\\/]* | ?:[\\/]*)
11272 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11282 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11286 done
11287 done
11288 IFS=$as_save_IFS
11291 esac
11293 orig_target_cxx=$ac_cv_path_orig_target_cxx
11294 if test -n "$orig_target_cxx"; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11296 $as_echo "$orig_target_cxx" >&6; }
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11305 if test "$orig_target_cxx" = ""; then
11306 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11309 if test "${aros_tool_prefix}ld" = ""; then
11310 if test "$cross_compiling" = "yes" ; then
11311 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11312 set dummy ${target_tool_prefix}gcc; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_orig_target_ld+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 case $orig_target_ld in
11319 [\\/]* | ?:[\\/]*)
11320 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11334 done
11335 done
11336 IFS=$as_save_IFS
11339 esac
11341 orig_target_ld=$ac_cv_path_orig_target_ld
11342 if test -n "$orig_target_ld"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11344 $as_echo "$orig_target_ld" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 else
11352 if test "$GCC" = "yes"; then
11353 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11354 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11355 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357 $as_echo_n "checking for $ac_word... " >&6; }
11358 if ${ac_cv_path_orig_target_ld+:} false; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 case $orig_target_ld in
11362 [\\/]* | ?:[\\/]*)
11363 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in `dirname $aros_gcc_gcc`
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 break 2
11377 done
11378 done
11379 IFS=$as_save_IFS
11382 esac
11384 orig_target_ld=$ac_cv_path_orig_target_ld
11385 if test -n "$orig_target_ld"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11387 $as_echo "$orig_target_ld" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11395 if test "$orig_target_ld" = ""; then
11396 # Extract the first word of "gcc", so it can be a program name with args.
11397 set dummy gcc; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if ${ac_cv_path_orig_target_ld+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 case $orig_target_ld in
11404 [\\/]* | ?:[\\/]*)
11405 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11419 done
11420 done
11421 IFS=$as_save_IFS
11424 esac
11426 orig_target_ld=$ac_cv_path_orig_target_ld
11427 if test -n "$orig_target_ld"; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11429 $as_echo "$orig_target_ld" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11438 else
11439 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11440 set dummy ${aros_tool_prefix}ld; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_path_orig_target_ld+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 case $orig_target_ld in
11447 [\\/]* | ?:[\\/]*)
11448 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 break 2
11462 done
11463 done
11464 IFS=$as_save_IFS
11467 esac
11469 orig_target_ld=$ac_cv_path_orig_target_ld
11470 if test -n "$orig_target_ld"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11472 $as_echo "$orig_target_ld" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11481 if test "$orig_target_ld" = ""; then
11482 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11485 if test "${aros_tool_prefix}as" = ""; then
11486 if test "$cross_compiling" = "yes" ; then
11487 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11488 set dummy ${target_tool_prefix}as; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if ${ac_cv_path_orig_target_as+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 case $orig_target_as in
11495 [\\/]* | ?:[\\/]*)
11496 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11510 done
11511 done
11512 IFS=$as_save_IFS
11515 esac
11517 orig_target_as=$ac_cv_path_orig_target_as
11518 if test -n "$orig_target_as"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11520 $as_echo "$orig_target_as" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11527 else
11528 if test "$GCC" = "yes"; then
11529 aros_gcc_as=`$CC -print-prog-name=as`
11530 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11531 set dummy `basename $aros_gcc_as`; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_path_orig_target_as+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 case $orig_target_as in
11538 [\\/]* | ?:[\\/]*)
11539 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in `dirname $aros_gcc_as`
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11553 done
11554 done
11555 IFS=$as_save_IFS
11558 esac
11560 orig_target_as=$ac_cv_path_orig_target_as
11561 if test -n "$orig_target_as"; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11563 $as_echo "$orig_target_as" >&6; }
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11571 if test "$orig_target_as" = ""; then
11572 # Extract the first word of "as", so it can be a program name with args.
11573 set dummy as; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_path_orig_target_as+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $orig_target_as in
11580 [\\/]* | ?:[\\/]*)
11581 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11595 done
11596 done
11597 IFS=$as_save_IFS
11600 esac
11602 orig_target_as=$ac_cv_path_orig_target_as
11603 if test -n "$orig_target_as"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11605 $as_echo "$orig_target_as" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11614 else
11615 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11616 set dummy ${aros_tool_prefix}as; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if ${ac_cv_path_orig_target_as+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 case $orig_target_as in
11623 [\\/]* | ?:[\\/]*)
11624 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 break 2
11638 done
11639 done
11640 IFS=$as_save_IFS
11643 esac
11645 orig_target_as=$ac_cv_path_orig_target_as
11646 if test -n "$orig_target_as"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11648 $as_echo "$orig_target_as" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11657 if test "$orig_target_as" = ""; then
11658 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11661 if test "${aros_tool_prefix}ar" = ""; then
11662 if test "$cross_compiling" = "yes" ; then
11663 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11664 set dummy ${target_tool_prefix}ar; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_path_orig_target_ar+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 case $orig_target_ar in
11671 [\\/]* | ?:[\\/]*)
11672 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11686 done
11687 done
11688 IFS=$as_save_IFS
11691 esac
11693 orig_target_ar=$ac_cv_path_orig_target_ar
11694 if test -n "$orig_target_ar"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11696 $as_echo "$orig_target_ar" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11703 else
11704 if test "$GCC" = "yes"; then
11705 aros_gcc_ar=`$CC -print-prog-name=ar`
11706 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11707 set dummy `basename $aros_gcc_ar`; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if ${ac_cv_path_orig_target_ar+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 case $orig_target_ar in
11714 [\\/]* | ?:[\\/]*)
11715 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in `dirname $aros_gcc_ar`
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11725 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 break 2
11729 done
11730 done
11731 IFS=$as_save_IFS
11734 esac
11736 orig_target_ar=$ac_cv_path_orig_target_ar
11737 if test -n "$orig_target_ar"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11739 $as_echo "$orig_target_ar" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11747 if test "$orig_target_ar" = ""; then
11748 # Extract the first word of "ar", so it can be a program name with args.
11749 set dummy ar; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_path_orig_target_ar+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 case $orig_target_ar in
11756 [\\/]* | ?:[\\/]*)
11757 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11771 done
11772 done
11773 IFS=$as_save_IFS
11776 esac
11778 orig_target_ar=$ac_cv_path_orig_target_ar
11779 if test -n "$orig_target_ar"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11781 $as_echo "$orig_target_ar" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11790 else
11791 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11792 set dummy ${aros_tool_prefix}ar; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_path_orig_target_ar+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 case $orig_target_ar in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11814 done
11815 done
11816 IFS=$as_save_IFS
11819 esac
11821 orig_target_ar=$ac_cv_path_orig_target_ar
11822 if test -n "$orig_target_ar"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11824 $as_echo "$orig_target_ar" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11833 if test "$orig_target_ar" = ""; then
11834 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11837 if test "${aros_tool_prefix}ranlib" = ""; then
11838 if test "$cross_compiling" = "yes" ; then
11839 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11840 set dummy ${target_tool_prefix}ar; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 case $orig_target_ranlib in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11862 done
11863 done
11864 IFS=$as_save_IFS
11867 esac
11869 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11870 if test -n "$orig_target_ranlib"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11872 $as_echo "$orig_target_ranlib" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11879 else
11880 if test "$GCC" = "yes"; then
11881 aros_gcc_ar=`$CC -print-prog-name=ar`
11882 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11883 set dummy `basename $aros_gcc_ar`; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $orig_target_ranlib in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in `dirname $aros_gcc_ar`
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11910 esac
11912 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11913 if test -n "$orig_target_ranlib"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11915 $as_echo "$orig_target_ranlib" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11923 if test "$orig_target_ranlib" = ""; then
11924 # Extract the first word of "ar", so it can be a program name with args.
11925 set dummy ar; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 case $orig_target_ranlib in
11932 [\\/]* | ?:[\\/]*)
11933 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11947 done
11948 done
11949 IFS=$as_save_IFS
11952 esac
11954 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11955 if test -n "$orig_target_ranlib"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11957 $as_echo "$orig_target_ranlib" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11966 else
11967 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11968 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 case $orig_target_ranlib in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11986 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11990 done
11991 done
11992 IFS=$as_save_IFS
11995 esac
11997 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11998 if test -n "$orig_target_ranlib"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12000 $as_echo "$orig_target_ranlib" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12009 if test "$orig_target_ranlib" = ""; then
12010 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12013 if test "${aros_tool_prefix}nm" = ""; then
12014 if test "$cross_compiling" = "yes" ; then
12015 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12016 set dummy ${target_tool_prefix}nm; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if ${ac_cv_path_orig_target_nm+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case $orig_target_nm in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12038 done
12039 done
12040 IFS=$as_save_IFS
12043 esac
12045 orig_target_nm=$ac_cv_path_orig_target_nm
12046 if test -n "$orig_target_nm"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12048 $as_echo "$orig_target_nm" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12055 else
12056 if test "$GCC" = "yes"; then
12057 aros_gcc_nm=`$CC -print-prog-name=nm`
12058 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12059 set dummy `basename $aros_gcc_nm`; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_path_orig_target_nm+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 case $orig_target_nm in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in `dirname $aros_gcc_nm`
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12081 done
12082 done
12083 IFS=$as_save_IFS
12086 esac
12088 orig_target_nm=$ac_cv_path_orig_target_nm
12089 if test -n "$orig_target_nm"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12091 $as_echo "$orig_target_nm" >&6; }
12092 else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12099 if test "$orig_target_nm" = ""; then
12100 # Extract the first word of "nm", so it can be a program name with args.
12101 set dummy nm; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_path_orig_target_nm+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $orig_target_nm in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12123 done
12124 done
12125 IFS=$as_save_IFS
12128 esac
12130 orig_target_nm=$ac_cv_path_orig_target_nm
12131 if test -n "$orig_target_nm"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12133 $as_echo "$orig_target_nm" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12142 else
12143 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12144 set dummy ${aros_tool_prefix}nm; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_path_orig_target_nm+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $orig_target_nm in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12171 esac
12173 orig_target_nm=$ac_cv_path_orig_target_nm
12174 if test -n "$orig_target_nm"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12176 $as_echo "$orig_target_nm" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12185 if test "$orig_target_nm" = ""; then
12186 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12189 if test "${aros_tool_prefix}strip" = ""; then
12190 if test "$cross_compiling" = "yes" ; then
12191 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12192 set dummy ${target_tool_prefix}strip; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_path_orig_target_strip+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 case $orig_target_strip in
12199 [\\/]* | ?:[\\/]*)
12200 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12214 done
12215 done
12216 IFS=$as_save_IFS
12219 esac
12221 orig_target_strip=$ac_cv_path_orig_target_strip
12222 if test -n "$orig_target_strip"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12224 $as_echo "$orig_target_strip" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 else
12232 if test "$GCC" = "yes"; then
12233 aros_gcc_strip=`$CC -print-prog-name=strip`
12234 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12235 set dummy `basename $aros_gcc_strip`; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_strip+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $orig_target_strip in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in `dirname $aros_gcc_strip`
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12262 esac
12264 orig_target_strip=$ac_cv_path_orig_target_strip
12265 if test -n "$orig_target_strip"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12267 $as_echo "$orig_target_strip" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test "$orig_target_strip" = ""; then
12276 # Extract the first word of "strip", so it can be a program name with args.
12277 set dummy strip; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if ${ac_cv_path_orig_target_strip+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 case $orig_target_strip in
12284 [\\/]* | ?:[\\/]*)
12285 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12299 done
12300 done
12301 IFS=$as_save_IFS
12304 esac
12306 orig_target_strip=$ac_cv_path_orig_target_strip
12307 if test -n "$orig_target_strip"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12309 $as_echo "$orig_target_strip" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12318 else
12319 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12320 set dummy ${aros_tool_prefix}strip; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_orig_target_strip+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 case $orig_target_strip in
12327 [\\/]* | ?:[\\/]*)
12328 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12342 done
12343 done
12344 IFS=$as_save_IFS
12347 esac
12349 orig_target_strip=$ac_cv_path_orig_target_strip
12350 if test -n "$orig_target_strip"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12352 $as_echo "$orig_target_strip" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12361 if test "$orig_target_strip" = ""; then
12362 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12365 if test "${aros_tool_prefix}objcopy" = ""; then
12366 if test "$cross_compiling" = "yes" ; then
12367 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12368 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 case $orig_target_objcopy in
12375 [\\/]* | ?:[\\/]*)
12376 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12395 esac
12397 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12398 if test -n "$orig_target_objcopy"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12400 $as_echo "$orig_target_objcopy" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12407 else
12408 if test "$GCC" = "yes"; then
12409 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12410 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12411 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 case $orig_target_objcopy in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in `dirname $aros_gcc_objcopy`
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12429 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12433 done
12434 done
12435 IFS=$as_save_IFS
12438 esac
12440 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12441 if test -n "$orig_target_objcopy"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12443 $as_echo "$orig_target_objcopy" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12451 if test "$orig_target_objcopy" = ""; then
12452 # Extract the first word of "objcopy", so it can be a program name with args.
12453 set dummy objcopy; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 case $orig_target_objcopy in
12460 [\\/]* | ?:[\\/]*)
12461 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12471 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12475 done
12476 done
12477 IFS=$as_save_IFS
12480 esac
12482 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12483 if test -n "$orig_target_objcopy"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12485 $as_echo "$orig_target_objcopy" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12494 else
12495 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12496 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 case $orig_target_objcopy in
12503 [\\/]* | ?:[\\/]*)
12504 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_exec_ext in '' $ac_executable_extensions; do
12513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12514 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516 break 2
12518 done
12519 done
12520 IFS=$as_save_IFS
12523 esac
12525 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12526 if test -n "$orig_target_objcopy"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12528 $as_echo "$orig_target_objcopy" >&6; }
12529 else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12537 if test "$orig_target_objcopy" = ""; then
12538 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12541 if test "${aros_tool_prefix}objdump" = ""; then
12542 if test "$cross_compiling" = "yes" ; then
12543 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12544 set dummy ${target_tool_prefix}objdump; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_path_orig_target_objdump+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $orig_target_objdump in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12566 done
12567 done
12568 IFS=$as_save_IFS
12571 esac
12573 orig_target_objdump=$ac_cv_path_orig_target_objdump
12574 if test -n "$orig_target_objdump"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12576 $as_echo "$orig_target_objdump" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12583 else
12584 if test "$GCC" = "yes"; then
12585 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12586 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12587 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_path_orig_target_objdump+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 case $orig_target_objdump in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in `dirname $aros_gcc_objdump`
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12614 esac
12616 orig_target_objdump=$ac_cv_path_orig_target_objdump
12617 if test -n "$orig_target_objdump"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12619 $as_echo "$orig_target_objdump" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12627 if test "$orig_target_objdump" = ""; then
12628 # Extract the first word of "objdump", so it can be a program name with args.
12629 set dummy objdump; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if ${ac_cv_path_orig_target_objdump+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 case $orig_target_objdump in
12636 [\\/]* | ?:[\\/]*)
12637 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12647 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12651 done
12652 done
12653 IFS=$as_save_IFS
12656 esac
12658 orig_target_objdump=$ac_cv_path_orig_target_objdump
12659 if test -n "$orig_target_objdump"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12661 $as_echo "$orig_target_objdump" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12670 else
12671 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12672 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_path_orig_target_objdump+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 case $orig_target_objdump in
12679 [\\/]* | ?:[\\/]*)
12680 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
12688 for ac_exec_ext in '' $ac_executable_extensions; do
12689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12690 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 break 2
12694 done
12695 done
12696 IFS=$as_save_IFS
12699 esac
12701 orig_target_objdump=$ac_cv_path_orig_target_objdump
12702 if test -n "$orig_target_objdump"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12704 $as_echo "$orig_target_objdump" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12713 if test "$orig_target_objdump" = ""; then
12714 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12718 if test "$kernel_tool_prefix" = "none" ; then
12719 # No kernel tools specified
12720 # Assume target tools == kernel tools with ELF wrapper
12721 aros_kernel_cc=$orig_target_cc
12722 aros_kernel_cxx=$orig_target_cxx
12723 aros_kernel_cpp=$orig_target_cpp
12724 aros_kernel_ld=$orig_target_ld
12725 aros_kernel_as=$orig_target_as
12726 aros_kernel_ar=$orig_target_ar
12727 aros_kernel_ranlib=$orig_target_ranlib
12728 aros_kernel_nm=$orig_target_nm
12729 aros_kernel_strip=$orig_target_strip
12730 aros_kernel_objcopy=$orig_target_objcopy
12731 aros_kernel_objdump=$orig_target_objdump
12732 use_kernel_cc_wrapper=yes
12735 # At this point, all aros_kernel_* and aros_target_*
12736 # tools should be set up correctly
12738 CC="$aros_kernel_cc $kernel_tool_flags"
12739 CPP="$aros_kernel_cpp"
12741 #-----------------------------------------------------------------------------
12743 # Disable pointer-signedness warnings if the compiler recognises the option
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12746 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12747 save_cflags="$CFLAGS"
12748 if test "$crosstools" != "yes" ; then
12749 CFLAGS="$CFLAGS -Wno-pointer-sign"
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12754 main ()
12758 return 0;
12760 _ACEOF
12761 if ac_fn_c_try_compile "$LINENO"; then :
12762 use_no_sign_warning="yes"
12763 else
12764 use_no_sign_warning="no"
12766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767 else
12768 # we do know it is supported for the smallest version of gcc we are going to build
12769 # we assume it's also supported by later versions
12770 use_no_sign_warning=yes
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12773 $as_echo "$use_no_sign_warning" >&6; }
12774 if test "x-$use_no_sign_warning" = "x-yes" ; then
12775 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12777 CFLAGS="$save_cflags"
12779 #-----------------------------------------------------------------------------
12781 # Find all the tools we need to compile. This could be cross-compiling
12782 # though! If that is the case we use the GNU form of the target and
12783 # simply add this to the front of the binary name. This is rather simple,
12784 # but it should work under most circumstances.
12786 # The default tools are to use the same as the host, but only if the
12787 # host and target CPU are the same. With GCC this is normally enough.
12790 aros_cc_pre=""
12791 aros_shared_ld="$aros_host_ld"
12793 aros_target_mkdep="$aros_host_mkdep"
12795 # The default tools executables to be linked to.
12796 if test "$rescomp" != ""; then
12797 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12798 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 case $aros_kernel_rescomp in
12805 [\\/]* | ?:[\\/]*)
12806 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12825 esac
12827 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12828 if test -n "$aros_kernel_rescomp"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12830 $as_echo "$aros_kernel_rescomp" >&6; }
12831 else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12837 if test "$aros_kernel_rescomp" = ""; then
12838 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12842 # Set up the sources for the symlink farm
12843 if test "$crosstools" = "yes"; then
12844 crosstools_target=tools-crosstools
12847 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12848 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12851 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12852 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12853 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12854 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12855 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12856 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12857 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12859 # aros_cc_pre is a variable that is added to the front of the compiler name
12860 # in the generated aros-gcc shell script. We need this to enable the cache
12861 # to work across cleaned builds. Also, support DISTCC using the correct
12862 # environment variable.
12865 if test "x${DISTCC}" != "x" ; then
12866 if test "x${CCACHE}" != "x" ; then
12867 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12868 else
12869 aros_cc_pre="${DISTCC} "
12871 else
12872 if test "x${CCACHE}" != "x" ; then
12873 aros_cc_pre="${CCACHE} "
12877 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12879 aros_target_nostdinc_cflags=-nostdinc
12881 aros_target_nostartup_ldflags=-nostartfiles
12883 aros_target_nix_ldflags=-nix
12885 aros_target_detach_ldflags=-detach
12887 aros_target_nostdlib_ldflags=-nostdlib
12890 # Target tools
12891 if test "$crosstools" != "yes"; then
12892 if test "$GCC" = "yes"; then
12893 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12895 else
12896 # We do not know which gcc version we are going to build and what we need to know
12897 # here is different for different versions so this will be set later during the
12898 # build of crosstools.
12899 aros_target_cc_path=@aros_target_cc_path@
12901 aros_target_cpp="${prefix}cpp"
12902 aros_target_cc="${prefix}gcc"
12903 aros_target_cxx="${prefix}g++"
12904 aros_target_as="${prefix}as"
12905 aros_target_ld="${prefix}ld"
12906 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12907 aros_target_objcopy="${prefix}objcopy"
12908 aros_target_objdump="${prefix}objdump"
12909 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12910 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12911 aros_target_strip="${prefix}strip"
12912 aros_plain_nm="${prefix}nm"
12913 aros_plain_ar="${prefix}ar"
12915 # Check whether --enable-includes was given.
12916 if test "${enable_includes+set}" = set; then :
12917 enableval=$enable_includes; aros_target_incl=$enable_includes
12918 else
12919 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12923 if test "$aros_kernel_includes" = ""; then
12924 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12925 aros_kernel_includes="-isystem $aros_target_incl"
12929 if test "$aros_kernel_includes" != "" ; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12931 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12932 if test "$aros_kernel_cc_includes" = "" ; then
12933 # Try to guess where the directory is.
12934 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12935 if test -d $aros_kernel_cc_includes; then
12936 # Check if there is also an include-fixed directory and add it
12937 # to kernel compiler's include path as it may contain some of
12938 # the headers we need.
12939 if test -d "$aros_kernel_cc_includes"-fixed; then
12940 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12942 # Check for specific includes directory. Neede for Ubuntu 11.10
12943 if test -d "/usr/include/i386-linux-gnu"; then
12944 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12946 else
12947 # The directory doesn't exist, we need to do some more work.
12948 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12950 # These are the headers we're looking for.
12951 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12952 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12953 zutil.h stdint.h"
12955 dirs=
12956 for h in $headers; do
12957 # Which other headers are needed by each of the above?
12958 deps=$(echo "#include <$h>" | \
12959 $aros_kernel_cc -E -M - 2>/dev/null | \
12960 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12962 # Copy all the needed headers to a directory beneath gendir.
12963 for d in $deps; do
12964 h=$(basename $d)
12965 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12966 sed -n "s,^.*/include\(/.*\),\1,p")
12967 ! test -d $dir && mkdir -p $dir
12968 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12969 done
12970 done
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12974 $as_echo "$aros_kernel_cc_includes" >&6; }
12975 # Adding -nostdinc to kernel includes as they are always used together.
12976 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12979 if test "$crosstools" != "yes"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12981 $as_echo_n "checking for the target compiler's include path... " >&6; }
12982 if test "$aros_target_cc_includes" = "" ; then
12983 #try to guess where the directory is
12984 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12985 if ! test -d $aros_target_cc_includes; then
12986 #the directory doesn't exist, we need to do some more work
12987 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12989 #these are the headers we're looking for
12990 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12991 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12992 zutil.h"
12994 dirs=
12995 for h in $headers; do
12996 #which other headers each of the above headers needs?
12997 deps=$(echo "#include <$h>" | \
12998 $orig_target_cc -E -M - 2>/dev/null | \
12999 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13001 #copy all the needed headers to a directory beneath gendir
13002 for d in $deps; do
13003 h=$(basename $d)
13004 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13005 sed -n "s,^.*/include\(/.*\),\1,p")
13006 ! test -d $dir && mkdir -p $dir
13007 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13008 done
13009 done
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13013 $as_echo "$aros_target_cc_includes" >&6; }
13014 else
13015 # We do not know which gcc version we are going to build and what we need to know
13016 # here is different for different versions so this will be set later during the
13017 # build of crosstools.
13018 aros_target_cc_includes=@aros_target_cc_includes@
13022 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13023 # On GCC >= 4.0 -iquote should be used
13026 save_cc="$CC"
13027 save_cflags="$CFLAGS"
13028 CFLAGS="-iquote."
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13030 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13031 if test "x-$crosstools" != "x-yes"; then
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13036 main ()
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then :
13044 has_iquote="yes"
13045 else
13046 has_iquote="no"
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 else
13050 # we do know it is supported for the smallest version of gcc we are going to build
13051 # we assume it's also supported by later versions
13052 has_iquote=yes
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13055 $as_echo "$has_iquote" >&6; }
13056 if test "x-$has_iquote" = "x-yes" ; then
13057 host_cflags_iquote=-iquote
13058 host_cflags_iquote_end=
13059 else
13060 host_cflags_iquote=-I
13061 host_cflags_iquote_end=-I-
13063 kernel_cflags_iquote=$host_cflags_iquote
13064 kernel_cflags_iquote_end=$host_cflags_iquote_end
13065 if test "x-$cross_compiling" = "x-yes"; then
13066 CC="$aros_kernel_cc"
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13068 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13069 if test "x-$crosstools" != "x-yes"; then
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13074 main ()
13078 return 0;
13080 _ACEOF
13081 if ac_fn_c_try_compile "$LINENO"; then :
13082 use_no_stack_protector="yes"
13083 else
13084 use_no_stack_protector="no"
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 else
13088 # we do know it is supported for the smallest version of gcc we are going to build
13089 # we assume it's also supported by later versions
13090 use_no_stack_protector=yes
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13093 $as_echo "$use_no_stack_protector" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13095 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13096 if test "x-$crosstools" != "x-yes"; then
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13101 main ()
13105 return 0;
13107 _ACEOF
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109 has_iquote="yes"
13110 else
13111 has_iquote="no"
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 else
13115 # we do know it is supported for the smallest version of gcc we are going to build
13116 # we assume it's also supported by later versions
13117 has_iquote=yes
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13120 $as_echo "$has_iquote" >&6; }
13121 if test "x-$has_iquote" = "x-yes" ; then
13122 kernel_cflags_iquote=-iquote
13123 kernel_cflags_iquote_end=
13124 else
13125 kernel_cflags_iquote=-I
13126 kernel_cflags_iquote_end=-I-
13129 aros_cflags_iquote=$kernel_cflags_iquote
13130 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13131 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13132 CC="$orig_target_cc"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13134 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13135 if test "x-$crosstools" != "x-yes"; then
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13140 main ()
13144 return 0;
13146 _ACEOF
13147 if ac_fn_c_try_compile "$LINENO"; then :
13148 has_iquote="yes"
13149 else
13150 has_iquote="no"
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 else
13154 # we do know it is supported for the smallest version of gcc we are going to build
13155 # we assume it's also supported by later versions
13156 has_iquote=yes
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13159 $as_echo "$has_iquote" >&6; }
13160 if test "x-$has_iquote" = "x-yes" ; then
13161 aros_cflags_iquote=-iquote
13162 aros_cflags_iquote_end=
13163 else
13164 aros_cflags_iquote=-I
13165 aros_cflags_iquote_end=-I-
13168 if test "x-$use_no_stack_protector" = "x-yes" ; then
13169 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13173 #-----------------------------------------------------------------------------
13175 # Check if the target compiler supports some options used for delinting:
13176 # -Wunused-but-set-variable
13177 # -Warray-bounds
13178 # -Wenum-compare
13179 # -Wstrict-overflow
13180 # -Wformat-security
13182 if test "x-$crosstools" != "x-yes"; then
13183 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13184 CC="$orig_target_cc"
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13187 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13188 CFLAGS=-Wunused-but-set-variable
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13193 main ()
13197 return 0;
13199 _ACEOF
13200 if ac_fn_c_try_compile "$LINENO"; then :
13201 aros_unused_but_set_variable="yes"
13202 else
13203 aros_unused_but_set_variable="no"
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13207 $as_echo "$aros_unused_but_set_variable" >&6; }
13208 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13209 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13213 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13214 CFLAGS=-Warray-bounds
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13219 main ()
13223 return 0;
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227 aros_array_bounds="yes"
13228 else
13229 aros_array_bounds="no"
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13233 $as_echo "$aros_array_bounds" >&6; }
13234 if test "x-$aros_array_bounds" = "x-yes" ; then
13235 aros_cflags_array_bounds=-Wno-array-bounds
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13239 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13240 CFLAGS=-Wenum-compare
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13245 main ()
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"; then :
13253 aros_enum_compare="yes"
13254 else
13255 aros_enum_compare="no"
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13259 $as_echo "$aros_enum_compare" >&6; }
13260 if test "x-$aros_enum_compare" = "x-yes" ; then
13261 aros_cflags_enum_compare=-Wno-enum-compare
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13265 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13266 CFLAGS=-Wstrict-overflow
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13271 main ()
13275 return 0;
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 aros_strict_overflow="yes"
13280 else
13281 aros_strict_overflow="no"
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13285 $as_echo "$aros_strict_overflow" >&6; }
13286 if test "x-$aros_strict_overflow" = "x-yes" ; then
13287 aros_cflags_strict_overflow=-Wno-strict-overflow
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13291 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13292 CFLAGS=-Wformat-security
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13297 main ()
13301 return 0;
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13305 aros_format_security="yes"
13306 else
13307 aros_format_security="no"
13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13311 $as_echo "$aros_format_security" >&6; }
13312 if test "x-$aros_format_security" = "x-yes" ; then
13313 aros_cflags_format_security=-Wno-format-security
13315 else
13316 # We do not know which gcc version we are going to build and what we need to know
13317 # here is different for different versions so this will be set later during the
13318 # build of crosstools.
13319 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13320 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13321 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13322 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13323 aros_cflags_format_security=@aros_cflags_format_security@
13326 #-----------------------------------------------------------------------------
13328 # Check if we can explicitly choose older version of symbol hashing
13330 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13331 CC="$aros_kernel_cc"
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13333 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13338 main ()
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 use_hash_style="yes"
13347 else
13348 use_hash_style="no"
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13353 $as_echo "$use_hash_style" >&6; }
13354 if test "x-$use_hash_style" = "x-yes" ; then
13355 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13357 CC="$save_cc"
13358 CFLAGS="$save_cflags"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13369 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13371 # Check whether --with-resolution was given.
13372 if test "${with_resolution+set}" = set; then :
13373 withval=$with_resolution; resolution=$withval
13374 else
13375 resolution=none
13378 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13379 if test "$resolution" = "yes" ; then
13380 resolution="none"
13382 if test "$resolution" = "no" ; then
13383 resolution="none"
13385 if test "$resolution" != "none" ; then
13386 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13387 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13388 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13391 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13392 aros_cv_default_wbwidth=$aros_default_wbwidth
13393 aros_cv_default_wbheight=$aros_default_wbheight
13394 aros_cv_default_wbdepth=$aros_default_wbdepth
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13397 $as_echo_n "checking if serial debug is enabled... " >&6; }
13399 # Check whether --with-serial-debug was given.
13400 if test "${with_serial_debug+set}" = set; then :
13401 withval=$with_serial_debug; serial_debug=$withval
13402 else
13403 serial_debug=none
13406 if test "$aros_serial_debug" = 0 ; then
13407 serial_debug_forced=""
13408 if test "$serial_debug" = "yes" ; then
13409 serial_debug="1"
13411 if test "$serial_debug" = "no" ; then
13412 serial_debug="none"
13414 else
13415 serial_debug_forced="(forced)"
13416 serial_debug=$aros_serial_debug
13418 if test "$serial_debug" != "none" ; then
13419 aros_serial_debug=$serial_debug
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13421 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13428 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13429 # Check whether --enable-palm_debug_hack was given.
13430 if test "${enable_palm_debug_hack+set}" = set; then :
13431 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13432 else
13433 palm_debug_hack="no"
13436 if test "$palm_debug_hack" = "yes" ; then
13437 aros_palm_debug_hack="1"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13440 $as_echo "$palm_debug_hack" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13443 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13444 # Check whether --enable-usb30_code was given.
13445 if test "${enable_usb30_code+set}" = set; then :
13446 enableval=$enable_usb30_code; usb30_code="yes"
13447 else
13448 usb30_code="no"
13451 if test "$usb30_code" = "yes" ; then
13452 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13453 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13456 $as_echo "$usb30_code" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13459 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13460 # Check whether --enable-nesting_supervisor was given.
13461 if test "${enable_nesting_supervisor+set}" = set; then :
13462 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13463 else
13464 nesting_supervisor="no"
13467 if test "$nesting_supervisor" = "yes" ; then
13468 aros_nesting_supervisor="1"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13471 $as_echo "$nesting_supervisor" >&6; }
13473 if test "$aros_enable_mmu" = "" ; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13475 $as_echo_n "checking if MMU support is enabled... " >&6; }
13476 # Check whether --enable-mmu was given.
13477 if test "${enable_mmu+set}" = set; then :
13478 enableval=$enable_mmu; aros_enable_mmu=$enableval
13479 else
13480 aros_enable_mmu="yes"
13483 if test "$aros_enable_mmu" = "" ; then
13484 aros_enable_mmu="yes"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13487 $as_echo "$aros_enable_mmu" >&6; }
13489 if test "$aros_enable_mmu" = "no" ; then
13490 aros_enable_mmu="0"
13491 else
13492 aros_enable_mmu="1"
13496 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13498 if test "x-$need_dlopen" != "x-no" ; then
13499 save_libs="$LIBS"
13500 LIBS=""
13501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13502 if test "x$ac_cv_func_dlopen" = xyes; then :
13503 have_dl="yes"
13504 else
13505 have_dl="no"
13508 if test "x-$have_dl" = "x-no" ; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13510 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13511 if ${ac_cv_lib_dl_dlopen+:} false; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-ldl $LIBS"
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char dlopen ();
13527 main ()
13529 return dlopen ();
13531 return 0;
13533 _ACEOF
13534 if ac_fn_c_try_link "$LINENO"; then :
13535 ac_cv_lib_dl_dlopen=yes
13536 else
13537 ac_cv_lib_dl_dlopen=no
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13544 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13545 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13546 have_dl="yes"
13547 aros_host_ldflags="$aros_host_ldflags -ldl"
13548 else
13549 have_dl="no"
13553 if test "x-$have_dl" = "x-no" ; then
13554 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13556 LIBS="$save_libs"
13560 # Check whether --enable-x11_hidd was given.
13561 if test "${enable_x11_hidd+set}" = set; then :
13562 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13563 else
13564 x11_hidd="$need_x11"
13567 case "x-$x11_hidd" in
13568 x-yes|x-no|x-auto) ;;
13569 *) x11_hidd="$need_x11" ;;
13570 esac
13572 ENABLE_X11=0
13574 if test "x-$x11_hidd" != "x-no" ; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13577 $as_echo_n "checking for X... " >&6; }
13580 # Check whether --with-x was given.
13581 if test "${with_x+set}" = set; then :
13582 withval=$with_x;
13585 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13586 if test "x$with_x" = xno; then
13587 # The user explicitly disabled X.
13588 have_x=disabled
13589 else
13590 case $x_includes,$x_libraries in #(
13591 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13592 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 # One or both of the vars are not set, and there is no cached value.
13596 ac_x_includes=no ac_x_libraries=no
13597 rm -f -r conftest.dir
13598 if mkdir conftest.dir; then
13599 cd conftest.dir
13600 cat >Imakefile <<'_ACEOF'
13601 incroot:
13602 @echo incroot='${INCROOT}'
13603 usrlibdir:
13604 @echo usrlibdir='${USRLIBDIR}'
13605 libdir:
13606 @echo libdir='${LIBDIR}'
13607 _ACEOF
13608 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13609 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13610 for ac_var in incroot usrlibdir libdir; do
13611 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13612 done
13613 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13614 for ac_extension in a so sl dylib la dll; do
13615 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13616 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13617 ac_im_usrlibdir=$ac_im_libdir; break
13619 done
13620 # Screen out bogus values from the imake configuration. They are
13621 # bogus both because they are the default anyway, and because
13622 # using them would break gcc on systems where it needs fixed includes.
13623 case $ac_im_incroot in
13624 /usr/include) ac_x_includes= ;;
13625 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13626 esac
13627 case $ac_im_usrlibdir in
13628 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13629 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13630 esac
13632 cd ..
13633 rm -f -r conftest.dir
13636 # Standard set of common directories for X headers.
13637 # Check X11 before X11Rn because it is often a symlink to the current release.
13638 ac_x_header_dirs='
13639 /usr/X11/include
13640 /usr/X11R7/include
13641 /usr/X11R6/include
13642 /usr/X11R5/include
13643 /usr/X11R4/include
13645 /usr/include/X11
13646 /usr/include/X11R7
13647 /usr/include/X11R6
13648 /usr/include/X11R5
13649 /usr/include/X11R4
13651 /usr/local/X11/include
13652 /usr/local/X11R7/include
13653 /usr/local/X11R6/include
13654 /usr/local/X11R5/include
13655 /usr/local/X11R4/include
13657 /usr/local/include/X11
13658 /usr/local/include/X11R7
13659 /usr/local/include/X11R6
13660 /usr/local/include/X11R5
13661 /usr/local/include/X11R4
13663 /usr/X386/include
13664 /usr/x386/include
13665 /usr/XFree86/include/X11
13667 /usr/include
13668 /usr/local/include
13669 /usr/unsupported/include
13670 /usr/athena/include
13671 /usr/local/x11r5/include
13672 /usr/lpp/Xamples/include
13674 /usr/openwin/include
13675 /usr/openwin/share/include'
13677 if test "$ac_x_includes" = no; then
13678 # Guess where to find include files, by looking for Xlib.h.
13679 # First, try using that file with no special directory specified.
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 #include <X11/Xlib.h>
13683 _ACEOF
13684 if ac_fn_c_try_cpp "$LINENO"; then :
13685 # We can compile using X headers with no special include directory.
13686 ac_x_includes=
13687 else
13688 for ac_dir in $ac_x_header_dirs; do
13689 if test -r "$ac_dir/X11/Xlib.h"; then
13690 ac_x_includes=$ac_dir
13691 break
13693 done
13695 rm -f conftest.err conftest.i conftest.$ac_ext
13696 fi # $ac_x_includes = no
13698 if test "$ac_x_libraries" = no; then
13699 # Check for the libraries.
13700 # See if we find them without any special options.
13701 # Don't add to $LIBS permanently.
13702 ac_save_LIBS=$LIBS
13703 LIBS="-lX11 $LIBS"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 #include <X11/Xlib.h>
13708 main ()
13710 XrmInitialize ()
13712 return 0;
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 LIBS=$ac_save_LIBS
13717 # We can link X programs with no special library path.
13718 ac_x_libraries=
13719 else
13720 LIBS=$ac_save_LIBS
13721 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13723 # Don't even attempt the hair of trying to link an X program!
13724 for ac_extension in a so sl dylib la dll; do
13725 if test -r "$ac_dir/libX11.$ac_extension"; then
13726 ac_x_libraries=$ac_dir
13727 break 2
13729 done
13730 done
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 fi # $ac_x_libraries = no
13736 case $ac_x_includes,$ac_x_libraries in #(
13737 no,* | *,no | *\'*)
13738 # Didn't find X, or a directory has "'" in its name.
13739 ac_cv_have_x="have_x=no";; #(
13741 # Record where we found X for the cache.
13742 ac_cv_have_x="have_x=yes\
13743 ac_x_includes='$ac_x_includes'\
13744 ac_x_libraries='$ac_x_libraries'"
13745 esac
13747 ;; #(
13748 *) have_x=yes;;
13749 esac
13750 eval "$ac_cv_have_x"
13751 fi # $with_x != no
13753 if test "$have_x" != yes; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13755 $as_echo "$have_x" >&6; }
13756 no_x=yes
13757 else
13758 # If each of the values was on the command line, it overrides each guess.
13759 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13760 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13761 # Update the cache value to reflect the command line values.
13762 ac_cv_have_x="have_x=yes\
13763 ac_x_includes='$x_includes'\
13764 ac_x_libraries='$x_libraries'"
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13766 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13770 x_cflags=
13771 for path in $x_libraries
13773 x_cflags="$x_cflags -L$path"
13774 done
13776 for path in $x_includes
13778 x_cflags="$x_cflags -I$path"
13779 done
13781 if test "x-$no_x" = "x-yes" ; then
13783 if test "x-$x11_hidd" != "x-auto" ; then
13784 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13787 else
13788 x11_hidd_target=kernel-x11gfx-kobj
13789 ENABLE_X11=1
13791 # Check whether --enable-x11_shm was given.
13792 if test "${enable_x11_shm+set}" = set; then :
13793 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13794 else
13795 x11_hidd_shm="auto"
13798 case "x-$x11_hidd_shm" in
13799 x-yes|x-no|x-auto) ;;
13800 *) x11_hidd_shm="auto" ;;
13801 esac
13803 have_xshm=no
13805 if test "x-$x11_hidd_shm" != "x-no" ; then
13807 for ac_header in sys/ipc.h
13808 do :
13809 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13810 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_SYS_IPC_H 1
13813 _ACEOF
13817 done
13819 for ac_header in sys/shm.h
13820 do :
13821 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13822 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13823 cat >>confdefs.h <<_ACEOF
13824 #define HAVE_SYS_SHM_H 1
13825 _ACEOF
13829 done
13832 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13834 save_cflags="$CFLAGS"
13835 CFLAGS="$CFLAGS $x_cflags"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13837 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13838 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-lXext $LIBS"
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849 #ifdef __cplusplus
13850 extern "C"
13851 #endif
13852 char XShmQueryExtension ();
13854 main ()
13856 return XShmQueryExtension ();
13858 return 0;
13860 _ACEOF
13861 if ac_fn_c_try_link "$LINENO"; then :
13862 ac_cv_lib_Xext_XShmQueryExtension=yes
13863 else
13864 ac_cv_lib_Xext_XShmQueryExtension=no
13866 rm -f core conftest.err conftest.$ac_objext \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13871 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13872 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13873 have_xshm=yes
13876 CFLAGS="$save_cflags"
13880 if test "x-$have_xshm" = "x-yes" ; then
13881 DO_XSHM_SUPPORT="1"
13882 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13883 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13884 else
13885 DO_XSHM_SUPPORT="0"
13889 # Check whether --enable-x11_vidmode was given.
13890 if test "${enable_x11_vidmode+set}" = set; then :
13891 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13892 else
13893 x11_hidd_vidmode="auto"
13896 case "x-$x11_hidd_vidmode" in
13897 x-yes|x-no|x-auto) ;;
13898 *) x11_hidd_vidmode="auto" ;;
13899 esac
13901 have_vidmode=no
13903 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13905 save_cflags="$CFLAGS"
13906 CFLAGS="$CFLAGS $x_cflags"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13908 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13909 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 ac_check_lib_save_LIBS=$LIBS
13913 LIBS="-lXxf86vm $LIBS"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13920 #ifdef __cplusplus
13921 extern "C"
13922 #endif
13923 char XF86VidModeQueryExtension ();
13925 main ()
13927 return XF86VidModeQueryExtension ();
13929 return 0;
13931 _ACEOF
13932 if ac_fn_c_try_link "$LINENO"; then :
13933 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13934 else
13935 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 LIBS=$ac_check_lib_save_LIBS
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13942 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13943 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13944 have_vidmode=yes
13947 CFLAGS="$save_cflags"
13950 if test "x-$have_vidmode" = "x-yes" ; then
13951 DO_VIDMODE_SUPPORT="1"
13952 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13953 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13954 else
13955 DO_VIDMODE_SUPPORT="0"
13959 aros_host_x11_includes=$x_includes
13960 aros_host_x11_libdirs=$x_libraries
13964 # Check whether --enable-sdl_hidd was given.
13965 if test "${enable_sdl_hidd+set}" = set; then :
13966 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13967 else
13968 sdl_hidd="auto"
13971 case "x-$sdl_hidd" in
13972 x-yes|x-no|x-auto) ;;
13973 *) sdl_hidd="auto" ;;
13974 esac
13976 if test "x-$sdl_hidd" != "x-no" ; then
13979 # Check whether --with-sdl-prefix was given.
13980 if test "${with_sdl_prefix+set}" = set; then :
13981 withval=$with_sdl_prefix; sdl_prefix="$withval"
13982 else
13983 sdl_prefix=""
13987 # Check whether --with-sdl-exec-prefix was given.
13988 if test "${with_sdl_exec_prefix+set}" = set; then :
13989 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13990 else
13991 sdl_exec_prefix=""
13994 # Check whether --enable-sdltest was given.
13995 if test "${enable_sdltest+set}" = set; then :
13996 enableval=$enable_sdltest;
13997 else
13998 enable_sdltest=yes
14002 if test x$sdl_exec_prefix != x ; then
14003 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14004 if test x${SDL_CONFIG+set} != xset ; then
14005 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14008 if test x$sdl_prefix != x ; then
14009 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14010 if test x${SDL_CONFIG+set} != xset ; then
14011 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14015 as_save_PATH="$PATH"
14016 if test "x$prefix" != xNONE; then
14017 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14019 # Extract the first word of "sdl-config", so it can be a program name with args.
14020 set dummy sdl-config; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 $as_echo_n "checking for $ac_word... " >&6; }
14023 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 case $SDL_CONFIG in
14027 [\\/]* | ?:[\\/]*)
14028 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 break 2
14042 done
14043 done
14044 IFS=$as_save_IFS
14046 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14048 esac
14050 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14051 if test -n "$SDL_CONFIG"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14053 $as_echo "$SDL_CONFIG" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14060 PATH="$as_save_PATH"
14061 min_sdl_version=1.2.10
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14063 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14064 no_sdl=""
14065 if test "$SDL_CONFIG" = "no" ; then
14066 no_sdl=yes
14067 else
14068 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14069 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14071 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14072 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14073 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14074 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14075 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14077 if test "x$enable_sdltest" = "xyes" ; then
14078 ac_save_CFLAGS="$CFLAGS"
14079 ac_save_CXXFLAGS="$CXXFLAGS"
14080 ac_save_LIBS="$LIBS"
14081 CFLAGS="$CFLAGS $SDL_CFLAGS"
14082 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14083 LIBS="$LIBS $SDL_LIBS"
14084 rm -f conf.sdltest
14085 if test "$cross_compiling" = yes; then :
14086 echo $ac_n "cross compiling; assumed OK... $ac_c"
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14091 #include <stdio.h>
14092 #include <stdlib.h>
14093 #include <string.h>
14094 #include "SDL.h"
14096 char*
14097 my_strdup (char *str)
14099 char *new_str;
14101 if (str)
14103 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14104 strcpy (new_str, str);
14106 else
14107 new_str = NULL;
14109 return new_str;
14112 int main (int argc, char *argv[])
14114 int major, minor, micro;
14115 char *tmp_version;
14117 /* This hangs on some systems (?)
14118 system ("touch conf.sdltest");
14120 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14122 /* HP/UX 9 (%@#!) writes to sscanf strings */
14123 tmp_version = my_strdup("$min_sdl_version");
14124 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14125 printf("%s, bad version string\n", "$min_sdl_version");
14126 exit(1);
14129 if (($sdl_major_version > major) ||
14130 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14131 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14133 return 0;
14135 else
14137 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14138 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14139 printf("*** best to upgrade to the required version.\n");
14140 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14141 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14142 printf("*** config.cache before re-running configure\n");
14143 return 1;
14148 _ACEOF
14149 if ac_fn_c_try_run "$LINENO"; then :
14151 else
14152 no_sdl=yes
14154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14155 conftest.$ac_objext conftest.beam conftest.$ac_ext
14158 CFLAGS="$ac_save_CFLAGS"
14159 CXXFLAGS="$ac_save_CXXFLAGS"
14160 LIBS="$ac_save_LIBS"
14163 if test "x$no_sdl" = x ; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165 $as_echo "yes" >&6; }
14166 have_sdl="yes"
14167 else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14170 if test "$SDL_CONFIG" = "no" ; then
14171 echo "*** The sdl-config script installed by SDL could not be found"
14172 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14173 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14174 echo "*** full path to sdl-config."
14175 else
14176 if test -f conf.sdltest ; then
14178 else
14179 echo "*** Could not run SDL test program, checking why..."
14180 CFLAGS="$CFLAGS $SDL_CFLAGS"
14181 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14182 LIBS="$LIBS $SDL_LIBS"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14186 #include <stdio.h>
14187 #include "SDL.h"
14189 int main(int argc, char *argv[])
14190 { return 0; }
14191 #undef main
14192 #define main K_and_R_C_main
14195 main ()
14197 return 0;
14199 return 0;
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 echo "*** The test program compiled, but did not run. This usually means"
14204 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14205 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14206 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14207 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14208 echo "*** is required on your system"
14209 echo "***"
14210 echo "*** If you have an old version installed, it is best to remove it, although"
14211 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14212 else
14213 echo "*** The test program failed to compile or link. See the file config.log for the"
14214 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14215 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14216 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14218 rm -f core conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 CFLAGS="$ac_save_CFLAGS"
14221 CXXFLAGS="$ac_save_CXXFLAGS"
14222 LIBS="$ac_save_LIBS"
14225 SDL_CFLAGS=""
14226 SDL_LIBS=""
14227 have_sdl="no"
14231 rm -f conf.sdltest
14234 if test "x-$have_sdl" != "x-yes" ; then
14236 if test "x-$sdl_hidd" != "x-auto" ; then
14237 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14240 else
14241 sdl_hidd_target=kernel-hidd-sdl
14242 aros_host_sdl_cflags=SDL_CFLAGS
14243 aros_host_sdl_libs=SDL_LIBS
14247 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14248 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14253 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14254 oss_library_target=workbench-libs-oss-unix
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14260 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14261 # Check whether --enable-dbus was given.
14262 if test "${enable_dbus+set}" = set; then :
14263 enableval=$enable_dbus; dbus="yes"
14264 else
14265 dbus="no"
14268 if test "$dbus" = "yes" ; then
14269 ENABLE_DBUS=1
14270 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14271 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14272 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14273 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14274 else
14275 ENABLE_DBUS=0
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14278 $as_echo "$dbus" >&6; }
14280 if test "$use_kernel_cc_wrapper" = "yes" ; then
14281 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14284 if test "${crosstools}" != "yes" ; then
14285 aros_target_toolchain=no
14286 else
14287 aros_target_toolchain=yes
14291 # Generic
14303 # Compatability with other Amiga-like operation systems
14306 # Host related
14334 # Target Related
14398 # Delinting target compiler flags
14405 # Graphics Related
14422 # Native version related
14425 # Palm native version related
14428 # Unix/Hosted version related
14431 # MMU related
14434 # Apple iOS related
14439 # ARM default GCC target related
14445 # Android related
14449 # DBUS related
14456 #X11 related
14459 # Debug related
14465 # Collect-aros stuff: "-ius" to ignore undefined symbols
14468 # C compiler related
14471 #ObjC compiler related
14474 # USB3.0 code
14477 case "$aros_flavour" in
14478 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14479 aros_flavour="emulation" ;;
14480 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14481 aros_flavour="emulation" ;;
14482 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14483 aros_flavour="standalone";;
14484 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14485 aros_flavour="standalone";;
14486 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14487 aros_flavour="native" ;;
14488 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14489 aros_flavour="native" ;;
14490 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14491 aros_flavour="linklib" ;;
14492 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14493 aros_flavour="palmnative" ;;
14494 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14495 aros_flavour="mac68knative" ;;
14496 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14497 aros_flavour="ppcnative" ;;
14498 esac
14500 if test ! -d ${aros_inc_dir} ; then
14501 ${MKDIR} ${aros_inc_dir}
14503 if test ! -d ${aros_geninc_dir} ; then
14504 ${MKDIR} ${aros_geninc_dir}
14506 if test ! -d ${aros_hostcfg_dir} ; then
14507 ${MKDIR} ${aros_hostcfg_dir}
14509 if test ! -d ${aros_targetcfg_dir} ; then
14510 ${MKDIR} ${aros_targetcfg_dir}
14512 if test ! -d ${aros_tools_dir} ; then
14513 ${MKDIR} ${aros_tools_dir}
14515 if test ! -d ${aros_scripts_dir} ; then
14516 ${MKDIR} ${aros_scripts_dir}
14519 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14522 ac_config_commands="$ac_config_commands compiler_executable"
14524 ac_config_commands="$ac_config_commands genmf_executable"
14527 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"
14530 cat >confcache <<\_ACEOF
14531 # This file is a shell script that caches the results of configure
14532 # tests run on this system so they can be shared between configure
14533 # scripts and configure runs, see configure's option --config-cache.
14534 # It is not useful on other systems. If it contains results you don't
14535 # want to keep, you may remove or edit it.
14537 # config.status only pays attention to the cache file if you give it
14538 # the --recheck option to rerun configure.
14540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14542 # following values.
14544 _ACEOF
14546 # The following way of writing the cache mishandles newlines in values,
14547 # but we know of no workaround that is simple, portable, and efficient.
14548 # So, we kill variables containing newlines.
14549 # Ultrix sh set writes to stderr and can't be redirected directly,
14550 # and sets the high bit in the cache file unless we assign to the vars.
14552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14553 eval ac_val=\$$ac_var
14554 case $ac_val in #(
14555 *${as_nl}*)
14556 case $ac_var in #(
14557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14559 esac
14560 case $ac_var in #(
14561 _ | IFS | as_nl) ;; #(
14562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14563 *) { eval $ac_var=; unset $ac_var;} ;;
14564 esac ;;
14565 esac
14566 done
14568 (set) 2>&1 |
14569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14570 *${as_nl}ac_space=\ *)
14571 # `set' does not quote correctly, so add quotes: double-quote
14572 # substitution turns \\\\ into \\, and sed turns \\ into \.
14573 sed -n \
14574 "s/'/'\\\\''/g;
14575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14576 ;; #(
14578 # `set' quotes correctly as required by POSIX, so do not add quotes.
14579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14581 esac |
14582 sort
14584 sed '
14585 /^ac_cv_env_/b end
14586 t clear
14587 :clear
14588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14589 t end
14590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14591 :end' >>confcache
14592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14593 if test -w "$cache_file"; then
14594 if test "x$cache_file" != "x/dev/null"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14596 $as_echo "$as_me: updating cache $cache_file" >&6;}
14597 if test ! -f "$cache_file" || test -h "$cache_file"; then
14598 cat confcache >"$cache_file"
14599 else
14600 case $cache_file in #(
14601 */* | ?:*)
14602 mv -f confcache "$cache_file"$$ &&
14603 mv -f "$cache_file"$$ "$cache_file" ;; #(
14605 mv -f confcache "$cache_file" ;;
14606 esac
14609 else
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14614 rm -f confcache
14616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14617 # Let make expand exec_prefix.
14618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14620 DEFS=-DHAVE_CONFIG_H
14622 ac_libobjs=
14623 ac_ltlibobjs=
14625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14626 # 1. Remove the extension, and $U if already installed.
14627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14630 # will be set to the directory where LIBOBJS objects are built.
14631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14633 done
14634 LIBOBJS=$ac_libobjs
14636 LTLIBOBJS=$ac_ltlibobjs
14640 : "${CONFIG_STATUS=./config.status}"
14641 ac_write_fail=0
14642 ac_clean_files_save=$ac_clean_files
14643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14646 as_write_fail=0
14647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14648 #! $SHELL
14649 # Generated by $as_me.
14650 # Run this file to recreate the current configuration.
14651 # Compiler output produced by configure, useful for debugging
14652 # configure, is in config.log if it exists.
14654 debug=false
14655 ac_cs_recheck=false
14656 ac_cs_silent=false
14658 SHELL=\${CONFIG_SHELL-$SHELL}
14659 export SHELL
14660 _ASEOF
14661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14662 ## -------------------- ##
14663 ## M4sh Initialization. ##
14664 ## -------------------- ##
14666 # Be more Bourne compatible
14667 DUALCASE=1; export DUALCASE # for MKS sh
14668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14669 emulate sh
14670 NULLCMD=:
14671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14672 # is contrary to our usage. Disable this feature.
14673 alias -g '${1+"$@"}'='"$@"'
14674 setopt NO_GLOB_SUBST
14675 else
14676 case `(set -o) 2>/dev/null` in #(
14677 *posix*) :
14678 set -o posix ;; #(
14679 *) :
14681 esac
14685 as_nl='
14687 export as_nl
14688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14692 # Prefer a ksh shell builtin over an external printf program on Solaris,
14693 # but without wasting forks for bash or zsh.
14694 if test -z "$BASH_VERSION$ZSH_VERSION" \
14695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14696 as_echo='print -r --'
14697 as_echo_n='print -rn --'
14698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14699 as_echo='printf %s\n'
14700 as_echo_n='printf %s'
14701 else
14702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14704 as_echo_n='/usr/ucb/echo -n'
14705 else
14706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14707 as_echo_n_body='eval
14708 arg=$1;
14709 case $arg in #(
14710 *"$as_nl"*)
14711 expr "X$arg" : "X\\(.*\\)$as_nl";
14712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14713 esac;
14714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14716 export as_echo_n_body
14717 as_echo_n='sh -c $as_echo_n_body as_echo'
14719 export as_echo_body
14720 as_echo='sh -c $as_echo_body as_echo'
14723 # The user is always right.
14724 if test "${PATH_SEPARATOR+set}" != set; then
14725 PATH_SEPARATOR=:
14726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14728 PATH_SEPARATOR=';'
14733 # IFS
14734 # We need space, tab and new line, in precisely that order. Quoting is
14735 # there to prevent editors from complaining about space-tab.
14736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14737 # splitting by setting IFS to empty value.)
14738 IFS=" "" $as_nl"
14740 # Find who we are. Look in the path if we contain no directory separator.
14741 as_myself=
14742 case $0 in #((
14743 *[\\/]* ) as_myself=$0 ;;
14744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14745 for as_dir in $PATH
14747 IFS=$as_save_IFS
14748 test -z "$as_dir" && as_dir=.
14749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14750 done
14751 IFS=$as_save_IFS
14754 esac
14755 # We did not find ourselves, most probably we were run as `sh COMMAND'
14756 # in which case we are not to be found in the path.
14757 if test "x$as_myself" = x; then
14758 as_myself=$0
14760 if test ! -f "$as_myself"; then
14761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14762 exit 1
14765 # Unset variables that we do not need and which cause bugs (e.g. in
14766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14767 # suppresses any "Segmentation fault" message there. '((' could
14768 # trigger a bug in pdksh 5.2.14.
14769 for as_var in BASH_ENV ENV MAIL MAILPATH
14770 do eval test x\${$as_var+set} = xset \
14771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14772 done
14773 PS1='$ '
14774 PS2='> '
14775 PS4='+ '
14777 # NLS nuisances.
14778 LC_ALL=C
14779 export LC_ALL
14780 LANGUAGE=C
14781 export LANGUAGE
14783 # CDPATH.
14784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14788 # ----------------------------------------
14789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14791 # script with STATUS, using 1 if that was 0.
14792 as_fn_error ()
14794 as_status=$1; test $as_status -eq 0 && as_status=1
14795 if test "$4"; then
14796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14799 $as_echo "$as_me: error: $2" >&2
14800 as_fn_exit $as_status
14801 } # as_fn_error
14804 # as_fn_set_status STATUS
14805 # -----------------------
14806 # Set $? to STATUS, without forking.
14807 as_fn_set_status ()
14809 return $1
14810 } # as_fn_set_status
14812 # as_fn_exit STATUS
14813 # -----------------
14814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14815 as_fn_exit ()
14817 set +e
14818 as_fn_set_status $1
14819 exit $1
14820 } # as_fn_exit
14822 # as_fn_unset VAR
14823 # ---------------
14824 # Portably unset VAR.
14825 as_fn_unset ()
14827 { eval $1=; unset $1;}
14829 as_unset=as_fn_unset
14830 # as_fn_append VAR VALUE
14831 # ----------------------
14832 # Append the text in VALUE to the end of the definition contained in VAR. Take
14833 # advantage of any shell optimizations that allow amortized linear growth over
14834 # repeated appends, instead of the typical quadratic growth present in naive
14835 # implementations.
14836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14837 eval 'as_fn_append ()
14839 eval $1+=\$2
14841 else
14842 as_fn_append ()
14844 eval $1=\$$1\$2
14846 fi # as_fn_append
14848 # as_fn_arith ARG...
14849 # ------------------
14850 # Perform arithmetic evaluation on the ARGs, and store the result in the
14851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14852 # must be portable across $(()) and expr.
14853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14854 eval 'as_fn_arith ()
14856 as_val=$(( $* ))
14858 else
14859 as_fn_arith ()
14861 as_val=`expr "$@" || test $? -eq 1`
14863 fi # as_fn_arith
14866 if expr a : '\(a\)' >/dev/null 2>&1 &&
14867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14868 as_expr=expr
14869 else
14870 as_expr=false
14873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14874 as_basename=basename
14875 else
14876 as_basename=false
14879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14880 as_dirname=dirname
14881 else
14882 as_dirname=false
14885 as_me=`$as_basename -- "$0" ||
14886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14887 X"$0" : 'X\(//\)$' \| \
14888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14889 $as_echo X/"$0" |
14890 sed '/^.*\/\([^/][^/]*\)\/*$/{
14891 s//\1/
14894 /^X\/\(\/\/\)$/{
14895 s//\1/
14898 /^X\/\(\/\).*/{
14899 s//\1/
14902 s/.*/./; q'`
14904 # Avoid depending upon Character Ranges.
14905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14908 as_cr_digits='0123456789'
14909 as_cr_alnum=$as_cr_Letters$as_cr_digits
14911 ECHO_C= ECHO_N= ECHO_T=
14912 case `echo -n x` in #(((((
14913 -n*)
14914 case `echo 'xy\c'` in
14915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14916 xy) ECHO_C='\c';;
14917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14918 ECHO_T=' ';;
14919 esac;;
14921 ECHO_N='-n';;
14922 esac
14924 rm -f conf$$ conf$$.exe conf$$.file
14925 if test -d conf$$.dir; then
14926 rm -f conf$$.dir/conf$$.file
14927 else
14928 rm -f conf$$.dir
14929 mkdir conf$$.dir 2>/dev/null
14931 if (echo >conf$$.file) 2>/dev/null; then
14932 if ln -s conf$$.file conf$$ 2>/dev/null; then
14933 as_ln_s='ln -s'
14934 # ... but there are two gotchas:
14935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14937 # In both cases, we have to default to `cp -pR'.
14938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14939 as_ln_s='cp -pR'
14940 elif ln conf$$.file conf$$ 2>/dev/null; then
14941 as_ln_s=ln
14942 else
14943 as_ln_s='cp -pR'
14945 else
14946 as_ln_s='cp -pR'
14948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14949 rmdir conf$$.dir 2>/dev/null
14952 # as_fn_mkdir_p
14953 # -------------
14954 # Create "$as_dir" as a directory, including parents if necessary.
14955 as_fn_mkdir_p ()
14958 case $as_dir in #(
14959 -*) as_dir=./$as_dir;;
14960 esac
14961 test -d "$as_dir" || eval $as_mkdir_p || {
14962 as_dirs=
14963 while :; do
14964 case $as_dir in #(
14965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14966 *) as_qdir=$as_dir;;
14967 esac
14968 as_dirs="'$as_qdir' $as_dirs"
14969 as_dir=`$as_dirname -- "$as_dir" ||
14970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14971 X"$as_dir" : 'X\(//\)[^/]' \| \
14972 X"$as_dir" : 'X\(//\)$' \| \
14973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14974 $as_echo X"$as_dir" |
14975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14976 s//\1/
14979 /^X\(\/\/\)[^/].*/{
14980 s//\1/
14983 /^X\(\/\/\)$/{
14984 s//\1/
14987 /^X\(\/\).*/{
14988 s//\1/
14991 s/.*/./; q'`
14992 test -d "$as_dir" && break
14993 done
14994 test -z "$as_dirs" || eval "mkdir $as_dirs"
14995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14998 } # as_fn_mkdir_p
14999 if mkdir -p . 2>/dev/null; then
15000 as_mkdir_p='mkdir -p "$as_dir"'
15001 else
15002 test -d ./-p && rmdir ./-p
15003 as_mkdir_p=false
15007 # as_fn_executable_p FILE
15008 # -----------------------
15009 # Test if FILE is an executable regular file.
15010 as_fn_executable_p ()
15012 test -f "$1" && test -x "$1"
15013 } # as_fn_executable_p
15014 as_test_x='test -x'
15015 as_executable_p=as_fn_executable_p
15017 # Sed expression to map a string onto a valid CPP name.
15018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15020 # Sed expression to map a string onto a valid variable name.
15021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15024 exec 6>&1
15025 ## ----------------------------------- ##
15026 ## Main body of $CONFIG_STATUS script. ##
15027 ## ----------------------------------- ##
15028 _ASEOF
15029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 # Save the log message, to keep $0 and so on meaningful, and to
15033 # report actual input values of CONFIG_FILES etc. instead of their
15034 # values after options handling.
15035 ac_log="
15036 This file was extended by $as_me, which was
15037 generated by GNU Autoconf 2.69. Invocation command line was
15039 CONFIG_FILES = $CONFIG_FILES
15040 CONFIG_HEADERS = $CONFIG_HEADERS
15041 CONFIG_LINKS = $CONFIG_LINKS
15042 CONFIG_COMMANDS = $CONFIG_COMMANDS
15043 $ $0 $@
15045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15048 _ACEOF
15050 case $ac_config_files in *"
15051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15052 esac
15054 case $ac_config_headers in *"
15055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15056 esac
15059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15060 # Files that config.status was made for.
15061 config_files="$ac_config_files"
15062 config_headers="$ac_config_headers"
15063 config_commands="$ac_config_commands"
15065 _ACEOF
15067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15068 ac_cs_usage="\
15069 \`$as_me' instantiates files and other configuration actions
15070 from templates according to the current configuration. Unless the files
15071 and actions are specified as TAGs, all are instantiated by default.
15073 Usage: $0 [OPTION]... [TAG]...
15075 -h, --help print this help, then exit
15076 -V, --version print version number and configuration settings, then exit
15077 --config print configuration, then exit
15078 -q, --quiet, --silent
15079 do not print progress messages
15080 -d, --debug don't remove temporary files
15081 --recheck update $as_me by reconfiguring in the same conditions
15082 --file=FILE[:TEMPLATE]
15083 instantiate the configuration file FILE
15084 --header=FILE[:TEMPLATE]
15085 instantiate the configuration header FILE
15087 Configuration files:
15088 $config_files
15090 Configuration headers:
15091 $config_headers
15093 Configuration commands:
15094 $config_commands
15096 Report bugs to the package provider."
15098 _ACEOF
15099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15100 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15101 ac_cs_version="\\
15102 config.status
15103 configured by $0, generated by GNU Autoconf 2.69,
15104 with options \\"\$ac_cs_config\\"
15106 Copyright (C) 2012 Free Software Foundation, Inc.
15107 This config.status script is free software; the Free Software Foundation
15108 gives unlimited permission to copy, distribute and modify it."
15110 ac_pwd='$ac_pwd'
15111 srcdir='$srcdir'
15112 test -n "\$AWK" || AWK=awk
15113 _ACEOF
15115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15116 # The default lists apply if the user does not specify any file.
15117 ac_need_defaults=:
15118 while test $# != 0
15120 case $1 in
15121 --*=?*)
15122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15124 ac_shift=:
15126 --*=)
15127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15128 ac_optarg=
15129 ac_shift=:
15132 ac_option=$1
15133 ac_optarg=$2
15134 ac_shift=shift
15136 esac
15138 case $ac_option in
15139 # Handling of the options.
15140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15141 ac_cs_recheck=: ;;
15142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15143 $as_echo "$ac_cs_version"; exit ;;
15144 --config | --confi | --conf | --con | --co | --c )
15145 $as_echo "$ac_cs_config"; exit ;;
15146 --debug | --debu | --deb | --de | --d | -d )
15147 debug=: ;;
15148 --file | --fil | --fi | --f )
15149 $ac_shift
15150 case $ac_optarg in
15151 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15152 '') as_fn_error $? "missing file argument" ;;
15153 esac
15154 as_fn_append CONFIG_FILES " '$ac_optarg'"
15155 ac_need_defaults=false;;
15156 --header | --heade | --head | --hea )
15157 $ac_shift
15158 case $ac_optarg in
15159 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15160 esac
15161 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15162 ac_need_defaults=false;;
15163 --he | --h)
15164 # Conflict between --help and --header
15165 as_fn_error $? "ambiguous option: \`$1'
15166 Try \`$0 --help' for more information.";;
15167 --help | --hel | -h )
15168 $as_echo "$ac_cs_usage"; exit ;;
15169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15171 ac_cs_silent=: ;;
15173 # This is an error.
15174 -*) as_fn_error $? "unrecognized option: \`$1'
15175 Try \`$0 --help' for more information." ;;
15177 *) as_fn_append ac_config_targets " $1"
15178 ac_need_defaults=false ;;
15180 esac
15181 shift
15182 done
15184 ac_configure_extra_args=
15186 if $ac_cs_silent; then
15187 exec 6>/dev/null
15188 ac_configure_extra_args="$ac_configure_extra_args --silent"
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 if \$ac_cs_recheck; then
15194 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15195 shift
15196 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15197 CONFIG_SHELL='$SHELL'
15198 export CONFIG_SHELL
15199 exec "\$@"
15202 _ACEOF
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 exec 5>>config.log
15206 echo
15207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15208 ## Running $as_me. ##
15209 _ASBOX
15210 $as_echo "$ac_log"
15211 } >&5
15213 _ACEOF
15214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216 # INIT-COMMANDS
15219 aros_host_exe_suffix=${aros_host_exe_suffix}
15220 aros_tools_dir=${aros_tools_dir}
15221 aros_target_cpu=${aros_target_cpu}
15222 aros_target_arch=${aros_target_arch}
15223 aros_target_suffix=${aros_target_suffix}
15224 orig_target_nm=${orig_target_nm}
15225 orig_target_as=${orig_target_as}
15226 orig_target_ar=${orig_target_ar}
15227 orig_target_ranlib=${orig_target_ranlib}
15228 orig_target_objdump=${orig_target_objdump}
15229 orig_target_objcopy=${orig_target_objcopy}
15230 orig_target_strip=${orig_target_strip}
15231 aros_kernel_ld=${aros_kernel_ld}
15234 aros_tools_dir=${aros_tools_dir}
15237 _ACEOF
15239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 # Handling of arguments.
15242 for ac_config_target in $ac_config_targets
15244 case $ac_config_target in
15245 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15246 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15247 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15249 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15250 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15251 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15252 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15253 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15254 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15255 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15256 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15257 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15258 "${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" ;;
15259 "${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" ;;
15260 "${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" ;;
15261 "${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" ;;
15262 "${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" ;;
15263 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15264 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15265 "${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" ;;
15267 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15268 esac
15269 done
15272 # If the user did not use the arguments to specify the items to instantiate,
15273 # then the envvar interface is used. Set only those that are not.
15274 # We use the long form for the default assignment because of an extremely
15275 # bizarre bug on SunOS 4.1.3.
15276 if $ac_need_defaults; then
15277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15282 # Have a temporary directory for convenience. Make it in the build tree
15283 # simply because there is no reason against having it here, and in addition,
15284 # creating and moving files from /tmp can sometimes cause problems.
15285 # Hook for its removal unless debugging.
15286 # Note that there is a small window in which the directory will not be cleaned:
15287 # after its creation but before its name has been assigned to `$tmp'.
15288 $debug ||
15290 tmp= ac_tmp=
15291 trap 'exit_status=$?
15292 : "${ac_tmp:=$tmp}"
15293 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15295 trap 'as_fn_exit 1' 1 2 13 15
15297 # Create a (secure) tmp directory for tmp files.
15300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15301 test -d "$tmp"
15302 } ||
15304 tmp=./conf$$-$RANDOM
15305 (umask 077 && mkdir "$tmp")
15306 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15307 ac_tmp=$tmp
15309 # Set up the scripts for CONFIG_FILES section.
15310 # No need to generate them if there are no CONFIG_FILES.
15311 # This happens for instance with `./config.status config.h'.
15312 if test -n "$CONFIG_FILES"; then
15315 ac_cr=`echo X | tr X '\015'`
15316 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15317 # But we know of no other shell where ac_cr would be empty at this
15318 # point, so we can use a bashism as a fallback.
15319 if test "x$ac_cr" = x; then
15320 eval ac_cr=\$\'\\r\'
15322 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15323 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15324 ac_cs_awk_cr='\\r'
15325 else
15326 ac_cs_awk_cr=$ac_cr
15329 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15330 _ACEOF
15334 echo "cat >conf$$subs.awk <<_ACEOF" &&
15335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15336 echo "_ACEOF"
15337 } >conf$$subs.sh ||
15338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15340 ac_delim='%!_!# '
15341 for ac_last_try in false false false false false :; do
15342 . ./conf$$subs.sh ||
15343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15346 if test $ac_delim_n = $ac_delim_num; then
15347 break
15348 elif $ac_last_try; then
15349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15350 else
15351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15353 done
15354 rm -f conf$$subs.sh
15356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15358 _ACEOF
15359 sed -n '
15361 s/^/S["/; s/!.*/"]=/
15364 s/^[^!]*!//
15365 :repl
15366 t repl
15367 s/'"$ac_delim"'$//
15368 t delim
15371 s/\(.\{148\}\)..*/\1/
15372 t more1
15373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15376 b repl
15377 :more1
15378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15381 s/.\{148\}//
15382 t nl
15383 :delim
15385 s/\(.\{148\}\)..*/\1/
15386 t more2
15387 s/["\\]/\\&/g; s/^/"/; s/$/"/
15390 :more2
15391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15394 s/.\{148\}//
15395 t delim
15396 ' <conf$$subs.awk | sed '
15397 /^[^""]/{
15399 s/\n//
15401 ' >>$CONFIG_STATUS || ac_write_fail=1
15402 rm -f conf$$subs.awk
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 _ACAWK
15405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15406 for (key in S) S_is_set[key] = 1
15407 FS = "\a"
15411 line = $ 0
15412 nfields = split(line, field, "@")
15413 substed = 0
15414 len = length(field[1])
15415 for (i = 2; i < nfields; i++) {
15416 key = field[i]
15417 keylen = length(key)
15418 if (S_is_set[key]) {
15419 value = S[key]
15420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15421 len += length(value) + length(field[++i])
15422 substed = 1
15423 } else
15424 len += 1 + keylen
15427 print line
15430 _ACAWK
15431 _ACEOF
15432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15433 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15435 else
15437 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15438 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15439 _ACEOF
15441 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15442 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15443 # trailing colons and then remove the whole line if VPATH becomes empty
15444 # (actually we leave an empty line to preserve line numbers).
15445 if test "x$srcdir" = x.; then
15446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15448 s///
15449 s/^/:/
15450 s/[ ]*$/:/
15451 s/:\$(srcdir):/:/g
15452 s/:\${srcdir}:/:/g
15453 s/:@srcdir@:/:/g
15454 s/^:*//
15455 s/:*$//
15457 s/\(=[ ]*\).*/\1/
15459 s/\n//
15460 s/^[^=]*=[ ]*$//
15464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465 fi # test -n "$CONFIG_FILES"
15467 # Set up the scripts for CONFIG_HEADERS section.
15468 # No need to generate them if there are no CONFIG_HEADERS.
15469 # This happens for instance with `./config.status Makefile'.
15470 if test -n "$CONFIG_HEADERS"; then
15471 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15472 BEGIN {
15473 _ACEOF
15475 # Transform confdefs.h into an awk script `defines.awk', embedded as
15476 # here-document in config.status, that substitutes the proper values into
15477 # config.h.in to produce config.h.
15479 # Create a delimiter string that does not exist in confdefs.h, to ease
15480 # handling of long lines.
15481 ac_delim='%!_!# '
15482 for ac_last_try in false false :; do
15483 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15484 if test -z "$ac_tt"; then
15485 break
15486 elif $ac_last_try; then
15487 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15488 else
15489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15491 done
15493 # For the awk script, D is an array of macro values keyed by name,
15494 # likewise P contains macro parameters if any. Preserve backslash
15495 # newline sequences.
15497 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15498 sed -n '
15499 s/.\{148\}/&'"$ac_delim"'/g
15500 t rset
15501 :rset
15502 s/^[ ]*#[ ]*define[ ][ ]*/ /
15503 t def
15505 :def
15506 s/\\$//
15507 t bsnl
15508 s/["\\]/\\&/g
15509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15510 D["\1"]=" \3"/p
15511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15513 :bsnl
15514 s/["\\]/\\&/g
15515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15516 D["\1"]=" \3\\\\\\n"\\/p
15517 t cont
15518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15519 t cont
15521 :cont
15523 s/.\{148\}/&'"$ac_delim"'/g
15524 t clear
15525 :clear
15526 s/\\$//
15527 t bsnlc
15528 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15530 :bsnlc
15531 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15532 b cont
15533 ' <confdefs.h | sed '
15534 s/'"$ac_delim"'/"\\\
15535 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 for (key in D) D_is_set[key] = 1
15539 FS = "\a"
15541 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15542 line = \$ 0
15543 split(line, arg, " ")
15544 if (arg[1] == "#") {
15545 defundef = arg[2]
15546 mac1 = arg[3]
15547 } else {
15548 defundef = substr(arg[1], 2)
15549 mac1 = arg[2]
15551 split(mac1, mac2, "(") #)
15552 macro = mac2[1]
15553 prefix = substr(line, 1, index(line, defundef) - 1)
15554 if (D_is_set[macro]) {
15555 # Preserve the white space surrounding the "#".
15556 print prefix "define", macro P[macro] D[macro]
15557 next
15558 } else {
15559 # Replace #undef with comments. This is necessary, for example,
15560 # in the case of _POSIX_SOURCE, which is predefined and required
15561 # on some systems where configure will not decide to define it.
15562 if (defundef == "undef") {
15563 print "/*", prefix defundef, macro, "*/"
15564 next
15568 { print }
15569 _ACAWK
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15572 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15573 fi # test -n "$CONFIG_HEADERS"
15576 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15577 shift
15578 for ac_tag
15580 case $ac_tag in
15581 :[FHLC]) ac_mode=$ac_tag; continue;;
15582 esac
15583 case $ac_mode$ac_tag in
15584 :[FHL]*:*);;
15585 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15586 :[FH]-) ac_tag=-:-;;
15587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15588 esac
15589 ac_save_IFS=$IFS
15590 IFS=:
15591 set x $ac_tag
15592 IFS=$ac_save_IFS
15593 shift
15594 ac_file=$1
15595 shift
15597 case $ac_mode in
15598 :L) ac_source=$1;;
15599 :[FH])
15600 ac_file_inputs=
15601 for ac_f
15603 case $ac_f in
15604 -) ac_f="$ac_tmp/stdin";;
15605 *) # Look for the file first in the build tree, then in the source tree
15606 # (if the path is not absolute). The absolute path cannot be DOS-style,
15607 # because $ac_f cannot contain `:'.
15608 test -f "$ac_f" ||
15609 case $ac_f in
15610 [\\/$]*) false;;
15611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15612 esac ||
15613 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15614 esac
15615 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15616 as_fn_append ac_file_inputs " '$ac_f'"
15617 done
15619 # Let's still pretend it is `configure' which instantiates (i.e., don't
15620 # use $as_me), people would be surprised to read:
15621 # /* config.h. Generated by config.status. */
15622 configure_input='Generated from '`
15623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15624 `' by configure.'
15625 if test x"$ac_file" != x-; then
15626 configure_input="$ac_file. $configure_input"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15628 $as_echo "$as_me: creating $ac_file" >&6;}
15630 # Neutralize special characters interpreted by sed in replacement strings.
15631 case $configure_input in #(
15632 *\&* | *\|* | *\\* )
15633 ac_sed_conf_input=`$as_echo "$configure_input" |
15634 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15635 *) ac_sed_conf_input=$configure_input;;
15636 esac
15638 case $ac_tag in
15639 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15641 esac
15643 esac
15645 ac_dir=`$as_dirname -- "$ac_file" ||
15646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15647 X"$ac_file" : 'X\(//\)[^/]' \| \
15648 X"$ac_file" : 'X\(//\)$' \| \
15649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15650 $as_echo X"$ac_file" |
15651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15652 s//\1/
15655 /^X\(\/\/\)[^/].*/{
15656 s//\1/
15659 /^X\(\/\/\)$/{
15660 s//\1/
15663 /^X\(\/\).*/{
15664 s//\1/
15667 s/.*/./; q'`
15668 as_dir="$ac_dir"; as_fn_mkdir_p
15669 ac_builddir=.
15671 case "$ac_dir" in
15672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15675 # A ".." for each directory in $ac_dir_suffix.
15676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15677 case $ac_top_builddir_sub in
15678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15680 esac ;;
15681 esac
15682 ac_abs_top_builddir=$ac_pwd
15683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15684 # for backward compatibility:
15685 ac_top_builddir=$ac_top_build_prefix
15687 case $srcdir in
15688 .) # We are building in place.
15689 ac_srcdir=.
15690 ac_top_srcdir=$ac_top_builddir_sub
15691 ac_abs_top_srcdir=$ac_pwd ;;
15692 [\\/]* | ?:[\\/]* ) # Absolute name.
15693 ac_srcdir=$srcdir$ac_dir_suffix;
15694 ac_top_srcdir=$srcdir
15695 ac_abs_top_srcdir=$srcdir ;;
15696 *) # Relative name.
15697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15698 ac_top_srcdir=$ac_top_build_prefix$srcdir
15699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15700 esac
15701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15704 case $ac_mode in
15707 # CONFIG_FILE
15710 _ACEOF
15712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15713 # If the template does not know about datarootdir, expand it.
15714 # FIXME: This hack should be removed a few years after 2.60.
15715 ac_datarootdir_hack=; ac_datarootdir_seen=
15716 ac_sed_dataroot='
15717 /datarootdir/ {
15721 /@datadir@/p
15722 /@docdir@/p
15723 /@infodir@/p
15724 /@localedir@/p
15725 /@mandir@/p'
15726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15727 *datarootdir*) ac_datarootdir_seen=yes;;
15728 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15731 _ACEOF
15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733 ac_datarootdir_hack='
15734 s&@datadir@&$datadir&g
15735 s&@docdir@&$docdir&g
15736 s&@infodir@&$infodir&g
15737 s&@localedir@&$localedir&g
15738 s&@mandir@&$mandir&g
15739 s&\\\${datarootdir}&$datarootdir&g' ;;
15740 esac
15741 _ACEOF
15743 # Neutralize VPATH when `$srcdir' = `.'.
15744 # Shell code in configure.ac might set extrasub.
15745 # FIXME: do we really want to maintain this feature?
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 ac_sed_extra="$ac_vpsub
15748 $extrasub
15749 _ACEOF
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15753 s|@configure_input@|$ac_sed_conf_input|;t t
15754 s&@top_builddir@&$ac_top_builddir_sub&;t t
15755 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15756 s&@srcdir@&$ac_srcdir&;t t
15757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15758 s&@top_srcdir@&$ac_top_srcdir&;t t
15759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15760 s&@builddir@&$ac_builddir&;t t
15761 s&@abs_builddir@&$ac_abs_builddir&;t t
15762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15763 $ac_datarootdir_hack
15765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15773 which seems to be undefined. Please make sure it is defined" >&5
15774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15775 which seems to be undefined. Please make sure it is defined" >&2;}
15777 rm -f "$ac_tmp/stdin"
15778 case $ac_file in
15779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15781 esac \
15782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15786 # CONFIG_HEADER
15788 if test x"$ac_file" != x-; then
15790 $as_echo "/* $configure_input */" \
15791 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15792 } >"$ac_tmp/config.h" \
15793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15794 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15796 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15797 else
15798 rm -f "$ac_file"
15799 mv "$ac_tmp/config.h" "$ac_file" \
15800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15802 else
15803 $as_echo "/* $configure_input */" \
15804 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15805 || as_fn_error $? "could not create -" "$LINENO" 5
15809 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15810 $as_echo "$as_me: executing $ac_file commands" >&6;}
15812 esac
15815 case $ac_file$ac_mode in
15816 "compiler_executable":C)
15817 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15818 mkdir -p $prefix
15819 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15820 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15822 echo ${prefix2}
15823 echo ${prefix3}
15824 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15826 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15827 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15828 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15829 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15830 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15831 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15832 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15834 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15836 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15838 esac
15839 done # for ac_tag
15842 as_fn_exit 0
15843 _ACEOF
15844 ac_clean_files=$ac_clean_files_save
15846 test $ac_write_fail = 0 ||
15847 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15850 # configure is writing to config.log, and then calls config.status.
15851 # config.status does its own redirection, appending to config.log.
15852 # Unfortunately, on DOS this fails, as config.log is still kept open
15853 # by configure, so config.status won't be able to write to it; its
15854 # output is simply discarded. So we exec the FD to /dev/null,
15855 # effectively closing config.log, so it can be properly (re)opened and
15856 # appended to by config.status. When coming back to configure, we
15857 # need to make the FD available again.
15858 if test "$no_create" != yes; then
15859 ac_cs_success=:
15860 ac_config_status_args=
15861 test "$silent" = yes &&
15862 ac_config_status_args="$ac_config_status_args --quiet"
15863 exec 5>/dev/null
15864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15865 exec 5>>config.log
15866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15867 # would make configure fail if this is the last instruction.
15868 $ac_cs_success || as_fn_exit 1
15870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15872 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15877 #XXX compatability...
15878 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15880 if test -n "$aros_shared_cflags" ; then
15881 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15882 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg