Reenabled some debug output.
[AROS.git] / configure
blob36e1df1d52ce1b19c01abfa06e6d1a2f70eca5db
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 gcc_target_cpu
625 ignore_undefined_symbols
626 aros_modules_debug
627 aros_stack_debug
628 aros_mungwall_debug
629 aros_debug
630 ENABLE_X11
631 KERNEL_DBUS_INCLUDES
632 KERNEL_DBUS_KOBJ
633 DBUS_LIBFLAGS
634 DBUS_CFLAGS
635 ENABLE_DBUS
636 aros_android_level
637 gcc_default_float_abi
638 gcc_default_fpu
639 gcc_default_cpu_tune
640 gcc_default_cpu
641 aros_ios_sdk
642 aros_ios_version
643 aros_ios_platform
644 aros_enable_mmu
645 aros_nesting_supervisor
646 aros_palm_debug_hack
647 aros_serial_debug
648 aros_host_sdl_libs
649 aros_host_sdl_cflags
650 aros_host_x11_libdirs
651 aros_host_x11_includes
652 DO_VIDMODE_SUPPORT
653 DO_XSHM_SUPPORT
654 aros_default_wbdepth
655 aros_default_wbheight
656 aros_default_wbwidth
657 oss_library_target
658 pci_hidd_target
659 sdl_hidd_target
660 x11_hidd_target
661 aros_cflags_format_security
662 aros_cflags_strict_overflow
663 aros_cflags_enum_compare
664 aros_cflags_array_bounds
665 aros_cflags_unused_but_set_variable
666 crosstools_cxx_target
667 crosstools_target
668 aros_target_strip_flags
669 aros_target_genmap
670 aros_debug_ldflags
671 aros_debug_aflags
672 aros_debug_cflags
673 aros_target_cflags
674 aros_kernel_ldflags
675 aros_kernel_objcflags
676 aros_kernel_includes
677 aros_kernel_cflags
678 aros_shared_ldflags
679 aros_shared_aflags
680 aros_shared_cflags
681 aros_config_ldflags
682 aros_config_aflags
683 aros_config_cflags
684 aros_arch_libs
685 aros_compiler_libs
686 aros_object_format
687 aros_shared_ld
688 aros_shared_default
689 aros_target_nm
690 aros_target_strip
691 aros_target_objcopy
692 aros_target_objdump
693 aros_target_cc_path
694 aros_target_cc_includes
695 aros_target_ld
696 aros_target_as
697 aros_target_cpp
698 aros_target_cxx
699 aros_target_cc
700 aros_plain_ar
701 aros_plain_nm
702 aros_target_ranlib
703 aros_target_ar
704 aros_target_suffix
705 aros_target_variant
706 aros_target_cpu
707 aros_target_family
708 aros_target_arch
709 aros_target_bootloader
710 aros_target_iconset
711 aros_target_guitheme
712 aros_tools_dir
713 aros_host_lib_suffix
714 aros_host_exe_suffix
715 aros_host_mkargs
716 aros_host_mkdep
717 aros_host_debug
718 aros_host_ldflags
719 gnu89_inline
720 aros_host_cxxflags
721 aros_host_cflags
722 aros_host_make
723 aros_host_cxx
724 aros_host_cc
725 aros_host_cpp
726 aros_host_cpu
727 aros_host_arch
728 aros_cc_pre
729 aros_amigaos_compliance
730 AROS_PORTSSRCDIR
731 AROS_CROSSTOOLSDIR
732 SRCDIR
733 AROS_BUILDDIR_UNIX
734 AROS_BUILDDIR
735 aros_target_toolchain
736 aros_flavour_uc
737 aros_flavour
738 aros_cpu
739 aros_arch
740 SDL_LIBS
741 SDL_CFLAGS
742 SDL_CONFIG
743 XMKMF
744 aros_cflags_iquote_end
745 aros_cflags_iquote
746 kernel_cflags_iquote_end
747 kernel_cflags_iquote
748 host_cflags_iquote_end
749 host_cflags_iquote
750 aros_target_nostdlib_ldflags
751 aros_target_detach_ldflags
752 aros_target_nix_ldflags
753 aros_target_nostartup_ldflags
754 aros_target_nostdinc_cflags
755 aros_kernel_rescomp
756 orig_target_objdump
757 orig_target_objcopy
758 orig_target_strip
759 orig_target_nm
760 orig_target_ranlib
761 orig_target_ar
762 orig_target_as
763 orig_target_ld
764 orig_target_cxx
765 orig_target_cc
766 orig_target_cpp
767 aros_kernel_objdump
768 aros_kernel_objcopy
769 aros_kernel_strip
770 aros_kernel_nm
771 aros_kernel_ranlib
772 aros_kernel_ar
773 aros_kernel_as
774 aros_kernel_ld
775 aros_kernel_cxx
776 aros_kernel_cc
777 aros_kernel_cpp
779 android_tool
780 CCACHE
781 DISTCC
782 LIBOBJS
783 EGREP
784 GREP
786 TEST
789 pkgpyexecdir
790 pyexecdir
791 pkgpythondir
792 pythondir
793 PYTHON_PLATFORM
794 PYTHON_EXEC_PREFIX
795 PYTHON_PREFIX
796 PYTHON_VERSION
797 PYTHON
798 PATCH
799 CHMOD
801 PPMTOILBM
802 PNGTOPNM
803 FLEX
804 BISON
807 UNIQ
808 SORT
809 TOUCH
810 MKDIR
811 ECHO
815 aros_host_strip
816 aros_host_ranlib
817 aros_host_ar
818 aros_host_automake
819 aros_host_autoheader
820 aros_host_autoconf
821 aros_host_aclocal
822 aros_host_ld
823 MMAKE
826 ac_ct_CC
827 CFLAGS
829 OBJEXT
830 EXEEXT
831 ac_ct_CXX
832 CPPFLAGS
833 LDFLAGS
834 CXXFLAGS
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files=''
883 ac_user_opts='
884 enable_option_checking
885 enable_build_type
886 enable_debug
887 enable_distcc
888 enable_ccache
889 with_kernel_gcc_version
890 with_gcc_version
891 with_optimization
892 with_paranoia
893 enable_target_variant
894 with_xcode
895 with_sdk_version
896 with_sdk
897 with_ndk
898 with_ndk_version
899 enable_amigaos_compliance
900 with_kernel_toolchain_prefix
901 with_elf_toolchain_prefix
902 with_aros_toolchain
903 enable_crosstools
904 with_aros_toolchain_install
905 with_cpu
906 with_fpu
907 with_float
908 with_aros_gcc
909 with_portssources
910 with_bootloader
911 with_iconset
912 with_theme
913 enable_includes
914 with_resolution
915 with_serial_debug
916 enable_palm_debug_hack
917 enable_nesting_supervisor
918 enable_mmu
919 enable_x11_hidd
920 with_x
921 enable_x11_shm
922 enable_x11_vidmode
923 enable_sdl_hidd
924 with_sdl_prefix
925 with_sdl_exec_prefix
926 enable_sdltest
927 enable_dbus
929 ac_precious_vars='build_alias
930 host_alias
931 target_alias
933 CXXFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
939 CFLAGS
941 PYTHON
942 XMKMF'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *=) ac_optarg= ;;
1007 *) ac_optarg=yes ;;
1008 esac
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1014 ac_dashdash=yes ;;
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 esac
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 esac
1351 done
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1435 /^X\(\/\/\)$/{
1436 s//\1/
1439 /^X\(\/\).*/{
1440 s//\1/
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1448 else
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 X features:
1541 --x-includes=DIR X include files are in DIR
1542 --x-libraries=DIR X library files are in DIR
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1550 if test -n "$ac_init_help"; then
1552 cat <<\_ACEOF
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-build-type=TYPE
1559 Select the build type. Available types are:
1560 personal, nightly, snapshot, milestone, release. Do
1561 NOT use this option unless you know what you are
1562 doing! (default=personal)
1563 --enable-debug=list Enable different types of debug. Commas or
1564 whitespaces can be used to separate the items in the
1565 list. Available types of debug are: all, none,
1566 messages, stack, mungwall, modules, symbols. If no
1567 list is provided then "all" is assumed.
1568 (default=none)
1569 --enable-distcc Use distcc as a front end to the compiler
1570 (default=no).
1571 --enable-ccache Use ccache as a front end to the compiler
1572 (default=no).
1573 --enable-target-variant=NAME
1574 Enable a specific target variant(default=none)
1575 --enable-amigaos-compliance=VERSION
1576 Enforce userspace AmigaOS compliance to a specific
1577 KickStart version (default=none).
1578 --disable-crosstools Do not build cross-compiler toolchain
1579 --enable-includes=dir Alternative system include directory
1580 --enable-palm-debug-hack
1581 Enable palm debug output hack in palm native
1582 (default=no)
1583 --enable-nesting-supervisor
1584 Enable nesting supervisor support in unix
1585 (default=no)
1586 --disable-mmu Disable MMU support (default=enabled)
1587 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1588 --enable-x11-shm use X11 shared memory (default=auto)
1589 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1590 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1591 --disable-sdltest Do not try to compile and run a test SDL program
1592 --enable-dbus Enable DBUS support via dbus.library (default=no)
1594 Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-kernel-gcc-version=VERSION
1598 Use host gcc-VERSION for building AROS
1599 --with-gcc-version=VERSION
1600 Use host gcc-VERSION for building AROS
1601 --with-optimization=FLAGS
1602 Use optimization flags FLAGS (default=-O2).
1603 --with-paranoia=FLAGS CC flags to enable paranoia
1604 --with-xcode=PATH Specify XCode path for iOS targets
1605 (default=/Developer).
1606 --with-sdk-version=VERSION
1607 Use iOS SDK version VERSION (default=4.1).
1608 --with-sdk=PATH Specify Android SDK path
1609 (default=$default_android_sdk).
1610 --with-ndk=PATH Specify Android NDK path (default=none).
1611 --with-sdk-version=LEVEL
1612 Use Android SDK for API LEVEL (default=12).
1613 --with-ndk-version=LEVEL
1614 Use Android NDK for API LEVEL (default=9).
1615 --with-kernel-toolchain-prefix=...
1616 Specify crosscompile toolchain prefix for kernel
1617 objects
1618 --with-elf-toolchain-prefix=...
1619 Specify crosscompile toolchain prefix to wrap for
1620 AROS objects
1621 --with-aros-toolchain=PREFIX
1622 Specify prebuilt AROS toolchain
1623 --with-aros-toolchain-install=DIR
1624 Where to install or search for cross tools binaries
1625 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1626 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1627 --with-float=<spec> Specify floating point ABI
1628 (default=$gcc_default_float_abi).
1629 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1630 --with-portssources=DIR Where to download sourcecode for external ports
1631 --with-bootloader=NAME Use a specific bootloader
1632 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1633 --with-theme=NAME Use a specific GUI Theme
1634 --with-resolution=XRESxYRESxDEPTH
1635 Default resolution of the initial WorkbenchScreen
1636 --with-serial-debug Enable serial debug output in native (default=no)
1637 --with-x use the X Window System
1638 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1639 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1641 Some influential environment variables:
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 CPP C preprocessor
1652 PYTHON the Python interpreter
1653 XMKMF Path to xmkmf, Makefile generator for X Window System
1655 Use these variables to override the choices made by `configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1658 Report bugs to the package provider.
1659 _ACEOF
1660 ac_status=$?
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 continue
1669 ac_builddir=.
1671 case "$ac_dir" in
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 esac ;;
1681 esac
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1687 case $srcdir in
1688 .) # We are building in place.
1689 ac_srcdir=.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1696 *) # Relative name.
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 esac
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1711 else
1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 fi || ac_status=$?
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1715 done
1718 test -n "$ac_init_help" && exit $ac_status
1719 if $ac_init_version; then
1720 cat <<\_ACEOF
1721 configure
1722 generated by GNU Autoconf 2.69
1724 Copyright (C) 2012 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1727 _ACEOF
1728 exit
1731 ## ------------------------ ##
1732 ## Autoconf initialization. ##
1733 ## ------------------------ ##
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 ac_retval=1
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1809 } # ac_fn_c_try_compile
1811 # ac_fn_c_try_cpp LINENO
1812 # ----------------------
1813 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_cpp ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_cpp conftest.$ac_ext"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } > conftest.i && {
1833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_retval=1
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_cpp
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 test -x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_link
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1898 # accordingly.
1899 ac_fn_c_check_header_mongrel ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if eval \${$3+:} false; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1908 eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 else
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1922 else
1923 ac_header_compiler=no
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1938 else
1939 ac_header_preproc=no
1941 rm -f conftest.err conftest.i conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 yes:no: )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 no:yes:* )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_mongrel
1981 # ac_fn_c_try_run LINENO
1982 # ----------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1984 # that executables *can* be run.
1985 ac_fn_c_try_run ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>&5
1996 ac_status=$?
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1999 { { case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_try") 2>&5
2006 ac_status=$?
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; }; }; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: program exited with status $ac_status" >&5
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_retval=$ac_status
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_c_try_run
2023 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists and can be compiled using the include files in
2026 # INCLUDES, setting the cache variable VAR accordingly.
2027 ac_fn_c_check_header_compile ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2038 #include <$2>
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$3=yes"
2042 else
2043 eval "$3=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_compile
2054 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2055 # ----------------------------------------------------
2056 # Tries to find if the field MEMBER exists in type AGGR, after including
2057 # INCLUDES, setting cache variable VAR accordingly.
2058 ac_fn_c_check_member ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2062 $as_echo_n "checking for $2.$3... " >&6; }
2063 if eval \${$4+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static $2 ac_aggr;
2073 if (ac_aggr.$3)
2074 return 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 eval "$4=yes"
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static $2 ac_aggr;
2089 if (sizeof ac_aggr.$3)
2090 return 0;
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$4=yes"
2097 else
2098 eval "$4=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 eval ac_res=\$$4
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_member
2111 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2112 # ---------------------------------------------
2113 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2114 # accordingly.
2115 ac_fn_c_check_decl ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 as_decl_name=`echo $2|sed 's/ *(.*//'`
2119 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2121 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 main ()
2131 #ifndef $as_decl_name
2132 #ifdef __cplusplus
2133 (void) $as_decl_use;
2134 #else
2135 (void) $as_decl_name;
2136 #endif
2137 #endif
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 eval "$3=yes"
2145 else
2146 eval "$3=no"
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_decl
2157 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2158 # -------------------------------------------
2159 # Tests whether TYPE exists after having included INCLUDES, setting cache
2160 # variable VAR accordingly.
2161 ac_fn_c_check_type ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if eval \${$3+:} false; then :
2167 $as_echo_n "(cached) " >&6
2168 else
2169 eval "$3=no"
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 if (sizeof ($2))
2177 return 0;
2179 return 0;
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 main ()
2189 if (sizeof (($2)))
2190 return 0;
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2197 else
2198 eval "$3=yes"
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 eval ac_res=\$$3
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 } # ac_fn_c_check_type
2211 # ac_fn_c_check_func LINENO FUNC VAR
2212 # ----------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_c_check_func ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2226 #define $2 innocuous_$2
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char $2 (); below.
2230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231 <limits.h> exists even on freestanding compilers. */
2233 #ifdef __STDC__
2234 # include <limits.h>
2235 #else
2236 # include <assert.h>
2237 #endif
2239 #undef $2
2241 /* Override any GCC internal prototype to avoid an error.
2242 Use char because int might match the return type of a GCC
2243 builtin and then its argument prototype would still apply. */
2244 #ifdef __cplusplus
2245 extern "C"
2246 #endif
2247 char $2 ();
2248 /* The GNU C library defines this for functions which it implements
2249 to always fail with ENOSYS. Some functions are actually named
2250 something starting with __ and the normal name is an alias. */
2251 #if defined __stub_$2 || defined __stub___$2
2252 choke me
2253 #endif
2256 main ()
2258 return $2 ();
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_link "$LINENO"; then :
2264 eval "$3=yes"
2265 else
2266 eval "$3=no"
2268 rm -f core conftest.err conftest.$ac_objext \
2269 conftest$ac_exeext conftest.$ac_ext
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } # ac_fn_c_check_func
2277 cat >config.log <<_ACEOF
2278 This file contains any messages produced by compilers while
2279 running configure, to aid debugging if configure makes a mistake.
2281 It was created by $as_me, which was
2282 generated by GNU Autoconf 2.69. Invocation command line was
2284 $ $0 $@
2286 _ACEOF
2287 exec 5>>config.log
2289 cat <<_ASUNAME
2290 ## --------- ##
2291 ## Platform. ##
2292 ## --------- ##
2294 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2295 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2296 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2297 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2298 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2301 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2303 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2304 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2305 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2306 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2307 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2308 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2309 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2311 _ASUNAME
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 $as_echo "PATH: $as_dir"
2319 done
2320 IFS=$as_save_IFS
2322 } >&5
2324 cat >&5 <<_ACEOF
2327 ## ----------- ##
2328 ## Core tests. ##
2329 ## ----------- ##
2331 _ACEOF
2334 # Keep a trace of the command line.
2335 # Strip out --no-create and --no-recursion so they do not pile up.
2336 # Strip out --silent because we don't want to record it for future runs.
2337 # Also quote any args containing shell meta-characters.
2338 # Make two passes to allow for proper duplicate-argument suppression.
2339 ac_configure_args=
2340 ac_configure_args0=
2341 ac_configure_args1=
2342 ac_must_keep_next=false
2343 for ac_pass in 1 2
2345 for ac_arg
2347 case $ac_arg in
2348 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2350 | -silent | --silent | --silen | --sile | --sil)
2351 continue ;;
2352 *\'*)
2353 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 esac
2355 case $ac_pass in
2356 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358 as_fn_append ac_configure_args1 " '$ac_arg'"
2359 if test $ac_must_keep_next = true; then
2360 ac_must_keep_next=false # Got value, back to normal.
2361 else
2362 case $ac_arg in
2363 *=* | --config-cache | -C | -disable-* | --disable-* \
2364 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2365 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2366 | -with-* | --with-* | -without-* | --without-* | --x)
2367 case "$ac_configure_args0 " in
2368 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2369 esac
2371 -* ) ac_must_keep_next=true ;;
2372 esac
2374 as_fn_append ac_configure_args " '$ac_arg'"
2376 esac
2377 done
2378 done
2379 { ac_configure_args0=; unset ac_configure_args0;}
2380 { ac_configure_args1=; unset ac_configure_args1;}
2382 # When interrupted or exit'd, cleanup temporary files, and complete
2383 # config.log. We remove comments because anyway the quotes in there
2384 # would cause problems or look ugly.
2385 # WARNING: Use '\'' to represent an apostrophe within the trap.
2386 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2387 trap 'exit_status=$?
2388 # Save into config.log some information that might help in debugging.
2390 echo
2392 $as_echo "## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##"
2395 echo
2396 # The following way of writing the cache mishandles newlines in values,
2398 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2399 eval ac_val=\$$ac_var
2400 case $ac_val in #(
2401 *${as_nl}*)
2402 case $ac_var in #(
2403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2405 esac
2406 case $ac_var in #(
2407 _ | IFS | as_nl) ;; #(
2408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2409 *) { eval $ac_var=; unset $ac_var;} ;;
2410 esac ;;
2411 esac
2412 done
2413 (set) 2>&1 |
2414 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2415 *${as_nl}ac_space=\ *)
2416 sed -n \
2417 "s/'\''/'\''\\\\'\'''\''/g;
2418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2419 ;; #(
2421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 esac |
2424 sort
2426 echo
2428 $as_echo "## ----------------- ##
2429 ## Output variables. ##
2430 ## ----------------- ##"
2431 echo
2432 for ac_var in $ac_subst_vars
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2442 if test -n "$ac_subst_files"; then
2443 $as_echo "## ------------------- ##
2444 ## File substitutions. ##
2445 ## ------------------- ##"
2446 echo
2447 for ac_var in $ac_subst_files
2449 eval ac_val=\$$ac_var
2450 case $ac_val in
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 esac
2453 $as_echo "$ac_var='\''$ac_val'\''"
2454 done | sort
2455 echo
2458 if test -s confdefs.h; then
2459 $as_echo "## ----------- ##
2460 ## confdefs.h. ##
2461 ## ----------- ##"
2462 echo
2463 cat confdefs.h
2464 echo
2466 test "$ac_signal" != 0 &&
2467 $as_echo "$as_me: caught signal $ac_signal"
2468 $as_echo "$as_me: exit $exit_status"
2469 } >&5
2470 rm -f core *.core core.conftest.* &&
2471 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472 exit $exit_status
2474 for ac_signal in 1 2 13 15; do
2475 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2476 done
2477 ac_signal=0
2479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2480 rm -f -r conftest* confdefs.h
2482 $as_echo "/* confdefs.h */" > confdefs.h
2484 # Predefined preprocessor variables.
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_NAME "$PACKAGE_NAME"
2488 _ACEOF
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2496 _ACEOF
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_STRING "$PACKAGE_STRING"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_URL "$PACKAGE_URL"
2508 _ACEOF
2511 # Let the site file select an alternate cache file if it wants to.
2512 # Prefer an explicitly selected file to automatically selected ones.
2513 ac_site_file1=NONE
2514 ac_site_file2=NONE
2515 if test -n "$CONFIG_SITE"; then
2516 # We do not want a PATH search for config.site.
2517 case $CONFIG_SITE in #((
2518 -*) ac_site_file1=./$CONFIG_SITE;;
2519 */*) ac_site_file1=$CONFIG_SITE;;
2520 *) ac_site_file1=./$CONFIG_SITE;;
2521 esac
2522 elif test "x$prefix" != xNONE; then
2523 ac_site_file1=$prefix/share/config.site
2524 ac_site_file2=$prefix/etc/config.site
2525 else
2526 ac_site_file1=$ac_default_prefix/share/config.site
2527 ac_site_file2=$ac_default_prefix/etc/config.site
2529 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531 test "x$ac_site_file" = xNONE && continue
2532 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2535 sed 's/^/| /' "$ac_site_file" >&5
2536 . "$ac_site_file" \
2537 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 as_fn_error $? "failed to load site script $ac_site_file
2540 See \`config.log' for more details" "$LINENO" 5; }
2542 done
2544 if test -r "$cache_file"; then
2545 # Some versions of bash will fail to source /dev/null (special files
2546 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2547 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549 $as_echo "$as_me: loading cache $cache_file" >&6;}
2550 case $cache_file in
2551 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2552 *) . "./$cache_file";;
2553 esac
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2557 $as_echo "$as_me: creating cache $cache_file" >&6;}
2558 >$cache_file
2561 as_fn_append ac_header_list " stdlib.h"
2562 as_fn_append ac_header_list " unistd.h"
2563 as_fn_append ac_header_list " sys/param.h"
2564 # Check that the precious variables saved in the cache have kept the same
2565 # value.
2566 ac_cache_corrupted=false
2567 for ac_var in $ac_precious_vars; do
2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569 eval ac_new_set=\$ac_env_${ac_var}_set
2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571 eval ac_new_val=\$ac_env_${ac_var}_value
2572 case $ac_old_set,$ac_new_set in
2573 set,)
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2577 ,set)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2581 ,);;
2583 if test "x$ac_old_val" != "x$ac_new_val"; then
2584 # differences in whitespace do not lead to failure.
2585 ac_old_val_w=`echo x $ac_old_val`
2586 ac_new_val_w=`echo x $ac_new_val`
2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590 ac_cache_corrupted=:
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594 eval $ac_var=\$ac_old_val
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2597 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2599 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2600 fi;;
2601 esac
2602 # Pass precious variables to config.status.
2603 if test "$ac_new_set" = set; then
2604 case $ac_new_val in
2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606 *) ac_arg=$ac_var=$ac_new_val ;;
2607 esac
2608 case " $ac_configure_args " in
2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611 esac
2613 done
2614 if $ac_cache_corrupted; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633 ac_aux_dir=
2634 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2635 if test -f "$ac_dir/install-sh"; then
2636 ac_aux_dir=$ac_dir
2637 ac_install_sh="$ac_aux_dir/install-sh -c"
2638 break
2639 elif 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/shtool"; then
2644 ac_aux_dir=$ac_dir
2645 ac_install_sh="$ac_aux_dir/shtool install -c"
2646 break
2648 done
2649 if test -z "$ac_aux_dir"; then
2650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2653 # These three variables are undocumented and unsupported,
2654 # and are intended to be withdrawn in a future Autoconf release.
2655 # They can cause serious problems if a builder's source tree is in a directory
2656 # whose full name contains unusual characters.
2657 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663 # Check what host we are running on.
2664 # If a target is not suggested, we use this one.
2665 # Note that what we call a target, Autoconf calls a host.
2666 # Make sure we can run config.sub.
2667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2671 $as_echo_n "checking build system type... " >&6; }
2672 if ${ac_cv_build+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 ac_build_alias=$build_alias
2676 test "x$ac_build_alias" = x &&
2677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2678 test "x$ac_build_alias" = x &&
2679 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2685 $as_echo "$ac_cv_build" >&6; }
2686 case $ac_cv_build in
2687 *-*-*) ;;
2688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2689 esac
2690 build=$ac_cv_build
2691 ac_save_IFS=$IFS; IFS='-'
2692 set x $ac_cv_build
2693 shift
2694 build_cpu=$1
2695 build_vendor=$2
2696 shift; shift
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2699 build_os=$*
2700 IFS=$ac_save_IFS
2701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2705 $as_echo_n "checking host system type... " >&6; }
2706 if ${ac_cv_host+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test "x$host_alias" = x; then
2710 ac_cv_host=$ac_cv_build
2711 else
2712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2718 $as_echo "$ac_cv_host" >&6; }
2719 case $ac_cv_host in
2720 *-*-*) ;;
2721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2722 esac
2723 host=$ac_cv_host
2724 ac_save_IFS=$IFS; IFS='-'
2725 set x $ac_cv_host
2726 shift
2727 host_cpu=$1
2728 host_vendor=$2
2729 shift; shift
2730 # Remember, the first character of IFS is used to create $*,
2731 # except with old shells:
2732 host_os=$*
2733 IFS=$ac_save_IFS
2734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2738 # The AROS target is slightly different to the normal GNU style
2739 # format. We don't have the middle part, and we reverse the order
2740 # of the $(CPU) and $(OS) bits.
2742 # Don't strip the version of the target yet, it might be
2743 # useful on some systems.
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2746 $as_echo_n "checking for AROS style target... " >&6; }
2748 if test "$target" = "NONE" ; then
2749 target=$host_os-$host_cpu
2750 else
2751 if test "$target" = "" ; then
2752 target=$host_os-$host_cpu
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2756 $as_echo "$target" >&6; }
2758 if test "$host_os" = "mingw32" ; then
2759 PWDCMD="pwd -W"
2762 # Don't know where else to put this...
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2764 $as_echo_n "checking building AROS in... " >&6; }
2765 AROS_BUILDDIR=`${PWDCMD-pwd}`
2766 AROS_BUILDDIR_UNIX=${PWD}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2768 $as_echo "$AROS_BUILDDIR" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2771 $as_echo_n "checking AROS source in... " >&6; }
2772 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2773 SRCDIR=${srcpwd}
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2775 $as_echo "$SRCDIR" >&6; }
2777 # Parse the target field into something useful.
2779 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2780 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2783 # Some debug output, to be removed again.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2785 $as_echo_n "checking for target system (debug output)... " >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2787 $as_echo "$target_os" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2789 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2791 $as_echo "$target_cpu" >&6; }
2793 aros_default_wbwidth=800
2794 aros_default_wbheight=600
2795 aros_default_wbdepth=4
2798 # The first step is to find the host binaries.
2799 # Check for a compiler.
2800 # Due to a bug in autoconf check for c++ compiler first.
2801 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2802 ac_ext=cpp
2803 ac_cpp='$CXXCPP $CPPFLAGS'
2804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807 if test -z "$CXX"; then
2808 if test -n "$CCC"; then
2809 CXX=$CCC
2810 else
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CXX+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$CXX"; then
2822 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 CXX=$ac_cv_prog_CXX
2842 if test -n "$CXX"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2844 $as_echo "$CXX" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2851 test -n "$CXX" && break
2852 done
2854 if test -z "$CXX"; then
2855 ac_ct_CXX=$CXX
2856 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$ac_ct_CXX"; then
2866 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CXX="$ac_prog"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2879 done
2880 done
2881 IFS=$as_save_IFS
2885 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2886 if test -n "$ac_ct_CXX"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2888 $as_echo "$ac_ct_CXX" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2895 test -n "$ac_ct_CXX" && break
2896 done
2898 if test "x$ac_ct_CXX" = x; then
2899 CXX="g++"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 CXX=$ac_ct_CXX
2913 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2915 set X $ac_compile
2916 ac_compiler=$2
2917 for ac_option in --version -v -V -qversion; do
2918 { { ac_try="$ac_compiler $ac_option >&5"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2926 ac_status=$?
2927 if test -s conftest.err; then
2928 sed '10a\
2929 ... rest of stderr output deleted ...
2930 10q' conftest.err >conftest.er1
2931 cat conftest.er1 >&5
2933 rm -f conftest.er1 conftest.err
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2936 done
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2942 main ()
2946 return 0;
2948 _ACEOF
2949 ac_clean_files_save=$ac_clean_files
2950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951 # Try to create an executable without -o first, disregard a.out.
2952 # It will help us diagnose broken compilers, and finding out an intuition
2953 # of exeext.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2955 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958 # The possible output files:
2959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2961 ac_rmfiles=
2962 for ac_file in $ac_files
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967 esac
2968 done
2969 rm -f $ac_rmfiles
2971 if { { ac_try="$ac_link_default"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link_default") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2985 # so that the user can short-circuit this test for compilers unknown to
2986 # Autoconf.
2987 for ac_file in $ac_files ''
2989 test -f "$ac_file" || continue
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2993 [ab].out )
2994 # We found the default executable, but exeext='' is most
2995 # certainly right.
2996 break;;
2997 *.* )
2998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 then :; else
3000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 # We set ac_cv_exeext here because the later test for it is not
3003 # safe: cross compilers may not add the suffix if given an `-o'
3004 # argument, so we may need to know it at that point already.
3005 # Even if this section looks crufty: it has the advantage of
3006 # actually working.
3007 break;;
3009 break;;
3010 esac
3011 done
3012 test "$ac_cv_exeext" = no && ac_cv_exeext=
3014 else
3015 ac_file=''
3017 if test -z "$ac_file"; then :
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error 77 "C++ compiler cannot create executables
3026 See \`config.log' for more details" "$LINENO" 5; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3032 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3034 $as_echo "$ac_file" >&6; }
3035 ac_exeext=$ac_cv_exeext
3037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3038 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { { ac_try="$ac_link"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 # `rm'.
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061 break;;
3062 * ) break;;
3063 esac
3064 done
3065 else
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details" "$LINENO" 5; }
3071 rm -f conftest conftest$ac_cv_exeext
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3073 $as_echo "$ac_cv_exeext" >&6; }
3075 rm -f conftest.$ac_ext
3076 EXEEXT=$ac_cv_exeext
3077 ac_exeext=$EXEEXT
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3080 #include <stdio.h>
3082 main ()
3084 FILE *f = fopen ("conftest.out", "w");
3085 return ferror (f) || fclose (f) != 0;
3088 return 0;
3090 _ACEOF
3091 ac_clean_files="$ac_clean_files conftest.out"
3092 # Check that the compiler produces executables we can run. If not, either
3093 # the compiler is broken, or we cross compile.
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3095 $as_echo_n "checking whether we are cross compiling... " >&6; }
3096 if test "$cross_compiling" != yes; then
3097 { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 if { ac_try='./conftest$ac_cv_exeext'
3109 { { case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; }; then
3119 cross_compiling=no
3120 else
3121 if test "$cross_compiling" = maybe; then
3122 cross_compiling=yes
3123 else
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot run C++ compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details" "$LINENO" 5; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3133 $as_echo "$cross_compiling" >&6; }
3135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3138 $as_echo_n "checking for suffix of object files... " >&6; }
3139 if ${ac_cv_objext+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3146 main ()
3150 return 0;
3152 _ACEOF
3153 rm -f conftest.o conftest.obj
3154 if { { ac_try="$ac_compile"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compile") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 for ac_file in conftest.o conftest.obj conftest.*; do
3166 test -f "$ac_file" || continue;
3167 case $ac_file in
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3170 break;;
3171 esac
3172 done
3173 else
3174 $as_echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details" "$LINENO" 5; }
3182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3185 $as_echo "$ac_cv_objext" >&6; }
3186 OBJEXT=$ac_cv_objext
3187 ac_objext=$OBJEXT
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3190 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3197 main ()
3199 #ifndef __GNUC__
3200 choke me
3201 #endif
3204 return 0;
3206 _ACEOF
3207 if ac_fn_cxx_try_compile "$LINENO"; then :
3208 ac_compiler_gnu=yes
3209 else
3210 ac_compiler_gnu=no
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3217 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3218 if test $ac_compiler_gnu = yes; then
3219 GXX=yes
3220 else
3221 GXX=
3223 ac_test_CXXFLAGS=${CXXFLAGS+set}
3224 ac_save_CXXFLAGS=$CXXFLAGS
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3226 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3227 if ${ac_cv_prog_cxx_g+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3231 ac_cxx_werror_flag=yes
3232 ac_cv_prog_cxx_g=no
3233 CXXFLAGS="-g"
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3238 main ()
3242 return 0;
3244 _ACEOF
3245 if ac_fn_cxx_try_compile "$LINENO"; then :
3246 ac_cv_prog_cxx_g=yes
3247 else
3248 CXXFLAGS=""
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3253 main ()
3257 return 0;
3259 _ACEOF
3260 if ac_fn_cxx_try_compile "$LINENO"; then :
3262 else
3263 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3264 CXXFLAGS="-g"
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3269 main ()
3273 return 0;
3275 _ACEOF
3276 if ac_fn_cxx_try_compile "$LINENO"; then :
3277 ac_cv_prog_cxx_g=yes
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3287 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3288 if test "$ac_test_CXXFLAGS" = set; then
3289 CXXFLAGS=$ac_save_CXXFLAGS
3290 elif test $ac_cv_prog_cxx_g = yes; then
3291 if test "$GXX" = yes; then
3292 CXXFLAGS="-g -O2"
3293 else
3294 CXXFLAGS="-g"
3296 else
3297 if test "$GXX" = yes; then
3298 CXXFLAGS="-O2"
3299 else
3300 CXXFLAGS=
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3353 if test -z "$ac_cv_prog_CC"; then
3354 ac_ct_CC=$CC
3355 # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_CC="gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3378 IFS=$as_save_IFS
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3391 if test "x$ac_ct_CC" = x; then
3392 CC=""
3393 else
3394 case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400 CC=$ac_ct_CC
3402 else
3403 CC="$ac_cv_prog_CC"
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_CC="${ac_tool_prefix}cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3447 if test -z "$CC"; then
3448 # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 ac_prog_rejected=no
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected=yes
3468 continue
3470 ac_cv_prog_CC="cc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy $ac_cv_prog_CC
3481 shift
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3486 shift
3487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$CC" && break
3545 done
3547 if test -z "$CC"; then
3548 ac_ct_CC=$CC
3549 for ac_prog in cl.exe
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_ac_ct_CC="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$ac_ct_CC" && break
3589 done
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details" "$LINENO" 5; }
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3614 set X $ac_compile
3615 ac_compiler=$2
3616 for ac_option in --version -v -V -qversion; do
3617 { { ac_try="$ac_compiler $ac_option >&5"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3625 ac_status=$?
3626 if test -s conftest.err; then
3627 sed '10a\
3628 ... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
3632 rm -f conftest.er1 conftest.err
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3635 done
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3638 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3639 if ${ac_cv_c_compiler_gnu+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3648 #ifndef __GNUC__
3649 choke me
3650 #endif
3653 return 0;
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_compiler_gnu=yes
3658 else
3659 ac_compiler_gnu=no
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3666 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3667 if test $ac_compiler_gnu = yes; then
3668 GCC=yes
3669 else
3670 GCC=
3672 ac_test_CFLAGS=${CFLAGS+set}
3673 ac_save_CFLAGS=$CFLAGS
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3675 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3676 if ${ac_cv_prog_cc_g+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_save_c_werror_flag=$ac_c_werror_flag
3680 ac_c_werror_flag=yes
3681 ac_cv_prog_cc_g=no
3682 CFLAGS="-g"
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_g=yes
3696 else
3697 CFLAGS=""
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3711 else
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3713 CFLAGS="-g"
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3718 main ()
3722 return 0;
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_prog_cc_g=yes
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3741 CFLAGS="-g -O2"
3742 else
3743 CFLAGS="-g"
3745 else
3746 if test "$GCC" = yes; then
3747 CFLAGS="-O2"
3748 else
3749 CFLAGS=
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3754 if ${ac_cv_prog_cc_c89+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_cv_prog_cc_c89=no
3758 ac_save_CC=$CC
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 struct stat;
3764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3765 struct buf { int x; };
3766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3767 static char *e (p, i)
3768 char **p;
3769 int i;
3771 return p[i];
3773 static char *f (char * (*g) (char **, int), char **p, ...)
3775 char *s;
3776 va_list v;
3777 va_start (v,p);
3778 s = g (p, va_arg (v,int));
3779 va_end (v);
3780 return s;
3783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3784 function prototypes and stuff, but not '\xHH' hex character constants.
3785 These don't provoke an error unfortunately, instead are silently treated
3786 as 'x'. The following induces an error, until -std is added to get
3787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3788 array size at least. It's necessary to write '\x00'==0 to get something
3789 that's true only with -std. */
3790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3793 inside strings and character constants. */
3794 #define FOO(x) 'x'
3795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797 int test (int i, double x);
3798 struct s1 {int (*f) (int a);};
3799 struct s2 {int (*f) (double a);};
3800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801 int argc;
3802 char **argv;
3804 main ()
3806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 return 0;
3810 _ACEOF
3811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 CC="$ac_save_CC $ac_arg"
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_c89=$ac_arg
3818 rm -f core conftest.err conftest.$ac_objext
3819 test "x$ac_cv_prog_cc_c89" != "xno" && break
3820 done
3821 rm -f conftest.$ac_ext
3822 CC=$ac_save_CC
3825 # AC_CACHE_VAL
3826 case "x$ac_cv_prog_cc_c89" in
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;;
3830 xno)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3832 $as_echo "unsupported" >&6; } ;;
3834 CC="$CC $ac_cv_prog_cc_c89"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3836 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3837 esac
3838 if test "x$ac_cv_prog_cc_c89" != xno; then :
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 case $ac_cv_prog_cc_stdc in #(
3849 no) :
3850 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3851 *) :
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3853 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3854 if ${ac_cv_prog_cc_c99+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 ac_cv_prog_cc_c99=no
3858 ac_save_CC=$CC
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <stdarg.h>
3862 #include <stdbool.h>
3863 #include <stdlib.h>
3864 #include <wchar.h>
3865 #include <stdio.h>
3867 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3868 #define debug(...) fprintf (stderr, __VA_ARGS__)
3869 #define showlist(...) puts (#__VA_ARGS__)
3870 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3871 static void
3872 test_varargs_macros (void)
3874 int x = 1234;
3875 int y = 5678;
3876 debug ("Flag");
3877 debug ("X = %d\n", x);
3878 showlist (The first, second, and third items.);
3879 report (x>y, "x is %d but y is %d", x, y);
3882 // Check long long types.
3883 #define BIG64 18446744073709551615ull
3884 #define BIG32 4294967295ul
3885 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3886 #if !BIG_OK
3887 your preprocessor is broken;
3888 #endif
3889 #if BIG_OK
3890 #else
3891 your preprocessor is broken;
3892 #endif
3893 static long long int bignum = -9223372036854775807LL;
3894 static unsigned long long int ubignum = BIG64;
3896 struct incomplete_array
3898 int datasize;
3899 double data[];
3902 struct named_init {
3903 int number;
3904 const wchar_t *name;
3905 double average;
3908 typedef const char *ccp;
3910 static inline int
3911 test_restrict (ccp restrict text)
3913 // See if C++-style comments work.
3914 // Iterate through items via the restricted pointer.
3915 // Also check for declarations in for loops.
3916 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3917 continue;
3918 return 0;
3921 // Check varargs and va_copy.
3922 static void
3923 test_varargs (const char *format, ...)
3925 va_list args;
3926 va_start (args, format);
3927 va_list args_copy;
3928 va_copy (args_copy, args);
3930 const char *str;
3931 int number;
3932 float fnumber;
3934 while (*format)
3936 switch (*format++)
3938 case 's': // string
3939 str = va_arg (args_copy, const char *);
3940 break;
3941 case 'd': // int
3942 number = va_arg (args_copy, int);
3943 break;
3944 case 'f': // float
3945 fnumber = va_arg (args_copy, double);
3946 break;
3947 default:
3948 break;
3951 va_end (args_copy);
3952 va_end (args);
3956 main ()
3959 // Check bool.
3960 _Bool success = false;
3962 // Check restrict.
3963 if (test_restrict ("String literal") == 0)
3964 success = true;
3965 char *restrict newvar = "Another string";
3967 // Check varargs.
3968 test_varargs ("s, d' f .", "string", 65, 34.234);
3969 test_varargs_macros ();
3971 // Check flexible array members.
3972 struct incomplete_array *ia =
3973 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3974 ia->datasize = 10;
3975 for (int i = 0; i < ia->datasize; ++i)
3976 ia->data[i] = i * 1.234;
3978 // Check named initializers.
3979 struct named_init ni = {
3980 .number = 34,
3981 .name = L"Test wide string",
3982 .average = 543.34343,
3985 ni.number = 58;
3987 int dynamic_array[ni.number];
3988 dynamic_array[ni.number - 1] = 543;
3990 // work around unused variable warnings
3991 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3992 || dynamic_array[ni.number - 1] != 543);
3995 return 0;
3997 _ACEOF
3998 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4000 CC="$ac_save_CC $ac_arg"
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_prog_cc_c99=$ac_arg
4004 rm -f core conftest.err conftest.$ac_objext
4005 test "x$ac_cv_prog_cc_c99" != "xno" && break
4006 done
4007 rm -f conftest.$ac_ext
4008 CC=$ac_save_CC
4011 # AC_CACHE_VAL
4012 case "x$ac_cv_prog_cc_c99" in
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4015 $as_echo "none needed" >&6; } ;;
4016 xno)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;;
4020 CC="$CC $ac_cv_prog_cc_c99"
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4022 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4023 esac
4024 if test "x$ac_cv_prog_cc_c99" != xno; then :
4025 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4028 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4029 if ${ac_cv_prog_cc_c89+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 ac_cv_prog_cc_c89=no
4033 ac_save_CC=$CC
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdarg.h>
4037 #include <stdio.h>
4038 struct stat;
4039 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4040 struct buf { int x; };
4041 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4042 static char *e (p, i)
4043 char **p;
4044 int i;
4046 return p[i];
4048 static char *f (char * (*g) (char **, int), char **p, ...)
4050 char *s;
4051 va_list v;
4052 va_start (v,p);
4053 s = g (p, va_arg (v,int));
4054 va_end (v);
4055 return s;
4058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4059 function prototypes and stuff, but not '\xHH' hex character constants.
4060 These don't provoke an error unfortunately, instead are silently treated
4061 as 'x'. The following induces an error, until -std is added to get
4062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4063 array size at least. It's necessary to write '\x00'==0 to get something
4064 that's true only with -std. */
4065 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4067 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4068 inside strings and character constants. */
4069 #define FOO(x) 'x'
4070 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4072 int test (int i, double x);
4073 struct s1 {int (*f) (int a);};
4074 struct s2 {int (*f) (double a);};
4075 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4076 int argc;
4077 char **argv;
4079 main ()
4081 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4083 return 0;
4085 _ACEOF
4086 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4089 CC="$ac_save_CC $ac_arg"
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_cv_prog_cc_c89=$ac_arg
4093 rm -f core conftest.err conftest.$ac_objext
4094 test "x$ac_cv_prog_cc_c89" != "xno" && break
4095 done
4096 rm -f conftest.$ac_ext
4097 CC=$ac_save_CC
4100 # AC_CACHE_VAL
4101 case "x$ac_cv_prog_cc_c89" in
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4104 $as_echo "none needed" >&6; } ;;
4105 xno)
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4107 $as_echo "unsupported" >&6; } ;;
4109 CC="$CC $ac_cv_prog_cc_c89"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4111 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4112 esac
4113 if test "x$ac_cv_prog_cc_c89" != xno; then :
4114 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4115 else
4116 ac_cv_prog_cc_stdc=no
4121 esac
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4123 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4124 if ${ac_cv_prog_cc_stdc+:} false; then :
4125 $as_echo_n "(cached) " >&6
4128 case $ac_cv_prog_cc_stdc in #(
4129 no) :
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131 $as_echo "unsupported" >&6; } ;; #(
4132 '') :
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;; #(
4135 *) :
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4137 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4138 esac
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4151 if test -z "$CPP"; then
4152 if ${ac_cv_prog_CPP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4178 else
4179 # Broken: fails on valid input.
4180 continue
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204 break
4207 done
4208 ac_cv_prog_CPP=$CPP
4211 CPP=$ac_cv_prog_CPP
4212 else
4213 ac_cv_prog_CPP=$CPP
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4237 else
4238 # Broken: fails on valid input.
4239 continue
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details" "$LINENO" 5; }
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 # Check for a compatible awk
4279 for ac_prog in gawk nawk
4281 # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy $ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_AWK+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -n "$AWK"; then
4289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_AWK="$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4304 IFS=$as_save_IFS
4308 AWK=$ac_cv_prog_AWK
4309 if test -n "$AWK"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4311 $as_echo "$AWK" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$AWK" && break
4319 done
4321 if test "$AWK" = ""; then
4322 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4324 # Extract the first word of "mmake", so it can be a program name with args.
4325 set dummy mmake; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_MMAKE+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$MMAKE"; then
4332 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_MMAKE="mmake "
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 MMAKE=$ac_cv_prog_MMAKE
4352 if test -n "$MMAKE"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4354 $as_echo "$MMAKE" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4362 # Perform some default variable assignments. Note all of these will be
4363 # Regenerated from the script, so there is no need to cache them.
4365 aros_host_cpp="$CPP"
4366 aros_host_cc="$CC"
4367 aros_host_cxx="$CXX"
4368 if test "$GCC" = "yes"; then
4369 aros_gcc_ld=`$CC -print-prog-name=ld`
4370 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4371 set dummy `basename $aros_gcc_ld`; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_path_aros_host_ld+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 case $aros_host_ld in
4378 [\\/]* | ?:[\\/]*)
4379 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in `dirname $aros_gcc_ld`
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4398 esac
4400 aros_host_ld=$ac_cv_path_aros_host_ld
4401 if test -n "$aros_host_ld"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4403 $as_echo "$aros_host_ld" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4411 if test "$aros_host_ld" = ""; then
4412 # Extract the first word of "ld", so it can be a program name with args.
4413 set dummy ld; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_path_aros_host_ld+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 case $aros_host_ld in
4420 [\\/]* | ?:[\\/]*)
4421 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4440 esac
4442 aros_host_ld=$ac_cv_path_aros_host_ld
4443 if test -n "$aros_host_ld"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4445 $as_echo "$aros_host_ld" >&6; }
4446 else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4453 if test "$aros_host_ld" = ""; then
4454 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4456 aros_host_make="make"
4457 aros_host_cflags=$CFLAGS
4458 aros_host_cxxflags=$CXXFLAGS
4459 aros_host_ldflags=$LDFLAGS
4460 aros_host_debug="-g -O0"
4461 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4462 aros_host_mkargs="--no-print-directory"
4463 aros_host_exe_suffix="$EXEEXT"
4464 aros_host_lib_suffix=""
4466 # Ignore all compliance, AROS ROMs = 0
4467 # KickStart v1.0 = 30
4468 # KickStart v1.3 = 34
4469 # KickStart v2.0 = 37
4470 # KickStart v3.0 = 39
4471 # KickStart v3.1 = 40
4472 # AmigaOS v3.5 = 44
4473 aros_amigaos_compliance=0
4475 for ac_prog in aclocal aclocal19 aclocal-1.9
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478 set dummy $ac_prog; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$aros_host_aclocal"; then
4485 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_aros_host_aclocal="$ac_prog"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4498 done
4499 done
4500 IFS=$as_save_IFS
4504 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4505 if test -n "$aros_host_aclocal"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4507 $as_echo "$aros_host_aclocal" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4514 test -n "$aros_host_aclocal" && break
4515 done
4517 for ac_prog in autoconf autoconf259 autoconf253
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -n "$aros_host_autoconf"; then
4527 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_prog_aros_host_autoconf="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4542 IFS=$as_save_IFS
4546 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4547 if test -n "$aros_host_autoconf"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4549 $as_echo "$aros_host_autoconf" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 test -n "$aros_host_autoconf" && break
4557 done
4559 for ac_prog in autoheader autoheader259 autoheader253
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$aros_host_autoheader"; then
4569 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_aros_host_autoheader="$ac_prog"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4589 if test -n "$aros_host_autoheader"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4591 $as_echo "$aros_host_autoheader" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4598 test -n "$aros_host_autoheader" && break
4599 done
4601 for ac_prog in automake automake19 automake-1.9
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_aros_host_automake+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$aros_host_automake"; then
4611 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_aros_host_automake="$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 aros_host_automake=$ac_cv_prog_aros_host_automake
4631 if test -n "$aros_host_automake"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4633 $as_echo "$aros_host_automake" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4640 test -n "$aros_host_automake" && break
4641 done
4644 if test "$aros_host_aclocal" = ""; then
4645 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4647 if test "$aros_host_automake" = ""; then
4648 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4651 case "$aros_host_cc" in
4652 *gcc*)
4653 aros_host_cc_pipe="-pipe"
4655 icc)
4656 aros_host_cc_pipe=""
4659 aros_host_cc_pipe=""
4661 esac
4663 aros_kernel_cc_includes=""
4664 aros_target_cc_includes=""
4665 host_cc_elf=yes
4667 # ----------------------------------------------------------------------------------------
4668 # Host-specific defaults
4670 # This is the main host configuration section. It is where the host
4671 # can change the values of any variables it needs to change. We do
4672 # not look at anything that compiles to the target yet, we'll get
4673 # to that later.
4675 case "$host_os" in
4676 aros*)
4677 aros_host_arch="aros"
4678 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4679 case "$host_cpu" in
4680 *i?86*)
4681 aros_host_cpu="i386"
4683 *x86_64*)
4684 aros_host_cpu="x86_64"
4686 *powerpc*)
4687 aros_host_cpu="ppc"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4691 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4692 aros_host_cpu="$host_cpu"
4694 esac
4697 linux*)
4698 aros_host_arch="linux"
4699 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4700 android_build_os="linux-x86"
4701 android_tool="android"
4702 default_android_sdk="/opt/android-sdk-linux_x86"
4703 case "$host_cpu" in
4704 *i?86*)
4705 aros_host_cpu="i386"
4707 *x86_64*)
4708 aros_host_cpu="x86_64"
4710 *m68k*)
4711 aros_host_cpu="m68k"
4713 *powerpc*)
4714 aros_host_cpu="ppc"
4716 *arm*)
4717 aros_host_cpu="arm"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4721 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4722 aros_host_cpu="$host_cpu"
4724 esac
4727 freebsd*)
4728 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4729 aros_host_make="gmake"
4730 aros_host_arch="freebsd"
4731 aros_host_cpu="i386"
4733 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4735 case $host_os in
4736 freebsd[234]*)
4737 aros_object_format="elf_i386"
4741 aros_object_format="elf_i386_fbsd"
4743 esac
4747 darwin*)
4748 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4749 aros_host_arch="darwin"
4750 host_cc_elf=no
4751 android_build_os="darwin-x86"
4752 android_tool="android"
4753 default_android_sdk="/android-sdk-mac_x86"
4754 case "$host_cpu" in
4755 *i?86*)
4756 aros_host_cpu="i386"
4758 *x86_64*)
4759 aros_host_cpu="x86_64"
4761 *powerpc*)
4762 aros_host_cpu="ppc"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4766 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4767 aros_host_cpu="$host_cpu"
4769 esac
4771 aros_host_ldflags="$aros_host_ldflags -liconv"
4775 dragonfly*)
4776 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4777 aros_host_make="gmake"
4778 aros_host_arch="dragonfly"
4779 case $host_cpu in
4780 *i?86*)
4781 aros_host_cpu="i386"
4783 *amd64*)
4784 aros_host_cpu="x86_64"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4788 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4789 aros_host_cpu="$host_cpu"
4791 esac
4794 netbsd*)
4795 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4796 aros_host_make="gmake"
4797 aros_host_arch="netbsd"
4798 case "$host_cpu" in
4799 *i?86*)
4800 aros_host_cpu="i386"
4802 *m68k*)
4803 aros_host_cpu="m68k"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4807 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4808 aros_host_cpu="$host_cpu"
4810 esac
4811 aros_host_lib_suffix=".0.0"
4814 openbsd*)
4815 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4816 aros_host_make="gmake"
4817 aros_host_arch="openbsd"
4818 case "$host_cpu" in
4819 *i?86*)
4820 aros_host_cpu="i386"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4824 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4825 aros_host_cpu="$host_cpu"
4827 esac
4830 solaris*)
4831 aros_host_arch="solaris"
4832 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4833 case "$host_cpu" in
4834 *i?86*)
4835 aros_host_cpu="i386"
4837 *sparc*)
4838 aros_host_cpu="sparc"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4842 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4843 aros_host_cpu="$host_cpu"
4845 esac
4848 morphos*)
4849 aros_host_arch="morphos"
4850 aros_host_cpu="ppc"
4851 host_cc_elf=no
4854 amiga*)
4855 aros_host_arch="amiga"
4856 host_cc_elf=no
4857 SORT="/gg/bin/sort"
4858 TEST="/gg/bin/test"
4859 UNIQ="/gg/bin/uniq"
4860 FOR="for"
4861 TOUCH="/gg/bin/touch"
4862 case "$host_cpu" in
4863 *m68k*)
4864 aros_host_cpu="m68k"
4866 *powerpc*)
4867 aros_host_cpu="ppc"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4871 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4872 aros_host_cpu="$host_cpu"
4874 esac
4877 cygwin*)
4878 aros_host_arch="cygwin"
4879 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4880 host_cc_elf=no
4881 android_build_os="windows"
4882 android_tool="android.bat"
4883 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4885 case "$host_cpu" in
4886 *i?86*)
4887 aros_host_cpu="i386"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4891 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4892 aros_host_cpu="$host_cpu"
4894 esac
4897 mingw32*)
4898 aros_host_arch="mingw32"
4899 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4900 host_cc_elf=no
4901 android_build_os="windows"
4902 android_tool="android.bat"
4903 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4905 case "$host_cpu" in
4906 *i?86*)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4909 $as_echo_n "checking for Windows native gcc target... " >&6; }
4910 host_cpu=`gcc -dumpmachine`
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4912 $as_echo "$host_cpu" >&6; }
4915 esac
4917 case "$host_cpu" in
4918 *i?86*)
4919 aros_host_cpu="i386"
4922 mingw32*)
4923 aros_host_cpu="i386"
4926 *x86_64*)
4927 aros_host_cpu="x86_64"
4928 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4933 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4934 aros_host_cpu="$host_cpu"
4936 esac
4939 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4941 esac
4943 # Extract the first word of "ar", so it can be a program name with args.
4944 set dummy ar; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_aros_host_ar+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$aros_host_ar"; then
4951 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_aros_host_ar="ar cr"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 aros_host_ar=$ac_cv_prog_aros_host_ar
4971 if test -n "$aros_host_ar"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4973 $as_echo "$aros_host_ar" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 if test "$aros_host_ar" = ""; then
4981 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4983 # Extract the first word of "ranlib", so it can be a program name with args.
4984 set dummy ranlib; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$aros_host_ranlib"; then
4991 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_aros_host_ranlib="ranlib "
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5011 if test -n "$aros_host_ranlib"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5013 $as_echo "$aros_host_ranlib" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 if test "$aros_host_ranlib" = ""; then
5021 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5023 # Extract the first word of "strip", so it can be a program name with args.
5024 set dummy strip; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_aros_host_strip+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$aros_host_strip"; then
5031 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_aros_host_strip="strip "
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 aros_host_strip=$ac_cv_prog_aros_host_strip
5051 if test -n "$aros_host_strip"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5053 $as_echo "$aros_host_strip" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 if test "$aros_host_strip" = ""; then
5061 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5064 # Extract the first word of "rm", so it can be a program name with args.
5065 set dummy rm; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_RM+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$RM"; then
5072 ac_cv_prog_RM="$RM" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_RM="rm -rf"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 RM=$ac_cv_prog_RM
5092 if test -n "$RM"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5094 $as_echo "$RM" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5101 if test "$RM" = ""; then
5102 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5104 # Extract the first word of "cp", so it can be a program name with args.
5105 set dummy cp; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CP+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CP"; then
5112 ac_cv_prog_CP="$CP" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CP="cp "
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 CP=$ac_cv_prog_CP
5132 if test -n "$CP"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5134 $as_echo "$CP" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 if test "$CP" = ""; then
5142 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5144 # Extract the first word of "mv", so it can be a program name with args.
5145 set dummy mv; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_MV+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$MV"; then
5152 ac_cv_prog_MV="$MV" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_MV="mv "
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 MV=$ac_cv_prog_MV
5172 if test -n "$MV"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5174 $as_echo "$MV" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 if test "$MV" = ""; then
5182 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5184 # Extract the first word of "echo", so it can be a program name with args.
5185 set dummy echo; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ECHO+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ECHO"; then
5192 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ECHO="echo "
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 ECHO=$ac_cv_prog_ECHO
5212 if test -n "$ECHO"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5214 $as_echo "$ECHO" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 if test "$ECHO" = ""; then
5222 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5224 # Extract the first word of "mkdir", so it can be a program name with args.
5225 set dummy mkdir; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_MKDIR+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$MKDIR"; then
5232 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_MKDIR="mkdir -p"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 MKDIR=$ac_cv_prog_MKDIR
5252 if test -n "$MKDIR"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5254 $as_echo "$MKDIR" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 if test "$MKDIR" = ""; then
5262 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5264 # Extract the first word of "touch", so it can be a program name with args.
5265 set dummy touch; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_TOUCH+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$TOUCH"; then
5272 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_TOUCH="touch "
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5285 done
5286 done
5287 IFS=$as_save_IFS
5291 TOUCH=$ac_cv_prog_TOUCH
5292 if test -n "$TOUCH"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5294 $as_echo "$TOUCH" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5301 if test "$TOUCH" = ""; then
5302 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5304 # Extract the first word of "sort", so it can be a program name with args.
5305 set dummy sort; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_SORT+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$SORT"; then
5312 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_SORT="sort "
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5325 done
5326 done
5327 IFS=$as_save_IFS
5331 SORT=$ac_cv_prog_SORT
5332 if test -n "$SORT"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5334 $as_echo "$SORT" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 if test "$SORT" = ""; then
5342 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5344 # Extract the first word of "uniq", so it can be a program name with args.
5345 set dummy uniq; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_UNIQ+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$UNIQ"; then
5352 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_UNIQ="uniq "
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5371 UNIQ=$ac_cv_prog_UNIQ
5372 if test -n "$UNIQ"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5374 $as_echo "$UNIQ" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5381 if test "$UNIQ" = ""; then
5382 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5384 # Extract the first word of "true", so it can be a program name with args.
5385 set dummy true; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_NOP+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$NOP"; then
5392 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_NOP="true "
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 NOP=$ac_cv_prog_NOP
5412 if test -n "$NOP"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5414 $as_echo "$NOP" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5421 if test "$NOP" = ""; then
5422 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5424 # Extract the first word of "cat", so it can be a program name with args.
5425 set dummy cat; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_CAT+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$CAT"; then
5432 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_CAT="cat "
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 CAT=$ac_cv_prog_CAT
5452 if test -n "$CAT"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5454 $as_echo "$CAT" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5461 if test "$CAT" = ""; then
5462 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5464 # Extract the first word of "bison", so it can be a program name with args.
5465 set dummy bison; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_BISON+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$BISON"; then
5472 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_BISON="bison "
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5485 done
5486 done
5487 IFS=$as_save_IFS
5491 BISON=$ac_cv_prog_BISON
5492 if test -n "$BISON"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5494 $as_echo "$BISON" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5501 if test "$BISON" = ""; then
5502 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5504 # Extract the first word of "flex", so it can be a program name with args.
5505 set dummy flex; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_FLEX+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$FLEX"; then
5512 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_FLEX="flex "
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 FLEX=$ac_cv_prog_FLEX
5532 if test -n "$FLEX"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5534 $as_echo "$FLEX" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 if test "$FLEX" = ""; then
5542 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5544 # Extract the first word of "pngtopnm", so it can be a program name with args.
5545 set dummy pngtopnm; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$PNGTOPNM"; then
5552 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_PNGTOPNM="pngtopnm "
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5572 if test -n "$PNGTOPNM"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5574 $as_echo "$PNGTOPNM" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 if test "$PNGTOPNM" = ""; then
5582 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5584 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5585 set dummy ppmtoilbm; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$PPMTOILBM"; then
5592 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5605 done
5606 done
5607 IFS=$as_save_IFS
5611 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5612 if test -n "$PPMTOILBM"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5614 $as_echo "$PPMTOILBM" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5621 if test "$PPMTOILBM" = ""; then
5622 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5624 # Extract the first word of "sed", so it can be a program name with args.
5625 set dummy sed; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_SED+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$SED"; then
5632 ac_cv_prog_SED="$SED" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_SED="sed "
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5645 done
5646 done
5647 IFS=$as_save_IFS
5651 SED=$ac_cv_prog_SED
5652 if test -n "$SED"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5654 $as_echo "$SED" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5661 if test "$SED" = ""; then
5662 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5664 # Extract the first word of "chmod", so it can be a program name with args.
5665 set dummy chmod; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_CHMOD+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$CHMOD"; then
5672 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_CHMOD="chmod "
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5685 done
5686 done
5687 IFS=$as_save_IFS
5691 CHMOD=$ac_cv_prog_CHMOD
5692 if test -n "$CHMOD"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5694 $as_echo "$CHMOD" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5701 if test "$CHMOD" = ""; then
5702 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5704 # Extract the first word of "patch", so it can be a program name with args.
5705 set dummy patch; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_PATCH+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$PATCH"; then
5712 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_PATCH="patch "
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5725 done
5726 done
5727 IFS=$as_save_IFS
5731 PATCH=$ac_cv_prog_PATCH
5732 if test -n "$PATCH"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5734 $as_echo "$PATCH" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5741 if test "$PATCH" = ""; then
5742 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5751 if test -n "$PYTHON"; then
5752 # If the user set $PYTHON, use it and don't search something else.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5754 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5755 prog="import sys
5756 # split strings by '.' and convert to numeric. Append some zeros
5757 # because we need at least 4 digits for the hex conversion.
5758 # map returns an iterator in Python 3.0 and a list in 2.x
5759 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5760 minverhex = 0
5761 # xrange is not present in Python 3.0 and range returns an iterator
5762 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5763 sys.exit(sys.hexversion < minverhex)"
5764 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5765 ($PYTHON -c "$prog") >&5 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; then :
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770 $as_echo "yes" >&6; }
5771 else
5772 as_fn_error $? "too old" "$LINENO" 5
5774 am_display_PYTHON=$PYTHON
5775 else
5776 # Otherwise, try each interpreter until we find one that satisfies
5777 # VERSION.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5779 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5780 if ${am_cv_pathless_PYTHON+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5784 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
5785 test "$am_cv_pathless_PYTHON" = none && break
5786 prog="import sys
5787 # split strings by '.' and convert to numeric. Append some zeros
5788 # because we need at least 4 digits for the hex conversion.
5789 # map returns an iterator in Python 3.0 and a list in 2.x
5790 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5791 minverhex = 0
5792 # xrange is not present in Python 3.0 and range returns an iterator
5793 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5794 sys.exit(sys.hexversion < minverhex)"
5795 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5796 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; then :
5800 break
5802 done
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5805 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5806 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5807 if test "$am_cv_pathless_PYTHON" = none; then
5808 PYTHON=:
5809 else
5810 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5811 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_path_PYTHON+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 case $PYTHON in
5818 [\\/]* | ?:[\\/]*)
5819 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5838 esac
5840 PYTHON=$ac_cv_path_PYTHON
5841 if test -n "$PYTHON"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5843 $as_echo "$PYTHON" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5851 am_display_PYTHON=$am_cv_pathless_PYTHON
5855 if test "$PYTHON" = :; then
5856 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5857 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5861 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5862 if ${am_cv_python_version+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5868 $as_echo "$am_cv_python_version" >&6; }
5869 PYTHON_VERSION=$am_cv_python_version
5873 PYTHON_PREFIX='${prefix}'
5875 PYTHON_EXEC_PREFIX='${exec_prefix}'
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5880 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5881 if ${am_cv_python_platform+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5887 $as_echo "$am_cv_python_platform" >&6; }
5888 PYTHON_PLATFORM=$am_cv_python_platform
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5894 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5895 if ${am_cv_python_pythondir+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test "x$prefix" = xNONE
5899 then
5900 am_py_prefix=$ac_default_prefix
5901 else
5902 am_py_prefix=$prefix
5904 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`
5905 case $am_cv_python_pythondir in
5906 $am_py_prefix*)
5907 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5908 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5911 case $am_py_prefix in
5912 /usr|/System*) ;;
5914 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5916 esac
5918 esac
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5922 $as_echo "$am_cv_python_pythondir" >&6; }
5923 pythondir=$am_cv_python_pythondir
5927 pkgpythondir=\${pythondir}/$PACKAGE
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5931 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5932 if ${am_cv_python_pyexecdir+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test "x$exec_prefix" = xNONE
5936 then
5937 am_py_exec_prefix=$am_py_prefix
5938 else
5939 am_py_exec_prefix=$exec_prefix
5941 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`
5942 case $am_cv_python_pyexecdir in
5943 $am_py_exec_prefix*)
5944 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5945 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5948 case $am_py_exec_prefix in
5949 /usr|/System*) ;;
5951 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5953 esac
5955 esac
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5959 $as_echo "$am_cv_python_pyexecdir" >&6; }
5960 pyexecdir=$am_cv_python_pyexecdir
5964 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5974 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5975 if ${ac_cv_lib_png_png_read_png+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 ac_check_lib_save_LIBS=$LIBS
5979 LIBS="-lpng $LIBS"
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5983 /* Override any GCC internal prototype to avoid an error.
5984 Use char because int might match the return type of a GCC
5985 builtin and then its argument prototype would still apply. */
5986 #ifdef __cplusplus
5987 extern "C"
5988 #endif
5989 char png_read_png ();
5991 main ()
5993 return png_read_png ();
5995 return 0;
5997 _ACEOF
5998 if ac_fn_c_try_link "$LINENO"; then :
5999 ac_cv_lib_png_png_read_png=yes
6000 else
6001 ac_cv_lib_png_png_read_png=no
6003 rm -f core conftest.err conftest.$ac_objext \
6004 conftest$ac_exeext conftest.$ac_ext
6005 LIBS=$ac_check_lib_save_LIBS
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6008 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6009 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6010 cat >>confdefs.h <<_ACEOF
6011 #define HAVE_LIBPNG 1
6012 _ACEOF
6014 LIBS="-lpng $LIBS"
6018 if test "$ac_cv_lib_png_png_read_png" = ""; then
6019 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6022 FOR=for
6024 IF=if
6026 TEST=test
6028 CMP=cmp
6032 # Check for some includes for the X11 HIDD and the kernel
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6036 if ${ac_cv_path_GREP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -z "$GREP"; then
6040 ac_path_GREP_found=false
6041 # Loop through the user's path and test for each of PROGNAME-LIST
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_prog in grep ggrep; do
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6050 as_fn_executable_p "$ac_path_GREP" || continue
6051 # Check for GNU ac_path_GREP and select it if it is found.
6052 # Check for GNU $ac_path_GREP
6053 case `"$ac_path_GREP" --version 2>&1` in
6054 *GNU*)
6055 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6057 ac_count=0
6058 $as_echo_n 0123456789 >"conftest.in"
6059 while :
6061 cat "conftest.in" "conftest.in" >"conftest.tmp"
6062 mv "conftest.tmp" "conftest.in"
6063 cp "conftest.in" "conftest.nl"
6064 $as_echo 'GREP' >> "conftest.nl"
6065 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6067 as_fn_arith $ac_count + 1 && ac_count=$as_val
6068 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6069 # Best one so far, save it but keep looking for a better one
6070 ac_cv_path_GREP="$ac_path_GREP"
6071 ac_path_GREP_max=$ac_count
6073 # 10*(2^10) chars as input seems more than enough
6074 test $ac_count -gt 10 && break
6075 done
6076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6077 esac
6079 $ac_path_GREP_found && break 3
6080 done
6081 done
6082 done
6083 IFS=$as_save_IFS
6084 if test -z "$ac_cv_path_GREP"; then
6085 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6087 else
6088 ac_cv_path_GREP=$GREP
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6093 $as_echo "$ac_cv_path_GREP" >&6; }
6094 GREP="$ac_cv_path_GREP"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6098 $as_echo_n "checking for egrep... " >&6; }
6099 if ${ac_cv_path_EGREP+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6103 then ac_cv_path_EGREP="$GREP -E"
6104 else
6105 if test -z "$EGREP"; then
6106 ac_path_EGREP_found=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_prog in egrep; do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6116 as_fn_executable_p "$ac_path_EGREP" || continue
6117 # Check for GNU ac_path_EGREP and select it if it is found.
6118 # Check for GNU $ac_path_EGREP
6119 case `"$ac_path_EGREP" --version 2>&1` in
6120 *GNU*)
6121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6123 ac_count=0
6124 $as_echo_n 0123456789 >"conftest.in"
6125 while :
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 $as_echo 'EGREP' >> "conftest.nl"
6131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133 as_fn_arith $ac_count + 1 && ac_count=$as_val
6134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_EGREP="$ac_path_EGREP"
6137 ac_path_EGREP_max=$ac_count
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6141 done
6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6143 esac
6145 $ac_path_EGREP_found && break 3
6146 done
6147 done
6148 done
6149 IFS=$as_save_IFS
6150 if test -z "$ac_cv_path_EGREP"; then
6151 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6153 else
6154 ac_cv_path_EGREP=$EGREP
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6160 $as_echo "$ac_cv_path_EGREP" >&6; }
6161 EGREP="$ac_cv_path_EGREP"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6165 $as_echo_n "checking for ANSI C header files... " >&6; }
6166 if ${ac_cv_header_stdc+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <stdlib.h>
6172 #include <stdarg.h>
6173 #include <string.h>
6174 #include <float.h>
6177 main ()
6181 return 0;
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 ac_cv_header_stdc=yes
6186 else
6187 ac_cv_header_stdc=no
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 if test $ac_cv_header_stdc = yes; then
6192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <string.h>
6197 _ACEOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 $EGREP "memchr" >/dev/null 2>&1; then :
6201 else
6202 ac_cv_header_stdc=no
6204 rm -f conftest*
6208 if test $ac_cv_header_stdc = yes; then
6209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <stdlib.h>
6214 _ACEOF
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 $EGREP "free" >/dev/null 2>&1; then :
6218 else
6219 ac_cv_header_stdc=no
6221 rm -f conftest*
6225 if test $ac_cv_header_stdc = yes; then
6226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6227 if test "$cross_compiling" = yes; then :
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <ctype.h>
6233 #include <stdlib.h>
6234 #if ((' ' & 0x0FF) == 0x020)
6235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6237 #else
6238 # define ISLOWER(c) \
6239 (('a' <= (c) && (c) <= 'i') \
6240 || ('j' <= (c) && (c) <= 'r') \
6241 || ('s' <= (c) && (c) <= 'z'))
6242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6243 #endif
6245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6247 main ()
6249 int i;
6250 for (i = 0; i < 256; i++)
6251 if (XOR (islower (i), ISLOWER (i))
6252 || toupper (i) != TOUPPER (i))
6253 return 2;
6254 return 0;
6256 _ACEOF
6257 if ac_fn_c_try_run "$LINENO"; then :
6259 else
6260 ac_cv_header_stdc=no
6262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6263 conftest.$ac_objext conftest.beam conftest.$ac_ext
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6269 $as_echo "$ac_cv_header_stdc" >&6; }
6270 if test $ac_cv_header_stdc = yes; then
6272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6277 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6278 inttypes.h stdint.h unistd.h
6279 do :
6280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286 _ACEOF
6290 done
6293 for ac_header in sys/ipc.h sys/shm.h \
6294 sys/mmap.h sys/mman.h sysexits.h \
6295 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6297 do :
6298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6300 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6301 cat >>confdefs.h <<_ACEOF
6302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6303 _ACEOF
6307 done
6310 for ac_header in sys/mount.h
6311 do :
6312 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6314 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6315 cat >>confdefs.h <<_ACEOF
6316 #define HAVE_SYS_MOUNT_H 1
6317 _ACEOF
6321 done
6324 ac_header_dirent=no
6325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6326 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6328 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6329 if eval \${$as_ac_Header+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #include <sys/types.h>
6335 #include <$ac_hdr>
6338 main ()
6340 if ((DIR *) 0)
6341 return 0;
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 eval "$as_ac_Header=yes"
6348 else
6349 eval "$as_ac_Header=no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 eval ac_res=\$$as_ac_Header
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6355 $as_echo "$ac_res" >&6; }
6356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6357 cat >>confdefs.h <<_ACEOF
6358 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6359 _ACEOF
6361 ac_header_dirent=$ac_hdr; break
6364 done
6365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6366 if test $ac_header_dirent = dirent.h; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6368 $as_echo_n "checking for library containing opendir... " >&6; }
6369 if ${ac_cv_search_opendir+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 ac_func_search_save_LIBS=$LIBS
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6376 /* Override any GCC internal prototype to avoid an error.
6377 Use char because int might match the return type of a GCC
6378 builtin and then its argument prototype would still apply. */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 char opendir ();
6384 main ()
6386 return opendir ();
6388 return 0;
6390 _ACEOF
6391 for ac_lib in '' dir; do
6392 if test -z "$ac_lib"; then
6393 ac_res="none required"
6394 else
6395 ac_res=-l$ac_lib
6396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 ac_cv_search_opendir=$ac_res
6401 rm -f core conftest.err conftest.$ac_objext \
6402 conftest$ac_exeext
6403 if ${ac_cv_search_opendir+:} false; then :
6404 break
6406 done
6407 if ${ac_cv_search_opendir+:} false; then :
6409 else
6410 ac_cv_search_opendir=no
6412 rm conftest.$ac_ext
6413 LIBS=$ac_func_search_save_LIBS
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6416 $as_echo "$ac_cv_search_opendir" >&6; }
6417 ac_res=$ac_cv_search_opendir
6418 if test "$ac_res" != no; then :
6419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6425 $as_echo_n "checking for library containing opendir... " >&6; }
6426 if ${ac_cv_search_opendir+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 ac_func_search_save_LIBS=$LIBS
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 /* Override any GCC internal prototype to avoid an error.
6434 Use char because int might match the return type of a GCC
6435 builtin and then its argument prototype would still apply. */
6436 #ifdef __cplusplus
6437 extern "C"
6438 #endif
6439 char opendir ();
6441 main ()
6443 return opendir ();
6445 return 0;
6447 _ACEOF
6448 for ac_lib in '' x; do
6449 if test -z "$ac_lib"; then
6450 ac_res="none required"
6451 else
6452 ac_res=-l$ac_lib
6453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6455 if ac_fn_c_try_link "$LINENO"; then :
6456 ac_cv_search_opendir=$ac_res
6458 rm -f core conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext
6460 if ${ac_cv_search_opendir+:} false; then :
6461 break
6463 done
6464 if ${ac_cv_search_opendir+:} false; then :
6466 else
6467 ac_cv_search_opendir=no
6469 rm conftest.$ac_ext
6470 LIBS=$ac_func_search_save_LIBS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6473 $as_echo "$ac_cv_search_opendir" >&6; }
6474 ac_res=$ac_cv_search_opendir
6475 if test "$ac_res" != no; then :
6476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6483 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6484 if ${ac_cv_header_stat_broken+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6490 #include <sys/stat.h>
6492 #if defined S_ISBLK && defined S_IFDIR
6493 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6494 #endif
6496 #if defined S_ISBLK && defined S_IFCHR
6497 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6498 #endif
6500 #if defined S_ISLNK && defined S_IFREG
6501 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6502 #endif
6504 #if defined S_ISSOCK && defined S_IFREG
6505 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6506 #endif
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 ac_cv_header_stat_broken=no
6511 else
6512 ac_cv_header_stat_broken=yes
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6517 $as_echo "$ac_cv_header_stat_broken" >&6; }
6518 if test $ac_cv_header_stat_broken = yes; then
6520 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6525 $as_echo_n "checking for ANSI C header files... " >&6; }
6526 if ${ac_cv_header_stdc+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #include <stdlib.h>
6532 #include <stdarg.h>
6533 #include <string.h>
6534 #include <float.h>
6537 main ()
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_header_stdc=yes
6546 else
6547 ac_cv_header_stdc=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 if test $ac_cv_header_stdc = yes; then
6552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 #include <string.h>
6557 _ACEOF
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "memchr" >/dev/null 2>&1; then :
6561 else
6562 ac_cv_header_stdc=no
6564 rm -f conftest*
6568 if test $ac_cv_header_stdc = yes; then
6569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <stdlib.h>
6574 _ACEOF
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576 $EGREP "free" >/dev/null 2>&1; then :
6578 else
6579 ac_cv_header_stdc=no
6581 rm -f conftest*
6585 if test $ac_cv_header_stdc = yes; then
6586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6587 if test "$cross_compiling" = yes; then :
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #include <ctype.h>
6593 #include <stdlib.h>
6594 #if ((' ' & 0x0FF) == 0x020)
6595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6597 #else
6598 # define ISLOWER(c) \
6599 (('a' <= (c) && (c) <= 'i') \
6600 || ('j' <= (c) && (c) <= 'r') \
6601 || ('s' <= (c) && (c) <= 'z'))
6602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6603 #endif
6605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6607 main ()
6609 int i;
6610 for (i = 0; i < 256; i++)
6611 if (XOR (islower (i), ISLOWER (i))
6612 || toupper (i) != TOUPPER (i))
6613 return 2;
6614 return 0;
6616 _ACEOF
6617 if ac_fn_c_try_run "$LINENO"; then :
6619 else
6620 ac_cv_header_stdc=no
6622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6623 conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6629 $as_echo "$ac_cv_header_stdc" >&6; }
6630 if test $ac_cv_header_stdc = yes; then
6632 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6637 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6638 if ${ac_cv_header_sys_wait_h+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 #include <sys/wait.h>
6645 #ifndef WEXITSTATUS
6646 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6647 #endif
6648 #ifndef WIFEXITED
6649 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6650 #endif
6653 main ()
6655 int s;
6656 wait (&s);
6657 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6659 return 0;
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 ac_cv_header_sys_wait_h=yes
6664 else
6665 ac_cv_header_sys_wait_h=no
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6671 if test $ac_cv_header_sys_wait_h = yes; then
6673 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6678 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6679 if ${ac_cv_header_time+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 #include <sys/time.h>
6686 #include <time.h>
6689 main ()
6691 if ((struct tm *) 0)
6692 return 0;
6694 return 0;
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698 ac_cv_header_time=yes
6699 else
6700 ac_cv_header_time=no
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6705 $as_echo "$ac_cv_header_time" >&6; }
6706 if test $ac_cv_header_time = yes; then
6708 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6712 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6713 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6717 _ACEOF
6720 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6725 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6726 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6730 _ACEOF
6733 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6735 else
6736 case " $LIBOBJS " in
6737 *" fileblocks.$ac_objext "* ) ;;
6738 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6740 esac
6745 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6746 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_STRUCT_STAT_ST_RDEV 1
6750 _ACEOF
6753 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6759 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6760 if ${ac_cv_struct_tm+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #include <sys/types.h>
6766 #include <time.h>
6769 main ()
6771 struct tm tm;
6772 int *p = &tm.tm_sec;
6773 return !p;
6775 return 0;
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 ac_cv_struct_tm=time.h
6780 else
6781 ac_cv_struct_tm=sys/time.h
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6786 $as_echo "$ac_cv_struct_tm" >&6; }
6787 if test $ac_cv_struct_tm = sys/time.h; then
6789 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6793 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6794 #include <$ac_cv_struct_tm>
6797 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_STRUCT_TM_TM_ZONE 1
6801 _ACEOF
6806 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6808 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6810 else
6811 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6813 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6814 ac_have_decl=1
6815 else
6816 ac_have_decl=0
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_DECL_TZNAME $ac_have_decl
6821 _ACEOF
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6824 $as_echo_n "checking for tzname... " >&6; }
6825 if ${ac_cv_var_tzname+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <time.h>
6831 #if !HAVE_DECL_TZNAME
6832 extern char *tzname[];
6833 #endif
6836 main ()
6838 return tzname[0][0];
6840 return 0;
6842 _ACEOF
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 ac_cv_var_tzname=yes
6845 else
6846 ac_cv_var_tzname=no
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6852 $as_echo "$ac_cv_var_tzname" >&6; }
6853 if test $ac_cv_var_tzname = yes; then
6855 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6860 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6861 if test "x$ac_cv_type_off_t" = xyes; then :
6863 else
6865 cat >>confdefs.h <<_ACEOF
6866 #define off_t long int
6867 _ACEOF
6871 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_pid_t" = xyes; then :
6874 else
6876 cat >>confdefs.h <<_ACEOF
6877 #define pid_t int
6878 _ACEOF
6882 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6883 if test "x$ac_cv_type_size_t" = xyes; then :
6885 else
6887 cat >>confdefs.h <<_ACEOF
6888 #define size_t unsigned int
6889 _ACEOF
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6894 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6895 if ${ac_cv_type_uid_t+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 #include <sys/types.h>
6902 _ACEOF
6903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 $EGREP "uid_t" >/dev/null 2>&1; then :
6905 ac_cv_type_uid_t=yes
6906 else
6907 ac_cv_type_uid_t=no
6909 rm -f conftest*
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6913 $as_echo "$ac_cv_type_uid_t" >&6; }
6914 if test $ac_cv_type_uid_t = no; then
6916 $as_echo "#define uid_t int" >>confdefs.h
6919 $as_echo "#define gid_t int" >>confdefs.h
6924 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6925 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6929 _ACEOF
6935 # Look for some functions
6936 for ac_func in getpagesize kqueue statfs statvfs \
6937 clone kse_create rfork_thread thr_create sa_register \
6938 getcontext makecontext setcontext sigaltstack swapcontext
6939 do :
6940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6943 cat >>confdefs.h <<_ACEOF
6944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6945 _ACEOF
6948 done
6954 for ac_header in $ac_header_list
6955 do :
6956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6960 cat >>confdefs.h <<_ACEOF
6961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6962 _ACEOF
6966 done
6975 for ac_func in getpagesize
6976 do :
6977 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6978 if test "x$ac_cv_func_getpagesize" = xyes; then :
6979 cat >>confdefs.h <<_ACEOF
6980 #define HAVE_GETPAGESIZE 1
6981 _ACEOF
6984 done
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6987 $as_echo_n "checking for working mmap... " >&6; }
6988 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test "$cross_compiling" = yes; then :
6992 ac_cv_func_mmap_fixed_mapped=no
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 $ac_includes_default
6997 /* malloc might have been renamed as rpl_malloc. */
6998 #undef malloc
7000 /* Thanks to Mike Haertel and Jim Avera for this test.
7001 Here is a matrix of mmap possibilities:
7002 mmap private not fixed
7003 mmap private fixed at somewhere currently unmapped
7004 mmap private fixed at somewhere already mapped
7005 mmap shared not fixed
7006 mmap shared fixed at somewhere currently unmapped
7007 mmap shared fixed at somewhere already mapped
7008 For private mappings, we should verify that changes cannot be read()
7009 back from the file, nor mmap's back from the file at a different
7010 address. (There have been systems where private was not correctly
7011 implemented like the infamous i386 svr4.0, and systems where the
7012 VM page cache was not coherent with the file system buffer cache
7013 like early versions of FreeBSD and possibly contemporary NetBSD.)
7014 For shared mappings, we should conversely verify that changes get
7015 propagated back to all the places they're supposed to be.
7017 Grep wants private fixed already mapped.
7018 The main things grep needs to know about mmap are:
7019 * does it exist and is it safe to write into the mmap'd area
7020 * how to use it (BSD variants) */
7022 #include <fcntl.h>
7023 #include <sys/mman.h>
7025 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7026 char *malloc ();
7027 #endif
7029 /* This mess was copied from the GNU getpagesize.h. */
7030 #ifndef HAVE_GETPAGESIZE
7031 # ifdef _SC_PAGESIZE
7032 # define getpagesize() sysconf(_SC_PAGESIZE)
7033 # else /* no _SC_PAGESIZE */
7034 # ifdef HAVE_SYS_PARAM_H
7035 # include <sys/param.h>
7036 # ifdef EXEC_PAGESIZE
7037 # define getpagesize() EXEC_PAGESIZE
7038 # else /* no EXEC_PAGESIZE */
7039 # ifdef NBPG
7040 # define getpagesize() NBPG * CLSIZE
7041 # ifndef CLSIZE
7042 # define CLSIZE 1
7043 # endif /* no CLSIZE */
7044 # else /* no NBPG */
7045 # ifdef NBPC
7046 # define getpagesize() NBPC
7047 # else /* no NBPC */
7048 # ifdef PAGESIZE
7049 # define getpagesize() PAGESIZE
7050 # endif /* PAGESIZE */
7051 # endif /* no NBPC */
7052 # endif /* no NBPG */
7053 # endif /* no EXEC_PAGESIZE */
7054 # else /* no HAVE_SYS_PARAM_H */
7055 # define getpagesize() 8192 /* punt totally */
7056 # endif /* no HAVE_SYS_PARAM_H */
7057 # endif /* no _SC_PAGESIZE */
7059 #endif /* no HAVE_GETPAGESIZE */
7062 main ()
7064 char *data, *data2, *data3;
7065 const char *cdata2;
7066 int i, pagesize;
7067 int fd, fd2;
7069 pagesize = getpagesize ();
7071 /* First, make a file with some known garbage in it. */
7072 data = (char *) malloc (pagesize);
7073 if (!data)
7074 return 1;
7075 for (i = 0; i < pagesize; ++i)
7076 *(data + i) = rand ();
7077 umask (0);
7078 fd = creat ("conftest.mmap", 0600);
7079 if (fd < 0)
7080 return 2;
7081 if (write (fd, data, pagesize) != pagesize)
7082 return 3;
7083 close (fd);
7085 /* Next, check that the tail of a page is zero-filled. File must have
7086 non-zero length, otherwise we risk SIGBUS for entire page. */
7087 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7088 if (fd2 < 0)
7089 return 4;
7090 cdata2 = "";
7091 if (write (fd2, cdata2, 1) != 1)
7092 return 5;
7093 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7094 if (data2 == MAP_FAILED)
7095 return 6;
7096 for (i = 0; i < pagesize; ++i)
7097 if (*(data2 + i))
7098 return 7;
7099 close (fd2);
7100 if (munmap (data2, pagesize))
7101 return 8;
7103 /* Next, try to mmap the file at a fixed address which already has
7104 something else allocated at it. If we can, also make sure that
7105 we see the same garbage. */
7106 fd = open ("conftest.mmap", O_RDWR);
7107 if (fd < 0)
7108 return 9;
7109 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7110 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7111 return 10;
7112 for (i = 0; i < pagesize; ++i)
7113 if (*(data + i) != *(data2 + i))
7114 return 11;
7116 /* Finally, make sure that changes to the mapped area do not
7117 percolate back to the file as seen by read(). (This is a bug on
7118 some variants of i386 svr4.0.) */
7119 for (i = 0; i < pagesize; ++i)
7120 *(data2 + i) = *(data2 + i) + 1;
7121 data3 = (char *) malloc (pagesize);
7122 if (!data3)
7123 return 12;
7124 if (read (fd, data3, pagesize) != pagesize)
7125 return 13;
7126 for (i = 0; i < pagesize; ++i)
7127 if (*(data + i) != *(data3 + i))
7128 return 14;
7129 close (fd);
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_run "$LINENO"; then :
7134 ac_cv_func_mmap_fixed_mapped=yes
7135 else
7136 ac_cv_func_mmap_fixed_mapped=no
7138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7139 conftest.$ac_objext conftest.beam conftest.$ac_ext
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7144 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7145 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7147 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7150 rm -f conftest.mmap conftest.txt
7155 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7156 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7157 aros_config_ldflags=""
7159 aros_shared_default=yes
7161 aros_shared_cflags="-fPIC"
7162 aros_shared_aflags=""
7163 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7164 aros_kernel_ldflags="-Wl,-rpath,./lib"
7166 aros_kernel_ar_flags="cr"
7167 aros_target_ar_flags="cr"
7168 aros_target_nm_flags="-C -ul"
7169 aros_target_strip_flags="--strip-unneeded -R.comment"
7171 aros_compiler_libs=
7172 aros_arch_libs=
7174 aros_target_genmap="-Wl,-Map -Xlinker"
7176 # Native flavour stuff
7177 aros_serial_debug="0"
7179 # Palm native flavour stuff
7180 aros_palm_debug_hack="0"
7182 # Unix flavour stuff
7183 aros_nesting_supervisor="0"
7185 # Collect-aros stuff: "-ius" to ignore undefined symbols
7186 ignore_undefined_symbols=""
7188 # Check for X11 by default
7189 need_x11="auto"
7191 #-----------------------------------------------------------------------------
7194 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7195 # it switched on by default, and we use the host compiler, so it compiles AROS
7196 # code with this enabled resulting in link failures as we don't have support
7197 # for it.
7199 # We use two methods to disable it. For the host compiler (used to compile
7200 # some hosted modules), we test to see if the compiler supports stack
7201 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7202 # work on all platforms.
7204 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7205 # (this is done unconditionally, as it should have no effect on compilers
7206 # without the stack protection feature). This may be specific to the way that
7207 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7208 # strong enough to disable it in a generic way though, so we'll live with it
7209 # until another vendor ships GCC with it enabled in a different way, and deal
7210 # with it then.
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7214 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7215 save_cflags="$CFLAGS"
7216 CFLAGS="$CFLAGS -fno-stack-protector"
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7221 main ()
7225 return 0;
7227 _ACEOF
7228 if ac_fn_c_try_compile "$LINENO"; then :
7229 use_no_stack_protector="yes"
7230 else
7231 use_no_stack_protector="no"
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7235 $as_echo "$use_no_stack_protector" >&6; }
7236 if test "x-$use_no_stack_protector" = "x-yes" ; then
7237 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7239 CFLAGS="$save_cflags"
7241 #-----------------------------------------------------------------------------
7243 # Disable pointer-signedness warnings if the compiler recognises the option
7244 # (this only works for the host compiler at the moment)
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7247 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7248 save_cflags="$CFLAGS"
7249 CFLAGS="$CFLAGS -Wno-pointer-sign"
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7254 main ()
7258 return 0;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 use_no_sign_warning="yes"
7263 else
7264 use_no_sign_warning="no"
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7268 $as_echo "$use_no_sign_warning" >&6; }
7269 if test "x-$use_no_sign_warning" = "x-yes" ; then
7270 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7272 CFLAGS="$save_cflags"
7274 #-----------------------------------------------------------------------------
7276 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7279 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7280 save_cflags="$CFLAGS"
7281 CFLAGS="$CFLAGS -fgnu89-inline"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7286 main ()
7290 return 0;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 use_gnu89_inline="yes"
7295 else
7296 use_gnu89_inline="no"
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7300 $as_echo "$use_gnu89_inline" >&6; }
7301 if test "x-$use_gnu89_inline" = "x-yes" ; then
7302 gnu89_inline="-fgnu89-inline"
7304 CFLAGS="$save_cflags"
7306 #-----------------------------------------------------------------------------
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7309 $as_echo_n "checking for type of build... " >&6; }
7310 # Check whether --enable-build_type was given.
7311 if test "${enable_build_type+set}" = set; then :
7312 enableval=$enable_build_type; build_type=$enableval
7313 else
7314 build_type="personal"
7318 if test "$build_type" = "nightly"; then
7319 build_type_string="NIGHTLY"
7320 elif test "$build_type" = "snapshot"; then
7321 build_type_string="SNAPSHOT"
7322 elif test "$build_type" = "milestone"; then
7323 build_type_string="MILESTONE"
7324 elif test "$build_type" = "release"; then
7325 build_type_string="RELEASE"
7326 else
7327 build_type_string="PERSONAL"
7328 build_type="personal"
7331 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7334 $as_echo "$build_type" >&6; }
7336 #-----------------------------------------------------------------------------
7337 all_debug_types="messages stack modules mungwall symbols"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7340 $as_echo_n "checking which debug types to enable... " >&6; }
7341 # Check whether --enable-debug was given.
7342 if test "${enable_debug+set}" = set; then :
7343 enableval=$enable_debug; debug="$enableval"
7344 else
7345 debug=""
7349 if test "$debug" = "" -o "$debug" = "no"; then
7350 debug="none"
7351 elif test "$debug" = "yes"; then
7352 debug="all"
7355 if test "$debug" = "all" ; then
7356 debug="messages stack modules symbols"
7357 for d in $all_debug_types; do
7358 export aros_${d}_debug="1"
7359 done
7360 else
7361 for d in $all_debug_types; do
7362 export aros_${d}_debug="0"
7363 done
7366 if test "$debug" != "none"; then
7367 debug=`echo $debug | sed s/,/\ /g`
7368 for d in $debug; do
7369 found="0"
7370 for d2 in $all_debug_types; do
7371 if test "$d2" = "$d"; then
7372 found="1"
7373 break
7375 done
7376 if test "$found" = "0"; then
7377 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7379 export aros_${d}_debug="1"
7380 done
7381 aros_debug="yes"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7384 $as_echo "$debug" >&6; }
7386 if test "$aros_messages_debug" = "1"; then
7387 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7388 else
7389 aros_messages_debug=""
7391 if test "$aros_symbols_debug" = "1"; then
7392 aros_symbols_debug="-g"
7393 else
7394 aros_symbols_debug=""
7397 # These are the flags to pass when compiling debugged programs
7398 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7399 aros_debug_aflags=""
7400 aros_debug_ldflags="$aros_symbols_debug"
7402 #-----------------------------------------------------------------------------
7403 # Checking for distcc and ccache.
7405 # Always apply the transforms in this particular order. Basically you should
7406 # always run 'ccache distcc compiler' in that order for the best performance.
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7409 $as_echo_n "checking whether to enable distcc... " >&6; }
7410 # Check whether --enable-distcc was given.
7411 if test "${enable_distcc+set}" = set; then :
7412 enableval=$enable_distcc; distcc="$enableval"
7413 else
7414 distcc="no"
7417 if test "$distcc" != "" -a "$distcc" != "no"; then
7418 # AC_CHECK_PROG will print out the result in this case
7419 # Extract the first word of "distcc", so it can be a program name with args.
7420 set dummy distcc; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_path_DISTCC+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 case $DISTCC in
7427 [\\/]* | ?:[\\/]*)
7428 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7442 done
7443 done
7444 IFS=$as_save_IFS
7446 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7448 esac
7450 DISTCC=$ac_cv_path_DISTCC
7451 if test -n "$DISTCC"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7453 $as_echo "$DISTCC" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7466 $as_echo_n "checking whether to enable ccache... " >&6; }
7467 # Check whether --enable-ccache was given.
7468 if test "${enable_ccache+set}" = set; then :
7469 enableval=$enable_ccache; ccache="$enableval"
7470 else
7471 ccache="no"
7474 if test "$ccache" != "" -a "$ccache" != "no"; then
7475 # AC_CHECK_PROG will print out the result in this case
7476 # Extract the first word of "ccache", so it can be a program name with args.
7477 set dummy ccache; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_CCACHE+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$CCACHE"; then
7484 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_CCACHE="ccache"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7503 CCACHE=$ac_cv_prog_CCACHE
7504 if test -n "$CCACHE"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7506 $as_echo "$CCACHE" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 #-----------------------------------------------------------------------------
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7520 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7522 # Check whether --with-kernel-gcc-version was given.
7523 if test "${with_kernel_gcc_version+set}" = set; then :
7524 withval=$with_kernel_gcc_version; kernel_tool_version="-$withval"
7525 else
7526 kernel_tool_version=""
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7530 $as_echo "$kernel_tool_version" >&6; }
7532 #-----------------------------------------------------------------------------
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7534 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7536 # Check whether --with-gcc-version was given.
7537 if test "${with_gcc_version+set}" = set; then :
7538 withval=$with_gcc_version; target_tool_version="$withval"
7539 else
7540 target_tool_version="default"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7544 $as_echo "$target_tool_version" >&6; }
7546 #-----------------------------------------------------------------------------
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7548 $as_echo_n "checking what optimization flags to use... " >&6; }
7550 # Check whether --with-optimization was given.
7551 if test "${with_optimization+set}" = set; then :
7552 withval=$with_optimization; optimization="$withval"
7553 else
7554 optimization="unknown"
7557 if test "$optimization" = "unknown"; then
7558 if test "$debug" != "none"; then
7559 optimization="-O0"
7560 else
7561 optimization="-O2"
7564 aros_config_cflags="$aros_config_cflags $optimization"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7566 $as_echo "$optimization" >&6; }
7568 #-----------------------------------------------------------------------------
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7570 $as_echo_n "checking what paranoia flags to use... " >&6; }
7572 # Check whether --with-paranoia was given.
7573 if test "${with_paranoia+set}" = set; then :
7574 withval=$with_paranoia; paranoia_flags="$withval"
7575 else
7576 paranoia_flags="default"
7579 if test "$paranoia_flags" = "default"; then
7580 paranoia_flags=""
7581 else if test "$paranoia_flags" = "yes"; then
7582 paranoia_flags="-Wall -Werror"
7583 fi fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7585 $as_echo "$paranoia_flags" >&6; }
7586 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7588 #-----------------------------------------------------------------------------
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7590 $as_echo_n "checking what target variant to enable... " >&6; }
7591 # Check whether --enable-target_variant was given.
7592 if test "${enable_target_variant+set}" = set; then :
7593 enableval=$enable_target_variant; target_variant=$enableval
7594 else
7595 target_variant=""
7598 if test "$target_variant" = ""; then
7599 aros_target_variant=""
7600 aros_target_suffix=""
7601 enableval="none"
7602 else
7603 aros_target_variant="$target_variant"
7604 aros_target_suffix="-$target_variant"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7607 $as_echo "$enableval" >&6; }
7609 #-----------------------------------------------------------------------------
7610 # Target-specific defaults. You can override then on a per-target basis.
7612 # Bootloader name. Currently used by PC target.
7613 target_bootloader="none"
7615 #-----------------------------------------------------------------------------
7616 # Additional options for some specific targets
7618 case "$aros_target_variant" in
7619 ios)
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7621 $as_echo_n "checking XCode path... " >&6; }
7623 # Check whether --with-xcode was given.
7624 if test "${with_xcode+set}" = set; then :
7625 withval=$with_xcode; aros_xcode_path="$withval"
7626 else
7627 aros_xcode_path="/Developer"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7631 $as_echo "$aros_xcode_path" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7634 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7636 # Check whether --with-sdk-version was given.
7637 if test "${with_sdk_version+set}" = set; then :
7638 withval=$with_sdk_version; aros_sdk_version="$withval"
7639 else
7640 aros_sdk_version="4.1"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7644 $as_echo "$aros_sdk_version" >&6; }
7648 "android")
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7650 $as_echo_n "checking Android SDK path... " >&6; }
7652 # Check whether --with-sdk was given.
7653 if test "${with_sdk+set}" = set; then :
7654 withval=$with_sdk; aros_android_sdk="$withval"
7655 else
7656 aros_android_sdk=$default_android_sdk
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7660 $as_echo "$aros_android_sdk" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7663 $as_echo_n "checking Android NDK path... " >&6; }
7665 # Check whether --with-ndk was given.
7666 if test "${with_ndk+set}" = set; then :
7667 withval=$with_ndk; aros_android_ndk="$withval"
7668 else
7669 aros_android_ndk="none"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7673 $as_echo "$aros_android_ndk" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7676 $as_echo_n "checking what Android SDK version to use... " >&6; }
7678 # Check whether --with-sdk-version was given.
7679 if test "${with_sdk_version+set}" = set; then :
7680 withval=$with_sdk_version; aros_sdk_version="$withval"
7681 else
7682 aros_sdk_version="12"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7686 $as_echo "$aros_sdk_version" >&6; }
7688 if test "$aros_android_ndk" != "none"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7690 $as_echo_n "checking what Android NDK version to use... " >&6; }
7692 # Check whether --with-ndk-version was given.
7693 if test "${with_ndk_version+set}" = set; then :
7694 withval=$with_ndk_version; aros_ndk_version="$withval"
7695 else
7696 aros_ndk_version="9"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7700 $as_echo "$aros_ndk_version" >&6; }
7703 export PATH="$aros_android_sdk/tools:$PATH"
7704 # Extract the first word of "$android_tool", so it can be a program name with args.
7705 set dummy $android_tool; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_android_tool+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 case $android_tool in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7727 done
7728 done
7729 IFS=$as_save_IFS
7732 esac
7734 android_tool=$ac_cv_path_android_tool
7735 if test -n "$android_tool"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7737 $as_echo "$android_tool" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7744 if test "$android_tool" = ""; then
7745 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7748 aros_android_level=android-$aros_sdk_version
7749 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7750 echo "Platform $aros_android_level is not installed in your SDK"
7751 echo "Use --with-sdk-version=<API level number> to select another platform version"
7752 echo "You can check what plaform versions are installed in your SDK"
7753 echo "by examining contents of $aros_android_sdk/platforms directory"
7754 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7757 # Extract the first word of "ant", so it can be a program name with args.
7758 set dummy ant; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_path_ant+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 case $ant in
7765 [\\/]* | ?:[\\/]*)
7766 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7785 esac
7787 ant=$ac_cv_path_ant
7788 if test -n "$ant"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7790 $as_echo "$ant" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7797 if test "$ant" = ""; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7799 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7802 if test "$host_os" = "mingw32"; then
7803 android_tool="cmd //c $android_tool"
7807 esac
7809 #-----------------------------------------------------------------------------
7810 # External toolchains
7811 kernel_tool_prefix="none"
7812 aros_tool_prefix="none"
7813 elf_tool_prefix="${target_cpu}-elf-"
7815 # This is the target configuration switch.
7816 case "$target_os" in
7817 linux*)
7818 aros_target_arch="linux"
7819 aros_target_family="unix"
7820 case "$target_cpu" in
7821 *m68k*)
7822 aros_target_cpu="m68k"
7823 aros_object_format="m68kelf"
7824 aros_flavour="emulcompat"
7825 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7826 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7827 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7828 gcc_target_cpu="mc68000"
7830 *i?86*)
7831 aros_target_cpu="i386"
7832 aros_object_format="elf_i386"
7833 aros_flavour="emulation"
7834 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7835 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7836 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7837 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7838 aros_config_ldflags="-m32 -march=i486"
7839 aros_kernel_ldflags="-melf_i386"
7840 aros_default_wbdepth=8
7841 gcc_target_cpu="i386"
7842 pci_hidd_target="hidd-pci-linux"
7843 android_tool_dir_prefix="x86"
7844 android_tool_prefix="i686-android-linux"
7845 android_ndk_arch="x86"
7847 *x86_64*)
7848 aros_target_cpu="x86_64"
7849 aros_object_format="elf_x86_64"
7850 aros_flavour="emulation"
7851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7852 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7853 aros_default_wbdepth=8
7854 pci_hidd_target="hidd-pci-linux"
7856 *powerpc*)
7857 aros_target_cpu="ppc"
7858 aros_object_format="elf32ppc"
7859 aros_flavour="emulation"
7860 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7861 aros_default_wbdepth=8
7862 gcc_target_cpu="ppc"
7864 # TODO
7865 # Same as powerpc, but I need this for the nightly build to work again.
7866 # Actually, the nightly should be made working with powerpc target.
7867 # That just was too much work for the moment, another week or two.
7868 *ppc*)
7869 aros_target_cpu="ppc"
7870 aros_object_format="elf32ppc"
7871 aros_flavour="emulation"
7872 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7873 aros_default_wbdepth=8
7874 gcc_target_cpu="ppc"
7876 *armhf*)
7877 aros_target_cpu="arm"
7878 target_cpu="arm"
7879 aros_object_format="armelf_linux_eabi"
7880 aros_flavour="emulation"
7881 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7882 gcc_target_cpu="arm"
7883 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7884 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7885 aros_arch_libs="-laeabi"
7886 gcc_default_fpu="vfpv3-d16"
7887 gcc_default_float_abi="hard"
7888 android_tool_dir_prefix="arm-linux-androideabi"
7889 android_tool_prefix="arm-linux-androideabi"
7890 android_ndk_arch="arm"
7891 kernel_tool_prefix="arm-linux-gnueabihf-"
7893 *arm*)
7894 aros_target_cpu="arm"
7895 aros_object_format="armelf_linux_eabi"
7896 aros_flavour="emulation"
7897 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7898 gcc_target_cpu="arm"
7899 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7900 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7901 aros_arch_libs="-laeabi"
7902 android_tool_dir_prefix="arm-linux-androideabi"
7903 android_tool_prefix="arm-linux-androideabi"
7904 android_ndk_arch="arm"
7905 kernel_tool_prefix="arm-linux-gnueabi-"
7908 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7910 esac
7911 case "$aros_target_variant" in
7912 android)
7914 if test "$android_ndk_arch" = ""; then
7915 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7918 aros_default_wbwidth=320
7919 aros_default_wbheight=480
7920 if test "$aros_android_ndk" = "none"; then
7921 aros_kernel_cflags="-mandroid"
7922 aros_kernel_ldflags="-mandroid"
7923 CFLAGS="-mandroid"
7924 else
7925 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7926 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7927 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7928 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7929 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7930 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7932 need_x11=no
7933 x11_hidd_target=kernel-hidd-androidgfx-kobj
7934 # Disable implicit PIC mode
7935 aros_target_cflags="$aros_target_cflags -fno-pic"
7936 kernel_tool_prefix="$android_tool_prefix-"
7938 esac
7942 aros_target_arch="pc"
7943 aros_shared_default="no"
7944 target_bootloader="grub2"
7945 case "$target_cpu" in
7946 *i?86*)
7947 aros_target_cpu="i386"
7950 if test "$aros_object_format" = "" ; then
7951 aros_object_format="elf_i386"
7953 aros_flavour="standalone"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7955 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7956 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7957 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7958 aros_config_ldflags="-m32 -march=i486"
7959 aros_kernel_ldflags="-melf_i386"
7960 aros_default_wbwidth=640
7961 aros_default_wbheight=480
7962 gcc_target_cpu="i386"
7964 *x86_64*)
7965 aros_target_cpu="x86_64"
7966 aros_serial_debug=1
7967 if test "$aros_object_format" = "" ; then
7968 aros_object_format="elf_x86_64"
7970 aros_flavour="standalone"
7971 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7972 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7973 aros_kernel_ldflags=""
7974 aros_default_wbwidth=640
7975 aros_default_wbheight=480
7978 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7980 esac
7983 prep)
7984 aros_target_arch="prep"
7985 aros_shared_default="no"
7986 aros_target_cpu="ppc"
7987 aros_object_format="elf32ppc"
7988 aros_flavour="ppcnative"
7989 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7990 aros_kernel_ldflags=""
7991 aros_default_wbwidth=640
7992 aros_default_wbheight=480
7993 gcc_target_cpu="ppc"
7996 freebsd*)
7997 aros_target_arch="freebsd"
7998 aros_target_family="unix"
7999 aros_target_cpu="i386"
8000 aros_flavour="emulation"
8001 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8002 gcc_target_cpu="i386"
8004 aros_target_strip_flags="-x"
8007 darwin*)
8008 aros_target_arch="darwin"
8009 aros_target_family="unix"
8010 aros_flavour="emulation"
8011 case "$target_cpu" in
8012 *i?86*)
8013 aros_ios_platform="iPhoneSimulator"
8014 aros_target_cpu="i386"
8015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8016 aros_kernel_ldflags=""
8017 aros_macosx_version="10.4"
8018 aros_default_wbdepth=8
8019 gcc_target_cpu="i386"
8020 aros_object_format="elf_i386"
8021 aros_kernel_ar_flags="-cr"
8022 aros_target_strip_flags="-x"
8023 kernel_tool_flags="-m32"
8025 *x86_64*)
8026 aros_target_cpu="x86_64"
8027 aros_object_format="elf_x86_64"
8028 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8029 aros_macosx_version="10.6"
8030 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8031 aros_kernel_cflags="-m64"
8032 aros_kernel_ldflags="-m64"
8033 aros_target_cflags="-mcmodel=large"
8034 aros_default_wbdepth=8
8035 aros_kernel_ar="ar"
8036 aros_kernel_ar_flags="-cr"
8037 aros_kernel_ld="ld"
8038 aros_kernel_as="as"
8039 aros_kernel_ranlib="ranlib"
8040 aros_kernel_nm="nm"
8041 aros_kernel_strip="strip"
8042 kernel_tool_prefix="i686-apple-darwin10-"
8044 *ppc*)
8045 aros_target_cpu="ppc"
8046 aros_object_format="elf32ppc"
8047 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8048 aros_kernel_ldflags=""
8049 aros_macosx_version="10.0"
8050 aros_default_wbdepth=8
8051 gcc_target_cpu="ppc"
8052 aros_kernel_ar="ar"
8053 aros_kernel_ar_flags="-cr"
8054 aros_kernel_ld="ld -arch ppc"
8055 aros_kernel_as="as -arch ppc"
8056 aros_kernel_ranlib="ranlib -arch ppc"
8057 aros_kernel_nm="nm -arch ppc"
8058 aros_kernel_strip="strip -arch ppc"
8059 kernel_tool_prefix="powerpc-apple-darwin10-"
8061 *arm*)
8062 aros_ios_platform="iPhoneOS"
8063 aros_target_cpu="arm"
8064 aros_object_format="armelf_linux_eabi"
8065 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8066 aros_arch_libs="-laeabi"
8067 aros_default_wbdepth=8
8068 gcc_target_cpu="arm"
8069 aros_kernel_ar="ar"
8070 aros_kernel_ar_flags="-cr"
8071 aros_kernel_ld="ld -arch arm"
8072 aros_kernel_ranlib="ranlib -arch arm"
8073 kernel_tool_prefix="arm-apple-darwin10-"
8074 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8077 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8079 esac
8080 case "$aros_target_variant" in
8081 ios)
8082 aros_ios_version="3.0"
8083 aros_default_wbwidth=320
8084 aros_default_wbheight=480
8085 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8086 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8087 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8088 need_x11=no
8089 # This is here because it may depend on iOS or SDK version
8090 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8091 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8092 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8095 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8096 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8098 esac
8101 dragonfly*)
8102 aros_target_arch="dragonfly"
8103 aros_target_family="unix"
8104 aros_flavour="emulation"
8105 case "$target_cpu" in
8106 *i?86*)
8107 aros_target_cpu="i386"
8108 aros_object_format="elf_i386"
8109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8111 *x86_64*)
8112 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8113 aros_target_cpu="x86_64"
8114 aros_object_format="elf_x86_64"
8115 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8118 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8120 esac
8123 netbsd*)
8124 aros_target_arch="netbsd"
8125 aros_target_family="unix"
8126 case "$target_cpu" in
8127 *m68k*)
8128 aros_target_cpu="m68k"
8129 aros_object_format="m68kelf"
8130 aros_flavour="emulcompat"
8131 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8132 gcc_target_cpu="mc68000"
8134 *i?86*)
8135 aros_target_cpu="i386"
8136 aros_object_format="elf_i386"
8137 aros_flavour="emulation"
8138 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8139 aros_default_wbdepth=8
8140 gcc_target_cpu="i386"
8143 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8145 esac
8146 aros_target_genmap="-Wl,-M -Xlinker >"
8147 aros_flavour="emulation"
8148 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8151 openbsd*)
8152 aros_target_arch="openbsd"
8153 aros_target_family="unix"
8154 case "$target_cpu" in
8155 *i?86*)
8156 aros_target_cpu="i386"
8157 aros_object_format="elf_i386"
8158 aros_flavour="emulation"
8159 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8160 gcc_target_cpu="i386"
8163 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8165 esac
8166 aros_target_genmap="-Wl,-M -Xlinker >"
8167 aros_target_nm_flags="-u"
8168 aros_flavour="emulation"
8171 solaris*)
8172 aros_target_arch="solaris"
8173 aros_target_family="unix"
8174 case "$target_cpu" in
8175 *i?86*)
8176 aros_target_cpu="i386"
8177 aros_object_format="elf_i386"
8178 aros_flavour="emulation"
8179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8180 aros_default_wbdepth=8
8181 gcc_target_cpu="i386"
8183 *sparc*)
8184 aros_target_cpu="sparc"
8185 aros_object_format="elf_sparc"
8186 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8187 gcc_target_cpu="sparc"
8190 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8192 esac
8193 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8194 aros_flavour="emulation"
8197 morphos*)
8198 aros_target_arch="morphos"
8199 aros_shared_default="no"
8200 aros_target_cpu="ppc"
8201 aros_object_format="elf_ppc"
8202 aros_flavour="nativecompat"
8203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8204 gcc_target_cpu="ppc"
8207 sam440)
8208 aros_target_arch="sam440"
8209 aros_shared_default="no"
8210 aros_target_cpu="ppc"
8211 aros_object_format="elf32ppc"
8212 aros_flavour="ppcnative"
8213 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8214 aros_kernel_ldflags=""
8215 aros_default_wbwidth=1024
8216 aros_default_wbheight=768
8217 aros_default_wbdepth=24
8218 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8219 gcc_target_cpu="powerpc"
8222 efika)
8223 aros_target_arch="efika"
8224 aros_shared_default="no"
8225 aros_target_cpu="arm"
8226 aros_object_format="armelf_linux_eabi"
8227 aros_flavour="standalone"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8229 aros_kernel_ldflags=""
8230 aros_default_wbwidth=1024
8231 aros_default_wbheight=600
8232 aros_arch_libs="-laeabi"
8233 gcc_default_cpu="armv7-a"
8234 gcc_default_fpu="vfpv3"
8235 gcc_default_float_abi="softfp"
8236 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8237 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8240 chrp)
8241 aros_target_arch="chrp"
8242 aros_shared_default="no"
8243 aros_target_cpu="ppc"
8244 aros_object_format="elf32ppc"
8245 aros_flavour="ppcnative"
8246 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8247 aros_kernel_ldflags=""
8248 aros_default_wbwidth=640
8249 aros_default_wbheight=480
8250 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8251 gcc_target_cpu="powerpc"
8252 case "$aros_target_variant" in
8253 efika)
8254 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8256 esac
8259 r*pi)
8260 aros_flavour="standalone"
8261 aros_target_arch="raspi"
8262 aros_target_cpu="arm"
8263 aros_object_format="armelf_linux_eabi"
8264 aros_shared_default="no"
8265 aros_arch_libs="-laeabi"
8267 gcc_default_cpu="armv6"
8268 gcc_default_cpu_tune="arm1176jzf-s"
8269 case "$target_cpu" in
8270 *armhf*)
8271 gcc_default_fpu="vfp"
8272 gcc_default_float_abi="hard"
8274 *arm*)
8275 gcc_default_fpu="vfp"
8276 gcc_default_float_abi="softfp"
8279 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8281 esac
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8284 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8285 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8286 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8287 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8290 amiga*)
8291 aros_target_arch="amiga"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8293 aros_shared_default="no"
8295 case "$target_cpu" in
8296 *m68k*)
8297 # Check whether --enable-amigaos_compliance was given.
8298 if test "${enable_amigaos_compliance+set}" = set; then :
8299 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8302 aros_enable_mmu=no
8303 aros_target_cpu="m68k"
8304 aros_object_format="m68kelf"
8305 aros_flavour="standcompat"
8306 gcc_target_cpu="m68000"
8307 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8308 aros_config_aflags="$aros_config_aflags"
8309 aros_target_strip_flags="-R.comment --strip-debug"
8310 aros_default_wbwidth=640
8311 aros_default_wbheight=256
8312 aros_default_wbdepth=2
8314 *ppc*)
8315 aros_cpu="ppc"
8316 aros_flavour="native"
8317 gcc_target_cpu="ppc"
8320 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8322 esac
8325 mingw*)
8326 aros_target_arch="mingw32"
8327 aros_shared_default="no"
8328 aros_flavour="emulation"
8329 aros_shared_cflags=""
8330 need_crosstools="yes"
8331 need_dlopen="no"
8332 rescomp="windres"
8333 case "$target_cpu" in
8334 *i?86*)
8335 aros_target_cpu="i386"
8336 aros_object_format="elf_i386"
8337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8338 aros_default_wbdepth=8
8339 gcc_target_cpu="i386"
8341 kernel_tool_prefix="i386-mingw32-"
8343 *x86_64*)
8344 aros_target_cpu="x86_64"
8345 aros_object_format="elf_x86_64"
8346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8347 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8348 aros_default_wbdepth=8
8349 kernel_tool_prefix="x86_64-w64-mingw32-"
8351 *arm*)
8352 aros_target_cpu="arm"
8353 aros_object_format="armelf_linux_eabi"
8354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8355 aros_arch_libs="-laeabi"
8356 aros_default_wbdepth=8
8357 gcc_target_cpu="arm"
8358 gcc_default_float_abi="soft"
8359 kernel_tool_prefix="arm-mingw32ce-"
8360 aros_default_wbwidth=160
8361 aros_default_wbheight=160
8364 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8366 esac
8367 if test $host_os = "cygwin"; then
8368 aros_kernel_cflags="-mno-cygwin"
8371 pp*)
8372 aros_target_arch="pp"
8373 aros_shared_default="no"
8374 case "$target_cpu" in
8375 *m68k*)
8376 aros_target_cpu="m68k"
8377 aros_object_format="m68kelf"
8378 aros_flavour="palmnative"
8379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8380 aros_default_wbwidth=160
8381 aros_default_wbheight=160
8382 aros_default_wbdepth=1
8383 aros_target_ar_flags="cru"
8384 aros_compiler_libs="-lgcc1"
8385 aros_shared_default=no
8386 aros_shared_cflags="-fpic"
8387 aros_shared_aflags=""
8388 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8389 aros_kernel_ldflags="-Wl,-rpath,./lib"
8390 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8391 aros_debug_aflags=""
8392 aros_debug_ldflags="$aros_symbols_debug"
8393 aros_mungwall_debug="0"
8394 aros_modules_debug="0"
8395 gcc_target_cpu="mc68000"
8396 ignore_undefined_symbols="-ius"
8399 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8401 esac
8404 mac*)
8405 aros_target_arch="mac"
8406 aros_shared_default="no"
8407 case "$target_cpu" in
8408 *m68k*)
8409 aros_target_cpu="m68k"
8410 aros_object_format="m68kelf"
8411 aros_flavour="mac68knative"
8412 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8413 aros_default_wbwidth=512
8414 aros_default_wbheight=384
8415 aros_default_wbdepth=8
8416 aros_target_ar_flags="cru"
8417 aros_compiler_libs="-lgcc1"
8418 aros_shared_default=no
8419 aros_shared_cflags="-fpic"
8420 aros_shared_aflags=""
8421 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8422 aros_kernel_ldflags="-Wl,-rpath,./lib"
8423 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8424 aros_debug_aflags=""
8425 aros_debug_ldflags="$aros_symbols_debug"
8426 aros_mungwall_debug="0"
8427 aros_modules_debug="0"
8428 gcc_target_cpu="mc68000"
8429 ignore_undefined_symbols="-ius"
8432 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8434 esac
8438 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8440 esac
8442 #-----------------------------------------------------------------------------
8443 crosstools_guess=yes
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8446 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8448 # Check whether --with-kernel-toolchain-prefix was given.
8449 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8450 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8454 $as_echo "$kernel_tool_prefix" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8457 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8459 # Check whether --with-elf-toolchain-prefix was given.
8460 if test "${with_elf_toolchain_prefix+set}" = set; then :
8461 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8462 crosstools_guess=no
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8466 $as_echo "$elf_tool_prefix" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8469 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8471 # Check whether --with-aros-toolchain was given.
8472 if test "${with_aros_toolchain+set}" = set; then :
8473 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8474 crosstools_guess=no
8477 if test "$aros_tool_prefix" = "yes" ; then
8478 aros_tool_prefix=$aros_target_cpu-aros-
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8481 $as_echo "$aros_tool_prefix" >&6; }
8483 #-----------------------------------------------------------------------------
8484 # Checking if we should build crosstools..
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8486 $as_echo_n "checking whether to build crosstools... " >&6; }
8487 # Check whether --enable-crosstools was given.
8488 if test "${enable_crosstools+set}" = set; then :
8489 enableval=$enable_crosstools; crosstools="$enableval"
8490 else
8491 crosstools="$crosstools_guess"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8495 $as_echo "$crosstools" >&6; }
8497 if test "${crosstools}" = "yes"; then
8498 if test "${crosstools_guess}" = "no"; then
8499 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8504 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8506 # Check whether --with-aros-toolchain-install was given.
8507 if test "${with_aros_toolchain_install+set}" = set; then :
8508 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8511 if test "x$aros_toolchain_install" = "x"; then
8512 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8513 else
8514 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8515 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8518 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8521 # Now process extra architecture-specific options.
8522 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8523 # as well as floating-point ABI.
8524 case "$aros_target_cpu" in
8525 arm)
8526 if test "$gcc_default_cpu" = ""; then
8527 gcc_default_cpu="armv6"
8529 if test "$gcc_default_fpu" = ""; then
8530 gcc_default_fpu="vfp"
8532 if test "$gcc_default_float_abi" = ""; then
8533 gcc_default_float_abi="softfp"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8537 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8539 # Check whether --with-cpu was given.
8540 if test "${with_cpu+set}" = set; then :
8541 withval=$with_cpu; aros_gcc_cpu="$withval"
8542 else
8543 aros_gcc_cpu=$gcc_default_cpu
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8547 $as_echo "$aros_gcc_cpu" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8550 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8552 # Check whether --with-fpu was given.
8553 if test "${with_fpu+set}" = set; then :
8554 withval=$with_fpu; aros_gcc_fpu="$withval"
8555 else
8556 aros_gcc_fpu=$gcc_default_fpu
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8560 $as_echo "$aros_gcc_fpu" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8563 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8565 # Check whether --with-float was given.
8566 if test "${with_float+set}" = set; then :
8567 withval=$with_float; aros_gcc_float_abi="$withval"
8568 else
8569 aros_gcc_float_abi=$gcc_default_float_abi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8573 $as_echo "$aros_gcc_float_abi" >&6; }
8575 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"
8576 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"
8578 esac
8580 # Some formats need custom ELF specs.
8581 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8582 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8583 elf_specs_in=config/${aros_object_format}-specs.in
8584 else
8585 elf_specs_in=config/elf-specs.in
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8589 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8591 # Check whether --with-aros-gcc was given.
8592 if test "${with_aros_gcc+set}" = set; then :
8593 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8594 else
8595 aros_gcc_version=""
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8599 $as_echo "$aros_gcc_version" >&6; }
8601 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8602 # Since we override specs, we may need to put these defines there
8603 if test "$gcc_target_cpu" != ""; then
8604 gcc_target_cpu="-D__${gcc_target_cpu}__"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8608 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8610 # Check whether --with-portssources was given.
8611 if test "${with_portssources+set}" = set; then :
8612 withval=$with_portssources; with_portssrcdir=$withval
8613 else
8614 with_portssrcdir="default"
8617 if test "$with_portssrcdir" = "default"; then
8618 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8619 else
8620 AROS_PORTSSRCDIR="$with_portssrcdir"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8623 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8626 $as_echo_n "checking which bootloader to use... " >&6; }
8628 # Check whether --with-bootloader was given.
8629 if test "${with_bootloader+set}" = set; then :
8630 withval=$with_bootloader; target_bootloader=$withval
8631 else
8632 target_bootloader=$target_bootloader
8635 if test "$target_bootloader" = "none"; then
8636 aros_target_bootloader=""
8637 else
8638 aros_target_bootloader="$target_bootloader"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8641 $as_echo "$target_bootloader" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8644 $as_echo_n "checking which icon-set to use... " >&6; }
8646 # Check whether --with-iconset was given.
8647 if test "${with_iconset+set}" = set; then :
8648 withval=$with_iconset; target_iconset=$withval
8649 else
8650 target_iconset="default"
8653 if test "$target_iconset" = "default"; then
8654 aros_target_iconset="Gorilla"
8655 target_iconset="default (Gorilla)"
8656 else
8657 aros_target_iconset="$target_iconset"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8660 $as_echo "$target_iconset" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8663 $as_echo_n "checking which GUI Theme to use... " >&6; }
8665 # Check whether --with-theme was given.
8666 if test "${with_theme+set}" = set; then :
8667 withval=$with_theme; target_guitheme=$withval
8668 else
8669 target_guitheme="default"
8672 if test "$target_guitheme" = "default"; then
8673 aros_target_guitheme="Ice"
8674 else
8675 aros_target_guitheme="$target_guitheme"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8678 $as_echo "$aros_target_guitheme" >&6; }
8680 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8681 # for target code)
8682 cross_compiling=no
8684 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8685 cross_compiling=yes
8688 if test "$aros_host_cpu" == "x86_64" ; then
8689 if test "$aros_target_cpu" == "i386" ; then
8690 cross_compiling=no
8694 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8695 if test "$aros_host_arch" != "$aros_target_arch" ; then
8696 cross_compiling=yes
8698 else
8699 if test "$host_cc_elf" = "no" ; then
8700 cross_compiling=yes
8704 if test "$cross_compiling" = "no" ; then
8705 kernel_tool_prefix=""
8706 if test "$host_cc_elf" = "yes" ; then
8707 elf_tool_prefix=""
8711 #######################################################################
8712 ## Compute what toolchains to use, and their paths ##
8713 #######################################################################
8715 # This takes, as input:
8716 # crosstools {yes,no}
8717 # kernel_tool_version {"",[version]}
8718 # aros_gcc_version {"",[version]}
8719 # kernel_tool_prefix {none,[some-arch-os-]}
8720 # target_tool_prefix ${aros_target_cpu}-aros-
8721 # aros_tool_prefix ${aros_target_cpu}-aros-
8723 # The output is
8724 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8725 # Where the 'kernel' binaries are located
8726 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8727 # Where the 'target' binaries are located
8728 # (not the symlink farm - that is aros_target_*!)
8730 # The rules are:
8731 # if crosstools then
8732 # if kernel_tools_prefix = "no-kernel-prefix-"
8733 # aros_kernel_* = crosstools cc paths
8734 # aros_kernel_cc = elf cc wrapper around crosstools cc
8735 # else
8736 # VALIDATE(${kernel_tools_prefix}*)
8737 # aros_kernel_* = ${kernel_tools_prefix}*
8738 # if ${kernel_tools_prefix}cc is an AROS gcc
8739 # aros_kernel_cc = ${kernel_tools_prefix}cc
8740 # else
8741 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8742 # fi
8743 # fi
8745 # orig_target_* = aros built crosstools
8746 # orig_target_cc = elf cc wrapper around crosstools cc
8747 # else
8748 # VALIDATE(${kernel_tools_prefix}*)
8750 # orig_target_* = aros_kernel_*
8751 # if aros_kernel_cc is an AROS gcc
8752 # orig_target_cc = aros_kernel_cc
8753 # else
8754 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8755 # fi
8756 # fi
8758 target_tool_prefix="${aros_target_cpu}-aros-"
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8761 $as_echo_n "checking which kernel tools... " >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8763 $as_echo "$kernel_tool_prefix" >&6; };
8765 if test "$kernel_tool_prefix" = "none" ; then
8766 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8767 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8769 else
8770 # Kernel tools required - find them
8771 # Note that 'normally', aros_kernel_* overrides will be
8772 # empty, unless specified in the per-arch sections above.
8773 if test "x$aros_kernel_cpp" = "x"; then
8774 aros_kernel_cpp=${kernel_tool_prefix}cpp
8777 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8778 if test "$cross_compiling" = "yes" ; then
8779 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8780 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 case $aros_kernel_cpp in
8787 [\\/]* | ?:[\\/]*)
8788 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8798 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8802 done
8803 done
8804 IFS=$as_save_IFS
8807 esac
8809 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8810 if test -n "$aros_kernel_cpp"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8812 $as_echo "$aros_kernel_cpp" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 else
8820 if test "$GCC" = "yes"; then
8821 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8822 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8823 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 case $aros_kernel_cpp in
8830 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in `dirname $aros_gcc_cpp`
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8845 done
8846 done
8847 IFS=$as_save_IFS
8850 esac
8852 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8853 if test -n "$aros_kernel_cpp"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8855 $as_echo "$aros_kernel_cpp" >&6; }
8856 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8863 if test "$aros_kernel_cpp" = ""; then
8864 # Extract the first word of "cpp", so it can be a program name with args.
8865 set dummy cpp; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_kernel_cpp in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8895 if test -n "$aros_kernel_cpp"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8897 $as_echo "$aros_kernel_cpp" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8906 else
8907 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8908 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $aros_kernel_cpp in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8935 esac
8937 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8938 if test -n "$aros_kernel_cpp"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8940 $as_echo "$aros_kernel_cpp" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8949 if test "$aros_kernel_cpp" = ""; then
8950 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8952 if test "x$aros_kernel_cc" = "x"; then
8953 aros_kernel_cc=${kernel_tool_prefix}gcc
8956 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
8957 if test "$cross_compiling" = "yes" ; then
8958 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8959 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 case $aros_kernel_cc in
8966 [\\/]* | ?:[\\/]*)
8967 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8981 done
8982 done
8983 IFS=$as_save_IFS
8986 esac
8988 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8989 if test -n "$aros_kernel_cc"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8991 $as_echo "$aros_kernel_cc" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8998 else
8999 if test "$GCC" = "yes"; then
9000 aros_gcc_cc=`$CC -print-prog-name=cc`
9001 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9002 set dummy `basename $aros_gcc_cc`; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 case $aros_kernel_cc in
9009 [\\/]* | ?:[\\/]*)
9010 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in `dirname $aros_gcc_cc`
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9020 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9024 done
9025 done
9026 IFS=$as_save_IFS
9029 esac
9031 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9032 if test -n "$aros_kernel_cc"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9034 $as_echo "$aros_kernel_cc" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9042 if test "$aros_kernel_cc" = ""; then
9043 # Extract the first word of "cc", so it can be a program name with args.
9044 set dummy cc; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 case $aros_kernel_cc in
9051 [\\/]* | ?:[\\/]*)
9052 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 break 2
9066 done
9067 done
9068 IFS=$as_save_IFS
9071 esac
9073 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9074 if test -n "$aros_kernel_cc"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9076 $as_echo "$aros_kernel_cc" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9085 else
9086 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9087 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 case $aros_kernel_cc in
9094 [\\/]* | ?:[\\/]*)
9095 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9105 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9109 done
9110 done
9111 IFS=$as_save_IFS
9114 esac
9116 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9117 if test -n "$aros_kernel_cc"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9119 $as_echo "$aros_kernel_cc" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9128 if test "$aros_kernel_cc" = ""; then
9129 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9131 if test "x$aros_kernel_cxx" = "x"; then
9132 aros_kernel_cxx=${kernel_tool_prefix}g++
9135 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9136 if test "$cross_compiling" = "yes" ; then
9137 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9138 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 case $aros_kernel_cxx in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9165 esac
9167 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9168 if test -n "$aros_kernel_cxx"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9170 $as_echo "$aros_kernel_cxx" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9177 else
9178 if test "$GCC" = "yes"; then
9179 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9180 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9181 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 case $aros_kernel_cxx in
9188 [\\/]* | ?:[\\/]*)
9189 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in `dirname $aros_gcc_cxx`
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9203 done
9204 done
9205 IFS=$as_save_IFS
9208 esac
9210 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9211 if test -n "$aros_kernel_cxx"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9213 $as_echo "$aros_kernel_cxx" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9221 if test "$aros_kernel_cxx" = ""; then
9222 # Extract the first word of "cxx", so it can be a program name with args.
9223 set dummy cxx; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 case $aros_kernel_cxx in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9250 esac
9252 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9253 if test -n "$aros_kernel_cxx"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9255 $as_echo "$aros_kernel_cxx" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9264 else
9265 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9266 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 case $aros_kernel_cxx in
9273 [\\/]* | ?:[\\/]*)
9274 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9293 esac
9295 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9296 if test -n "$aros_kernel_cxx"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9298 $as_echo "$aros_kernel_cxx" >&6; }
9299 else
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9307 # If it's set, make sure it's really there
9308 if test "x$aros_kernel_cxx" != "x" ; then
9309 if test "$aros_kernel_cxx" = ""; then
9310 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9314 if test "$aros_kernel_ld" = ""; then
9315 if test "$cross_compiling" = "yes" ; then
9316 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9317 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 case $aros_kernel_ld in
9324 [\\/]* | ?:[\\/]*)
9325 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9339 done
9340 done
9341 IFS=$as_save_IFS
9344 esac
9346 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9347 if test -n "$aros_kernel_ld"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9349 $as_echo "$aros_kernel_ld" >&6; }
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9356 else
9357 if test "$GCC" = "yes"; then
9358 aros_gcc_ld=`$CC -print-prog-name=ld`
9359 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9360 set dummy `basename $aros_gcc_ld`; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 case $aros_kernel_ld in
9367 [\\/]* | ?:[\\/]*)
9368 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in `dirname $aros_gcc_ld`
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9378 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9382 done
9383 done
9384 IFS=$as_save_IFS
9387 esac
9389 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9390 if test -n "$aros_kernel_ld"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9392 $as_echo "$aros_kernel_ld" >&6; }
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9400 if test "$aros_kernel_ld" = ""; then
9401 # Extract the first word of "ld", so it can be a program name with args.
9402 set dummy ld; ac_word=$2
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404 $as_echo_n "checking for $ac_word... " >&6; }
9405 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 case $aros_kernel_ld in
9409 [\\/]* | ?:[\\/]*)
9410 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9424 done
9425 done
9426 IFS=$as_save_IFS
9429 esac
9431 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9432 if test -n "$aros_kernel_ld"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9434 $as_echo "$aros_kernel_ld" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9443 else
9444 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9445 set dummy $aros_kernel_ld; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 case $aros_kernel_ld in
9452 [\\/]* | ?:[\\/]*)
9453 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9463 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9472 esac
9474 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9475 if test -n "$aros_kernel_ld"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9477 $as_echo "$aros_kernel_ld" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9486 if test "$aros_kernel_ld" = ""; then
9487 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9490 if test "$aros_kernel_as" = ""; then
9491 if test "$cross_compiling" = "yes" ; then
9492 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9493 set dummy ${kernel_tool_prefix}as; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if ${ac_cv_path_aros_kernel_as+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 case $aros_kernel_as in
9500 [\\/]* | ?:[\\/]*)
9501 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 for as_dir in $PATH
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9515 done
9516 done
9517 IFS=$as_save_IFS
9520 esac
9522 aros_kernel_as=$ac_cv_path_aros_kernel_as
9523 if test -n "$aros_kernel_as"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9525 $as_echo "$aros_kernel_as" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9532 else
9533 if test "$GCC" = "yes"; then
9534 aros_gcc_as=`$CC -print-prog-name=as`
9535 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9536 set dummy `basename $aros_gcc_as`; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if ${ac_cv_path_aros_kernel_as+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 case $aros_kernel_as in
9543 [\\/]* | ?:[\\/]*)
9544 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in `dirname $aros_gcc_as`
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9558 done
9559 done
9560 IFS=$as_save_IFS
9563 esac
9565 aros_kernel_as=$ac_cv_path_aros_kernel_as
9566 if test -n "$aros_kernel_as"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9568 $as_echo "$aros_kernel_as" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9576 if test "$aros_kernel_as" = ""; then
9577 # Extract the first word of "as", so it can be a program name with args.
9578 set dummy as; ac_word=$2
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580 $as_echo_n "checking for $ac_word... " >&6; }
9581 if ${ac_cv_path_aros_kernel_as+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 case $aros_kernel_as in
9585 [\\/]* | ?:[\\/]*)
9586 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 for as_dir in $PATH
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9596 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 break 2
9600 done
9601 done
9602 IFS=$as_save_IFS
9605 esac
9607 aros_kernel_as=$ac_cv_path_aros_kernel_as
9608 if test -n "$aros_kernel_as"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9610 $as_echo "$aros_kernel_as" >&6; }
9611 else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9619 else
9620 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9621 set dummy $aros_kernel_as; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_path_aros_kernel_as+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 case $aros_kernel_as in
9628 [\\/]* | ?:[\\/]*)
9629 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9648 esac
9650 aros_kernel_as=$ac_cv_path_aros_kernel_as
9651 if test -n "$aros_kernel_as"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9653 $as_echo "$aros_kernel_as" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9662 if test "$aros_kernel_as" = ""; then
9663 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9666 if test "$aros_kernel_ar" = ""; then
9667 if test "$cross_compiling" = "yes" ; then
9668 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9669 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 case $aros_kernel_ar in
9676 [\\/]* | ?:[\\/]*)
9677 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9691 done
9692 done
9693 IFS=$as_save_IFS
9696 esac
9698 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9699 if test -n "$aros_kernel_ar"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9701 $as_echo "$aros_kernel_ar" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9708 else
9709 if test "$GCC" = "yes"; then
9710 aros_gcc_ar=`$CC -print-prog-name=ar`
9711 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9712 set dummy `basename $aros_gcc_ar`; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 case $aros_kernel_ar in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in `dirname $aros_gcc_ar`
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9734 done
9735 done
9736 IFS=$as_save_IFS
9739 esac
9741 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9742 if test -n "$aros_kernel_ar"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9744 $as_echo "$aros_kernel_ar" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9752 if test "$aros_kernel_ar" = ""; then
9753 # Extract the first word of "ar", so it can be a program name with args.
9754 set dummy ar; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 case $aros_kernel_ar in
9761 [\\/]* | ?:[\\/]*)
9762 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9781 esac
9783 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9784 if test -n "$aros_kernel_ar"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9786 $as_echo "$aros_kernel_ar" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9795 else
9796 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9797 set dummy $aros_kernel_ar; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 case $aros_kernel_ar in
9804 [\\/]* | ?:[\\/]*)
9805 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9819 done
9820 done
9821 IFS=$as_save_IFS
9824 esac
9826 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9827 if test -n "$aros_kernel_ar"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9829 $as_echo "$aros_kernel_ar" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9838 if test "$aros_kernel_ar" = ""; then
9839 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9842 if test "$aros_kernel_ranlib" = ""; then
9843 if test "$cross_compiling" = "yes" ; then
9844 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9845 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 case $aros_kernel_ranlib in
9852 [\\/]* | ?:[\\/]*)
9853 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9859 IFS=$as_save_IFS
9860 test -z "$as_dir" && as_dir=.
9861 for ac_exec_ext in '' $ac_executable_extensions; do
9862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9865 break 2
9867 done
9868 done
9869 IFS=$as_save_IFS
9872 esac
9874 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9875 if test -n "$aros_kernel_ranlib"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9877 $as_echo "$aros_kernel_ranlib" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9884 else
9885 if test "$GCC" = "yes"; then
9886 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9887 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9888 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890 $as_echo_n "checking for $ac_word... " >&6; }
9891 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 case $aros_kernel_ranlib in
9895 [\\/]* | ?:[\\/]*)
9896 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in `dirname $aros_gcc_ranlib`
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9912 IFS=$as_save_IFS
9915 esac
9917 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9918 if test -n "$aros_kernel_ranlib"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9920 $as_echo "$aros_kernel_ranlib" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9928 if test "$aros_kernel_ranlib" = ""; then
9929 # Extract the first word of "ranlib", so it can be a program name with args.
9930 set dummy ranlib; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 case $aros_kernel_ranlib in
9937 [\\/]* | ?:[\\/]*)
9938 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9948 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 break 2
9952 done
9953 done
9954 IFS=$as_save_IFS
9957 esac
9959 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9960 if test -n "$aros_kernel_ranlib"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9962 $as_echo "$aros_kernel_ranlib" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9971 else
9972 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9973 set dummy $aros_kernel_ranlib; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 case $aros_kernel_ranlib in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10000 esac
10002 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10003 if test -n "$aros_kernel_ranlib"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10005 $as_echo "$aros_kernel_ranlib" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10014 if test "$aros_kernel_ranlib" = ""; then
10015 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10018 if test "$aros_kernel_nm" = ""; then
10019 if test "$cross_compiling" = "yes" ; then
10020 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10021 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 case $aros_kernel_nm in
10028 [\\/]* | ?:[\\/]*)
10029 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10043 done
10044 done
10045 IFS=$as_save_IFS
10048 esac
10050 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10051 if test -n "$aros_kernel_nm"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10053 $as_echo "$aros_kernel_nm" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10060 else
10061 if test "$GCC" = "yes"; then
10062 aros_gcc_nm=`$CC -print-prog-name=nm`
10063 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10064 set dummy `basename $aros_gcc_nm`; ac_word=$2
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066 $as_echo_n "checking for $ac_word... " >&6; }
10067 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 case $aros_kernel_nm in
10071 [\\/]* | ?:[\\/]*)
10072 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in `dirname $aros_gcc_nm`
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10082 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 break 2
10086 done
10087 done
10088 IFS=$as_save_IFS
10091 esac
10093 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10094 if test -n "$aros_kernel_nm"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10096 $as_echo "$aros_kernel_nm" >&6; }
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099 $as_echo "no" >&6; }
10104 if test "$aros_kernel_nm" = ""; then
10105 # Extract the first word of "nm", so it can be a program name with args.
10106 set dummy nm; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 case $aros_kernel_nm in
10113 [\\/]* | ?:[\\/]*)
10114 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10128 done
10129 done
10130 IFS=$as_save_IFS
10133 esac
10135 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10136 if test -n "$aros_kernel_nm"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10138 $as_echo "$aros_kernel_nm" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10147 else
10148 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10149 set dummy $aros_kernel_nm; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 case $aros_kernel_nm in
10156 [\\/]* | ?:[\\/]*)
10157 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10171 done
10172 done
10173 IFS=$as_save_IFS
10176 esac
10178 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10179 if test -n "$aros_kernel_nm"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10181 $as_echo "$aros_kernel_nm" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10190 if test "$aros_kernel_nm" = ""; then
10191 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10194 if test "$aros_kernel_strip" = ""; then
10195 if test "$cross_compiling" = "yes" ; then
10196 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10197 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 case $aros_kernel_strip in
10204 [\\/]* | ?:[\\/]*)
10205 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10224 esac
10226 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10227 if test -n "$aros_kernel_strip"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10229 $as_echo "$aros_kernel_strip" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10236 else
10237 if test "$GCC" = "yes"; then
10238 aros_gcc_strip=`$CC -print-prog-name=strip`
10239 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10240 set dummy `basename $aros_gcc_strip`; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 case $aros_kernel_strip in
10247 [\\/]* | ?:[\\/]*)
10248 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in `dirname $aros_gcc_strip`
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10262 done
10263 done
10264 IFS=$as_save_IFS
10267 esac
10269 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10270 if test -n "$aros_kernel_strip"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10272 $as_echo "$aros_kernel_strip" >&6; }
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10280 if test "$aros_kernel_strip" = ""; then
10281 # Extract the first word of "strip", so it can be a program name with args.
10282 set dummy strip; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 case $aros_kernel_strip in
10289 [\\/]* | ?:[\\/]*)
10290 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10304 done
10305 done
10306 IFS=$as_save_IFS
10309 esac
10311 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10312 if test -n "$aros_kernel_strip"; then
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10314 $as_echo "$aros_kernel_strip" >&6; }
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10323 else
10324 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10325 set dummy $aros_kernel_strip; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 case $aros_kernel_strip in
10332 [\\/]* | ?:[\\/]*)
10333 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10347 done
10348 done
10349 IFS=$as_save_IFS
10352 esac
10354 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10355 if test -n "$aros_kernel_strip"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10357 $as_echo "$aros_kernel_strip" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10366 if test "$aros_kernel_strip" = ""; then
10367 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10370 # Objcopy and objdump are not required for the kernel
10371 # toolchain on many architectures.
10372 # So we'll look for them, but not make them strictly required.
10374 if test "$aros_kernel_objcopy" = ""; then
10375 if test "$cross_compiling" = "yes" ; then
10376 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10377 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 case $aros_kernel_objcopy in
10384 [\\/]* | ?:[\\/]*)
10385 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10399 done
10400 done
10401 IFS=$as_save_IFS
10404 esac
10406 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10407 if test -n "$aros_kernel_objcopy"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10409 $as_echo "$aros_kernel_objcopy" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 else
10417 if test "$GCC" = "yes"; then
10418 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10419 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10420 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422 $as_echo_n "checking for $ac_word... " >&6; }
10423 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 case $aros_kernel_objcopy in
10427 [\\/]* | ?:[\\/]*)
10428 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in `dirname $aros_gcc_objcopy`
10434 IFS=$as_save_IFS
10435 test -z "$as_dir" && as_dir=.
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10438 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440 break 2
10442 done
10443 done
10444 IFS=$as_save_IFS
10447 esac
10449 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10450 if test -n "$aros_kernel_objcopy"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10452 $as_echo "$aros_kernel_objcopy" >&6; }
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10460 if test "$aros_kernel_objcopy" = ""; then
10461 # Extract the first word of "objcopy", so it can be a program name with args.
10462 set dummy objcopy; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 case $aros_kernel_objcopy in
10469 [\\/]* | ?:[\\/]*)
10470 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10489 esac
10491 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10492 if test -n "$aros_kernel_objcopy"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10494 $as_echo "$aros_kernel_objcopy" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10503 else
10504 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10505 set dummy $aros_kernel_objcopy; ac_word=$2
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10507 $as_echo_n "checking for $ac_word... " >&6; }
10508 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 case $aros_kernel_objcopy in
10512 [\\/]* | ?:[\\/]*)
10513 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 break 2
10527 done
10528 done
10529 IFS=$as_save_IFS
10532 esac
10534 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10535 if test -n "$aros_kernel_objcopy"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10537 $as_echo "$aros_kernel_objcopy" >&6; }
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10547 if test "$aros_kernel_objdump" = ""; then
10548 if test "$cross_compiling" = "yes" ; then
10549 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10550 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 case $aros_kernel_objdump in
10557 [\\/]* | ?:[\\/]*)
10558 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10568 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10572 done
10573 done
10574 IFS=$as_save_IFS
10577 esac
10579 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10580 if test -n "$aros_kernel_objdump"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10582 $as_echo "$aros_kernel_objdump" >&6; }
10583 else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10589 else
10590 if test "$GCC" = "yes"; then
10591 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10592 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10593 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 case $aros_kernel_objdump in
10600 [\\/]* | ?:[\\/]*)
10601 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in `dirname $aros_gcc_objdump`
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10615 done
10616 done
10617 IFS=$as_save_IFS
10620 esac
10622 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10623 if test -n "$aros_kernel_objdump"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10625 $as_echo "$aros_kernel_objdump" >&6; }
10626 else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10633 if test "$aros_kernel_objdump" = ""; then
10634 # Extract the first word of "objdump", so it can be a program name with args.
10635 set dummy objdump; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 case $aros_kernel_objdump in
10642 [\\/]* | ?:[\\/]*)
10643 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10657 done
10658 done
10659 IFS=$as_save_IFS
10662 esac
10664 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10665 if test -n "$aros_kernel_objdump"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10667 $as_echo "$aros_kernel_objdump" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10676 else
10677 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10678 set dummy $aros_kernel_objdump; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 case $aros_kernel_objdump in
10685 [\\/]* | ?:[\\/]*)
10686 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10696 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10700 done
10701 done
10702 IFS=$as_save_IFS
10705 esac
10707 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10708 if test -n "$aros_kernel_objdump"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10710 $as_echo "$aros_kernel_objdump" >&6; }
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10719 if test "x${crosstools}" != "xyes" ; then
10720 if test "$aros_kernel_objcopy" = ""; then
10721 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10723 if test "$aros_kernel_objdump" = ""; then
10724 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10730 $as_echo_n "checking which target tools to use... " >&6; }
10731 if test "$crosstools" = "yes"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10733 $as_echo "$target_tool_prefix" >&6; }
10734 # We are are building AROS crosstools
10735 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10736 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10737 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10738 orig_target_cpp="${tmp_tool_prefix}cpp"
10739 orig_target_ld="${tmp_tool_prefix}ld"
10740 orig_target_as="${tmp_tool_prefix}as"
10741 orig_target_ar="${tmp_tool_prefix}ar"
10742 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10743 orig_target_nm="${tmp_tool_prefix}nm"
10744 orig_target_strip="${tmp_tool_prefix}strip"
10745 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10746 orig_target_objdump="${tmp_tool_prefix}objdump"
10747 else
10748 # Determine whether AROS or ELF tools should be used
10749 if test "$aros_tool_prefix" = "none"; then
10750 aros_tool_prefix="${elf_tool_prefix}"
10751 crosstools_cxx_target=tools-crosstools
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10755 $as_echo "$aros_tool_prefix" >&6; }
10756 # We are *not* building AROS crosstools - use the AROS or ELF tools
10758 if test "${aros_tool_prefix}cpp" = ""; then
10759 if test "$cross_compiling" = "yes" ; then
10760 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10761 set dummy ${target_tool_prefix}cpp; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_path_orig_target_cpp+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 case $orig_target_cpp in
10768 [\\/]* | ?:[\\/]*)
10769 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10779 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10788 esac
10790 orig_target_cpp=$ac_cv_path_orig_target_cpp
10791 if test -n "$orig_target_cpp"; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10793 $as_echo "$orig_target_cpp" >&6; }
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10800 else
10801 if test "$GCC" = "yes"; then
10802 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10803 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10804 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_path_orig_target_cpp+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 case $orig_target_cpp in
10811 [\\/]* | ?:[\\/]*)
10812 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in `dirname $aros_gcc_cpp`
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10822 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10828 IFS=$as_save_IFS
10831 esac
10833 orig_target_cpp=$ac_cv_path_orig_target_cpp
10834 if test -n "$orig_target_cpp"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10836 $as_echo "$orig_target_cpp" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10844 if test "$orig_target_cpp" = ""; then
10845 # Extract the first word of "cpp", so it can be a program name with args.
10846 set dummy cpp; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if ${ac_cv_path_orig_target_cpp+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 case $orig_target_cpp in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10873 esac
10875 orig_target_cpp=$ac_cv_path_orig_target_cpp
10876 if test -n "$orig_target_cpp"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10878 $as_echo "$orig_target_cpp" >&6; }
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10887 else
10888 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10889 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if ${ac_cv_path_orig_target_cpp+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 case $orig_target_cpp in
10896 [\\/]* | ?:[\\/]*)
10897 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10916 esac
10918 orig_target_cpp=$ac_cv_path_orig_target_cpp
10919 if test -n "$orig_target_cpp"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10921 $as_echo "$orig_target_cpp" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10930 if test "$orig_target_cpp" = ""; then
10931 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10934 if test "${aros_tool_prefix}gcc" = ""; then
10935 if test "$cross_compiling" = "yes" ; then
10936 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10937 set dummy ${target_tool_prefix}gcc; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_path_orig_target_cc+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 case $orig_target_cc in
10944 [\\/]* | ?:[\\/]*)
10945 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10959 done
10960 done
10961 IFS=$as_save_IFS
10964 esac
10966 orig_target_cc=$ac_cv_path_orig_target_cc
10967 if test -n "$orig_target_cc"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10969 $as_echo "$orig_target_cc" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10976 else
10977 if test "$GCC" = "yes"; then
10978 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10979 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10980 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if ${ac_cv_path_orig_target_cc+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 case $orig_target_cc in
10987 [\\/]* | ?:[\\/]*)
10988 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in `dirname $aros_gcc_gcc`
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10998 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 break 2
11002 done
11003 done
11004 IFS=$as_save_IFS
11007 esac
11009 orig_target_cc=$ac_cv_path_orig_target_cc
11010 if test -n "$orig_target_cc"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11012 $as_echo "$orig_target_cc" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test "$orig_target_cc" = ""; then
11021 # Extract the first word of "gcc", so it can be a program name with args.
11022 set dummy gcc; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_path_orig_target_cc+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 case $orig_target_cc in
11029 [\\/]* | ?:[\\/]*)
11030 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11044 done
11045 done
11046 IFS=$as_save_IFS
11049 esac
11051 orig_target_cc=$ac_cv_path_orig_target_cc
11052 if test -n "$orig_target_cc"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11054 $as_echo "$orig_target_cc" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11063 else
11064 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
11065 set dummy ${aros_tool_prefix}gcc; ac_word=$2
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067 $as_echo_n "checking for $ac_word... " >&6; }
11068 if ${ac_cv_path_orig_target_cc+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 case $orig_target_cc in
11072 [\\/]* | ?:[\\/]*)
11073 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11092 esac
11094 orig_target_cc=$ac_cv_path_orig_target_cc
11095 if test -n "$orig_target_cc"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11097 $as_echo "$orig_target_cc" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11106 if test "$orig_target_cc" = ""; then
11107 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11109 if test "x${crosstools_cxx_target}" = "x" ; then
11111 if test "${aros_tool_prefix}g++" = ""; then
11112 if test "$cross_compiling" = "yes" ; then
11113 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11114 set dummy ${target_tool_prefix}g++; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_path_orig_target_cxx+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 case $orig_target_cxx in
11121 [\\/]* | ?:[\\/]*)
11122 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11136 done
11137 done
11138 IFS=$as_save_IFS
11141 esac
11143 orig_target_cxx=$ac_cv_path_orig_target_cxx
11144 if test -n "$orig_target_cxx"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11146 $as_echo "$orig_target_cxx" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11153 else
11154 if test "$GCC" = "yes"; then
11155 aros_gcc_g++=`$CC -print-prog-name=g++`
11156 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11157 set dummy `basename $aros_gcc_g++`; ac_word=$2
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 $as_echo_n "checking for $ac_word... " >&6; }
11160 if ${ac_cv_path_orig_target_cxx+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 case $orig_target_cxx in
11164 [\\/]* | ?:[\\/]*)
11165 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in `dirname $aros_gcc_g++`
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11179 done
11180 done
11181 IFS=$as_save_IFS
11184 esac
11186 orig_target_cxx=$ac_cv_path_orig_target_cxx
11187 if test -n "$orig_target_cxx"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11189 $as_echo "$orig_target_cxx" >&6; }
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11197 if test "$orig_target_cxx" = ""; then
11198 # Extract the first word of "g++", so it can be a program name with args.
11199 set dummy g++; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_path_orig_target_cxx+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 case $orig_target_cxx in
11206 [\\/]* | ?:[\\/]*)
11207 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11221 done
11222 done
11223 IFS=$as_save_IFS
11226 esac
11228 orig_target_cxx=$ac_cv_path_orig_target_cxx
11229 if test -n "$orig_target_cxx"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11231 $as_echo "$orig_target_cxx" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11240 else
11241 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11242 set dummy ${aros_tool_prefix}g++; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_path_orig_target_cxx+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 case $orig_target_cxx in
11249 [\\/]* | ?:[\\/]*)
11250 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11260 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11264 done
11265 done
11266 IFS=$as_save_IFS
11269 esac
11271 orig_target_cxx=$ac_cv_path_orig_target_cxx
11272 if test -n "$orig_target_cxx"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11274 $as_echo "$orig_target_cxx" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11283 if test "$orig_target_cxx" = ""; then
11284 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11288 if test "${aros_tool_prefix}ld" = ""; then
11289 if test "$cross_compiling" = "yes" ; then
11290 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11291 set dummy ${target_tool_prefix}gcc; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_path_orig_target_ld+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 case $orig_target_ld in
11298 [\\/]* | ?:[\\/]*)
11299 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11313 done
11314 done
11315 IFS=$as_save_IFS
11318 esac
11320 orig_target_ld=$ac_cv_path_orig_target_ld
11321 if test -n "$orig_target_ld"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11323 $as_echo "$orig_target_ld" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11330 else
11331 if test "$GCC" = "yes"; then
11332 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11333 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11334 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_path_orig_target_ld+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 case $orig_target_ld in
11341 [\\/]* | ?:[\\/]*)
11342 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in `dirname $aros_gcc_gcc`
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11361 esac
11363 orig_target_ld=$ac_cv_path_orig_target_ld
11364 if test -n "$orig_target_ld"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11366 $as_echo "$orig_target_ld" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11374 if test "$orig_target_ld" = ""; then
11375 # Extract the first word of "gcc", so it can be a program name with args.
11376 set dummy gcc; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_orig_target_ld+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $orig_target_ld in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11403 esac
11405 orig_target_ld=$ac_cv_path_orig_target_ld
11406 if test -n "$orig_target_ld"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11408 $as_echo "$orig_target_ld" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11417 else
11418 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11419 set dummy ${aros_tool_prefix}ld; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_path_orig_target_ld+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 case $orig_target_ld in
11426 [\\/]* | ?:[\\/]*)
11427 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11437 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11446 esac
11448 orig_target_ld=$ac_cv_path_orig_target_ld
11449 if test -n "$orig_target_ld"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11451 $as_echo "$orig_target_ld" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11460 if test "$orig_target_ld" = ""; then
11461 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11464 if test "${aros_tool_prefix}as" = ""; then
11465 if test "$cross_compiling" = "yes" ; then
11466 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11467 set dummy ${target_tool_prefix}as; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_path_orig_target_as+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $orig_target_as in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11489 done
11490 done
11491 IFS=$as_save_IFS
11494 esac
11496 orig_target_as=$ac_cv_path_orig_target_as
11497 if test -n "$orig_target_as"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11499 $as_echo "$orig_target_as" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11506 else
11507 if test "$GCC" = "yes"; then
11508 aros_gcc_as=`$CC -print-prog-name=as`
11509 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11510 set dummy `basename $aros_gcc_as`; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_path_orig_target_as+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 case $orig_target_as in
11517 [\\/]* | ?:[\\/]*)
11518 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in `dirname $aros_gcc_as`
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11528 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11532 done
11533 done
11534 IFS=$as_save_IFS
11537 esac
11539 orig_target_as=$ac_cv_path_orig_target_as
11540 if test -n "$orig_target_as"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11542 $as_echo "$orig_target_as" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11550 if test "$orig_target_as" = ""; then
11551 # Extract the first word of "as", so it can be a program name with args.
11552 set dummy as; ac_word=$2
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554 $as_echo_n "checking for $ac_word... " >&6; }
11555 if ${ac_cv_path_orig_target_as+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 case $orig_target_as in
11559 [\\/]* | ?:[\\/]*)
11560 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11574 done
11575 done
11576 IFS=$as_save_IFS
11579 esac
11581 orig_target_as=$ac_cv_path_orig_target_as
11582 if test -n "$orig_target_as"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11584 $as_echo "$orig_target_as" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11593 else
11594 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11595 set dummy ${aros_tool_prefix}as; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_orig_target_as+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $orig_target_as in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11622 esac
11624 orig_target_as=$ac_cv_path_orig_target_as
11625 if test -n "$orig_target_as"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11627 $as_echo "$orig_target_as" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11636 if test "$orig_target_as" = ""; then
11637 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11640 if test "${aros_tool_prefix}ar" = ""; then
11641 if test "$cross_compiling" = "yes" ; then
11642 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11643 set dummy ${target_tool_prefix}ar; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if ${ac_cv_path_orig_target_ar+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 case $orig_target_ar in
11650 [\\/]* | ?:[\\/]*)
11651 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11665 done
11666 done
11667 IFS=$as_save_IFS
11670 esac
11672 orig_target_ar=$ac_cv_path_orig_target_ar
11673 if test -n "$orig_target_ar"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11675 $as_echo "$orig_target_ar" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11682 else
11683 if test "$GCC" = "yes"; then
11684 aros_gcc_ar=`$CC -print-prog-name=ar`
11685 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11686 set dummy `basename $aros_gcc_ar`; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_ar+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_ar in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in `dirname $aros_gcc_ar`
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11713 esac
11715 orig_target_ar=$ac_cv_path_orig_target_ar
11716 if test -n "$orig_target_ar"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11718 $as_echo "$orig_target_ar" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11726 if test "$orig_target_ar" = ""; then
11727 # Extract the first word of "ar", so it can be a program name with args.
11728 set dummy ar; ac_word=$2
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730 $as_echo_n "checking for $ac_word... " >&6; }
11731 if ${ac_cv_path_orig_target_ar+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 case $orig_target_ar in
11735 [\\/]* | ?:[\\/]*)
11736 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11750 done
11751 done
11752 IFS=$as_save_IFS
11755 esac
11757 orig_target_ar=$ac_cv_path_orig_target_ar
11758 if test -n "$orig_target_ar"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11760 $as_echo "$orig_target_ar" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11769 else
11770 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11771 set dummy ${aros_tool_prefix}ar; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_ar+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_ar in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_ar=$ac_cv_path_orig_target_ar
11801 if test -n "$orig_target_ar"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11803 $as_echo "$orig_target_ar" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11812 if test "$orig_target_ar" = ""; then
11813 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11816 if test "${aros_tool_prefix}ranlib" = ""; then
11817 if test "$cross_compiling" = "yes" ; then
11818 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11819 set dummy ${target_tool_prefix}ar; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 case $orig_target_ranlib in
11826 [\\/]* | ?:[\\/]*)
11827 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11841 done
11842 done
11843 IFS=$as_save_IFS
11846 esac
11848 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11849 if test -n "$orig_target_ranlib"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11851 $as_echo "$orig_target_ranlib" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11858 else
11859 if test "$GCC" = "yes"; then
11860 aros_gcc_ar=`$CC -print-prog-name=ar`
11861 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11862 set dummy `basename $aros_gcc_ar`; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 case $orig_target_ranlib in
11869 [\\/]* | ?:[\\/]*)
11870 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in `dirname $aros_gcc_ar`
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11886 IFS=$as_save_IFS
11889 esac
11891 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11892 if test -n "$orig_target_ranlib"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11894 $as_echo "$orig_target_ranlib" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11902 if test "$orig_target_ranlib" = ""; then
11903 # Extract the first word of "ar", so it can be a program name with args.
11904 set dummy ar; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 case $orig_target_ranlib in
11911 [\\/]* | ?:[\\/]*)
11912 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11926 done
11927 done
11928 IFS=$as_save_IFS
11931 esac
11933 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11934 if test -n "$orig_target_ranlib"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11936 $as_echo "$orig_target_ranlib" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11945 else
11946 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11947 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $orig_target_ranlib in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11974 esac
11976 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11977 if test -n "$orig_target_ranlib"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11979 $as_echo "$orig_target_ranlib" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11988 if test "$orig_target_ranlib" = ""; then
11989 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11992 if test "${aros_tool_prefix}nm" = ""; then
11993 if test "$cross_compiling" = "yes" ; then
11994 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11995 set dummy ${target_tool_prefix}nm; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_orig_target_nm+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 case $orig_target_nm in
12002 [\\/]* | ?:[\\/]*)
12003 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12017 done
12018 done
12019 IFS=$as_save_IFS
12022 esac
12024 orig_target_nm=$ac_cv_path_orig_target_nm
12025 if test -n "$orig_target_nm"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12027 $as_echo "$orig_target_nm" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12034 else
12035 if test "$GCC" = "yes"; then
12036 aros_gcc_nm=`$CC -print-prog-name=nm`
12037 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12038 set dummy `basename $aros_gcc_nm`; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_path_orig_target_nm+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 case $orig_target_nm in
12045 [\\/]* | ?:[\\/]*)
12046 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in `dirname $aros_gcc_nm`
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 break 2
12060 done
12061 done
12062 IFS=$as_save_IFS
12065 esac
12067 orig_target_nm=$ac_cv_path_orig_target_nm
12068 if test -n "$orig_target_nm"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12070 $as_echo "$orig_target_nm" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12078 if test "$orig_target_nm" = ""; then
12079 # Extract the first word of "nm", so it can be a program name with args.
12080 set dummy nm; ac_word=$2
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 $as_echo_n "checking for $ac_word... " >&6; }
12083 if ${ac_cv_path_orig_target_nm+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 case $orig_target_nm in
12087 [\\/]* | ?:[\\/]*)
12088 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12102 done
12103 done
12104 IFS=$as_save_IFS
12107 esac
12109 orig_target_nm=$ac_cv_path_orig_target_nm
12110 if test -n "$orig_target_nm"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12112 $as_echo "$orig_target_nm" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12121 else
12122 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12123 set dummy ${aros_tool_prefix}nm; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_path_orig_target_nm+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $orig_target_nm in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12150 esac
12152 orig_target_nm=$ac_cv_path_orig_target_nm
12153 if test -n "$orig_target_nm"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12155 $as_echo "$orig_target_nm" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12164 if test "$orig_target_nm" = ""; then
12165 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12168 if test "${aros_tool_prefix}strip" = ""; then
12169 if test "$cross_compiling" = "yes" ; then
12170 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12171 set dummy ${target_tool_prefix}strip; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_path_orig_target_strip+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 case $orig_target_strip in
12178 [\\/]* | ?:[\\/]*)
12179 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12193 done
12194 done
12195 IFS=$as_save_IFS
12198 esac
12200 orig_target_strip=$ac_cv_path_orig_target_strip
12201 if test -n "$orig_target_strip"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12203 $as_echo "$orig_target_strip" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12210 else
12211 if test "$GCC" = "yes"; then
12212 aros_gcc_strip=`$CC -print-prog-name=strip`
12213 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12214 set dummy `basename $aros_gcc_strip`; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_path_orig_target_strip+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 case $orig_target_strip in
12221 [\\/]* | ?:[\\/]*)
12222 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in `dirname $aros_gcc_strip`
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12241 esac
12243 orig_target_strip=$ac_cv_path_orig_target_strip
12244 if test -n "$orig_target_strip"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12246 $as_echo "$orig_target_strip" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12254 if test "$orig_target_strip" = ""; then
12255 # Extract the first word of "strip", so it can be a program name with args.
12256 set dummy strip; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if ${ac_cv_path_orig_target_strip+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 case $orig_target_strip in
12263 [\\/]* | ?:[\\/]*)
12264 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 break 2
12278 done
12279 done
12280 IFS=$as_save_IFS
12283 esac
12285 orig_target_strip=$ac_cv_path_orig_target_strip
12286 if test -n "$orig_target_strip"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12288 $as_echo "$orig_target_strip" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12297 else
12298 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12299 set dummy ${aros_tool_prefix}strip; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_path_orig_target_strip+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 case $orig_target_strip in
12306 [\\/]* | ?:[\\/]*)
12307 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12321 done
12322 done
12323 IFS=$as_save_IFS
12326 esac
12328 orig_target_strip=$ac_cv_path_orig_target_strip
12329 if test -n "$orig_target_strip"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12331 $as_echo "$orig_target_strip" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12340 if test "$orig_target_strip" = ""; then
12341 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12344 if test "${aros_tool_prefix}objcopy" = ""; then
12345 if test "$cross_compiling" = "yes" ; then
12346 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12347 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 case $orig_target_objcopy in
12354 [\\/]* | ?:[\\/]*)
12355 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12365 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12374 esac
12376 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12377 if test -n "$orig_target_objcopy"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12379 $as_echo "$orig_target_objcopy" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12386 else
12387 if test "$GCC" = "yes"; then
12388 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12389 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12390 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $orig_target_objcopy in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in `dirname $aros_gcc_objcopy`
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12408 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12417 esac
12419 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12420 if test -n "$orig_target_objcopy"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12422 $as_echo "$orig_target_objcopy" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12430 if test "$orig_target_objcopy" = ""; then
12431 # Extract the first word of "objcopy", so it can be a program name with args.
12432 set dummy objcopy; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 case $orig_target_objcopy in
12439 [\\/]* | ?:[\\/]*)
12440 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12454 done
12455 done
12456 IFS=$as_save_IFS
12459 esac
12461 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12462 if test -n "$orig_target_objcopy"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12464 $as_echo "$orig_target_objcopy" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12473 else
12474 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12475 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $orig_target_objcopy in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12505 if test -n "$orig_target_objcopy"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12507 $as_echo "$orig_target_objcopy" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12516 if test "$orig_target_objcopy" = ""; then
12517 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12520 if test "${aros_tool_prefix}objdump" = ""; then
12521 if test "$cross_compiling" = "yes" ; then
12522 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12523 set dummy ${target_tool_prefix}objdump; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_path_orig_target_objdump+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 case $orig_target_objdump in
12530 [\\/]* | ?:[\\/]*)
12531 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12545 done
12546 done
12547 IFS=$as_save_IFS
12550 esac
12552 orig_target_objdump=$ac_cv_path_orig_target_objdump
12553 if test -n "$orig_target_objdump"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12555 $as_echo "$orig_target_objdump" >&6; }
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12562 else
12563 if test "$GCC" = "yes"; then
12564 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12565 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12566 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_path_orig_target_objdump+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 case $orig_target_objdump in
12573 [\\/]* | ?:[\\/]*)
12574 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in `dirname $aros_gcc_objdump`
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12588 done
12589 done
12590 IFS=$as_save_IFS
12593 esac
12595 orig_target_objdump=$ac_cv_path_orig_target_objdump
12596 if test -n "$orig_target_objdump"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12598 $as_echo "$orig_target_objdump" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12606 if test "$orig_target_objdump" = ""; then
12607 # Extract the first word of "objdump", so it can be a program name with args.
12608 set dummy objdump; ac_word=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if ${ac_cv_path_orig_target_objdump+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 case $orig_target_objdump in
12615 [\\/]* | ?:[\\/]*)
12616 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12622 IFS=$as_save_IFS
12623 test -z "$as_dir" && as_dir=.
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12626 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628 break 2
12630 done
12631 done
12632 IFS=$as_save_IFS
12635 esac
12637 orig_target_objdump=$ac_cv_path_orig_target_objdump
12638 if test -n "$orig_target_objdump"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12640 $as_echo "$orig_target_objdump" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12649 else
12650 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12651 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_orig_target_objdump+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 case $orig_target_objdump in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12678 esac
12680 orig_target_objdump=$ac_cv_path_orig_target_objdump
12681 if test -n "$orig_target_objdump"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12683 $as_echo "$orig_target_objdump" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12692 if test "$orig_target_objdump" = ""; then
12693 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12697 if test "$kernel_tool_prefix" = "none" ; then
12698 # No kernel tools specified
12699 # Assume target tools == kernel tools with ELF wrapper
12700 aros_kernel_cc=$orig_target_cc
12701 aros_kernel_cxx=$orig_target_cxx
12702 aros_kernel_cpp=$orig_target_cpp
12703 aros_kernel_ld=$orig_target_ld
12704 aros_kernel_as=$orig_target_as
12705 aros_kernel_ar=$orig_target_ar
12706 aros_kernel_ranlib=$orig_target_ranlib
12707 aros_kernel_nm=$orig_target_nm
12708 aros_kernel_strip=$orig_target_strip
12709 aros_kernel_objcopy=$orig_target_objcopy
12710 aros_kernel_objdump=$orig_target_objdump
12711 use_kernel_cc_wrapper=yes
12714 # At this point, all aros_kernel_* and aros_target_*
12715 # tools should be set up correctly
12717 CC="$aros_kernel_cc $kernel_tool_flags"
12718 CPP="$aros_kernel_cpp"
12720 #-----------------------------------------------------------------------------
12722 # Disable pointer-signedness warnings if the compiler recognises the option
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12725 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12726 save_cflags="$CFLAGS"
12727 if test "$crosstools" != "yes" ; then
12728 CFLAGS="$CFLAGS -Wno-pointer-sign"
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12733 main ()
12737 return 0;
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 use_no_sign_warning="yes"
12742 else
12743 use_no_sign_warning="no"
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 else
12747 # we do know it is supported for the smallest version of gcc we are going to build
12748 # we assume it's also supported by later versions
12749 use_no_sign_warning=yes
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12752 $as_echo "$use_no_sign_warning" >&6; }
12753 if test "x-$use_no_sign_warning" = "x-yes" ; then
12754 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12756 CFLAGS="$save_cflags"
12758 #-----------------------------------------------------------------------------
12760 # Find all the tools we need to compile. This could be cross-compiling
12761 # though! If that is the case we use the GNU form of the target and
12762 # simply add this to the front of the binary name. This is rather simple,
12763 # but it should work under most circumstances.
12765 # The default tools are to use the same as the host, but only if the
12766 # host and target CPU are the same. With GCC this is normally enough.
12769 aros_cc_pre=""
12770 aros_shared_ld="$aros_host_ld"
12772 aros_target_mkdep="$aros_host_mkdep"
12774 # The default tools executables to be linked to.
12775 if test "$rescomp" != ""; then
12776 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12777 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779 $as_echo_n "checking for $ac_word... " >&6; }
12780 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 case $aros_kernel_rescomp in
12784 [\\/]* | ?:[\\/]*)
12785 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12791 IFS=$as_save_IFS
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12795 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 break 2
12799 done
12800 done
12801 IFS=$as_save_IFS
12804 esac
12806 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12807 if test -n "$aros_kernel_rescomp"; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12809 $as_echo "$aros_kernel_rescomp" >&6; }
12810 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12816 if test "$aros_kernel_rescomp" = ""; then
12817 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12821 # Set up the sources for the symlink farm
12822 if test "$crosstools" = "yes"; then
12823 crosstools_target=tools-crosstools
12826 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12827 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12830 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12831 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12832 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12833 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12834 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12835 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12836 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12838 # aros_cc_pre is a variable that is added to the front of the compiler name
12839 # in the generated aros-gcc shell script. We need this to enable the cache
12840 # to work across cleaned builds. Also, support DISTCC using the correct
12841 # environment variable.
12844 if test "x${DISTCC}" != "x" ; then
12845 if test "x${CCACHE}" != "x" ; then
12846 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12847 else
12848 aros_cc_pre="${DISTCC} "
12850 else
12851 if test "x${CCACHE}" != "x" ; then
12852 aros_cc_pre="${CCACHE} "
12856 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12858 aros_target_nostdinc_cflags=-nostdinc
12860 aros_target_nostartup_ldflags=-nostartfiles
12862 aros_target_nix_ldflags=-nix
12864 aros_target_detach_ldflags=-detach
12866 aros_target_nostdlib_ldflags=-nostdlib
12869 # Target tools
12870 if test "$crosstools" != "yes"; then
12871 if test "$GCC" = "yes"; then
12872 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12874 else
12875 # We do not know which gcc version we are going to build and what we need to know
12876 # here is different for different versions so this will be set later during the
12877 # build of crosstools.
12878 aros_target_cc_path=@aros_target_cc_path@
12880 aros_target_cpp="${prefix}cpp"
12881 aros_target_cc="${prefix}gcc"
12882 aros_target_cxx="${prefix}g++"
12883 aros_target_as="${prefix}as"
12884 aros_target_ld="${prefix}ld"
12885 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12886 aros_target_objcopy="${prefix}objcopy"
12887 aros_target_objdump="${prefix}objdump"
12888 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12889 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12890 aros_target_strip="${prefix}strip"
12891 aros_plain_nm="${prefix}nm"
12892 aros_plain_ar="${prefix}ar"
12894 # Check whether --enable-includes was given.
12895 if test "${enable_includes+set}" = set; then :
12896 enableval=$enable_includes; aros_target_incl=$enable_includes
12897 else
12898 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12902 if test "$aros_kernel_includes" = ""; then
12903 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12904 aros_kernel_includes="-isystem $aros_target_incl"
12908 if test "$aros_kernel_includes" != "" ; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12910 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12911 if test "$aros_kernel_cc_includes" = "" ; then
12912 # Try to guess where the directory is.
12913 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12914 if test -d $aros_kernel_cc_includes; then
12915 # Check if there is also an include-fixed directory and add it
12916 # to kernel compiler's include path as it may contain some of
12917 # the headers we need.
12918 if test -d "$aros_kernel_cc_includes"-fixed; then
12919 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12921 # Check for specific includes directory. Neede for Ubuntu 11.10
12922 if test -d "/usr/include/i386-linux-gnu"; then
12923 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12925 else
12926 # The directory doesn't exist, we need to do some more work.
12927 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12929 # These are the headers we're looking for.
12930 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12931 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12932 zutil.h stdint.h"
12934 dirs=
12935 for h in $headers; do
12936 # Which other headers are needed by each of the above?
12937 deps=$(echo "#include <$h>" | \
12938 $aros_kernel_cc -E -M - 2>/dev/null | \
12939 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12941 # Copy all the needed headers to a directory beneath gendir.
12942 for d in $deps; do
12943 h=$(basename $d)
12944 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12945 sed -n "s,^.*/include\(/.*\),\1,p")
12946 ! test -d $dir && mkdir -p $dir
12947 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12948 done
12949 done
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12953 $as_echo "$aros_kernel_cc_includes" >&6; }
12954 # Adding -nostdinc to kernel includes as they are always used together.
12955 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12958 if test "$crosstools" != "yes"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12960 $as_echo_n "checking for the target compiler's include path... " >&6; }
12961 if test "$aros_target_cc_includes" = "" ; then
12962 #try to guess where the directory is
12963 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12964 if ! test -d $aros_target_cc_includes; then
12965 #the directory doesn't exist, we need to do some more work
12966 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12968 #these are the headers we're looking for
12969 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12970 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12971 zutil.h"
12973 dirs=
12974 for h in $headers; do
12975 #which other headers each of the above headers needs?
12976 deps=$(echo "#include <$h>" | \
12977 $orig_target_cc -E -M - 2>/dev/null | \
12978 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12980 #copy all the needed headers to a directory beneath gendir
12981 for d in $deps; do
12982 h=$(basename $d)
12983 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12984 sed -n "s,^.*/include\(/.*\),\1,p")
12985 ! test -d $dir && mkdir -p $dir
12986 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12987 done
12988 done
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12992 $as_echo "$aros_target_cc_includes" >&6; }
12993 else
12994 # We do not know which gcc version we are going to build and what we need to know
12995 # here is different for different versions so this will be set later during the
12996 # build of crosstools.
12997 aros_target_cc_includes=@aros_target_cc_includes@
13001 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13002 # On GCC >= 4.0 -iquote should be used
13005 save_cc="$CC"
13006 save_cflags="$CFLAGS"
13007 CFLAGS="-iquote."
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13009 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13010 if test "x-$crosstools" != "x-yes"; then
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13015 main ()
13019 return 0;
13021 _ACEOF
13022 if ac_fn_c_try_compile "$LINENO"; then :
13023 has_iquote="yes"
13024 else
13025 has_iquote="no"
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 else
13029 # we do know it is supported for the smallest version of gcc we are going to build
13030 # we assume it's also supported by later versions
13031 has_iquote=yes
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13034 $as_echo "$has_iquote" >&6; }
13035 if test "x-$has_iquote" = "x-yes" ; then
13036 host_cflags_iquote=-iquote
13037 host_cflags_iquote_end=
13038 else
13039 host_cflags_iquote=-I
13040 host_cflags_iquote_end=-I-
13042 kernel_cflags_iquote=$host_cflags_iquote
13043 kernel_cflags_iquote_end=$host_cflags_iquote_end
13044 if test "x-$cross_compiling" = "x-yes"; then
13045 CC="$aros_kernel_cc"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13047 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13048 if test "x-$crosstools" != "x-yes"; then
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13053 main ()
13057 return 0;
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"; then :
13061 use_no_stack_protector="yes"
13062 else
13063 use_no_stack_protector="no"
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 else
13067 # we do know it is supported for the smallest version of gcc we are going to build
13068 # we assume it's also supported by later versions
13069 use_no_stack_protector=yes
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13072 $as_echo "$use_no_stack_protector" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13074 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13075 if test "x-$crosstools" != "x-yes"; then
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13080 main ()
13084 return 0;
13086 _ACEOF
13087 if ac_fn_c_try_compile "$LINENO"; then :
13088 has_iquote="yes"
13089 else
13090 has_iquote="no"
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 else
13094 # we do know it is supported for the smallest version of gcc we are going to build
13095 # we assume it's also supported by later versions
13096 has_iquote=yes
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13099 $as_echo "$has_iquote" >&6; }
13100 if test "x-$has_iquote" = "x-yes" ; then
13101 kernel_cflags_iquote=-iquote
13102 kernel_cflags_iquote_end=
13103 else
13104 kernel_cflags_iquote=-I
13105 kernel_cflags_iquote_end=-I-
13108 aros_cflags_iquote=$kernel_cflags_iquote
13109 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13110 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13111 CC="$orig_target_cc"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13113 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13114 if test "x-$crosstools" != "x-yes"; then
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13119 main ()
13123 return 0;
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127 has_iquote="yes"
13128 else
13129 has_iquote="no"
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 else
13133 # we do know it is supported for the smallest version of gcc we are going to build
13134 # we assume it's also supported by later versions
13135 has_iquote=yes
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13138 $as_echo "$has_iquote" >&6; }
13139 if test "x-$has_iquote" = "x-yes" ; then
13140 aros_cflags_iquote=-iquote
13141 aros_cflags_iquote_end=
13142 else
13143 aros_cflags_iquote=-I
13144 aros_cflags_iquote_end=-I-
13147 if test "x-$use_no_stack_protector" = "x-yes" ; then
13148 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13152 #-----------------------------------------------------------------------------
13154 # Check if the target compiler supports some options used for delinting:
13155 # -Wunused-but-set-variable
13156 # -Warray-bounds
13157 # -Wenum-compare
13158 # -Wstrict-overflow
13159 # -Wformat-security
13161 if test "x-$crosstools" != "x-yes"; then
13162 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13163 CC="$orig_target_cc"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13166 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13167 CFLAGS=-Wunused-but-set-variable
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13172 main ()
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13180 aros_unused_but_set_variable="yes"
13181 else
13182 aros_unused_but_set_variable="no"
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13186 $as_echo "$aros_unused_but_set_variable" >&6; }
13187 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13188 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13192 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13193 CFLAGS=-Warray-bounds
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13198 main ()
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 aros_array_bounds="yes"
13207 else
13208 aros_array_bounds="no"
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13212 $as_echo "$aros_array_bounds" >&6; }
13213 if test "x-$aros_array_bounds" = "x-yes" ; then
13214 aros_cflags_array_bounds=-Wno-array-bounds
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13218 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13219 CFLAGS=-Wenum-compare
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13224 main ()
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232 aros_enum_compare="yes"
13233 else
13234 aros_enum_compare="no"
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13238 $as_echo "$aros_enum_compare" >&6; }
13239 if test "x-$aros_enum_compare" = "x-yes" ; then
13240 aros_cflags_enum_compare=-Wno-enum-compare
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13244 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13245 CFLAGS=-Wstrict-overflow
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13250 main ()
13254 return 0;
13256 _ACEOF
13257 if ac_fn_c_try_compile "$LINENO"; then :
13258 aros_strict_overflow="yes"
13259 else
13260 aros_strict_overflow="no"
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13264 $as_echo "$aros_strict_overflow" >&6; }
13265 if test "x-$aros_strict_overflow" = "x-yes" ; then
13266 aros_cflags_strict_overflow=-Wno-strict-overflow
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13270 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13271 CFLAGS=-Wformat-security
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13276 main ()
13280 return 0;
13282 _ACEOF
13283 if ac_fn_c_try_compile "$LINENO"; then :
13284 aros_format_security="yes"
13285 else
13286 aros_format_security="no"
13288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13290 $as_echo "$aros_format_security" >&6; }
13291 if test "x-$aros_format_security" = "x-yes" ; then
13292 aros_cflags_format_security=-Wno-format-security
13294 else
13295 # We do not know which gcc version we are going to build and what we need to know
13296 # here is different for different versions so this will be set later during the
13297 # build of crosstools.
13298 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13299 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13300 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13301 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13302 aros_cflags_format_security=@aros_cflags_format_security@
13305 #-----------------------------------------------------------------------------
13307 # Check if we can explicitly choose older version of symbol hashing
13309 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13310 CC="$aros_kernel_cc"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13312 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13317 main ()
13321 return 0;
13323 _ACEOF
13324 if ac_fn_c_try_link "$LINENO"; then :
13325 use_hash_style="yes"
13326 else
13327 use_hash_style="no"
13329 rm -f core conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13332 $as_echo "$use_hash_style" >&6; }
13333 if test "x-$use_hash_style" = "x-yes" ; then
13334 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13336 CC="$save_cc"
13337 CFLAGS="$save_cflags"
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13348 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13350 # Check whether --with-resolution was given.
13351 if test "${with_resolution+set}" = set; then :
13352 withval=$with_resolution; resolution=$withval
13353 else
13354 resolution=none
13357 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13358 if test "$resolution" = "yes" ; then
13359 resolution="none"
13361 if test "$resolution" = "no" ; then
13362 resolution="none"
13364 if test "$resolution" != "none" ; then
13365 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13366 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13367 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13370 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13371 aros_cv_default_wbwidth=$aros_default_wbwidth
13372 aros_cv_default_wbheight=$aros_default_wbheight
13373 aros_cv_default_wbdepth=$aros_default_wbdepth
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13376 $as_echo_n "checking if serial debug is enabled... " >&6; }
13378 # Check whether --with-serial-debug was given.
13379 if test "${with_serial_debug+set}" = set; then :
13380 withval=$with_serial_debug; serial_debug=$withval
13381 else
13382 serial_debug=none
13385 if test "$aros_serial_debug" = 0 ; then
13386 serial_debug_forced=""
13387 if test "$serial_debug" = "yes" ; then
13388 serial_debug="1"
13390 if test "$serial_debug" = "no" ; then
13391 serial_debug="none"
13393 else
13394 serial_debug_forced="(forced)"
13395 serial_debug=$aros_serial_debug
13397 if test "$serial_debug" != "none" ; then
13398 aros_serial_debug=$serial_debug
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13400 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13407 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13408 # Check whether --enable-palm_debug_hack was given.
13409 if test "${enable_palm_debug_hack+set}" = set; then :
13410 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13411 else
13412 palm_debug_hack="no"
13415 if test "$palm_debug_hack" = "yes" ; then
13416 aros_palm_debug_hack="1"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13419 $as_echo "$palm_debug_hack" >&6; }
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13422 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13423 # Check whether --enable-nesting_supervisor was given.
13424 if test "${enable_nesting_supervisor+set}" = set; then :
13425 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13426 else
13427 nesting_supervisor="no"
13430 if test "$nesting_supervisor" = "yes" ; then
13431 aros_nesting_supervisor="1"
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13434 $as_echo "$nesting_supervisor" >&6; }
13436 if test "$aros_enable_mmu" = "" ; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13438 $as_echo_n "checking if MMU support is enabled... " >&6; }
13439 # Check whether --enable-mmu was given.
13440 if test "${enable_mmu+set}" = set; then :
13441 enableval=$enable_mmu; aros_enable_mmu=$enableval
13442 else
13443 aros_enable_mmu="yes"
13446 if test "$aros_enable_mmu" = "" ; then
13447 aros_enable_mmu="yes"
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13450 $as_echo "$aros_enable_mmu" >&6; }
13452 if test "$aros_enable_mmu" = "no" ; then
13453 aros_enable_mmu="0"
13454 else
13455 aros_enable_mmu="1"
13459 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13461 if test "x-$need_dlopen" != "x-no" ; then
13462 save_libs="$LIBS"
13463 LIBS=""
13464 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13465 if test "x$ac_cv_func_dlopen" = xyes; then :
13466 have_dl="yes"
13467 else
13468 have_dl="no"
13471 if test "x-$have_dl" = "x-no" ; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13473 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13474 if ${ac_cv_lib_dl_dlopen+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-ldl $LIBS"
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char dlopen ();
13490 main ()
13492 return dlopen ();
13494 return 0;
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 ac_cv_lib_dl_dlopen=yes
13499 else
13500 ac_cv_lib_dl_dlopen=no
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13507 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13508 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13509 have_dl="yes"
13510 aros_host_ldflags="$aros_host_ldflags -ldl"
13511 else
13512 have_dl="no"
13516 if test "x-$have_dl" = "x-no" ; then
13517 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13519 LIBS="$save_libs"
13523 # Check whether --enable-x11_hidd was given.
13524 if test "${enable_x11_hidd+set}" = set; then :
13525 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13526 else
13527 x11_hidd="$need_x11"
13530 case "x-$x11_hidd" in
13531 x-yes|x-no|x-auto) ;;
13532 *) x11_hidd="$need_x11" ;;
13533 esac
13535 ENABLE_X11=0
13537 if test "x-$x11_hidd" != "x-no" ; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13540 $as_echo_n "checking for X... " >&6; }
13543 # Check whether --with-x was given.
13544 if test "${with_x+set}" = set; then :
13545 withval=$with_x;
13548 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13549 if test "x$with_x" = xno; then
13550 # The user explicitly disabled X.
13551 have_x=disabled
13552 else
13553 case $x_includes,$x_libraries in #(
13554 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13555 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 # One or both of the vars are not set, and there is no cached value.
13559 ac_x_includes=no ac_x_libraries=no
13560 rm -f -r conftest.dir
13561 if mkdir conftest.dir; then
13562 cd conftest.dir
13563 cat >Imakefile <<'_ACEOF'
13564 incroot:
13565 @echo incroot='${INCROOT}'
13566 usrlibdir:
13567 @echo usrlibdir='${USRLIBDIR}'
13568 libdir:
13569 @echo libdir='${LIBDIR}'
13570 _ACEOF
13571 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13572 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13573 for ac_var in incroot usrlibdir libdir; do
13574 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13575 done
13576 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13577 for ac_extension in a so sl dylib la dll; do
13578 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13579 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13580 ac_im_usrlibdir=$ac_im_libdir; break
13582 done
13583 # Screen out bogus values from the imake configuration. They are
13584 # bogus both because they are the default anyway, and because
13585 # using them would break gcc on systems where it needs fixed includes.
13586 case $ac_im_incroot in
13587 /usr/include) ac_x_includes= ;;
13588 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13589 esac
13590 case $ac_im_usrlibdir in
13591 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13592 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13593 esac
13595 cd ..
13596 rm -f -r conftest.dir
13599 # Standard set of common directories for X headers.
13600 # Check X11 before X11Rn because it is often a symlink to the current release.
13601 ac_x_header_dirs='
13602 /usr/X11/include
13603 /usr/X11R7/include
13604 /usr/X11R6/include
13605 /usr/X11R5/include
13606 /usr/X11R4/include
13608 /usr/include/X11
13609 /usr/include/X11R7
13610 /usr/include/X11R6
13611 /usr/include/X11R5
13612 /usr/include/X11R4
13614 /usr/local/X11/include
13615 /usr/local/X11R7/include
13616 /usr/local/X11R6/include
13617 /usr/local/X11R5/include
13618 /usr/local/X11R4/include
13620 /usr/local/include/X11
13621 /usr/local/include/X11R7
13622 /usr/local/include/X11R6
13623 /usr/local/include/X11R5
13624 /usr/local/include/X11R4
13626 /usr/X386/include
13627 /usr/x386/include
13628 /usr/XFree86/include/X11
13630 /usr/include
13631 /usr/local/include
13632 /usr/unsupported/include
13633 /usr/athena/include
13634 /usr/local/x11r5/include
13635 /usr/lpp/Xamples/include
13637 /usr/openwin/include
13638 /usr/openwin/share/include'
13640 if test "$ac_x_includes" = no; then
13641 # Guess where to find include files, by looking for Xlib.h.
13642 # First, try using that file with no special directory specified.
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #include <X11/Xlib.h>
13646 _ACEOF
13647 if ac_fn_c_try_cpp "$LINENO"; then :
13648 # We can compile using X headers with no special include directory.
13649 ac_x_includes=
13650 else
13651 for ac_dir in $ac_x_header_dirs; do
13652 if test -r "$ac_dir/X11/Xlib.h"; then
13653 ac_x_includes=$ac_dir
13654 break
13656 done
13658 rm -f conftest.err conftest.i conftest.$ac_ext
13659 fi # $ac_x_includes = no
13661 if test "$ac_x_libraries" = no; then
13662 # Check for the libraries.
13663 # See if we find them without any special options.
13664 # Don't add to $LIBS permanently.
13665 ac_save_LIBS=$LIBS
13666 LIBS="-lX11 $LIBS"
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <X11/Xlib.h>
13671 main ()
13673 XrmInitialize ()
13675 return 0;
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 LIBS=$ac_save_LIBS
13680 # We can link X programs with no special library path.
13681 ac_x_libraries=
13682 else
13683 LIBS=$ac_save_LIBS
13684 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13686 # Don't even attempt the hair of trying to link an X program!
13687 for ac_extension in a so sl dylib la dll; do
13688 if test -r "$ac_dir/libX11.$ac_extension"; then
13689 ac_x_libraries=$ac_dir
13690 break 2
13692 done
13693 done
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 fi # $ac_x_libraries = no
13699 case $ac_x_includes,$ac_x_libraries in #(
13700 no,* | *,no | *\'*)
13701 # Didn't find X, or a directory has "'" in its name.
13702 ac_cv_have_x="have_x=no";; #(
13704 # Record where we found X for the cache.
13705 ac_cv_have_x="have_x=yes\
13706 ac_x_includes='$ac_x_includes'\
13707 ac_x_libraries='$ac_x_libraries'"
13708 esac
13710 ;; #(
13711 *) have_x=yes;;
13712 esac
13713 eval "$ac_cv_have_x"
13714 fi # $with_x != no
13716 if test "$have_x" != yes; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13718 $as_echo "$have_x" >&6; }
13719 no_x=yes
13720 else
13721 # If each of the values was on the command line, it overrides each guess.
13722 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13723 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13724 # Update the cache value to reflect the command line values.
13725 ac_cv_have_x="have_x=yes\
13726 ac_x_includes='$x_includes'\
13727 ac_x_libraries='$x_libraries'"
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13729 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13733 x_cflags=
13734 for path in $x_libraries
13736 x_cflags="$x_cflags -L$path"
13737 done
13739 for path in $x_includes
13741 x_cflags="$x_cflags -I$path"
13742 done
13744 if test "x-$no_x" = "x-yes" ; then
13746 if test "x-$x11_hidd" != "x-auto" ; then
13747 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13750 else
13751 x11_hidd_target=kernel-x11gfx-kobj
13752 ENABLE_X11=1
13754 # Check whether --enable-x11_shm was given.
13755 if test "${enable_x11_shm+set}" = set; then :
13756 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13757 else
13758 x11_hidd_shm="auto"
13761 case "x-$x11_hidd_shm" in
13762 x-yes|x-no|x-auto) ;;
13763 *) x11_hidd_shm="auto" ;;
13764 esac
13766 have_xshm=no
13768 if test "x-$x11_hidd_shm" != "x-no" ; then
13770 for ac_header in sys/ipc.h
13771 do :
13772 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13773 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define HAVE_SYS_IPC_H 1
13776 _ACEOF
13780 done
13782 for ac_header in sys/shm.h
13783 do :
13784 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13785 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_SYS_SHM_H 1
13788 _ACEOF
13792 done
13795 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13797 save_cflags="$CFLAGS"
13798 CFLAGS="$CFLAGS $x_cflags"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13800 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13801 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lXext $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char XShmQueryExtension ();
13817 main ()
13819 return XShmQueryExtension ();
13821 return 0;
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_lib_Xext_XShmQueryExtension=yes
13826 else
13827 ac_cv_lib_Xext_XShmQueryExtension=no
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13834 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13835 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13836 have_xshm=yes
13839 CFLAGS="$save_cflags"
13843 if test "x-$have_xshm" = "x-yes" ; then
13844 DO_XSHM_SUPPORT="1"
13845 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13846 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13847 else
13848 DO_XSHM_SUPPORT="0"
13852 # Check whether --enable-x11_vidmode was given.
13853 if test "${enable_x11_vidmode+set}" = set; then :
13854 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13855 else
13856 x11_hidd_vidmode="auto"
13859 case "x-$x11_hidd_vidmode" in
13860 x-yes|x-no|x-auto) ;;
13861 *) x11_hidd_vidmode="auto" ;;
13862 esac
13864 have_vidmode=no
13866 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13868 save_cflags="$CFLAGS"
13869 CFLAGS="$CFLAGS $x_cflags"
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13871 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13872 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-lXxf86vm $LIBS"
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char XF86VidModeQueryExtension ();
13888 main ()
13890 return XF86VidModeQueryExtension ();
13892 return 0;
13894 _ACEOF
13895 if ac_fn_c_try_link "$LINENO"; then :
13896 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13897 else
13898 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13905 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13906 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13907 have_vidmode=yes
13910 CFLAGS="$save_cflags"
13913 if test "x-$have_vidmode" = "x-yes" ; then
13914 DO_VIDMODE_SUPPORT="1"
13915 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13916 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13917 else
13918 DO_VIDMODE_SUPPORT="0"
13922 aros_host_x11_includes=$x_includes
13923 aros_host_x11_libdirs=$x_libraries
13927 # Check whether --enable-sdl_hidd was given.
13928 if test "${enable_sdl_hidd+set}" = set; then :
13929 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13930 else
13931 sdl_hidd="auto"
13934 case "x-$sdl_hidd" in
13935 x-yes|x-no|x-auto) ;;
13936 *) sdl_hidd="auto" ;;
13937 esac
13939 if test "x-$sdl_hidd" != "x-no" ; then
13942 # Check whether --with-sdl-prefix was given.
13943 if test "${with_sdl_prefix+set}" = set; then :
13944 withval=$with_sdl_prefix; sdl_prefix="$withval"
13945 else
13946 sdl_prefix=""
13950 # Check whether --with-sdl-exec-prefix was given.
13951 if test "${with_sdl_exec_prefix+set}" = set; then :
13952 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13953 else
13954 sdl_exec_prefix=""
13957 # Check whether --enable-sdltest was given.
13958 if test "${enable_sdltest+set}" = set; then :
13959 enableval=$enable_sdltest;
13960 else
13961 enable_sdltest=yes
13965 if test x$sdl_exec_prefix != x ; then
13966 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13967 if test x${SDL_CONFIG+set} != xset ; then
13968 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13971 if test x$sdl_prefix != x ; then
13972 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13973 if test x${SDL_CONFIG+set} != xset ; then
13974 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13978 as_save_PATH="$PATH"
13979 if test "x$prefix" != xNONE; then
13980 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13982 # Extract the first word of "sdl-config", so it can be a program name with args.
13983 set dummy sdl-config; ac_word=$2
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985 $as_echo_n "checking for $ac_word... " >&6; }
13986 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 case $SDL_CONFIG in
13990 [\\/]* | ?:[\\/]*)
13991 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13997 IFS=$as_save_IFS
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14001 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 break 2
14005 done
14006 done
14007 IFS=$as_save_IFS
14009 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14011 esac
14013 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14014 if test -n "$SDL_CONFIG"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14016 $as_echo "$SDL_CONFIG" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14023 PATH="$as_save_PATH"
14024 min_sdl_version=1.2.10
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14026 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14027 no_sdl=""
14028 if test "$SDL_CONFIG" = "no" ; then
14029 no_sdl=yes
14030 else
14031 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14032 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14034 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14036 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14038 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14040 if test "x$enable_sdltest" = "xyes" ; then
14041 ac_save_CFLAGS="$CFLAGS"
14042 ac_save_CXXFLAGS="$CXXFLAGS"
14043 ac_save_LIBS="$LIBS"
14044 CFLAGS="$CFLAGS $SDL_CFLAGS"
14045 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14046 LIBS="$LIBS $SDL_LIBS"
14047 rm -f conf.sdltest
14048 if test "$cross_compiling" = yes; then :
14049 echo $ac_n "cross compiling; assumed OK... $ac_c"
14050 else
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14054 #include <stdio.h>
14055 #include <stdlib.h>
14056 #include <string.h>
14057 #include "SDL.h"
14059 char*
14060 my_strdup (char *str)
14062 char *new_str;
14064 if (str)
14066 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14067 strcpy (new_str, str);
14069 else
14070 new_str = NULL;
14072 return new_str;
14075 int main (int argc, char *argv[])
14077 int major, minor, micro;
14078 char *tmp_version;
14080 /* This hangs on some systems (?)
14081 system ("touch conf.sdltest");
14083 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14085 /* HP/UX 9 (%@#!) writes to sscanf strings */
14086 tmp_version = my_strdup("$min_sdl_version");
14087 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14088 printf("%s, bad version string\n", "$min_sdl_version");
14089 exit(1);
14092 if (($sdl_major_version > major) ||
14093 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14094 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14096 return 0;
14098 else
14100 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14101 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14102 printf("*** best to upgrade to the required version.\n");
14103 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14104 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14105 printf("*** config.cache before re-running configure\n");
14106 return 1;
14111 _ACEOF
14112 if ac_fn_c_try_run "$LINENO"; then :
14114 else
14115 no_sdl=yes
14117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14118 conftest.$ac_objext conftest.beam conftest.$ac_ext
14121 CFLAGS="$ac_save_CFLAGS"
14122 CXXFLAGS="$ac_save_CXXFLAGS"
14123 LIBS="$ac_save_LIBS"
14126 if test "x$no_sdl" = x ; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14128 $as_echo "yes" >&6; }
14129 have_sdl="yes"
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 if test "$SDL_CONFIG" = "no" ; then
14134 echo "*** The sdl-config script installed by SDL could not be found"
14135 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14136 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14137 echo "*** full path to sdl-config."
14138 else
14139 if test -f conf.sdltest ; then
14141 else
14142 echo "*** Could not run SDL test program, checking why..."
14143 CFLAGS="$CFLAGS $SDL_CFLAGS"
14144 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14145 LIBS="$LIBS $SDL_LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 #include <stdio.h>
14150 #include "SDL.h"
14152 int main(int argc, char *argv[])
14153 { return 0; }
14154 #undef main
14155 #define main K_and_R_C_main
14158 main ()
14160 return 0;
14162 return 0;
14164 _ACEOF
14165 if ac_fn_c_try_link "$LINENO"; then :
14166 echo "*** The test program compiled, but did not run. This usually means"
14167 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14168 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14169 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14170 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14171 echo "*** is required on your system"
14172 echo "***"
14173 echo "*** If you have an old version installed, it is best to remove it, although"
14174 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14175 else
14176 echo "*** The test program failed to compile or link. See the file config.log for the"
14177 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14178 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14179 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14181 rm -f core conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14183 CFLAGS="$ac_save_CFLAGS"
14184 CXXFLAGS="$ac_save_CXXFLAGS"
14185 LIBS="$ac_save_LIBS"
14188 SDL_CFLAGS=""
14189 SDL_LIBS=""
14190 have_sdl="no"
14194 rm -f conf.sdltest
14197 if test "x-$have_sdl" != "x-yes" ; then
14199 if test "x-$sdl_hidd" != "x-auto" ; then
14200 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14203 else
14204 sdl_hidd_target=kernel-hidd-sdl
14205 aros_host_sdl_cflags=SDL_CFLAGS
14206 aros_host_sdl_libs=SDL_LIBS
14210 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14211 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14216 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14217 oss_library_target=workbench-libs-oss-unix
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14223 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14224 # Check whether --enable-dbus was given.
14225 if test "${enable_dbus+set}" = set; then :
14226 enableval=$enable_dbus; dbus="yes"
14227 else
14228 dbus="no"
14231 if test "$dbus" = "yes" ; then
14232 ENABLE_DBUS=1
14233 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14234 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14235 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14236 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14237 else
14238 ENABLE_DBUS=0
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14241 $as_echo "$dbus" >&6; }
14243 if test "$use_kernel_cc_wrapper" = "yes" ; then
14244 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14247 if test "${crosstools}" != "yes" ; then
14248 aros_target_toolchain=no
14249 else
14250 aros_target_toolchain=yes
14254 # Generic
14266 # Compatability with other Amiga-like operation systems
14269 # Host related
14297 # Target Related
14361 # Delinting target compiler flags
14368 # Graphics Related
14385 # Native version related
14388 # Palm native version related
14391 # Unix/Hosted version related
14394 # MMU related
14397 # Apple iOS related
14402 # ARM default GCC target related
14408 # Android related
14412 # DBUS related
14419 #X11 related
14422 # Debug related
14428 # Collect-aros stuff: "-ius" to ignore undefined symbols
14431 # C compiler related
14434 case "$aros_flavour" in
14435 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14436 aros_flavour="emulation" ;;
14437 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14438 aros_flavour="emulation" ;;
14439 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14440 aros_flavour="standalone";;
14441 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14442 aros_flavour="standalone";;
14443 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14444 aros_flavour="native" ;;
14445 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14446 aros_flavour="native" ;;
14447 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14448 aros_flavour="linklib" ;;
14449 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14450 aros_flavour="palmnative" ;;
14451 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14452 aros_flavour="mac68knative" ;;
14453 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14454 aros_flavour="ppcnative" ;;
14455 esac
14457 if test ! -d ${aros_inc_dir} ; then
14458 ${MKDIR} ${aros_inc_dir}
14460 if test ! -d ${aros_geninc_dir} ; then
14461 ${MKDIR} ${aros_geninc_dir}
14463 if test ! -d ${aros_hostcfg_dir} ; then
14464 ${MKDIR} ${aros_hostcfg_dir}
14466 if test ! -d ${aros_targetcfg_dir} ; then
14467 ${MKDIR} ${aros_targetcfg_dir}
14469 if test ! -d ${aros_tools_dir} ; then
14470 ${MKDIR} ${aros_tools_dir}
14472 if test ! -d ${aros_scripts_dir} ; then
14473 ${MKDIR} ${aros_scripts_dir}
14476 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14479 ac_config_commands="$ac_config_commands compiler_executable"
14481 ac_config_commands="$ac_config_commands genmf_executable"
14484 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"
14487 cat >confcache <<\_ACEOF
14488 # This file is a shell script that caches the results of configure
14489 # tests run on this system so they can be shared between configure
14490 # scripts and configure runs, see configure's option --config-cache.
14491 # It is not useful on other systems. If it contains results you don't
14492 # want to keep, you may remove or edit it.
14494 # config.status only pays attention to the cache file if you give it
14495 # the --recheck option to rerun configure.
14497 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14498 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14499 # following values.
14501 _ACEOF
14503 # The following way of writing the cache mishandles newlines in values,
14504 # but we know of no workaround that is simple, portable, and efficient.
14505 # So, we kill variables containing newlines.
14506 # Ultrix sh set writes to stderr and can't be redirected directly,
14507 # and sets the high bit in the cache file unless we assign to the vars.
14509 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14510 eval ac_val=\$$ac_var
14511 case $ac_val in #(
14512 *${as_nl}*)
14513 case $ac_var in #(
14514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14516 esac
14517 case $ac_var in #(
14518 _ | IFS | as_nl) ;; #(
14519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14520 *) { eval $ac_var=; unset $ac_var;} ;;
14521 esac ;;
14522 esac
14523 done
14525 (set) 2>&1 |
14526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14527 *${as_nl}ac_space=\ *)
14528 # `set' does not quote correctly, so add quotes: double-quote
14529 # substitution turns \\\\ into \\, and sed turns \\ into \.
14530 sed -n \
14531 "s/'/'\\\\''/g;
14532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14533 ;; #(
14535 # `set' quotes correctly as required by POSIX, so do not add quotes.
14536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14538 esac |
14539 sort
14541 sed '
14542 /^ac_cv_env_/b end
14543 t clear
14544 :clear
14545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14546 t end
14547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14548 :end' >>confcache
14549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14550 if test -w "$cache_file"; then
14551 if test "x$cache_file" != "x/dev/null"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14553 $as_echo "$as_me: updating cache $cache_file" >&6;}
14554 if test ! -f "$cache_file" || test -h "$cache_file"; then
14555 cat confcache >"$cache_file"
14556 else
14557 case $cache_file in #(
14558 */* | ?:*)
14559 mv -f confcache "$cache_file"$$ &&
14560 mv -f "$cache_file"$$ "$cache_file" ;; #(
14562 mv -f confcache "$cache_file" ;;
14563 esac
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14571 rm -f confcache
14573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14574 # Let make expand exec_prefix.
14575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14577 DEFS=-DHAVE_CONFIG_H
14579 ac_libobjs=
14580 ac_ltlibobjs=
14582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14583 # 1. Remove the extension, and $U if already installed.
14584 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14585 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14586 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14587 # will be set to the directory where LIBOBJS objects are built.
14588 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14589 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14590 done
14591 LIBOBJS=$ac_libobjs
14593 LTLIBOBJS=$ac_ltlibobjs
14597 : "${CONFIG_STATUS=./config.status}"
14598 ac_write_fail=0
14599 ac_clean_files_save=$ac_clean_files
14600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14603 as_write_fail=0
14604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14605 #! $SHELL
14606 # Generated by $as_me.
14607 # Run this file to recreate the current configuration.
14608 # Compiler output produced by configure, useful for debugging
14609 # configure, is in config.log if it exists.
14611 debug=false
14612 ac_cs_recheck=false
14613 ac_cs_silent=false
14615 SHELL=\${CONFIG_SHELL-$SHELL}
14616 export SHELL
14617 _ASEOF
14618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14619 ## -------------------- ##
14620 ## M4sh Initialization. ##
14621 ## -------------------- ##
14623 # Be more Bourne compatible
14624 DUALCASE=1; export DUALCASE # for MKS sh
14625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14626 emulate sh
14627 NULLCMD=:
14628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14629 # is contrary to our usage. Disable this feature.
14630 alias -g '${1+"$@"}'='"$@"'
14631 setopt NO_GLOB_SUBST
14632 else
14633 case `(set -o) 2>/dev/null` in #(
14634 *posix*) :
14635 set -o posix ;; #(
14636 *) :
14638 esac
14642 as_nl='
14644 export as_nl
14645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14649 # Prefer a ksh shell builtin over an external printf program on Solaris,
14650 # but without wasting forks for bash or zsh.
14651 if test -z "$BASH_VERSION$ZSH_VERSION" \
14652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14653 as_echo='print -r --'
14654 as_echo_n='print -rn --'
14655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14656 as_echo='printf %s\n'
14657 as_echo_n='printf %s'
14658 else
14659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14661 as_echo_n='/usr/ucb/echo -n'
14662 else
14663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14664 as_echo_n_body='eval
14665 arg=$1;
14666 case $arg in #(
14667 *"$as_nl"*)
14668 expr "X$arg" : "X\\(.*\\)$as_nl";
14669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14670 esac;
14671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14673 export as_echo_n_body
14674 as_echo_n='sh -c $as_echo_n_body as_echo'
14676 export as_echo_body
14677 as_echo='sh -c $as_echo_body as_echo'
14680 # The user is always right.
14681 if test "${PATH_SEPARATOR+set}" != set; then
14682 PATH_SEPARATOR=:
14683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14685 PATH_SEPARATOR=';'
14690 # IFS
14691 # We need space, tab and new line, in precisely that order. Quoting is
14692 # there to prevent editors from complaining about space-tab.
14693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14694 # splitting by setting IFS to empty value.)
14695 IFS=" "" $as_nl"
14697 # Find who we are. Look in the path if we contain no directory separator.
14698 as_myself=
14699 case $0 in #((
14700 *[\\/]* ) as_myself=$0 ;;
14701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14702 for as_dir in $PATH
14704 IFS=$as_save_IFS
14705 test -z "$as_dir" && as_dir=.
14706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14707 done
14708 IFS=$as_save_IFS
14711 esac
14712 # We did not find ourselves, most probably we were run as `sh COMMAND'
14713 # in which case we are not to be found in the path.
14714 if test "x$as_myself" = x; then
14715 as_myself=$0
14717 if test ! -f "$as_myself"; then
14718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14719 exit 1
14722 # Unset variables that we do not need and which cause bugs (e.g. in
14723 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14724 # suppresses any "Segmentation fault" message there. '((' could
14725 # trigger a bug in pdksh 5.2.14.
14726 for as_var in BASH_ENV ENV MAIL MAILPATH
14727 do eval test x\${$as_var+set} = xset \
14728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14729 done
14730 PS1='$ '
14731 PS2='> '
14732 PS4='+ '
14734 # NLS nuisances.
14735 LC_ALL=C
14736 export LC_ALL
14737 LANGUAGE=C
14738 export LANGUAGE
14740 # CDPATH.
14741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14744 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14745 # ----------------------------------------
14746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14748 # script with STATUS, using 1 if that was 0.
14749 as_fn_error ()
14751 as_status=$1; test $as_status -eq 0 && as_status=1
14752 if test "$4"; then
14753 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14756 $as_echo "$as_me: error: $2" >&2
14757 as_fn_exit $as_status
14758 } # as_fn_error
14761 # as_fn_set_status STATUS
14762 # -----------------------
14763 # Set $? to STATUS, without forking.
14764 as_fn_set_status ()
14766 return $1
14767 } # as_fn_set_status
14769 # as_fn_exit STATUS
14770 # -----------------
14771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14772 as_fn_exit ()
14774 set +e
14775 as_fn_set_status $1
14776 exit $1
14777 } # as_fn_exit
14779 # as_fn_unset VAR
14780 # ---------------
14781 # Portably unset VAR.
14782 as_fn_unset ()
14784 { eval $1=; unset $1;}
14786 as_unset=as_fn_unset
14787 # as_fn_append VAR VALUE
14788 # ----------------------
14789 # Append the text in VALUE to the end of the definition contained in VAR. Take
14790 # advantage of any shell optimizations that allow amortized linear growth over
14791 # repeated appends, instead of the typical quadratic growth present in naive
14792 # implementations.
14793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14794 eval 'as_fn_append ()
14796 eval $1+=\$2
14798 else
14799 as_fn_append ()
14801 eval $1=\$$1\$2
14803 fi # as_fn_append
14805 # as_fn_arith ARG...
14806 # ------------------
14807 # Perform arithmetic evaluation on the ARGs, and store the result in the
14808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14809 # must be portable across $(()) and expr.
14810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14811 eval 'as_fn_arith ()
14813 as_val=$(( $* ))
14815 else
14816 as_fn_arith ()
14818 as_val=`expr "$@" || test $? -eq 1`
14820 fi # as_fn_arith
14823 if expr a : '\(a\)' >/dev/null 2>&1 &&
14824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14825 as_expr=expr
14826 else
14827 as_expr=false
14830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14831 as_basename=basename
14832 else
14833 as_basename=false
14836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14837 as_dirname=dirname
14838 else
14839 as_dirname=false
14842 as_me=`$as_basename -- "$0" ||
14843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14844 X"$0" : 'X\(//\)$' \| \
14845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14846 $as_echo X/"$0" |
14847 sed '/^.*\/\([^/][^/]*\)\/*$/{
14848 s//\1/
14851 /^X\/\(\/\/\)$/{
14852 s//\1/
14855 /^X\/\(\/\).*/{
14856 s//\1/
14859 s/.*/./; q'`
14861 # Avoid depending upon Character Ranges.
14862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14865 as_cr_digits='0123456789'
14866 as_cr_alnum=$as_cr_Letters$as_cr_digits
14868 ECHO_C= ECHO_N= ECHO_T=
14869 case `echo -n x` in #(((((
14870 -n*)
14871 case `echo 'xy\c'` in
14872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14873 xy) ECHO_C='\c';;
14874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14875 ECHO_T=' ';;
14876 esac;;
14878 ECHO_N='-n';;
14879 esac
14881 rm -f conf$$ conf$$.exe conf$$.file
14882 if test -d conf$$.dir; then
14883 rm -f conf$$.dir/conf$$.file
14884 else
14885 rm -f conf$$.dir
14886 mkdir conf$$.dir 2>/dev/null
14888 if (echo >conf$$.file) 2>/dev/null; then
14889 if ln -s conf$$.file conf$$ 2>/dev/null; then
14890 as_ln_s='ln -s'
14891 # ... but there are two gotchas:
14892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14894 # In both cases, we have to default to `cp -pR'.
14895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14896 as_ln_s='cp -pR'
14897 elif ln conf$$.file conf$$ 2>/dev/null; then
14898 as_ln_s=ln
14899 else
14900 as_ln_s='cp -pR'
14902 else
14903 as_ln_s='cp -pR'
14905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14906 rmdir conf$$.dir 2>/dev/null
14909 # as_fn_mkdir_p
14910 # -------------
14911 # Create "$as_dir" as a directory, including parents if necessary.
14912 as_fn_mkdir_p ()
14915 case $as_dir in #(
14916 -*) as_dir=./$as_dir;;
14917 esac
14918 test -d "$as_dir" || eval $as_mkdir_p || {
14919 as_dirs=
14920 while :; do
14921 case $as_dir in #(
14922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14923 *) as_qdir=$as_dir;;
14924 esac
14925 as_dirs="'$as_qdir' $as_dirs"
14926 as_dir=`$as_dirname -- "$as_dir" ||
14927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14928 X"$as_dir" : 'X\(//\)[^/]' \| \
14929 X"$as_dir" : 'X\(//\)$' \| \
14930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14931 $as_echo X"$as_dir" |
14932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14933 s//\1/
14936 /^X\(\/\/\)[^/].*/{
14937 s//\1/
14940 /^X\(\/\/\)$/{
14941 s//\1/
14944 /^X\(\/\).*/{
14945 s//\1/
14948 s/.*/./; q'`
14949 test -d "$as_dir" && break
14950 done
14951 test -z "$as_dirs" || eval "mkdir $as_dirs"
14952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14955 } # as_fn_mkdir_p
14956 if mkdir -p . 2>/dev/null; then
14957 as_mkdir_p='mkdir -p "$as_dir"'
14958 else
14959 test -d ./-p && rmdir ./-p
14960 as_mkdir_p=false
14964 # as_fn_executable_p FILE
14965 # -----------------------
14966 # Test if FILE is an executable regular file.
14967 as_fn_executable_p ()
14969 test -f "$1" && test -x "$1"
14970 } # as_fn_executable_p
14971 as_test_x='test -x'
14972 as_executable_p=as_fn_executable_p
14974 # Sed expression to map a string onto a valid CPP name.
14975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14977 # Sed expression to map a string onto a valid variable name.
14978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14981 exec 6>&1
14982 ## ----------------------------------- ##
14983 ## Main body of $CONFIG_STATUS script. ##
14984 ## ----------------------------------- ##
14985 _ASEOF
14986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 # Save the log message, to keep $0 and so on meaningful, and to
14990 # report actual input values of CONFIG_FILES etc. instead of their
14991 # values after options handling.
14992 ac_log="
14993 This file was extended by $as_me, which was
14994 generated by GNU Autoconf 2.69. Invocation command line was
14996 CONFIG_FILES = $CONFIG_FILES
14997 CONFIG_HEADERS = $CONFIG_HEADERS
14998 CONFIG_LINKS = $CONFIG_LINKS
14999 CONFIG_COMMANDS = $CONFIG_COMMANDS
15000 $ $0 $@
15002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15005 _ACEOF
15007 case $ac_config_files in *"
15008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15009 esac
15011 case $ac_config_headers in *"
15012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15013 esac
15016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017 # Files that config.status was made for.
15018 config_files="$ac_config_files"
15019 config_headers="$ac_config_headers"
15020 config_commands="$ac_config_commands"
15022 _ACEOF
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025 ac_cs_usage="\
15026 \`$as_me' instantiates files and other configuration actions
15027 from templates according to the current configuration. Unless the files
15028 and actions are specified as TAGs, all are instantiated by default.
15030 Usage: $0 [OPTION]... [TAG]...
15032 -h, --help print this help, then exit
15033 -V, --version print version number and configuration settings, then exit
15034 --config print configuration, then exit
15035 -q, --quiet, --silent
15036 do not print progress messages
15037 -d, --debug don't remove temporary files
15038 --recheck update $as_me by reconfiguring in the same conditions
15039 --file=FILE[:TEMPLATE]
15040 instantiate the configuration file FILE
15041 --header=FILE[:TEMPLATE]
15042 instantiate the configuration header FILE
15044 Configuration files:
15045 $config_files
15047 Configuration headers:
15048 $config_headers
15050 Configuration commands:
15051 $config_commands
15053 Report bugs to the package provider."
15055 _ACEOF
15056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15058 ac_cs_version="\\
15059 config.status
15060 configured by $0, generated by GNU Autoconf 2.69,
15061 with options \\"\$ac_cs_config\\"
15063 Copyright (C) 2012 Free Software Foundation, Inc.
15064 This config.status script is free software; the Free Software Foundation
15065 gives unlimited permission to copy, distribute and modify it."
15067 ac_pwd='$ac_pwd'
15068 srcdir='$srcdir'
15069 test -n "\$AWK" || AWK=awk
15070 _ACEOF
15072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 # The default lists apply if the user does not specify any file.
15074 ac_need_defaults=:
15075 while test $# != 0
15077 case $1 in
15078 --*=?*)
15079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15081 ac_shift=:
15083 --*=)
15084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15085 ac_optarg=
15086 ac_shift=:
15089 ac_option=$1
15090 ac_optarg=$2
15091 ac_shift=shift
15093 esac
15095 case $ac_option in
15096 # Handling of the options.
15097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15098 ac_cs_recheck=: ;;
15099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15100 $as_echo "$ac_cs_version"; exit ;;
15101 --config | --confi | --conf | --con | --co | --c )
15102 $as_echo "$ac_cs_config"; exit ;;
15103 --debug | --debu | --deb | --de | --d | -d )
15104 debug=: ;;
15105 --file | --fil | --fi | --f )
15106 $ac_shift
15107 case $ac_optarg in
15108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15109 '') as_fn_error $? "missing file argument" ;;
15110 esac
15111 as_fn_append CONFIG_FILES " '$ac_optarg'"
15112 ac_need_defaults=false;;
15113 --header | --heade | --head | --hea )
15114 $ac_shift
15115 case $ac_optarg in
15116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15117 esac
15118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15119 ac_need_defaults=false;;
15120 --he | --h)
15121 # Conflict between --help and --header
15122 as_fn_error $? "ambiguous option: \`$1'
15123 Try \`$0 --help' for more information.";;
15124 --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15128 ac_cs_silent=: ;;
15130 # This is an error.
15131 -*) as_fn_error $? "unrecognized option: \`$1'
15132 Try \`$0 --help' for more information." ;;
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
15137 esac
15138 shift
15139 done
15141 ac_configure_extra_args=
15143 if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
15159 _ACEOF
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 exec 5>>config.log
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15166 _ASBOX
15167 $as_echo "$ac_log"
15168 } >&5
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15173 # INIT-COMMANDS
15176 aros_host_exe_suffix=${aros_host_exe_suffix}
15177 aros_tools_dir=${aros_tools_dir}
15178 aros_target_cpu=${aros_target_cpu}
15179 aros_target_arch=${aros_target_arch}
15180 aros_target_suffix=${aros_target_suffix}
15181 orig_target_nm=${orig_target_nm}
15182 orig_target_as=${orig_target_as}
15183 orig_target_ar=${orig_target_ar}
15184 orig_target_ranlib=${orig_target_ranlib}
15185 orig_target_objdump=${orig_target_objdump}
15186 orig_target_objcopy=${orig_target_objcopy}
15187 orig_target_strip=${orig_target_strip}
15188 aros_kernel_ld=${aros_kernel_ld}
15191 aros_tools_dir=${aros_tools_dir}
15194 _ACEOF
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 # Handling of arguments.
15199 for ac_config_target in $ac_config_targets
15201 case $ac_config_target in
15202 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15203 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15204 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15206 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15207 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15208 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15209 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15210 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15211 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15212 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15213 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15214 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15215 "${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" ;;
15216 "${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" ;;
15217 "${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" ;;
15218 "${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" ;;
15219 "${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" ;;
15220 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15221 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15222 "${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" ;;
15224 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15225 esac
15226 done
15229 # If the user did not use the arguments to specify the items to instantiate,
15230 # then the envvar interface is used. Set only those that are not.
15231 # We use the long form for the default assignment because of an extremely
15232 # bizarre bug on SunOS 4.1.3.
15233 if $ac_need_defaults; then
15234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15239 # Have a temporary directory for convenience. Make it in the build tree
15240 # simply because there is no reason against having it here, and in addition,
15241 # creating and moving files from /tmp can sometimes cause problems.
15242 # Hook for its removal unless debugging.
15243 # Note that there is a small window in which the directory will not be cleaned:
15244 # after its creation but before its name has been assigned to `$tmp'.
15245 $debug ||
15247 tmp= ac_tmp=
15248 trap 'exit_status=$?
15249 : "${ac_tmp:=$tmp}"
15250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15252 trap 'as_fn_exit 1' 1 2 13 15
15254 # Create a (secure) tmp directory for tmp files.
15257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15258 test -d "$tmp"
15259 } ||
15261 tmp=./conf$$-$RANDOM
15262 (umask 077 && mkdir "$tmp")
15263 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15264 ac_tmp=$tmp
15266 # Set up the scripts for CONFIG_FILES section.
15267 # No need to generate them if there are no CONFIG_FILES.
15268 # This happens for instance with `./config.status config.h'.
15269 if test -n "$CONFIG_FILES"; then
15272 ac_cr=`echo X | tr X '\015'`
15273 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15274 # But we know of no other shell where ac_cr would be empty at this
15275 # point, so we can use a bashism as a fallback.
15276 if test "x$ac_cr" = x; then
15277 eval ac_cr=\$\'\\r\'
15279 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15280 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15281 ac_cs_awk_cr='\\r'
15282 else
15283 ac_cs_awk_cr=$ac_cr
15286 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15287 _ACEOF
15291 echo "cat >conf$$subs.awk <<_ACEOF" &&
15292 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15293 echo "_ACEOF"
15294 } >conf$$subs.sh ||
15295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15296 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15297 ac_delim='%!_!# '
15298 for ac_last_try in false false false false false :; do
15299 . ./conf$$subs.sh ||
15300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15302 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15303 if test $ac_delim_n = $ac_delim_num; then
15304 break
15305 elif $ac_last_try; then
15306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15307 else
15308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15310 done
15311 rm -f conf$$subs.sh
15313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15314 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15315 _ACEOF
15316 sed -n '
15318 s/^/S["/; s/!.*/"]=/
15321 s/^[^!]*!//
15322 :repl
15323 t repl
15324 s/'"$ac_delim"'$//
15325 t delim
15328 s/\(.\{148\}\)..*/\1/
15329 t more1
15330 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15333 b repl
15334 :more1
15335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15338 s/.\{148\}//
15339 t nl
15340 :delim
15342 s/\(.\{148\}\)..*/\1/
15343 t more2
15344 s/["\\]/\\&/g; s/^/"/; s/$/"/
15347 :more2
15348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15351 s/.\{148\}//
15352 t delim
15353 ' <conf$$subs.awk | sed '
15354 /^[^""]/{
15356 s/\n//
15358 ' >>$CONFIG_STATUS || ac_write_fail=1
15359 rm -f conf$$subs.awk
15360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15361 _ACAWK
15362 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15363 for (key in S) S_is_set[key] = 1
15364 FS = "\a"
15368 line = $ 0
15369 nfields = split(line, field, "@")
15370 substed = 0
15371 len = length(field[1])
15372 for (i = 2; i < nfields; i++) {
15373 key = field[i]
15374 keylen = length(key)
15375 if (S_is_set[key]) {
15376 value = S[key]
15377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15378 len += length(value) + length(field[++i])
15379 substed = 1
15380 } else
15381 len += 1 + keylen
15384 print line
15387 _ACAWK
15388 _ACEOF
15389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15390 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15391 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15392 else
15394 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15395 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15396 _ACEOF
15398 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15399 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15400 # trailing colons and then remove the whole line if VPATH becomes empty
15401 # (actually we leave an empty line to preserve line numbers).
15402 if test "x$srcdir" = x.; then
15403 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15405 s///
15406 s/^/:/
15407 s/[ ]*$/:/
15408 s/:\$(srcdir):/:/g
15409 s/:\${srcdir}:/:/g
15410 s/:@srcdir@:/:/g
15411 s/^:*//
15412 s/:*$//
15414 s/\(=[ ]*\).*/\1/
15416 s/\n//
15417 s/^[^=]*=[ ]*$//
15421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15422 fi # test -n "$CONFIG_FILES"
15424 # Set up the scripts for CONFIG_HEADERS section.
15425 # No need to generate them if there are no CONFIG_HEADERS.
15426 # This happens for instance with `./config.status Makefile'.
15427 if test -n "$CONFIG_HEADERS"; then
15428 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15429 BEGIN {
15430 _ACEOF
15432 # Transform confdefs.h into an awk script `defines.awk', embedded as
15433 # here-document in config.status, that substitutes the proper values into
15434 # config.h.in to produce config.h.
15436 # Create a delimiter string that does not exist in confdefs.h, to ease
15437 # handling of long lines.
15438 ac_delim='%!_!# '
15439 for ac_last_try in false false :; do
15440 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15441 if test -z "$ac_tt"; then
15442 break
15443 elif $ac_last_try; then
15444 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15445 else
15446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15448 done
15450 # For the awk script, D is an array of macro values keyed by name,
15451 # likewise P contains macro parameters if any. Preserve backslash
15452 # newline sequences.
15454 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15455 sed -n '
15456 s/.\{148\}/&'"$ac_delim"'/g
15457 t rset
15458 :rset
15459 s/^[ ]*#[ ]*define[ ][ ]*/ /
15460 t def
15462 :def
15463 s/\\$//
15464 t bsnl
15465 s/["\\]/\\&/g
15466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15467 D["\1"]=" \3"/p
15468 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15470 :bsnl
15471 s/["\\]/\\&/g
15472 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15473 D["\1"]=" \3\\\\\\n"\\/p
15474 t cont
15475 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15476 t cont
15478 :cont
15480 s/.\{148\}/&'"$ac_delim"'/g
15481 t clear
15482 :clear
15483 s/\\$//
15484 t bsnlc
15485 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15487 :bsnlc
15488 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15489 b cont
15490 ' <confdefs.h | sed '
15491 s/'"$ac_delim"'/"\\\
15492 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 for (key in D) D_is_set[key] = 1
15496 FS = "\a"
15498 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15499 line = \$ 0
15500 split(line, arg, " ")
15501 if (arg[1] == "#") {
15502 defundef = arg[2]
15503 mac1 = arg[3]
15504 } else {
15505 defundef = substr(arg[1], 2)
15506 mac1 = arg[2]
15508 split(mac1, mac2, "(") #)
15509 macro = mac2[1]
15510 prefix = substr(line, 1, index(line, defundef) - 1)
15511 if (D_is_set[macro]) {
15512 # Preserve the white space surrounding the "#".
15513 print prefix "define", macro P[macro] D[macro]
15514 next
15515 } else {
15516 # Replace #undef with comments. This is necessary, for example,
15517 # in the case of _POSIX_SOURCE, which is predefined and required
15518 # on some systems where configure will not decide to define it.
15519 if (defundef == "undef") {
15520 print "/*", prefix defundef, macro, "*/"
15521 next
15525 { print }
15526 _ACAWK
15527 _ACEOF
15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15530 fi # test -n "$CONFIG_HEADERS"
15533 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15534 shift
15535 for ac_tag
15537 case $ac_tag in
15538 :[FHLC]) ac_mode=$ac_tag; continue;;
15539 esac
15540 case $ac_mode$ac_tag in
15541 :[FHL]*:*);;
15542 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15543 :[FH]-) ac_tag=-:-;;
15544 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15545 esac
15546 ac_save_IFS=$IFS
15547 IFS=:
15548 set x $ac_tag
15549 IFS=$ac_save_IFS
15550 shift
15551 ac_file=$1
15552 shift
15554 case $ac_mode in
15555 :L) ac_source=$1;;
15556 :[FH])
15557 ac_file_inputs=
15558 for ac_f
15560 case $ac_f in
15561 -) ac_f="$ac_tmp/stdin";;
15562 *) # Look for the file first in the build tree, then in the source tree
15563 # (if the path is not absolute). The absolute path cannot be DOS-style,
15564 # because $ac_f cannot contain `:'.
15565 test -f "$ac_f" ||
15566 case $ac_f in
15567 [\\/$]*) false;;
15568 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15569 esac ||
15570 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15571 esac
15572 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15573 as_fn_append ac_file_inputs " '$ac_f'"
15574 done
15576 # Let's still pretend it is `configure' which instantiates (i.e., don't
15577 # use $as_me), people would be surprised to read:
15578 # /* config.h. Generated by config.status. */
15579 configure_input='Generated from '`
15580 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15581 `' by configure.'
15582 if test x"$ac_file" != x-; then
15583 configure_input="$ac_file. $configure_input"
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15585 $as_echo "$as_me: creating $ac_file" >&6;}
15587 # Neutralize special characters interpreted by sed in replacement strings.
15588 case $configure_input in #(
15589 *\&* | *\|* | *\\* )
15590 ac_sed_conf_input=`$as_echo "$configure_input" |
15591 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15592 *) ac_sed_conf_input=$configure_input;;
15593 esac
15595 case $ac_tag in
15596 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15598 esac
15600 esac
15602 ac_dir=`$as_dirname -- "$ac_file" ||
15603 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15604 X"$ac_file" : 'X\(//\)[^/]' \| \
15605 X"$ac_file" : 'X\(//\)$' \| \
15606 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15607 $as_echo X"$ac_file" |
15608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15609 s//\1/
15612 /^X\(\/\/\)[^/].*/{
15613 s//\1/
15616 /^X\(\/\/\)$/{
15617 s//\1/
15620 /^X\(\/\).*/{
15621 s//\1/
15624 s/.*/./; q'`
15625 as_dir="$ac_dir"; as_fn_mkdir_p
15626 ac_builddir=.
15628 case "$ac_dir" in
15629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15632 # A ".." for each directory in $ac_dir_suffix.
15633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15634 case $ac_top_builddir_sub in
15635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15637 esac ;;
15638 esac
15639 ac_abs_top_builddir=$ac_pwd
15640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15641 # for backward compatibility:
15642 ac_top_builddir=$ac_top_build_prefix
15644 case $srcdir in
15645 .) # We are building in place.
15646 ac_srcdir=.
15647 ac_top_srcdir=$ac_top_builddir_sub
15648 ac_abs_top_srcdir=$ac_pwd ;;
15649 [\\/]* | ?:[\\/]* ) # Absolute name.
15650 ac_srcdir=$srcdir$ac_dir_suffix;
15651 ac_top_srcdir=$srcdir
15652 ac_abs_top_srcdir=$srcdir ;;
15653 *) # Relative name.
15654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15655 ac_top_srcdir=$ac_top_build_prefix$srcdir
15656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15657 esac
15658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15661 case $ac_mode in
15664 # CONFIG_FILE
15667 _ACEOF
15669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670 # If the template does not know about datarootdir, expand it.
15671 # FIXME: This hack should be removed a few years after 2.60.
15672 ac_datarootdir_hack=; ac_datarootdir_seen=
15673 ac_sed_dataroot='
15674 /datarootdir/ {
15678 /@datadir@/p
15679 /@docdir@/p
15680 /@infodir@/p
15681 /@localedir@/p
15682 /@mandir@/p'
15683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15684 *datarootdir*) ac_datarootdir_seen=yes;;
15685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15688 _ACEOF
15689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15690 ac_datarootdir_hack='
15691 s&@datadir@&$datadir&g
15692 s&@docdir@&$docdir&g
15693 s&@infodir@&$infodir&g
15694 s&@localedir@&$localedir&g
15695 s&@mandir@&$mandir&g
15696 s&\\\${datarootdir}&$datarootdir&g' ;;
15697 esac
15698 _ACEOF
15700 # Neutralize VPATH when `$srcdir' = `.'.
15701 # Shell code in configure.ac might set extrasub.
15702 # FIXME: do we really want to maintain this feature?
15703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704 ac_sed_extra="$ac_vpsub
15705 $extrasub
15706 _ACEOF
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15710 s|@configure_input@|$ac_sed_conf_input|;t t
15711 s&@top_builddir@&$ac_top_builddir_sub&;t t
15712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15713 s&@srcdir@&$ac_srcdir&;t t
15714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15715 s&@top_srcdir@&$ac_top_srcdir&;t t
15716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15717 s&@builddir@&$ac_builddir&;t t
15718 s&@abs_builddir@&$ac_abs_builddir&;t t
15719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15720 $ac_datarootdir_hack
15722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15723 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15726 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15728 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15730 which seems to be undefined. Please make sure it is defined" >&5
15731 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15732 which seems to be undefined. Please make sure it is defined" >&2;}
15734 rm -f "$ac_tmp/stdin"
15735 case $ac_file in
15736 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15737 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15738 esac \
15739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15743 # CONFIG_HEADER
15745 if test x"$ac_file" != x-; then
15747 $as_echo "/* $configure_input */" \
15748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15749 } >"$ac_tmp/config.h" \
15750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15751 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15753 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15754 else
15755 rm -f "$ac_file"
15756 mv "$ac_tmp/config.h" "$ac_file" \
15757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15759 else
15760 $as_echo "/* $configure_input */" \
15761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15762 || as_fn_error $? "could not create -" "$LINENO" 5
15766 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15767 $as_echo "$as_me: executing $ac_file commands" >&6;}
15769 esac
15772 case $ac_file$ac_mode in
15773 "compiler_executable":C)
15774 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15775 mkdir -p $prefix
15776 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15777 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15779 echo ${prefix2}
15780 echo ${prefix3}
15781 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15783 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15784 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15785 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15786 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15787 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15788 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15789 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15791 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15793 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15795 esac
15796 done # for ac_tag
15799 as_fn_exit 0
15800 _ACEOF
15801 ac_clean_files=$ac_clean_files_save
15803 test $ac_write_fail = 0 ||
15804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15807 # configure is writing to config.log, and then calls config.status.
15808 # config.status does its own redirection, appending to config.log.
15809 # Unfortunately, on DOS this fails, as config.log is still kept open
15810 # by configure, so config.status won't be able to write to it; its
15811 # output is simply discarded. So we exec the FD to /dev/null,
15812 # effectively closing config.log, so it can be properly (re)opened and
15813 # appended to by config.status. When coming back to configure, we
15814 # need to make the FD available again.
15815 if test "$no_create" != yes; then
15816 ac_cs_success=:
15817 ac_config_status_args=
15818 test "$silent" = yes &&
15819 ac_config_status_args="$ac_config_status_args --quiet"
15820 exec 5>/dev/null
15821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15822 exec 5>>config.log
15823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15824 # would make configure fail if this is the last instruction.
15825 $ac_cs_success || as_fn_exit 1
15827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15834 #XXX compatability...
15835 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15837 if test -n "$aros_shared_cflags" ; then
15838 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15839 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg