delint (conversion of void* to integer of different size on 64bit)
[AROS.git] / configure
blob122a83aeed1db6b1723edc42a5eabcd1400416ee
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 sdl_hidd_target
666 unixgfx_hidd_target
667 aros_cflags_format_security
668 aros_cflags_strict_overflow
669 aros_cflags_enum_compare
670 aros_cflags_array_bounds
671 aros_cflags_unused_but_set_variable
672 crosstools_cxx_target
673 crosstools_target
674 aros_isa_flags
675 aros_optimization_cflags
676 aros_target_strip_flags
677 aros_target_genmap
678 aros_debug_ldflags
679 aros_debug_aflags
680 aros_debug_cflags
681 aros_target_cflags
682 aros_kernel_ldflags
683 aros_kernel_objcflags
684 aros_kernel_includes
685 aros_kernel_cflags
686 aros_kernel_sysroot
687 aros_config_ldflags
688 aros_config_aflags
689 aros_config_cflags
690 aros_config_sysroot
691 aros_shared_ldflags
692 aros_shared_aflags
693 aros_shared_cflags
694 aros_arch_libs
695 aros_compiler_libs
696 spec_obj_format
697 aros_object_format
698 aros_shared_ld
699 aros_shared_default
700 aros_target_nm
701 aros_target_strip
702 aros_target_objcopy
703 aros_target_objdump
704 aros_target_cc_path
705 aros_target_cc_includes
706 aros_target_ld
707 aros_target_as
708 aros_target_cpp
709 aros_target_cxx
710 aros_target_cc
711 aros_plain_ar
712 aros_plain_nm
713 aros_target_ranlib
714 aros_target_ar
715 aros_target_suffix
716 aros_target_variant
717 aros_target_cpu_mode
718 aros_target_cpu
719 aros_target_family
720 aros_target_arch
721 aros_target_bootloader
722 aros_target_iconset
723 aros_target_guitheme
724 aros_tools_dir
725 aros_host_lib_suffix
726 aros_host_exe_suffix
727 aros_host_mkargs
728 aros_host_mkdep
729 aros_host_debug
730 aros_host_ldflags
731 gnu89_inline
732 aros_host_cxxflags
733 aros_host_cflags
734 aros_host_make
735 aros_host_cxx
736 aros_host_cc
737 aros_host_cpp
738 aros_host_cpu
739 aros_host_arch
740 aros_cc_pre
741 aros_amigaos_compliance
742 AROS_PORTSSRCDIR
743 AROS_CROSSTOOLSDIR
744 SRCDIR
745 AROS_BUILDDIR_UNIX
746 AROS_BUILDDIR
747 aros_target_toolchain
748 aros_flavour_uc
749 aros_flavour
750 aros_cpu
751 aros_arch
752 SDL_LIBS
753 SDL_CFLAGS
754 SDL_CONFIG
755 XMKMF
756 aros_cflags_iquote_end
757 aros_cflags_iquote
758 kernel_cflags_iquote_end
759 kernel_cflags_iquote
760 host_cflags_iquote_end
761 host_cflags_iquote
762 aros_target_nostdlib_ldflags
763 aros_target_detach_ldflags
764 aros_target_nix_ldflags
765 aros_target_nostartup_ldflags
766 aros_target_nostdinc_cflags
767 aros_kernel_rescomp
768 orig_target_objdump
769 orig_target_objcopy
770 orig_target_strip
771 orig_target_nm
772 orig_target_ranlib
773 orig_target_ar
774 orig_target_as
775 orig_target_ld
776 orig_target_cxx
777 orig_target_cc
778 orig_target_cpp
779 aros_kernel_objdump
780 aros_kernel_objcopy
781 aros_kernel_strip
782 aros_kernel_nm
783 aros_kernel_ranlib
784 aros_kernel_ar
785 aros_kernel_as
786 aros_kernel_ld
787 aros_kernel_cxx
788 aros_kernel_cc
789 aros_kernel_cpp
790 target_gcc_version
792 android_tool
793 CCACHE
794 DISTCC
795 LIBOBJS
796 EGREP
797 GREP
799 TEST
802 pkgpyexecdir
803 pyexecdir
804 pkgpythondir
805 pythondir
806 PYTHON_PLATFORM
807 PYTHON_EXEC_PREFIX
808 PYTHON_PREFIX
809 PYTHON_VERSION
810 PYTHON
811 PATCH
812 CHMOD
814 PPMTOILBM
815 PNGTOPNM
816 FLEX
817 BISON
820 UNIQ
821 SORT
822 TOUCH
823 MKDIR
824 ECHO
828 aros_host_strip
829 aros_host_ranlib
830 aros_host_ar
831 aros_host_automake
832 aros_host_autoheader
833 aros_host_autoconf
834 aros_host_aclocal
835 aros_host_ld
836 MMAKE
839 ac_ct_CC
840 CFLAGS
842 OBJEXT
843 EXEEXT
844 ac_ct_CXX
845 CPPFLAGS
846 LDFLAGS
847 CXXFLAGS
849 host_os
850 host_vendor
851 host_cpu
852 host
853 build_os
854 build_vendor
855 build_cpu
856 build
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_build_type
899 enable_debug
900 enable_distcc
901 enable_ccache
902 with_kernel_gcc_version
903 with_optimization
904 with_paranoia
905 enable_target_variant
906 with_xcode
907 with_sdk_version
908 with_sdk
909 with_ndk
910 with_ndk_version
911 with_apk_version
912 enable_amigaos_compliance
913 with_kernel_toolchain_prefix
914 with_elf_toolchain_prefix
915 with_aros_toolchain
916 enable_crosstools
917 with_aros_toolchain_install
918 with_binutils_version
919 with_gcc_version
920 enable_objc
921 enable_java
922 with_cpu
923 with_fpu
924 with_float
925 with_portssources
926 with_bootloader
927 with_iconset
928 with_theme
929 enable_includes
930 with_resolution
931 with_serial_debug
932 enable_palm_debug_hack
933 enable_usb30_code
934 enable_nesting_supervisor
935 enable_mmu
936 enable_x11_hidd
937 with_x
938 enable_x11_shm
939 enable_x11_vidmode
940 enable_sdl_hidd
941 with_sdl_prefix
942 with_sdl_exec_prefix
943 enable_sdltest
944 enable_dbus
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
950 CXXFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
956 CFLAGS
958 PYTHON
959 XMKMF'
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *=) ac_optarg= ;;
1024 *) ac_optarg=yes ;;
1025 esac
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1031 ac_dashdash=yes ;;
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1054 ac_prev=datadir ;;
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1295 -with-* | --with-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=\$ac_optarg ;;
1311 -without-* | --without-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1345 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' | [0-9]* | *[!_$as_cr_alnum]* )
1354 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355 esac
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367 esac
1368 done
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $? "missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1377 no) ;;
1378 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 esac
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1391 case $ac_val in
1392 */ )
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1395 esac
1396 # Be sure to have absolute directory names.
1397 case $ac_val in
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 esac
1401 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402 done
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error $? "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error $? "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1452 /^X\(\/\/\)$/{
1453 s//\1/
1456 /^X\(\/\).*/{
1457 s//\1/
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1465 else
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking ...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1555 cat <<\_ACEOF
1557 X features:
1558 --x-includes=DIR X include files are in DIR
1559 --x-libraries=DIR X library files are in DIR
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 _ACEOF
1567 if test -n "$ac_init_help"; then
1569 cat <<\_ACEOF
1571 Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-build-type=TYPE
1576 Select the build type. Available types are:
1577 personal, nightly, snapshot, milestone, release. Do
1578 NOT use this option unless you know what you are
1579 doing! (default=personal)
1580 --enable-debug=list Enable different types of debug. Commas or
1581 whitespaces can be used to separate the items in the
1582 list. Available types of debug are: all, none,
1583 messages, stack, mungwall, modules, symbols. If no
1584 list is provided then "all" is assumed.
1585 (default=none)
1586 --enable-distcc Use distcc as a front end to the compiler
1587 (default=no).
1588 --enable-ccache Use ccache as a front end to the compiler
1589 (default=no).
1590 --enable-target-variant=NAME
1591 Enable a specific target variant(default=none)
1592 --enable-amigaos-compliance=VERSION
1593 Enforce userspace AmigaOS compliance to a specific
1594 KickStart version (default=none).
1595 --disable-crosstools Do not build cross-compiler toolchain
1596 --enable-objc Enable Objectve-C support (default=no)
1597 --enable-java Enable Java support (default=no)
1598 --enable-includes=dir Alternative system include directory
1599 --enable-palm-debug-hack
1600 Enable palm debug output hack in palm native
1601 (default=no)
1602 --enable-usb30-code Enable usb3.0 code (default=no)
1603 --enable-nesting-supervisor
1604 Enable nesting supervisor support in unix
1605 (default=no)
1606 --disable-mmu Disable MMU support (default=enabled)
1607 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1608 --enable-x11-shm use X11 shared memory (default=auto)
1609 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1610 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1611 --disable-sdltest Do not try to compile and run a test SDL program
1612 --enable-dbus Enable DBUS support via dbus.library (default=no)
1614 Optional Packages:
1615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1617 --with-kernel-gcc-version=VERSION
1618 Use gcc-VERSION for building bootstrap
1619 --with-optimization=FLAGS
1620 Use optimization flags FLAGS (default=-O2).
1621 --with-paranoia=FLAGS CC flags to enable paranoia
1622 --with-xcode=PATH Specify XCode path for iOS targets
1623 (default=/Developer).
1624 --with-sdk-version=VERSION
1625 Use iOS SDK version VERSION (default=4.1).
1626 --with-sdk=PATH Specify Android SDK path
1627 (default=$default_android_sdk).
1628 --with-ndk=PATH Specify Android NDK path (default=none).
1629 --with-sdk-version=LEVEL
1630 Use Android SDK for API LEVEL (default=12).
1631 --with-ndk-version=LEVEL
1632 Use Android NDK for API LEVEL (default=9).
1633 --with-apk-version=(release|debug)
1634 Which version of AROSBootstrap.apk to compile.
1635 Release version needs key for signing, debug version
1636 will only run in emulator. (default=release)
1637 --with-kernel-toolchain-prefix=...
1638 Specify crosscompile toolchain prefix for kernel
1639 objects
1640 --with-elf-toolchain-prefix=...
1641 Specify crosscompile toolchain prefix to wrap for
1642 AROS objects
1643 --with-aros-toolchain=PREFIX
1644 Specify prebuilt AROS toolchain. Use yes for default
1645 name
1646 --with-aros-toolchain-install=DIR
1647 Where to install or search for cross tools binaries
1648 --with-binutils-version=VERSION
1649 Use binutils-VERSION for building AROS
1650 --with-gcc-version=VERSION
1651 Use gcc-VERSION for building AROS
1652 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1653 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1654 --with-float=<spec> Specify floating point ABI
1655 (default=$gcc_default_float_abi).
1656 --with-portssources=DIR Where to download sourcecode for external ports
1657 --with-bootloader=NAME Use a specific bootloader
1658 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1659 --with-theme=NAME Use a specific GUI Theme
1660 --with-resolution=XRESxYRESxDEPTH
1661 Default resolution of the initial WorkbenchScreen
1662 --with-serial-debug Enable serial debug output in native (default=no)
1663 --with-x use the X Window System
1664 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1665 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1667 Some influential environment variables:
1668 CXX C++ compiler command
1669 CXXFLAGS C++ compiler flags
1670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1671 nonstandard directory <lib dir>
1672 LIBS libraries to pass to the linker, e.g. -l<library>
1673 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1674 you have headers in a nonstandard directory <include dir>
1675 CC C compiler command
1676 CFLAGS C compiler flags
1677 CPP C preprocessor
1678 PYTHON the Python interpreter
1679 XMKMF Path to xmkmf, Makefile generator for X Window System
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1684 Report bugs to the package provider.
1685 _ACEOF
1686 ac_status=$?
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
1695 ac_builddir=.
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1713 case $srcdir in
1714 .) # We are building in place.
1715 ac_srcdir=.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1737 else
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 fi || ac_status=$?
1740 cd "$ac_pwd" || { ac_status=$?; break; }
1741 done
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1746 cat <<\_ACEOF
1747 configure
1748 generated by GNU Autoconf 2.69
1750 Copyright (C) 2012 Free Software Foundation, Inc.
1751 This configure script is free software; the Free Software Foundation
1752 gives unlimited permission to copy, distribute and modify it.
1753 _ACEOF
1754 exit
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1761 # ac_fn_cxx_try_compile LINENO
1762 # ----------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_cxx_try_compile ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_cxx_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=1
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_cxx_try_compile
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_c_try_cpp LINENO
1838 # ----------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_cpp ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } > conftest.i && {
1859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_cpp
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_link ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_link
1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923 # the include files in INCLUDES and setting the cache variable VAR
1924 # accordingly.
1925 ac_fn_c_check_header_mongrel ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if eval \${$3+:} false; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 else
1938 # Is the header compilable?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940 $as_echo_n "checking $2 usability... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_header_compiler=yes
1948 else
1949 ac_header_compiler=no
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953 $as_echo "$ac_header_compiler" >&6; }
1955 # Is the header present?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957 $as_echo_n "checking $2 presence... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 ac_header_preproc=yes
1964 else
1965 ac_header_preproc=no
1967 rm -f conftest.err conftest.i conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969 $as_echo "$ac_header_preproc" >&6; }
1971 # So? What about this header?
1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 yes:no: )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 no:yes:* )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1983 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1987 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 esac
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 eval "$3=\$ac_header_compiler"
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_header_mongrel
2007 # ac_fn_c_try_run LINENO
2008 # ----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2010 # that executables *can* be run.
2011 ac_fn_c_try_run ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_link"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>&5
2022 ac_status=$?
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2025 { { case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_try") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; }; }; then :
2035 ac_retval=0
2036 else
2037 $as_echo "$as_me: program exited with status $ac_status" >&5
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=$ac_status
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2047 } # ac_fn_c_try_run
2049 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2050 # -------------------------------------------------------
2051 # Tests whether HEADER exists and can be compiled using the include files in
2052 # INCLUDES, setting the cache variable VAR accordingly.
2053 ac_fn_c_check_header_compile ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_header_compile
2080 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2081 # ----------------------------------------------------
2082 # Tries to find if the field MEMBER exists in type AGGR, after including
2083 # INCLUDES, setting cache variable VAR accordingly.
2084 ac_fn_c_check_member ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2088 $as_echo_n "checking for $2.$3... " >&6; }
2089 if eval \${$4+:} false; then :
2090 $as_echo_n "(cached) " >&6
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static $2 ac_aggr;
2099 if (ac_aggr.$3)
2100 return 0;
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$4=yes"
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static $2 ac_aggr;
2115 if (sizeof ac_aggr.$3)
2116 return 0;
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$4=yes"
2123 else
2124 eval "$4=no"
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 eval ac_res=\$$4
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_member
2137 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2138 # ---------------------------------------------
2139 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2140 # accordingly.
2141 ac_fn_c_check_decl ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 as_decl_name=`echo $2|sed 's/ *(.*//'`
2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2147 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 #ifndef $as_decl_name
2158 #ifdef __cplusplus
2159 (void) $as_decl_use;
2160 #else
2161 (void) $as_decl_name;
2162 #endif
2163 #endif
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_c_check_decl
2183 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2184 # -------------------------------------------
2185 # Tests whether TYPE exists after having included INCLUDES, setting cache
2186 # variable VAR accordingly.
2187 ac_fn_c_check_type ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 eval "$3=no"
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2200 main ()
2202 if (sizeof ($2))
2203 return 0;
2205 return 0;
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2213 main ()
2215 if (sizeof (($2)))
2216 return 0;
2218 return 0;
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2223 else
2224 eval "$3=yes"
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_type
2237 # ac_fn_c_check_func LINENO FUNC VAR
2238 # ----------------------------------
2239 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2240 ac_fn_c_check_func ()
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if eval \${$3+:} false; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252 #define $2 innocuous_$2
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
2259 #ifdef __STDC__
2260 # include <limits.h>
2261 #else
2262 # include <assert.h>
2263 #endif
2265 #undef $2
2267 /* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2270 #ifdef __cplusplus
2271 extern "C"
2272 #endif
2273 char $2 ();
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined __stub_$2 || defined __stub___$2
2278 choke me
2279 #endif
2282 main ()
2284 return $2 ();
2286 return 0;
2288 _ACEOF
2289 if ac_fn_c_try_link "$LINENO"; then :
2290 eval "$3=yes"
2291 else
2292 eval "$3=no"
2294 rm -f core conftest.err conftest.$ac_objext \
2295 conftest$ac_exeext conftest.$ac_ext
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 } # ac_fn_c_check_func
2303 cat >config.log <<_ACEOF
2304 This file contains any messages produced by compilers while
2305 running configure, to aid debugging if configure makes a mistake.
2307 It was created by $as_me, which was
2308 generated by GNU Autoconf 2.69. Invocation command line was
2310 $ $0 $@
2312 _ACEOF
2313 exec 5>>config.log
2315 cat <<_ASUNAME
2316 ## --------- ##
2317 ## Platform. ##
2318 ## --------- ##
2320 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2326 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2329 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2337 _ASUNAME
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346 IFS=$as_save_IFS
2348 } >&5
2350 cat >&5 <<_ACEOF
2353 ## ----------- ##
2354 ## Core tests. ##
2355 ## ----------- ##
2357 _ACEOF
2360 # Keep a trace of the command line.
2361 # Strip out --no-create and --no-recursion so they do not pile up.
2362 # Strip out --silent because we don't want to record it for future runs.
2363 # Also quote any args containing shell meta-characters.
2364 # Make two passes to allow for proper duplicate-argument suppression.
2365 ac_configure_args=
2366 ac_configure_args0=
2367 ac_configure_args1=
2368 ac_must_keep_next=false
2369 for ac_pass in 1 2
2371 for ac_arg
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2400 as_fn_append ac_configure_args " '$ac_arg'"
2402 esac
2403 done
2404 done
2405 { ac_configure_args0=; unset ac_configure_args0;}
2406 { ac_configure_args1=; unset ac_configure_args1;}
2408 # When interrupted or exit'd, cleanup temporary files, and complete
2409 # config.log. We remove comments because anyway the quotes in there
2410 # would cause problems or look ugly.
2411 # WARNING: Use '\'' to represent an apostrophe within the trap.
2412 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413 trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2416 echo
2418 $as_echo "## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 esac |
2450 sort
2452 echo
2454 $as_echo "## ----------------- ##
2455 ## Output variables. ##
2456 ## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470 ## File substitutions. ##
2471 ## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486 ## confdefs.h. ##
2487 ## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2500 for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502 done
2503 ac_signal=0
2505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2506 rm -f -r conftest* confdefs.h
2508 $as_echo "/* confdefs.h */" > confdefs.h
2510 # Predefined preprocessor variables.
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_NAME "$PACKAGE_NAME"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_STRING "$PACKAGE_STRING"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_URL "$PACKAGE_URL"
2534 _ACEOF
2537 # Let the site file select an alternate cache file if it wants to.
2538 # Prefer an explicitly selected file to automatically selected ones.
2539 ac_site_file1=NONE
2540 ac_site_file2=NONE
2541 if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548 elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
2551 else
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
2555 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error $? "failed to load site script $ac_site_file
2566 See \`config.log' for more details" "$LINENO" 5; }
2568 done
2570 if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575 $as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583 $as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
2587 as_fn_append ac_header_list " stdlib.h"
2588 as_fn_append ac_header_list " unistd.h"
2589 as_fn_append ac_header_list " sys/param.h"
2590 # Check that the precious variables saved in the cache have kept the same
2591 # value.
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
2639 done
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 ac_aux_dir=
2660 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2661 if test -f "$ac_dir/install-sh"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/install-sh -c"
2664 break
2665 elif test -f "$ac_dir/install.sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install.sh -c"
2668 break
2669 elif test -f "$ac_dir/shtool"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/shtool install -c"
2672 break
2674 done
2675 if test -z "$ac_aux_dir"; then
2676 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689 # Check what host we are running on.
2690 # If a target is not suggested, we use this one.
2691 # Note that what we call a target, Autoconf calls a host.
2692 # Make sure we can run config.sub.
2693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2694 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2697 $as_echo_n "checking build system type... " >&6; }
2698 if ${ac_cv_build+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 ac_build_alias=$build_alias
2702 test "x$ac_build_alias" = x &&
2703 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2704 test "x$ac_build_alias" = x &&
2705 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2706 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2707 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2711 $as_echo "$ac_cv_build" >&6; }
2712 case $ac_cv_build in
2713 *-*-*) ;;
2714 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2715 esac
2716 build=$ac_cv_build
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_build
2719 shift
2720 build_cpu=$1
2721 build_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 build_os=$*
2726 IFS=$ac_save_IFS
2727 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2731 $as_echo_n "checking host system type... " >&6; }
2732 if ${ac_cv_host+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test "x$host_alias" = x; then
2736 ac_cv_host=$ac_cv_build
2737 else
2738 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2739 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2744 $as_echo "$ac_cv_host" >&6; }
2745 case $ac_cv_host in
2746 *-*-*) ;;
2747 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2748 esac
2749 host=$ac_cv_host
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_host
2752 shift
2753 host_cpu=$1
2754 host_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 host_os=$*
2759 IFS=$ac_save_IFS
2760 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2764 # Default version of gnu tools to use
2765 default_gcc_version="4.6.4"
2766 default_binutils_version="2.23.2"
2768 # The AROS target is slightly different to the normal GNU style
2769 # format. We don't have the middle part, and we reverse the order
2770 # of the $(CPU) and $(OS) bits.
2772 # Don't strip the version of the target yet, it might be
2773 # useful on some systems.
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2776 $as_echo_n "checking for AROS style target... " >&6; }
2778 if test "$target" = "NONE" ; then
2779 target=$host_os-$host_cpu
2780 else
2781 if test "$target" = "" ; then
2782 target=$host_os-$host_cpu
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2786 $as_echo "$target" >&6; }
2788 if test "$host_os" = "mingw32" ; then
2789 PWDCMD="pwd -W"
2792 # Don't know where else to put this...
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2794 $as_echo_n "checking building AROS in... " >&6; }
2795 AROS_BUILDDIR=`${PWDCMD-pwd}`
2796 AROS_BUILDDIR_UNIX=${PWD}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2798 $as_echo "$AROS_BUILDDIR" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2801 $as_echo_n "checking AROS source in... " >&6; }
2802 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2803 SRCDIR=${srcpwd}
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2805 $as_echo "$SRCDIR" >&6; }
2807 # Parse the target field into something useful.
2809 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2810 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2813 # Some debug output, to be removed again.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2815 $as_echo_n "checking for target system (debug output)... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2817 $as_echo "$target_os" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2819 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2821 $as_echo "$target_cpu" >&6; }
2823 aros_nominal_width=800
2824 aros_nominal_height=600
2825 aros_nominal_depth=4
2828 # The first step is to find the host binaries.
2829 # Check for a compiler.
2830 # Due to a bug in autoconf check for c++ compiler first.
2831 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2832 ac_ext=cpp
2833 ac_cpp='$CXXCPP $CPPFLAGS'
2834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2837 if test -z "$CXX"; then
2838 if test -n "$CCC"; then
2839 CXX=$CCC
2840 else
2841 if test -n "$ac_tool_prefix"; then
2842 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CXX+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$CXX"; then
2852 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2865 done
2866 done
2867 IFS=$as_save_IFS
2871 CXX=$ac_cv_prog_CXX
2872 if test -n "$CXX"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2874 $as_echo "$CXX" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2881 test -n "$CXX" && break
2882 done
2884 if test -z "$CXX"; then
2885 ac_ct_CXX=$CXX
2886 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$ac_ct_CXX"; then
2896 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CXX="$ac_prog"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2915 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2916 if test -n "$ac_ct_CXX"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2918 $as_echo "$ac_ct_CXX" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2925 test -n "$ac_ct_CXX" && break
2926 done
2928 if test "x$ac_ct_CXX" = x; then
2929 CXX="g++"
2930 else
2931 case $cross_compiling:$ac_tool_warned in
2932 yes:)
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2936 esac
2937 CXX=$ac_ct_CXX
2943 # Provide some information about the compiler.
2944 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2945 set X $ac_compile
2946 ac_compiler=$2
2947 for ac_option in --version -v -V -qversion; do
2948 { { ac_try="$ac_compiler $ac_option >&5"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 ac_status=$?
2957 if test -s conftest.err; then
2958 sed '10a\
2959 ... rest of stderr output deleted ...
2960 10q' conftest.err >conftest.er1
2961 cat conftest.er1 >&5
2963 rm -f conftest.er1 conftest.err
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }
2966 done
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 ac_clean_files_save=$ac_clean_files
2980 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2981 # Try to create an executable without -o first, disregard a.out.
2982 # It will help us diagnose broken compilers, and finding out an intuition
2983 # of exeext.
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2985 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2986 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2988 # The possible output files:
2989 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2991 ac_rmfiles=
2992 for ac_file in $ac_files
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997 esac
2998 done
2999 rm -f $ac_rmfiles
3001 if { { ac_try="$ac_link_default"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link_default") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3015 # so that the user can short-circuit this test for compilers unknown to
3016 # Autoconf.
3017 for ac_file in $ac_files ''
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3023 [ab].out )
3024 # We found the default executable, but exeext='' is most
3025 # certainly right.
3026 break;;
3027 *.* )
3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 then :; else
3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3032 # We set ac_cv_exeext here because the later test for it is not
3033 # safe: cross compilers may not add the suffix if given an `-o'
3034 # argument, so we may need to know it at that point already.
3035 # Even if this section looks crufty: it has the advantage of
3036 # actually working.
3037 break;;
3039 break;;
3040 esac
3041 done
3042 test "$ac_cv_exeext" = no && ac_cv_exeext=
3044 else
3045 ac_file=''
3047 if test -z "$ac_file"; then :
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 $as_echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error 77 "C++ compiler cannot create executables
3056 See \`config.log' for more details" "$LINENO" 5; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3062 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3064 $as_echo "$ac_file" >&6; }
3065 ac_exeext=$ac_cv_exeext
3067 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3068 ac_clean_files=$ac_clean_files_save
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3070 $as_echo_n "checking for suffix of executables... " >&6; }
3071 if { { ac_try="$ac_link"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094 done
3095 else
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details" "$LINENO" 5; }
3101 rm -f conftest conftest$ac_cv_exeext
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3103 $as_echo "$ac_cv_exeext" >&6; }
3105 rm -f conftest.$ac_ext
3106 EXEEXT=$ac_cv_exeext
3107 ac_exeext=$EXEEXT
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110 #include <stdio.h>
3112 main ()
3114 FILE *f = fopen ("conftest.out", "w");
3115 return ferror (f) || fclose (f) != 0;
3118 return 0;
3120 _ACEOF
3121 ac_clean_files="$ac_clean_files conftest.out"
3122 # Check that the compiler produces executables we can run. If not, either
3123 # the compiler is broken, or we cross compile.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125 $as_echo_n "checking whether we are cross compiling... " >&6; }
3126 if test "$cross_compiling" != yes; then
3127 { { ac_try="$ac_link"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }
3138 if { ac_try='./conftest$ac_cv_exeext'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "cannot run C++ compiled programs.
3157 If you meant to cross compile, use \`--host'.
3158 See \`config.log' for more details" "$LINENO" 5; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3163 $as_echo "$cross_compiling" >&6; }
3165 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3168 $as_echo_n "checking for suffix of object files... " >&6; }
3169 if ${ac_cv_objext+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3176 main ()
3180 return 0;
3182 _ACEOF
3183 rm -f conftest.o conftest.obj
3184 if { { ac_try="$ac_compile"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compile") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 for ac_file in conftest.o conftest.obj conftest.*; do
3196 test -f "$ac_file" || continue;
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200 break;;
3201 esac
3202 done
3203 else
3204 $as_echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "cannot compute suffix of object files: cannot compile
3210 See \`config.log' for more details" "$LINENO" 5; }
3212 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3215 $as_echo "$ac_cv_objext" >&6; }
3216 OBJEXT=$ac_cv_objext
3217 ac_objext=$OBJEXT
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3220 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3227 main ()
3229 #ifndef __GNUC__
3230 choke me
3231 #endif
3234 return 0;
3236 _ACEOF
3237 if ac_fn_cxx_try_compile "$LINENO"; then :
3238 ac_compiler_gnu=yes
3239 else
3240 ac_compiler_gnu=no
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3248 if test $ac_compiler_gnu = yes; then
3249 GXX=yes
3250 else
3251 GXX=
3253 ac_test_CXXFLAGS=${CXXFLAGS+set}
3254 ac_save_CXXFLAGS=$CXXFLAGS
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3257 if ${ac_cv_prog_cxx_g+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3261 ac_cxx_werror_flag=yes
3262 ac_cv_prog_cxx_g=no
3263 CXXFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 if ac_fn_cxx_try_compile "$LINENO"; then :
3276 ac_cv_prog_cxx_g=yes
3277 else
3278 CXXFLAGS=""
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3283 main ()
3287 return 0;
3289 _ACEOF
3290 if ac_fn_cxx_try_compile "$LINENO"; then :
3292 else
3293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3294 CXXFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 if ac_fn_cxx_try_compile "$LINENO"; then :
3307 ac_cv_prog_cxx_g=yes
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3318 if test "$ac_test_CXXFLAGS" = set; then
3319 CXXFLAGS=$ac_save_CXXFLAGS
3320 elif test $ac_cv_prog_cxx_g = yes; then
3321 if test "$GXX" = yes; then
3322 CXXFLAGS="-g -O2"
3323 else
3324 CXXFLAGS="-g"
3326 else
3327 if test "$GXX" = yes; then
3328 CXXFLAGS="-O2"
3329 else
3330 CXXFLAGS=
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_CC+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3366 done
3367 done
3368 IFS=$as_save_IFS
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3383 if test -z "$ac_cv_prog_CC"; then
3384 ac_ct_CC=$CC
3385 # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_ac_ct_CC="gcc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3408 IFS=$as_save_IFS
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3421 if test "x$ac_ct_CC" = x; then
3422 CC=""
3423 else
3424 case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430 CC=$ac_ct_CC
3432 else
3433 CC="$ac_cv_prog_CC"
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_CC+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_CC="${ac_tool_prefix}cc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3461 IFS=$as_save_IFS
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3477 if test -z "$CC"; then
3478 # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 ac_prog_rejected=no
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497 ac_prog_rejected=yes
3498 continue
3500 ac_cv_prog_CC="cc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3504 done
3505 done
3506 IFS=$as_save_IFS
3508 if test $ac_prog_rejected = yes; then
3509 # We found a bogon in the path, so make sure we never use it.
3510 set dummy $ac_cv_prog_CC
3511 shift
3512 if test $# != 0; then
3513 # We chose a different compiler from the bogus one.
3514 # However, it has the same basename, so the bogon will be chosen
3515 # first if we set CC to just the basename; use the full file name.
3516 shift
3517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog in cl.exe
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3560 IFS=$as_save_IFS
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3574 test -n "$CC" && break
3575 done
3577 if test -z "$CC"; then
3578 ac_ct_CC=$CC
3579 for ac_prog in cl.exe
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="$ac_prog"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3604 IFS=$as_save_IFS
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3618 test -n "$ac_ct_CC" && break
3619 done
3621 if test "x$ac_ct_CC" = x; then
3622 CC=""
3623 else
3624 case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630 CC=$ac_ct_CC
3637 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details" "$LINENO" 5; }
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 set X $ac_compile
3645 ac_compiler=$2
3646 for ac_option in --version -v -V -qversion; do
3647 { { ac_try="$ac_compiler $ac_option >&5"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3655 ac_status=$?
3656 if test -s conftest.err; then
3657 sed '10a\
3658 ... rest of stderr output deleted ...
3659 10q' conftest.err >conftest.er1
3660 cat conftest.er1 >&5
3662 rm -f conftest.er1 conftest.err
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3665 done
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3668 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3669 if ${ac_cv_c_compiler_gnu+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3676 main ()
3678 #ifndef __GNUC__
3679 choke me
3680 #endif
3683 return 0;
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_compiler_gnu=yes
3688 else
3689 ac_compiler_gnu=no
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3696 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3697 if test $ac_compiler_gnu = yes; then
3698 GCC=yes
3699 else
3700 GCC=
3702 ac_test_CFLAGS=${CFLAGS+set}
3703 ac_save_CFLAGS=$CFLAGS
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3705 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3706 if ${ac_cv_prog_cc_g+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 ac_save_c_werror_flag=$ac_c_werror_flag
3710 ac_c_werror_flag=yes
3711 ac_cv_prog_cc_g=no
3712 CFLAGS="-g"
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_g=yes
3726 else
3727 CFLAGS=""
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3732 main ()
3736 return 0;
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3741 else
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3743 CFLAGS="-g"
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3748 main ()
3752 return 0;
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_cv_prog_cc_g=yes
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3766 $as_echo "$ac_cv_prog_cc_g" >&6; }
3767 if test "$ac_test_CFLAGS" = set; then
3768 CFLAGS=$ac_save_CFLAGS
3769 elif test $ac_cv_prog_cc_g = yes; then
3770 if test "$GCC" = yes; then
3771 CFLAGS="-g -O2"
3772 else
3773 CFLAGS="-g"
3775 else
3776 if test "$GCC" = yes; then
3777 CFLAGS="-O2"
3778 else
3779 CFLAGS=
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3783 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3784 if ${ac_cv_prog_cc_c89+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 ac_cv_prog_cc_c89=no
3788 ac_save_CC=$CC
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <stdarg.h>
3792 #include <stdio.h>
3793 struct stat;
3794 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3795 struct buf { int x; };
3796 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797 static char *e (p, i)
3798 char **p;
3799 int i;
3801 return p[i];
3803 static char *f (char * (*g) (char **, int), char **p, ...)
3805 char *s;
3806 va_list v;
3807 va_start (v,p);
3808 s = g (p, va_arg (v,int));
3809 va_end (v);
3810 return s;
3813 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3814 function prototypes and stuff, but not '\xHH' hex character constants.
3815 These don't provoke an error unfortunately, instead are silently treated
3816 as 'x'. The following induces an error, until -std is added to get
3817 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3818 array size at least. It's necessary to write '\x00'==0 to get something
3819 that's true only with -std. */
3820 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3822 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3823 inside strings and character constants. */
3824 #define FOO(x) 'x'
3825 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3827 int test (int i, double x);
3828 struct s1 {int (*f) (int a);};
3829 struct s2 {int (*f) (double a);};
3830 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831 int argc;
3832 char **argv;
3834 main ()
3836 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3838 return 0;
3840 _ACEOF
3841 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3842 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3844 CC="$ac_save_CC $ac_arg"
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv_prog_cc_c89=$ac_arg
3848 rm -f core conftest.err conftest.$ac_objext
3849 test "x$ac_cv_prog_cc_c89" != "xno" && break
3850 done
3851 rm -f conftest.$ac_ext
3852 CC=$ac_save_CC
3855 # AC_CACHE_VAL
3856 case "x$ac_cv_prog_cc_c89" in
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3859 $as_echo "none needed" >&6; } ;;
3860 xno)
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3862 $as_echo "unsupported" >&6; } ;;
3864 CC="$CC $ac_cv_prog_cc_c89"
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3866 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3867 esac
3868 if test "x$ac_cv_prog_cc_c89" != xno; then :
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 case $ac_cv_prog_cc_stdc in #(
3879 no) :
3880 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3881 *) :
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3883 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3884 if ${ac_cv_prog_cc_c99+:} false; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 ac_cv_prog_cc_c99=no
3888 ac_save_CC=$CC
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <stdarg.h>
3892 #include <stdbool.h>
3893 #include <stdlib.h>
3894 #include <wchar.h>
3895 #include <stdio.h>
3897 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3898 #define debug(...) fprintf (stderr, __VA_ARGS__)
3899 #define showlist(...) puts (#__VA_ARGS__)
3900 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3901 static void
3902 test_varargs_macros (void)
3904 int x = 1234;
3905 int y = 5678;
3906 debug ("Flag");
3907 debug ("X = %d\n", x);
3908 showlist (The first, second, and third items.);
3909 report (x>y, "x is %d but y is %d", x, y);
3912 // Check long long types.
3913 #define BIG64 18446744073709551615ull
3914 #define BIG32 4294967295ul
3915 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3916 #if !BIG_OK
3917 your preprocessor is broken;
3918 #endif
3919 #if BIG_OK
3920 #else
3921 your preprocessor is broken;
3922 #endif
3923 static long long int bignum = -9223372036854775807LL;
3924 static unsigned long long int ubignum = BIG64;
3926 struct incomplete_array
3928 int datasize;
3929 double data[];
3932 struct named_init {
3933 int number;
3934 const wchar_t *name;
3935 double average;
3938 typedef const char *ccp;
3940 static inline int
3941 test_restrict (ccp restrict text)
3943 // See if C++-style comments work.
3944 // Iterate through items via the restricted pointer.
3945 // Also check for declarations in for loops.
3946 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3947 continue;
3948 return 0;
3951 // Check varargs and va_copy.
3952 static void
3953 test_varargs (const char *format, ...)
3955 va_list args;
3956 va_start (args, format);
3957 va_list args_copy;
3958 va_copy (args_copy, args);
3960 const char *str;
3961 int number;
3962 float fnumber;
3964 while (*format)
3966 switch (*format++)
3968 case 's': // string
3969 str = va_arg (args_copy, const char *);
3970 break;
3971 case 'd': // int
3972 number = va_arg (args_copy, int);
3973 break;
3974 case 'f': // float
3975 fnumber = va_arg (args_copy, double);
3976 break;
3977 default:
3978 break;
3981 va_end (args_copy);
3982 va_end (args);
3986 main ()
3989 // Check bool.
3990 _Bool success = false;
3992 // Check restrict.
3993 if (test_restrict ("String literal") == 0)
3994 success = true;
3995 char *restrict newvar = "Another string";
3997 // Check varargs.
3998 test_varargs ("s, d' f .", "string", 65, 34.234);
3999 test_varargs_macros ();
4001 // Check flexible array members.
4002 struct incomplete_array *ia =
4003 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4004 ia->datasize = 10;
4005 for (int i = 0; i < ia->datasize; ++i)
4006 ia->data[i] = i * 1.234;
4008 // Check named initializers.
4009 struct named_init ni = {
4010 .number = 34,
4011 .name = L"Test wide string",
4012 .average = 543.34343,
4015 ni.number = 58;
4017 int dynamic_array[ni.number];
4018 dynamic_array[ni.number - 1] = 543;
4020 // work around unused variable warnings
4021 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4022 || dynamic_array[ni.number - 1] != 543);
4025 return 0;
4027 _ACEOF
4028 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4030 CC="$ac_save_CC $ac_arg"
4031 if ac_fn_c_try_compile "$LINENO"; then :
4032 ac_cv_prog_cc_c99=$ac_arg
4034 rm -f core conftest.err conftest.$ac_objext
4035 test "x$ac_cv_prog_cc_c99" != "xno" && break
4036 done
4037 rm -f conftest.$ac_ext
4038 CC=$ac_save_CC
4041 # AC_CACHE_VAL
4042 case "x$ac_cv_prog_cc_c99" in
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4045 $as_echo "none needed" >&6; } ;;
4046 xno)
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4048 $as_echo "unsupported" >&6; } ;;
4050 CC="$CC $ac_cv_prog_cc_c99"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4052 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4053 esac
4054 if test "x$ac_cv_prog_cc_c99" != xno; then :
4055 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4058 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4059 if ${ac_cv_prog_cc_c89+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 ac_cv_prog_cc_c89=no
4063 ac_save_CC=$CC
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdarg.h>
4067 #include <stdio.h>
4068 struct stat;
4069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4070 struct buf { int x; };
4071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072 static char *e (p, i)
4073 char **p;
4074 int i;
4076 return p[i];
4078 static char *f (char * (*g) (char **, int), char **p, ...)
4080 char *s;
4081 va_list v;
4082 va_start (v,p);
4083 s = g (p, va_arg (v,int));
4084 va_end (v);
4085 return s;
4088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4089 function prototypes and stuff, but not '\xHH' hex character constants.
4090 These don't provoke an error unfortunately, instead are silently treated
4091 as 'x'. The following induces an error, until -std is added to get
4092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4093 array size at least. It's necessary to write '\x00'==0 to get something
4094 that's true only with -std. */
4095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098 inside strings and character constants. */
4099 #define FOO(x) 'x'
4100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4102 int test (int i, double x);
4103 struct s1 {int (*f) (int a);};
4104 struct s2 {int (*f) (double a);};
4105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106 int argc;
4107 char **argv;
4109 main ()
4111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4113 return 0;
4115 _ACEOF
4116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_c89=$ac_arg
4123 rm -f core conftest.err conftest.$ac_objext
4124 test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 done
4126 rm -f conftest.$ac_ext
4127 CC=$ac_save_CC
4130 # AC_CACHE_VAL
4131 case "x$ac_cv_prog_cc_c89" in
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4135 xno)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4139 CC="$CC $ac_cv_prog_cc_c89"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 esac
4143 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4145 else
4146 ac_cv_prog_cc_stdc=no
4151 esac
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4153 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4154 if ${ac_cv_prog_cc_stdc+:} false; then :
4155 $as_echo_n "(cached) " >&6
4158 case $ac_cv_prog_cc_stdc in #(
4159 no) :
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 $as_echo "unsupported" >&6; } ;; #(
4162 '') :
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;; #(
4165 *) :
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4167 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4168 esac
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4176 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4177 # On Suns, sometimes $CPP names a directory.
4178 if test -n "$CPP" && test -d "$CPP"; then
4179 CPP=
4181 if test -z "$CPP"; then
4182 if ${ac_cv_prog_CPP+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 # Double quotes because CPP needs to be expanded
4186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 ac_preproc_ok=false
4189 for ac_c_preproc_warn_flag in '' yes
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #ifdef __STDC__
4200 # include <limits.h>
4201 #else
4202 # include <assert.h>
4203 #endif
4204 Syntax error
4205 _ACEOF
4206 if ac_fn_c_try_cpp "$LINENO"; then :
4208 else
4209 # Broken: fails on valid input.
4210 continue
4212 rm -f conftest.err conftest.i conftest.$ac_ext
4214 # OK, works on sane cases. Now check whether nonexistent headers
4215 # can be detected and how.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 #include <ac_nonexistent.h>
4219 _ACEOF
4220 if ac_fn_c_try_cpp "$LINENO"; then :
4221 # Broken: success on invalid input.
4222 continue
4223 else
4224 # Passes both tests.
4225 ac_preproc_ok=:
4226 break
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 done
4231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232 rm -f conftest.i conftest.err conftest.$ac_ext
4233 if $ac_preproc_ok; then :
4234 break
4237 done
4238 ac_cv_prog_CPP=$CPP
4241 CPP=$ac_cv_prog_CPP
4242 else
4243 ac_cv_prog_CPP=$CPP
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4246 $as_echo "$CPP" >&6; }
4247 ac_preproc_ok=false
4248 for ac_c_preproc_warn_flag in '' yes
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error" is here to catch this case.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #ifdef __STDC__
4259 # include <limits.h>
4260 #else
4261 # include <assert.h>
4262 #endif
4263 Syntax error
4264 _ACEOF
4265 if ac_fn_c_try_cpp "$LINENO"; then :
4267 else
4268 # Broken: fails on valid input.
4269 continue
4271 rm -f conftest.err conftest.i conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether nonexistent headers
4274 # can be detected and how.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <ac_nonexistent.h>
4278 _ACEOF
4279 if ac_fn_c_try_cpp "$LINENO"; then :
4280 # Broken: success on invalid input.
4281 continue
4282 else
4283 # Passes both tests.
4284 ac_preproc_ok=:
4285 break
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4289 done
4290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291 rm -f conftest.i conftest.err conftest.$ac_ext
4292 if $ac_preproc_ok; then :
4294 else
4295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4298 See \`config.log' for more details" "$LINENO" 5; }
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 # Check for a compatible awk
4309 for ac_prog in gawk nawk
4311 # Extract the first word of "$ac_prog", so it can be a program name with args.
4312 set dummy $ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_AWK+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$AWK"; then
4319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_AWK="$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 AWK=$ac_cv_prog_AWK
4339 if test -n "$AWK"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4341 $as_echo "$AWK" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$AWK" && break
4349 done
4351 if test "$AWK" = ""; then
4352 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4354 # Extract the first word of "mmake", so it can be a program name with args.
4355 set dummy mmake; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_MMAKE+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$MMAKE"; then
4362 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_MMAKE="mmake "
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 MMAKE=$ac_cv_prog_MMAKE
4382 if test -n "$MMAKE"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4384 $as_echo "$MMAKE" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 # Perform some default variable assignments. Note all of these will be
4393 # Regenerated from the script, so there is no need to cache them.
4395 aros_host_cpp="$CPP"
4396 aros_host_cc="$CC"
4397 aros_host_cxx="$CXX"
4398 if test "$GCC" = "yes"; then
4399 aros_gcc_ld=`$CC -print-prog-name=ld`
4400 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4401 set dummy `basename $aros_gcc_ld`; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_path_aros_host_ld+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 case $aros_host_ld in
4408 [\\/]* | ?:[\\/]*)
4409 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in `dirname $aros_gcc_ld`
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4428 esac
4430 aros_host_ld=$ac_cv_path_aros_host_ld
4431 if test -n "$aros_host_ld"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4433 $as_echo "$aros_host_ld" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test "$aros_host_ld" = ""; then
4442 # Extract the first word of "ld", so it can be a program name with args.
4443 set dummy ld; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_path_aros_host_ld+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 case $aros_host_ld in
4450 [\\/]* | ?:[\\/]*)
4451 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4465 done
4466 done
4467 IFS=$as_save_IFS
4470 esac
4472 aros_host_ld=$ac_cv_path_aros_host_ld
4473 if test -n "$aros_host_ld"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4475 $as_echo "$aros_host_ld" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4483 if test "$aros_host_ld" = ""; then
4484 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4486 aros_host_make="make"
4487 aros_host_cflags="$CFLAGS"
4488 aros_host_cxxflags="$CXXFLAGS"
4489 aros_host_ldflags="$LDFLAGS"
4490 aros_host_debug="-g -O0"
4491 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4492 aros_host_mkargs="--no-print-directory"
4493 aros_host_exe_suffix="$EXEEXT"
4494 aros_host_lib_suffix=""
4496 # Ignore all compliance, AROS ROMs = 0
4497 # KickStart v1.0 = 30
4498 # KickStart v1.3 = 34
4499 # KickStart v2.0 = 37
4500 # KickStart v3.0 = 39
4501 # KickStart v3.1 = 40
4502 # AmigaOS v3.5 = 44
4503 aros_amigaos_compliance=0
4505 for ac_prog in aclocal aclocal19 aclocal-1.9
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$aros_host_aclocal"; then
4515 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_aros_host_aclocal="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4535 if test -n "$aros_host_aclocal"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4537 $as_echo "$aros_host_aclocal" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4544 test -n "$aros_host_aclocal" && break
4545 done
4547 for ac_prog in autoconf autoconf259 autoconf253
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$aros_host_autoconf"; then
4557 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_aros_host_autoconf="$ac_prog"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4577 if test -n "$aros_host_autoconf"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4579 $as_echo "$aros_host_autoconf" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$aros_host_autoconf" && break
4587 done
4589 for ac_prog in autoheader autoheader259 autoheader253
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$aros_host_autoheader"; then
4599 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_aros_host_autoheader="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4619 if test -n "$aros_host_autoheader"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4621 $as_echo "$aros_host_autoheader" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$aros_host_autoheader" && break
4629 done
4631 for ac_prog in automake automake19 automake-1.9
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_aros_host_automake+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$aros_host_automake"; then
4641 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_aros_host_automake="$ac_prog"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 aros_host_automake=$ac_cv_prog_aros_host_automake
4661 if test -n "$aros_host_automake"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4663 $as_echo "$aros_host_automake" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4670 test -n "$aros_host_automake" && break
4671 done
4674 if test "$aros_host_aclocal" = ""; then
4675 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4677 if test "$aros_host_automake" = ""; then
4678 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4681 case "$aros_host_cc" in
4682 *clang*)
4683 aros_host_cc_pipe=""
4685 *gcc*)
4686 aros_host_cc_pipe="-pipe"
4688 icc)
4689 aros_host_cc_pipe=""
4692 aros_host_cc_pipe=""
4694 esac
4696 aros_kernel_cc_includes=""
4697 aros_target_cc_includes=""
4698 host_cc_elf=yes
4700 # ----------------------------------------------------------------------------------------
4701 # Host-specific defaults
4703 # This is the main host configuration section. It is where the host
4704 # can change the values of any variables it needs to change. We do
4705 # not look at anything that compiles to the target yet, we'll get
4706 # to that later.
4708 case "$host_os" in
4709 aros*)
4710 aros_host_arch="aros"
4711 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4712 case "$host_cpu" in
4713 *i?86*)
4714 aros_host_cpu="i386"
4716 *x86_64*)
4717 aros_host_cpu="x86_64"
4719 *powerpc*)
4720 aros_host_cpu="ppc"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4724 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4725 aros_host_cpu="$host_cpu"
4727 esac
4730 linux*)
4731 aros_host_arch="linux"
4732 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4733 android_build_os="linux-x86"
4734 android_tool="android"
4735 default_android_sdk="/opt/android-sdk-linux_x86"
4736 case "$host_cpu" in
4737 *i?86*)
4738 aros_host_cpu="i386"
4740 *x86_64*)
4741 aros_host_cpu="x86_64"
4743 *m68k*)
4744 aros_host_cpu="m68k"
4746 *powerpc*)
4747 aros_host_cpu="ppc"
4749 *arm*)
4750 aros_host_cpu="arm"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4754 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4755 aros_host_cpu="$host_cpu"
4757 esac
4760 freebsd*)
4761 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4762 aros_host_make="gmake"
4763 aros_host_arch="freebsd"
4764 aros_host_cpu="i386"
4766 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4768 case $host_os in
4769 freebsd[234]*)
4770 aros_object_format="elf_i386"
4774 aros_object_format="elf_i386_fbsd"
4776 esac
4780 darwin*)
4781 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4782 aros_host_arch="darwin"
4783 host_cc_elf=no
4784 if [ -z ${SED+x} ]; then SED="gsed"; fi
4785 android_build_os="darwin-x86"
4786 android_tool="android"
4787 default_android_sdk="/android-sdk-mac_x86"
4788 case "$host_cpu" in
4789 *i?86*)
4790 aros_host_cpu="i386"
4792 *x86_64*)
4793 aros_host_cpu="x86_64"
4795 *powerpc*)
4796 aros_host_cpu="ppc"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4800 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4801 aros_host_cpu="$host_cpu"
4803 esac
4805 aros_host_ldflags="$aros_host_ldflags -liconv"
4809 dragonfly*)
4810 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4811 aros_host_make="gmake"
4812 aros_host_arch="dragonfly"
4813 case $host_cpu in
4814 *i?86*)
4815 aros_host_cpu="i386"
4817 *amd64*)
4818 aros_host_cpu="x86_64"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4822 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4823 aros_host_cpu="$host_cpu"
4825 esac
4828 netbsd*)
4829 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4830 aros_host_make="gmake"
4831 aros_host_arch="netbsd"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4836 *m68k*)
4837 aros_host_cpu="m68k"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4841 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4842 aros_host_cpu="$host_cpu"
4844 esac
4845 aros_host_lib_suffix=".0.0"
4848 openbsd*)
4849 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4850 aros_host_make="gmake"
4851 aros_host_arch="openbsd"
4852 case "$host_cpu" in
4853 *i?86*)
4854 aros_host_cpu="i386"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4858 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4859 aros_host_cpu="$host_cpu"
4861 esac
4864 solaris*)
4865 aros_host_arch="solaris"
4866 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4867 case "$host_cpu" in
4868 *i?86*)
4869 aros_host_cpu="i386"
4871 *sparc*)
4872 aros_host_cpu="sparc"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4876 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4877 aros_host_cpu="$host_cpu"
4879 esac
4882 morphos*)
4883 aros_host_arch="morphos"
4884 aros_host_cpu="ppc"
4885 host_cc_elf=no
4888 amiga*)
4889 aros_host_arch="amiga"
4890 host_cc_elf=no
4891 SORT="/gg/bin/sort"
4892 TEST="/gg/bin/test"
4893 UNIQ="/gg/bin/uniq"
4894 FOR="for"
4895 TOUCH="/gg/bin/touch"
4896 case "$host_cpu" in
4897 *m68k*)
4898 aros_host_cpu="m68k"
4900 *powerpc*)
4901 aros_host_cpu="ppc"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4905 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4906 aros_host_cpu="$host_cpu"
4908 esac
4911 cygwin*)
4912 aros_host_arch="cygwin"
4913 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4914 host_cc_elf=no
4915 android_build_os="windows"
4916 android_tool="android.bat"
4917 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4919 case "$host_cpu" in
4920 *i?86*)
4921 aros_host_cpu="i386"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4925 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4926 aros_host_cpu="$host_cpu"
4928 esac
4931 mingw32*)
4932 aros_host_arch="mingw32"
4933 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4934 host_cc_elf=no
4935 android_build_os="windows"
4936 android_tool="android.bat"
4937 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4939 case "$host_cpu" in
4940 *i?86*)
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4943 $as_echo_n "checking for Windows native gcc target... " >&6; }
4944 host_cpu=`gcc -dumpmachine`
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4946 $as_echo "$host_cpu" >&6; }
4949 esac
4951 case "$host_cpu" in
4952 *i?86*)
4953 aros_host_cpu="i386"
4956 mingw32*)
4957 aros_host_cpu="i386"
4960 *x86_64*)
4961 aros_host_cpu="x86_64"
4962 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4967 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4968 aros_host_cpu="$host_cpu"
4970 esac
4973 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4975 esac
4977 # Extract the first word of "ar", so it can be a program name with args.
4978 set dummy ar; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_aros_host_ar+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -n "$aros_host_ar"; then
4985 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_aros_host_ar="ar cr"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4998 done
4999 done
5000 IFS=$as_save_IFS
5004 aros_host_ar=$ac_cv_prog_aros_host_ar
5005 if test -n "$aros_host_ar"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5007 $as_echo "$aros_host_ar" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5014 if test "$aros_host_ar" = ""; then
5015 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$aros_host_ranlib"; then
5025 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_aros_host_ranlib="ranlib "
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5045 if test -n "$aros_host_ranlib"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5047 $as_echo "$aros_host_ranlib" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5054 if test "$aros_host_ranlib" = ""; then
5055 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5057 # Extract the first word of "strip", so it can be a program name with args.
5058 set dummy strip; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_aros_host_strip+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$aros_host_strip"; then
5065 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_aros_host_strip="strip "
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 aros_host_strip=$ac_cv_prog_aros_host_strip
5085 if test -n "$aros_host_strip"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5087 $as_echo "$aros_host_strip" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 if test "$aros_host_strip" = ""; then
5095 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5098 # Extract the first word of "rm", so it can be a program name with args.
5099 set dummy rm; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_RM+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$RM"; then
5106 ac_cv_prog_RM="$RM" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_RM="rm -rf"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 RM=$ac_cv_prog_RM
5126 if test -n "$RM"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5128 $as_echo "$RM" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 if test "$RM" = ""; then
5136 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5138 # Extract the first word of "cp", so it can be a program name with args.
5139 set dummy cp; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_CP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$CP"; then
5146 ac_cv_prog_CP="$CP" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_CP="cp "
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 CP=$ac_cv_prog_CP
5166 if test -n "$CP"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5168 $as_echo "$CP" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 if test "$CP" = ""; then
5176 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5178 # Extract the first word of "mv", so it can be a program name with args.
5179 set dummy mv; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_MV+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$MV"; then
5186 ac_cv_prog_MV="$MV" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_MV="mv "
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 MV=$ac_cv_prog_MV
5206 if test -n "$MV"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5208 $as_echo "$MV" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 if test "$MV" = ""; then
5216 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5218 # Extract the first word of "echo", so it can be a program name with args.
5219 set dummy echo; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ECHO+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$ECHO"; then
5226 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_ECHO="echo "
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5241 IFS=$as_save_IFS
5245 ECHO=$ac_cv_prog_ECHO
5246 if test -n "$ECHO"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5248 $as_echo "$ECHO" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 if test "$ECHO" = ""; then
5256 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5258 # Extract the first word of "mkdir", so it can be a program name with args.
5259 set dummy mkdir; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_prog_MKDIR+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 if test -n "$MKDIR"; then
5266 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_MKDIR="mkdir -p"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5279 done
5280 done
5281 IFS=$as_save_IFS
5285 MKDIR=$ac_cv_prog_MKDIR
5286 if test -n "$MKDIR"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5288 $as_echo "$MKDIR" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 if test "$MKDIR" = ""; then
5296 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5298 # Extract the first word of "touch", so it can be a program name with args.
5299 set dummy touch; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_TOUCH+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if test -n "$TOUCH"; then
5306 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_TOUCH="touch "
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5319 done
5320 done
5321 IFS=$as_save_IFS
5325 TOUCH=$ac_cv_prog_TOUCH
5326 if test -n "$TOUCH"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5328 $as_echo "$TOUCH" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5335 if test "$TOUCH" = ""; then
5336 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5338 # Extract the first word of "sort", so it can be a program name with args.
5339 set dummy sort; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_SORT+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$SORT"; then
5346 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_SORT="sort "
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 SORT=$ac_cv_prog_SORT
5366 if test -n "$SORT"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5368 $as_echo "$SORT" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 if test "$SORT" = ""; then
5376 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5378 # Extract the first word of "uniq", so it can be a program name with args.
5379 set dummy uniq; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_UNIQ+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$UNIQ"; then
5386 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_prog_UNIQ="uniq "
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5399 done
5400 done
5401 IFS=$as_save_IFS
5405 UNIQ=$ac_cv_prog_UNIQ
5406 if test -n "$UNIQ"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5408 $as_echo "$UNIQ" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 if test "$UNIQ" = ""; then
5416 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5418 # Extract the first word of "true", so it can be a program name with args.
5419 set dummy true; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_NOP+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$NOP"; then
5426 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_NOP="true "
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 NOP=$ac_cv_prog_NOP
5446 if test -n "$NOP"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5448 $as_echo "$NOP" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 if test "$NOP" = ""; then
5456 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5458 # Extract the first word of "cat", so it can be a program name with args.
5459 set dummy cat; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_CAT+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -n "$CAT"; then
5466 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_CAT="cat "
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5479 done
5480 done
5481 IFS=$as_save_IFS
5485 CAT=$ac_cv_prog_CAT
5486 if test -n "$CAT"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5488 $as_echo "$CAT" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5495 if test "$CAT" = ""; then
5496 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5498 # Extract the first word of "bison", so it can be a program name with args.
5499 set dummy bison; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_BISON+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$BISON"; then
5506 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_BISON="bison "
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5519 done
5520 done
5521 IFS=$as_save_IFS
5525 BISON=$ac_cv_prog_BISON
5526 if test -n "$BISON"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5528 $as_echo "$BISON" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5535 if test "$BISON" = ""; then
5536 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5538 # Extract the first word of "flex", so it can be a program name with args.
5539 set dummy flex; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_FLEX+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$FLEX"; then
5546 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_FLEX="flex "
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5565 FLEX=$ac_cv_prog_FLEX
5566 if test -n "$FLEX"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5568 $as_echo "$FLEX" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5575 if test "$FLEX" = ""; then
5576 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5578 # Extract the first word of "pngtopnm", so it can be a program name with args.
5579 set dummy pngtopnm; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$PNGTOPNM"; then
5586 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_PNGTOPNM="pngtopnm "
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5606 if test -n "$PNGTOPNM"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5608 $as_echo "$PNGTOPNM" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5615 if test "$PNGTOPNM" = ""; then
5616 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5618 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5619 set dummy ppmtoilbm; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$PPMTOILBM"; then
5626 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5646 if test -n "$PPMTOILBM"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5648 $as_echo "$PPMTOILBM" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 if test "$PPMTOILBM" = ""; then
5656 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5658 # Extract the first word of "sed", so it can be a program name with args.
5659 set dummy sed; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_SED+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$SED"; then
5666 ac_cv_prog_SED="$SED" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_SED="sed "
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5679 done
5680 done
5681 IFS=$as_save_IFS
5685 SED=$ac_cv_prog_SED
5686 if test -n "$SED"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5688 $as_echo "$SED" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5695 if test "$SED" = ""; then
5696 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5698 # Extract the first word of "chmod", so it can be a program name with args.
5699 set dummy chmod; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_CHMOD+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -n "$CHMOD"; then
5706 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_CHMOD="chmod "
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5725 CHMOD=$ac_cv_prog_CHMOD
5726 if test -n "$CHMOD"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5728 $as_echo "$CHMOD" >&6; }
5729 else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5735 if test "$CHMOD" = ""; then
5736 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5738 # Extract the first word of "patch", so it can be a program name with args.
5739 set dummy patch; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_PATCH+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -n "$PATCH"; then
5746 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_PATCH="patch "
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5759 done
5760 done
5761 IFS=$as_save_IFS
5765 PATCH=$ac_cv_prog_PATCH
5766 if test -n "$PATCH"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5768 $as_echo "$PATCH" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5775 if test "$PATCH" = ""; then
5776 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5785 if test -n "$PYTHON"; then
5786 # If the user set $PYTHON, use it and don't search something else.
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5788 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5789 prog="import sys
5790 # split strings by '.' and convert to numeric. Append some zeros
5791 # because we need at least 4 digits for the hex conversion.
5792 # map returns an iterator in Python 3.0 and a list in 2.x
5793 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5794 minverhex = 0
5795 # xrange is not present in Python 3.0 and range returns an iterator
5796 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5797 sys.exit(sys.hexversion < minverhex)"
5798 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5799 ($PYTHON -c "$prog") >&5 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; then :
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5810 am_display_PYTHON=$PYTHON
5811 else
5812 # Otherwise, try each interpreter until we find one that satisfies
5813 # VERSION.
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5815 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5816 if ${am_cv_pathless_PYTHON+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5820 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5821 test "$am_cv_pathless_PYTHON" = none && break
5822 prog="import sys
5823 # split strings by '.' and convert to numeric. Append some zeros
5824 # because we need at least 4 digits for the hex conversion.
5825 # map returns an iterator in Python 3.0 and a list in 2.x
5826 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5827 minverhex = 0
5828 # xrange is not present in Python 3.0 and range returns an iterator
5829 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5830 sys.exit(sys.hexversion < minverhex)"
5831 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5832 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; then :
5836 break
5838 done
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5841 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5842 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5843 if test "$am_cv_pathless_PYTHON" = none; then
5844 PYTHON=:
5845 else
5846 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5847 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_path_PYTHON+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 case $PYTHON in
5854 [\\/]* | ?:[\\/]*)
5855 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5871 IFS=$as_save_IFS
5874 esac
5876 PYTHON=$ac_cv_path_PYTHON
5877 if test -n "$PYTHON"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5879 $as_echo "$PYTHON" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5887 am_display_PYTHON=$am_cv_pathless_PYTHON
5891 if test "$PYTHON" = :; then
5892 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5893 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5897 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5898 if ${am_cv_python_version+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5904 $as_echo "$am_cv_python_version" >&6; }
5905 PYTHON_VERSION=$am_cv_python_version
5909 PYTHON_PREFIX='${prefix}'
5911 PYTHON_EXEC_PREFIX='${exec_prefix}'
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5916 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5917 if ${am_cv_python_platform+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5923 $as_echo "$am_cv_python_platform" >&6; }
5924 PYTHON_PLATFORM=$am_cv_python_platform
5927 # Just factor out some code duplication.
5928 am_python_setup_sysconfig="\
5929 import sys
5930 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5931 # with python 3.x. See automake bug#10227.
5932 try:
5933 import sysconfig
5934 except ImportError:
5935 can_use_sysconfig = 0
5936 else:
5937 can_use_sysconfig = 1
5938 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5939 # <https://github.com/pypa/virtualenv/issues/118>
5940 try:
5941 from platform import python_implementation
5942 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5943 can_use_sysconfig = 0
5944 except ImportError:
5945 pass"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5949 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5950 if ${am_cv_python_pythondir+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test "x$prefix" = xNONE
5954 then
5955 am_py_prefix=$ac_default_prefix
5956 else
5957 am_py_prefix=$prefix
5959 am_cv_python_pythondir=`$PYTHON -c "
5960 $am_python_setup_sysconfig
5961 if can_use_sysconfig:
5962 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5963 else:
5964 from distutils import sysconfig
5965 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5966 sys.stdout.write(sitedir)"`
5967 case $am_cv_python_pythondir in
5968 $am_py_prefix*)
5969 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5970 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5973 case $am_py_prefix in
5974 /usr|/System*) ;;
5976 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5978 esac
5980 esac
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5984 $as_echo "$am_cv_python_pythondir" >&6; }
5985 pythondir=$am_cv_python_pythondir
5989 pkgpythondir=\${pythondir}/$PACKAGE
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5993 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5994 if ${am_cv_python_pyexecdir+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test "x$exec_prefix" = xNONE
5998 then
5999 am_py_exec_prefix=$am_py_prefix
6000 else
6001 am_py_exec_prefix=$exec_prefix
6003 am_cv_python_pyexecdir=`$PYTHON -c "
6004 $am_python_setup_sysconfig
6005 if can_use_sysconfig:
6006 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6007 else:
6008 from distutils import sysconfig
6009 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6010 sys.stdout.write(sitedir)"`
6011 case $am_cv_python_pyexecdir in
6012 $am_py_exec_prefix*)
6013 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6014 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6017 case $am_py_exec_prefix in
6018 /usr|/System*) ;;
6020 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6022 esac
6024 esac
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6028 $as_echo "$am_cv_python_pyexecdir" >&6; }
6029 pyexecdir=$am_cv_python_pyexecdir
6033 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6043 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6044 if ${ac_cv_lib_png_png_read_png+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 ac_check_lib_save_LIBS=$LIBS
6048 LIBS="-lpng $LIBS"
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply. */
6055 #ifdef __cplusplus
6056 extern "C"
6057 #endif
6058 char png_read_png ();
6060 main ()
6062 return png_read_png ();
6064 return 0;
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 ac_cv_lib_png_png_read_png=yes
6069 else
6070 ac_cv_lib_png_png_read_png=no
6072 rm -f core conftest.err conftest.$ac_objext \
6073 conftest$ac_exeext conftest.$ac_ext
6074 LIBS=$ac_check_lib_save_LIBS
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6077 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6078 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6079 cat >>confdefs.h <<_ACEOF
6080 #define HAVE_LIBPNG 1
6081 _ACEOF
6083 LIBS="-lpng $LIBS"
6087 if test "$ac_cv_lib_png_png_read_png" = ""; then
6088 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6091 FOR=for
6093 IF=if
6095 TEST=test
6097 CMP=cmp
6101 # Check for some includes for the X11 HIDD and the kernel
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6105 if ${ac_cv_path_GREP+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -z "$GREP"; then
6109 ac_path_GREP_found=false
6110 # Loop through the user's path and test for each of PROGNAME-LIST
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_prog in grep ggrep; do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6119 as_fn_executable_p "$ac_path_GREP" || continue
6120 # Check for GNU ac_path_GREP and select it if it is found.
6121 # Check for GNU $ac_path_GREP
6122 case `"$ac_path_GREP" --version 2>&1` in
6123 *GNU*)
6124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6126 ac_count=0
6127 $as_echo_n 0123456789 >"conftest.in"
6128 while :
6130 cat "conftest.in" "conftest.in" >"conftest.tmp"
6131 mv "conftest.tmp" "conftest.in"
6132 cp "conftest.in" "conftest.nl"
6133 $as_echo 'GREP' >> "conftest.nl"
6134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136 as_fn_arith $ac_count + 1 && ac_count=$as_val
6137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6138 # Best one so far, save it but keep looking for a better one
6139 ac_cv_path_GREP="$ac_path_GREP"
6140 ac_path_GREP_max=$ac_count
6142 # 10*(2^10) chars as input seems more than enough
6143 test $ac_count -gt 10 && break
6144 done
6145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 esac
6148 $ac_path_GREP_found && break 3
6149 done
6150 done
6151 done
6152 IFS=$as_save_IFS
6153 if test -z "$ac_cv_path_GREP"; then
6154 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6156 else
6157 ac_cv_path_GREP=$GREP
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6162 $as_echo "$ac_cv_path_GREP" >&6; }
6163 GREP="$ac_cv_path_GREP"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6167 $as_echo_n "checking for egrep... " >&6; }
6168 if ${ac_cv_path_EGREP+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6172 then ac_cv_path_EGREP="$GREP -E"
6173 else
6174 if test -z "$EGREP"; then
6175 ac_path_EGREP_found=false
6176 # Loop through the user's path and test for each of PROGNAME-LIST
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_prog in egrep; do
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6185 as_fn_executable_p "$ac_path_EGREP" || continue
6186 # Check for GNU ac_path_EGREP and select it if it is found.
6187 # Check for GNU $ac_path_EGREP
6188 case `"$ac_path_EGREP" --version 2>&1` in
6189 *GNU*)
6190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6192 ac_count=0
6193 $as_echo_n 0123456789 >"conftest.in"
6194 while :
6196 cat "conftest.in" "conftest.in" >"conftest.tmp"
6197 mv "conftest.tmp" "conftest.in"
6198 cp "conftest.in" "conftest.nl"
6199 $as_echo 'EGREP' >> "conftest.nl"
6200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6202 as_fn_arith $ac_count + 1 && ac_count=$as_val
6203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6204 # Best one so far, save it but keep looking for a better one
6205 ac_cv_path_EGREP="$ac_path_EGREP"
6206 ac_path_EGREP_max=$ac_count
6208 # 10*(2^10) chars as input seems more than enough
6209 test $ac_count -gt 10 && break
6210 done
6211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6212 esac
6214 $ac_path_EGREP_found && break 3
6215 done
6216 done
6217 done
6218 IFS=$as_save_IFS
6219 if test -z "$ac_cv_path_EGREP"; then
6220 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6222 else
6223 ac_cv_path_EGREP=$EGREP
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6229 $as_echo "$ac_cv_path_EGREP" >&6; }
6230 EGREP="$ac_cv_path_EGREP"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if ${ac_cv_header_stdc+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6246 main ()
6250 return 0;
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_header_stdc=yes
6255 else
6256 ac_cv_header_stdc=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <string.h>
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev/null 2>&1; then :
6270 else
6271 ac_cv_header_stdc=no
6273 rm -f conftest*
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then :
6287 else
6288 ac_cv_header_stdc=no
6290 rm -f conftest*
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <ctype.h>
6302 #include <stdlib.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 main ()
6318 int i;
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6322 return 2;
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_run "$LINENO"; then :
6328 else
6329 ac_cv_header_stdc=no
6331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6332 conftest.$ac_objext conftest.beam conftest.$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6347 inttypes.h stdint.h unistd.h
6348 do :
6349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355 _ACEOF
6359 done
6362 for ac_header in sys/ipc.h sys/shm.h \
6363 sys/mmap.h sys/mman.h sysexits.h \
6364 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6366 do :
6367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6370 cat >>confdefs.h <<_ACEOF
6371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372 _ACEOF
6376 done
6379 for ac_header in sys/mount.h
6380 do :
6381 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6383 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_SYS_MOUNT_H 1
6386 _ACEOF
6390 done
6393 ac_header_dirent=no
6394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6395 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6397 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6398 if eval \${$as_ac_Header+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 #include <sys/types.h>
6404 #include <$ac_hdr>
6407 main ()
6409 if ((DIR *) 0)
6410 return 0;
6412 return 0;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 eval "$as_ac_Header=yes"
6417 else
6418 eval "$as_ac_Header=no"
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 eval ac_res=\$$as_ac_Header
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6424 $as_echo "$ac_res" >&6; }
6425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6426 cat >>confdefs.h <<_ACEOF
6427 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6428 _ACEOF
6430 ac_header_dirent=$ac_hdr; break
6433 done
6434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6435 if test $ac_header_dirent = dirent.h; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6437 $as_echo_n "checking for library containing opendir... " >&6; }
6438 if ${ac_cv_search_opendir+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 ac_func_search_save_LIBS=$LIBS
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6445 /* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6448 #ifdef __cplusplus
6449 extern "C"
6450 #endif
6451 char opendir ();
6453 main ()
6455 return opendir ();
6457 return 0;
6459 _ACEOF
6460 for ac_lib in '' dir; do
6461 if test -z "$ac_lib"; then
6462 ac_res="none required"
6463 else
6464 ac_res=-l$ac_lib
6465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6467 if ac_fn_c_try_link "$LINENO"; then :
6468 ac_cv_search_opendir=$ac_res
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext
6472 if ${ac_cv_search_opendir+:} false; then :
6473 break
6475 done
6476 if ${ac_cv_search_opendir+:} false; then :
6478 else
6479 ac_cv_search_opendir=no
6481 rm conftest.$ac_ext
6482 LIBS=$ac_func_search_save_LIBS
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6485 $as_echo "$ac_cv_search_opendir" >&6; }
6486 ac_res=$ac_cv_search_opendir
6487 if test "$ac_res" != no; then :
6488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6494 $as_echo_n "checking for library containing opendir... " >&6; }
6495 if ${ac_cv_search_opendir+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 ac_func_search_save_LIBS=$LIBS
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 /* Override any GCC internal prototype to avoid an error.
6503 Use char because int might match the return type of a GCC
6504 builtin and then its argument prototype would still apply. */
6505 #ifdef __cplusplus
6506 extern "C"
6507 #endif
6508 char opendir ();
6510 main ()
6512 return opendir ();
6514 return 0;
6516 _ACEOF
6517 for ac_lib in '' x; do
6518 if test -z "$ac_lib"; then
6519 ac_res="none required"
6520 else
6521 ac_res=-l$ac_lib
6522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6524 if ac_fn_c_try_link "$LINENO"; then :
6525 ac_cv_search_opendir=$ac_res
6527 rm -f core conftest.err conftest.$ac_objext \
6528 conftest$ac_exeext
6529 if ${ac_cv_search_opendir+:} false; then :
6530 break
6532 done
6533 if ${ac_cv_search_opendir+:} false; then :
6535 else
6536 ac_cv_search_opendir=no
6538 rm conftest.$ac_ext
6539 LIBS=$ac_func_search_save_LIBS
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6542 $as_echo "$ac_cv_search_opendir" >&6; }
6543 ac_res=$ac_cv_search_opendir
6544 if test "$ac_res" != no; then :
6545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6552 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6553 if ${ac_cv_header_stat_broken+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <sys/types.h>
6559 #include <sys/stat.h>
6561 #if defined S_ISBLK && defined S_IFDIR
6562 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6563 #endif
6565 #if defined S_ISBLK && defined S_IFCHR
6566 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6567 #endif
6569 #if defined S_ISLNK && defined S_IFREG
6570 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6571 #endif
6573 #if defined S_ISSOCK && defined S_IFREG
6574 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6575 #endif
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 ac_cv_header_stat_broken=no
6580 else
6581 ac_cv_header_stat_broken=yes
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6586 $as_echo "$ac_cv_header_stat_broken" >&6; }
6587 if test $ac_cv_header_stat_broken = yes; then
6589 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6594 $as_echo_n "checking for ANSI C header files... " >&6; }
6595 if ${ac_cv_header_stdc+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #include <stdlib.h>
6601 #include <stdarg.h>
6602 #include <string.h>
6603 #include <float.h>
6606 main ()
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 ac_cv_header_stdc=yes
6615 else
6616 ac_cv_header_stdc=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 if test $ac_cv_header_stdc = yes; then
6621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 #include <string.h>
6626 _ACEOF
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 $EGREP "memchr" >/dev/null 2>&1; then :
6630 else
6631 ac_cv_header_stdc=no
6633 rm -f conftest*
6637 if test $ac_cv_header_stdc = yes; then
6638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <stdlib.h>
6643 _ACEOF
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "free" >/dev/null 2>&1; then :
6647 else
6648 ac_cv_header_stdc=no
6650 rm -f conftest*
6654 if test $ac_cv_header_stdc = yes; then
6655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6656 if test "$cross_compiling" = yes; then :
6658 else
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <ctype.h>
6662 #include <stdlib.h>
6663 #if ((' ' & 0x0FF) == 0x020)
6664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6666 #else
6667 # define ISLOWER(c) \
6668 (('a' <= (c) && (c) <= 'i') \
6669 || ('j' <= (c) && (c) <= 'r') \
6670 || ('s' <= (c) && (c) <= 'z'))
6671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6672 #endif
6674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6676 main ()
6678 int i;
6679 for (i = 0; i < 256; i++)
6680 if (XOR (islower (i), ISLOWER (i))
6681 || toupper (i) != TOUPPER (i))
6682 return 2;
6683 return 0;
6685 _ACEOF
6686 if ac_fn_c_try_run "$LINENO"; then :
6688 else
6689 ac_cv_header_stdc=no
6691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6692 conftest.$ac_objext conftest.beam conftest.$ac_ext
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6698 $as_echo "$ac_cv_header_stdc" >&6; }
6699 if test $ac_cv_header_stdc = yes; then
6701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6706 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6707 if ${ac_cv_header_sys_wait_h+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/wait.h>
6714 #ifndef WEXITSTATUS
6715 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6716 #endif
6717 #ifndef WIFEXITED
6718 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6719 #endif
6722 main ()
6724 int s;
6725 wait (&s);
6726 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6728 return 0;
6730 _ACEOF
6731 if ac_fn_c_try_compile "$LINENO"; then :
6732 ac_cv_header_sys_wait_h=yes
6733 else
6734 ac_cv_header_sys_wait_h=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6739 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6740 if test $ac_cv_header_sys_wait_h = yes; then
6742 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6747 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6748 if ${ac_cv_header_time+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <sys/time.h>
6755 #include <time.h>
6758 main ()
6760 if ((struct tm *) 0)
6761 return 0;
6763 return 0;
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 ac_cv_header_time=yes
6768 else
6769 ac_cv_header_time=no
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6774 $as_echo "$ac_cv_header_time" >&6; }
6775 if test $ac_cv_header_time = yes; then
6777 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6781 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6782 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6786 _ACEOF
6789 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6794 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6795 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6799 _ACEOF
6802 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6804 else
6805 case " $LIBOBJS " in
6806 *" fileblocks.$ac_objext "* ) ;;
6807 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6809 esac
6814 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6815 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_STRUCT_STAT_ST_RDEV 1
6819 _ACEOF
6822 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6828 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6829 if ${ac_cv_struct_tm+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <sys/types.h>
6835 #include <time.h>
6838 main ()
6840 struct tm tm;
6841 int *p = &tm.tm_sec;
6842 return !p;
6844 return 0;
6846 _ACEOF
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 ac_cv_struct_tm=time.h
6849 else
6850 ac_cv_struct_tm=sys/time.h
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6855 $as_echo "$ac_cv_struct_tm" >&6; }
6856 if test $ac_cv_struct_tm = sys/time.h; then
6858 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6862 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6863 #include <$ac_cv_struct_tm>
6866 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6868 cat >>confdefs.h <<_ACEOF
6869 #define HAVE_STRUCT_TM_TM_ZONE 1
6870 _ACEOF
6875 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6877 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6879 else
6880 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6882 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6883 ac_have_decl=1
6884 else
6885 ac_have_decl=0
6888 cat >>confdefs.h <<_ACEOF
6889 #define HAVE_DECL_TZNAME $ac_have_decl
6890 _ACEOF
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6893 $as_echo_n "checking for tzname... " >&6; }
6894 if ${ac_cv_var_tzname+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <time.h>
6900 #if !HAVE_DECL_TZNAME
6901 extern char *tzname[];
6902 #endif
6905 main ()
6907 return tzname[0][0];
6909 return 0;
6911 _ACEOF
6912 if ac_fn_c_try_link "$LINENO"; then :
6913 ac_cv_var_tzname=yes
6914 else
6915 ac_cv_var_tzname=no
6917 rm -f core conftest.err conftest.$ac_objext \
6918 conftest$ac_exeext conftest.$ac_ext
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6921 $as_echo "$ac_cv_var_tzname" >&6; }
6922 if test $ac_cv_var_tzname = yes; then
6924 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6929 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6930 if test "x$ac_cv_type_off_t" = xyes; then :
6932 else
6934 cat >>confdefs.h <<_ACEOF
6935 #define off_t long int
6936 _ACEOF
6940 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6941 if test "x$ac_cv_type_pid_t" = xyes; then :
6943 else
6945 cat >>confdefs.h <<_ACEOF
6946 #define pid_t int
6947 _ACEOF
6951 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6952 if test "x$ac_cv_type_size_t" = xyes; then :
6954 else
6956 cat >>confdefs.h <<_ACEOF
6957 #define size_t unsigned int
6958 _ACEOF
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6963 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6964 if ${ac_cv_type_uid_t+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 #include <sys/types.h>
6971 _ACEOF
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "uid_t" >/dev/null 2>&1; then :
6974 ac_cv_type_uid_t=yes
6975 else
6976 ac_cv_type_uid_t=no
6978 rm -f conftest*
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6982 $as_echo "$ac_cv_type_uid_t" >&6; }
6983 if test $ac_cv_type_uid_t = no; then
6985 $as_echo "#define uid_t int" >>confdefs.h
6988 $as_echo "#define gid_t int" >>confdefs.h
6993 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6994 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6996 cat >>confdefs.h <<_ACEOF
6997 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6998 _ACEOF
7004 # Look for some functions
7005 for ac_func in getpagesize kqueue statfs statvfs \
7006 clone kse_create rfork_thread thr_create sa_register \
7007 getcontext makecontext setcontext sigaltstack swapcontext
7008 do :
7009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7014 _ACEOF
7017 done
7023 for ac_header in $ac_header_list
7024 do :
7025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7029 cat >>confdefs.h <<_ACEOF
7030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7031 _ACEOF
7035 done
7044 for ac_func in getpagesize
7045 do :
7046 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7047 if test "x$ac_cv_func_getpagesize" = xyes; then :
7048 cat >>confdefs.h <<_ACEOF
7049 #define HAVE_GETPAGESIZE 1
7050 _ACEOF
7053 done
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7056 $as_echo_n "checking for working mmap... " >&6; }
7057 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test "$cross_compiling" = yes; then :
7061 ac_cv_func_mmap_fixed_mapped=no
7062 else
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 $ac_includes_default
7066 /* malloc might have been renamed as rpl_malloc. */
7067 #undef malloc
7069 /* Thanks to Mike Haertel and Jim Avera for this test.
7070 Here is a matrix of mmap possibilities:
7071 mmap private not fixed
7072 mmap private fixed at somewhere currently unmapped
7073 mmap private fixed at somewhere already mapped
7074 mmap shared not fixed
7075 mmap shared fixed at somewhere currently unmapped
7076 mmap shared fixed at somewhere already mapped
7077 For private mappings, we should verify that changes cannot be read()
7078 back from the file, nor mmap's back from the file at a different
7079 address. (There have been systems where private was not correctly
7080 implemented like the infamous i386 svr4.0, and systems where the
7081 VM page cache was not coherent with the file system buffer cache
7082 like early versions of FreeBSD and possibly contemporary NetBSD.)
7083 For shared mappings, we should conversely verify that changes get
7084 propagated back to all the places they're supposed to be.
7086 Grep wants private fixed already mapped.
7087 The main things grep needs to know about mmap are:
7088 * does it exist and is it safe to write into the mmap'd area
7089 * how to use it (BSD variants) */
7091 #include <fcntl.h>
7092 #include <sys/mman.h>
7094 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7095 char *malloc ();
7096 #endif
7098 /* This mess was copied from the GNU getpagesize.h. */
7099 #ifndef HAVE_GETPAGESIZE
7100 # ifdef _SC_PAGESIZE
7101 # define getpagesize() sysconf(_SC_PAGESIZE)
7102 # else /* no _SC_PAGESIZE */
7103 # ifdef HAVE_SYS_PARAM_H
7104 # include <sys/param.h>
7105 # ifdef EXEC_PAGESIZE
7106 # define getpagesize() EXEC_PAGESIZE
7107 # else /* no EXEC_PAGESIZE */
7108 # ifdef NBPG
7109 # define getpagesize() NBPG * CLSIZE
7110 # ifndef CLSIZE
7111 # define CLSIZE 1
7112 # endif /* no CLSIZE */
7113 # else /* no NBPG */
7114 # ifdef NBPC
7115 # define getpagesize() NBPC
7116 # else /* no NBPC */
7117 # ifdef PAGESIZE
7118 # define getpagesize() PAGESIZE
7119 # endif /* PAGESIZE */
7120 # endif /* no NBPC */
7121 # endif /* no NBPG */
7122 # endif /* no EXEC_PAGESIZE */
7123 # else /* no HAVE_SYS_PARAM_H */
7124 # define getpagesize() 8192 /* punt totally */
7125 # endif /* no HAVE_SYS_PARAM_H */
7126 # endif /* no _SC_PAGESIZE */
7128 #endif /* no HAVE_GETPAGESIZE */
7131 main ()
7133 char *data, *data2, *data3;
7134 const char *cdata2;
7135 int i, pagesize;
7136 int fd, fd2;
7138 pagesize = getpagesize ();
7140 /* First, make a file with some known garbage in it. */
7141 data = (char *) malloc (pagesize);
7142 if (!data)
7143 return 1;
7144 for (i = 0; i < pagesize; ++i)
7145 *(data + i) = rand ();
7146 umask (0);
7147 fd = creat ("conftest.mmap", 0600);
7148 if (fd < 0)
7149 return 2;
7150 if (write (fd, data, pagesize) != pagesize)
7151 return 3;
7152 close (fd);
7154 /* Next, check that the tail of a page is zero-filled. File must have
7155 non-zero length, otherwise we risk SIGBUS for entire page. */
7156 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7157 if (fd2 < 0)
7158 return 4;
7159 cdata2 = "";
7160 if (write (fd2, cdata2, 1) != 1)
7161 return 5;
7162 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7163 if (data2 == MAP_FAILED)
7164 return 6;
7165 for (i = 0; i < pagesize; ++i)
7166 if (*(data2 + i))
7167 return 7;
7168 close (fd2);
7169 if (munmap (data2, pagesize))
7170 return 8;
7172 /* Next, try to mmap the file at a fixed address which already has
7173 something else allocated at it. If we can, also make sure that
7174 we see the same garbage. */
7175 fd = open ("conftest.mmap", O_RDWR);
7176 if (fd < 0)
7177 return 9;
7178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7180 return 10;
7181 for (i = 0; i < pagesize; ++i)
7182 if (*(data + i) != *(data2 + i))
7183 return 11;
7185 /* Finally, make sure that changes to the mapped area do not
7186 percolate back to the file as seen by read(). (This is a bug on
7187 some variants of i386 svr4.0.) */
7188 for (i = 0; i < pagesize; ++i)
7189 *(data2 + i) = *(data2 + i) + 1;
7190 data3 = (char *) malloc (pagesize);
7191 if (!data3)
7192 return 12;
7193 if (read (fd, data3, pagesize) != pagesize)
7194 return 13;
7195 for (i = 0; i < pagesize; ++i)
7196 if (*(data + i) != *(data3 + i))
7197 return 14;
7198 close (fd);
7199 return 0;
7201 _ACEOF
7202 if ac_fn_c_try_run "$LINENO"; then :
7203 ac_cv_func_mmap_fixed_mapped=yes
7204 else
7205 ac_cv_func_mmap_fixed_mapped=no
7207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7208 conftest.$ac_objext conftest.beam conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7213 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7214 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7216 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7219 rm -f conftest.mmap conftest.txt
7224 aros_config_cflags="-Wall -Werror-implicit-function-declaration -Wno-parentheses"
7225 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7226 aros_config_ldflags=""
7228 aros_shared_default=yes
7230 aros_shared_cflags="-fPIC"
7231 aros_shared_aflags=""
7232 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7233 aros_kernel_ldflags="-Wl,-rpath,./lib"
7235 aros_kernel_ar_flags="cr"
7236 aros_target_ar_flags="cr"
7237 aros_target_nm_flags="-C -ul"
7238 aros_target_strip_flags="--strip-unneeded -R.comment"
7240 aros_compiler_libs=
7241 aros_arch_libs=
7243 aros_target_genmap="-Wl,-Map -Xlinker"
7245 # Native flavour stuff
7246 aros_serial_debug="0"
7248 # Palm native flavour stuff
7249 aros_palm_debug_hack="0"
7251 # Unix flavour stuff
7252 aros_nesting_supervisor="0"
7254 # Collect-aros stuff: "-ius" to ignore undefined symbols
7255 ignore_undefined_symbols=""
7257 # Check for X11 by default
7258 need_x11="auto"
7260 #-----------------------------------------------------------------------------
7263 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7264 # it switched on by default, and we use the host compiler, so it compiles AROS
7265 # code with this enabled resulting in link failures as we don't have support
7266 # for it.
7268 # We use two methods to disable it. For the host compiler (used to compile
7269 # some hosted modules), we test to see if the compiler supports stack
7270 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7271 # work on all platforms.
7273 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7274 # (this is done unconditionally, as it should have no effect on compilers
7275 # without the stack protection feature). This may be specific to the way that
7276 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7277 # strong enough to disable it in a generic way though, so we'll live with it
7278 # until another vendor ships GCC with it enabled in a different way, and deal
7279 # with it then.
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7283 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7284 save_cflags="$CFLAGS"
7285 CFLAGS="$CFLAGS -fno-stack-protector"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7290 main ()
7294 return 0;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 use_no_stack_protector="yes"
7299 else
7300 use_no_stack_protector="no"
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7304 $as_echo "$use_no_stack_protector" >&6; }
7305 if test "x-$use_no_stack_protector" = "x-yes" ; then
7306 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7308 CFLAGS="$save_cflags"
7310 #-----------------------------------------------------------------------------
7312 # Disable pointer-signedness warnings if the compiler recognises the option
7313 # (this only works for the host compiler at the moment)
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7316 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7317 save_cflags="$CFLAGS"
7318 CFLAGS="$CFLAGS -Wno-pointer-sign"
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 main ()
7327 return 0;
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331 use_no_sign_warning="yes"
7332 else
7333 use_no_sign_warning="no"
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7337 $as_echo "$use_no_sign_warning" >&6; }
7338 if test "x-$use_no_sign_warning" = "x-yes" ; then
7339 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7341 CFLAGS="$save_cflags"
7343 #-----------------------------------------------------------------------------
7345 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7348 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7349 save_cflags="$CFLAGS"
7350 CFLAGS="$CFLAGS -fgnu89-inline"
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7355 main ()
7359 return 0;
7361 _ACEOF
7362 if ac_fn_c_try_compile "$LINENO"; then :
7363 use_gnu89_inline="yes"
7364 else
7365 use_gnu89_inline="no"
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7369 $as_echo "$use_gnu89_inline" >&6; }
7370 if test "x-$use_gnu89_inline" = "x-yes" ; then
7371 gnu89_inline="-fgnu89-inline"
7373 CFLAGS="$save_cflags"
7375 #-----------------------------------------------------------------------------
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7378 $as_echo_n "checking for type of build... " >&6; }
7379 # Check whether --enable-build_type was given.
7380 if test "${enable_build_type+set}" = set; then :
7381 enableval=$enable_build_type; build_type=$enableval
7382 else
7383 build_type="personal"
7387 if test "$build_type" = "nightly"; then
7388 build_type_string="NIGHTLY"
7389 elif test "$build_type" = "snapshot"; then
7390 build_type_string="SNAPSHOT"
7391 elif test "$build_type" = "milestone"; then
7392 build_type_string="MILESTONE"
7393 elif test "$build_type" = "release"; then
7394 build_type_string="RELEASE"
7395 else
7396 build_type_string="PERSONAL"
7397 build_type="personal"
7400 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7403 $as_echo "$build_type" >&6; }
7405 #-----------------------------------------------------------------------------
7406 all_debug_types="messages stack modules mungwall symbols"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7409 $as_echo_n "checking which debug types to enable... " >&6; }
7410 # Check whether --enable-debug was given.
7411 if test "${enable_debug+set}" = set; then :
7412 enableval=$enable_debug; debug="$enableval"
7413 else
7414 debug=""
7418 if test "$debug" = "" -o "$debug" = "no"; then
7419 debug="none"
7420 elif test "$debug" = "yes"; then
7421 debug="all"
7424 if test "$debug" = "all" ; then
7425 debug="messages stack modules symbols"
7426 for d in $all_debug_types; do
7427 export aros_${d}_debug="1"
7428 done
7429 else
7430 for d in $all_debug_types; do
7431 export aros_${d}_debug="0"
7432 done
7435 if test "$debug" != "none"; then
7436 debug=`echo $debug | sed s/,/\ /g`
7437 for d in $debug; do
7438 found="0"
7439 for d2 in $all_debug_types; do
7440 if test "$d2" = "$d"; then
7441 found="1"
7442 break
7444 done
7445 if test "$found" = "0"; then
7446 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7448 export aros_${d}_debug="1"
7449 done
7450 aros_debug="yes"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7453 $as_echo "$debug" >&6; }
7455 if test "$aros_messages_debug" = "1"; then
7456 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7457 else
7458 aros_messages_debug=""
7460 if test "$aros_symbols_debug" = "1"; then
7461 aros_symbols_debug="-g"
7462 else
7463 aros_symbols_debug=""
7466 # These are the flags to pass when compiling debugged programs
7467 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7468 aros_debug_aflags=""
7469 aros_debug_ldflags="$aros_symbols_debug"
7471 #-----------------------------------------------------------------------------
7472 # Checking for distcc and ccache.
7474 # Always apply the transforms in this particular order. Basically you should
7475 # always run 'ccache distcc compiler' in that order for the best performance.
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7478 $as_echo_n "checking whether to enable distcc... " >&6; }
7479 # Check whether --enable-distcc was given.
7480 if test "${enable_distcc+set}" = set; then :
7481 enableval=$enable_distcc; distcc="$enableval"
7482 else
7483 distcc="no"
7486 if test "$distcc" != "" -a "$distcc" != "no"; then
7487 # AC_CHECK_PROG will print out the result in this case
7488 # Extract the first word of "distcc", so it can be a program name with args.
7489 set dummy distcc; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_path_DISTCC+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 case $DISTCC in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7511 done
7512 done
7513 IFS=$as_save_IFS
7515 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7517 esac
7519 DISTCC=$ac_cv_path_DISTCC
7520 if test -n "$DISTCC"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7522 $as_echo "$DISTCC" >&6; }
7523 else
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7535 $as_echo_n "checking whether to enable ccache... " >&6; }
7536 # Check whether --enable-ccache was given.
7537 if test "${enable_ccache+set}" = set; then :
7538 enableval=$enable_ccache; ccache="$enableval"
7539 else
7540 ccache="no"
7543 if test "$ccache" != "" -a "$ccache" != "no"; then
7544 # AC_CHECK_PROG will print out the result in this case
7545 # Extract the first word of "ccache", so it can be a program name with args.
7546 set dummy ccache; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_CCACHE+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 if test -n "$CCACHE"; then
7553 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_CCACHE="ccache"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7566 done
7567 done
7568 IFS=$as_save_IFS
7572 CCACHE=$ac_cv_prog_CCACHE
7573 if test -n "$CCACHE"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7575 $as_echo "$CCACHE" >&6; }
7576 else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 #-----------------------------------------------------------------------------
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7589 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7591 # Check whether --with-kernel-gcc-version was given.
7592 if test "${with_kernel_gcc_version+set}" = set; then :
7593 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7594 else
7595 kernel_tool_version=""
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7599 $as_echo "$kernel_tool_version" >&6; }
7601 #-----------------------------------------------------------------------------
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7603 $as_echo_n "checking what optimization flags to use... " >&6; }
7605 # Check whether --with-optimization was given.
7606 if test "${with_optimization+set}" = set; then :
7607 withval=$with_optimization; optimization="$withval"
7608 else
7609 optimization="unknown"
7612 if test "$optimization" = "unknown"; then
7613 if test "$debug" != "none"; then
7614 optimization="-O0"
7615 else
7616 optimization="-O2"
7619 aros_optimization_cflags="$optimization"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7621 $as_echo "$optimization" >&6; }
7623 #-----------------------------------------------------------------------------
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7625 $as_echo_n "checking what paranoia flags to use... " >&6; }
7627 # Check whether --with-paranoia was given.
7628 if test "${with_paranoia+set}" = set; then :
7629 withval=$with_paranoia; paranoia_flags="$withval"
7630 else
7631 paranoia_flags="default"
7634 if test "$paranoia_flags" = "default"; then
7635 paranoia_flags=""
7636 else if test "$paranoia_flags" = "yes"; then
7637 paranoia_flags="-Wall -Werror"
7638 fi fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7640 $as_echo "$paranoia_flags" >&6; }
7641 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7643 #-----------------------------------------------------------------------------
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7645 $as_echo_n "checking what target variant to enable... " >&6; }
7646 # Check whether --enable-target_variant was given.
7647 if test "${enable_target_variant+set}" = set; then :
7648 enableval=$enable_target_variant; target_variant=$enableval
7649 else
7650 target_variant=""
7653 if test "$target_variant" = ""; then
7654 aros_target_variant=""
7655 aros_target_suffix=""
7656 enableval="none"
7657 else
7658 aros_target_variant="$target_variant"
7659 aros_target_suffix="-$target_variant"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7662 $as_echo "$enableval" >&6; }
7664 #-----------------------------------------------------------------------------
7665 # Target-specific defaults. You can override then on a per-target basis.
7667 # Bootloader name. Currently used by PC target.
7668 target_bootloader="none"
7669 ENABLE_EXECSMP=
7671 #-----------------------------------------------------------------------------
7672 # Additional options for some specific targets
7674 case "$aros_target_variant" in
7675 ios)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7677 $as_echo_n "checking XCode path... " >&6; }
7679 # Check whether --with-xcode was given.
7680 if test "${with_xcode+set}" = set; then :
7681 withval=$with_xcode; aros_xcode_path="$withval"
7682 else
7683 aros_xcode_path="/Developer"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7687 $as_echo "$aros_xcode_path" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7690 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7692 # Check whether --with-sdk-version was given.
7693 if test "${with_sdk_version+set}" = set; then :
7694 withval=$with_sdk_version; aros_sdk_version="$withval"
7695 else
7696 aros_sdk_version="4.1"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7700 $as_echo "$aros_sdk_version" >&6; }
7704 "android")
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7706 $as_echo_n "checking Android SDK path... " >&6; }
7708 # Check whether --with-sdk was given.
7709 if test "${with_sdk+set}" = set; then :
7710 withval=$with_sdk; aros_android_sdk="$withval"
7711 else
7712 aros_android_sdk=$default_android_sdk
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7716 $as_echo "$aros_android_sdk" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7719 $as_echo_n "checking Android NDK path... " >&6; }
7721 # Check whether --with-ndk was given.
7722 if test "${with_ndk+set}" = set; then :
7723 withval=$with_ndk; aros_android_ndk="$withval"
7724 else
7725 aros_android_ndk="none"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7729 $as_echo "$aros_android_ndk" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7732 $as_echo_n "checking what Android SDK version to use... " >&6; }
7734 # Check whether --with-sdk-version was given.
7735 if test "${with_sdk_version+set}" = set; then :
7736 withval=$with_sdk_version; aros_sdk_version="$withval"
7737 else
7738 aros_sdk_version="12"
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7742 $as_echo "$aros_sdk_version" >&6; }
7744 aros_android_level=android-$aros_sdk_version
7745 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7746 echo "Platform $aros_android_level is not installed in your SDK"
7747 echo "Use --with-sdk-version=<API level number> to select another platform version"
7748 echo "You can check what plaform versions are installed in your SDK"
7749 echo "by examining contents of $aros_android_sdk/platforms directory"
7750 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7753 export PATH="$aros_android_sdk/tools:$PATH"
7754 # Extract the first word of "$android_tool", so it can be a program name with args.
7755 set dummy $android_tool; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_path_android_tool+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 case $android_tool in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7779 IFS=$as_save_IFS
7782 esac
7784 android_tool=$ac_cv_path_android_tool
7785 if test -n "$android_tool"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7787 $as_echo "$android_tool" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7794 if test "$android_tool" = ""; then
7795 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7798 if test "$aros_android_ndk" != "none"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7800 $as_echo_n "checking what Android NDK version to use... " >&6; }
7802 # Check whether --with-ndk-version was given.
7803 if test "${with_ndk_version+set}" = set; then :
7804 withval=$with_ndk_version; aros_ndk_version="$withval"
7805 else
7806 aros_ndk_version="9"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7810 $as_echo "$aros_ndk_version" >&6; }
7813 # Extract the first word of "ant", so it can be a program name with args.
7814 set dummy ant; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_path_ant+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 case $ant in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7836 done
7837 done
7838 IFS=$as_save_IFS
7841 esac
7843 ant=$ac_cv_path_ant
7844 if test -n "$ant"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7846 $as_echo "$ant" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7853 if test "$ant" = ""; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7855 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7859 $as_echo_n "checking Build debug or release apk... " >&6; }
7861 # Check whether --with-apk-version was given.
7862 if test "${with_apk_version+set}" = set; then :
7863 withval=$with_apk_version; aros_android_antapk=$withval
7864 else
7865 aros_android_antapk=release
7868 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7869 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7872 $as_echo "$aros_android_antapk" >&6; }
7874 if test "$host_os" = "mingw32"; then
7875 android_tool="cmd //c $android_tool"
7878 need_dlopen="no"
7881 esac
7883 #-----------------------------------------------------------------------------
7884 # External toolchains
7885 kernel_tool_prefix="none"
7886 aros_tool_prefix="none"
7887 elf_tool_prefix="${target_cpu}-elf-"
7889 # This is the target configuration switch.
7890 case "$target_os" in
7891 linux*)
7892 aros_target_arch="linux"
7893 aros_target_family="unix"
7894 case "$target_cpu" in
7895 *m68k*)
7896 aros_target_cpu="m68k"
7897 aros_object_format="m68kelf"
7898 aros_flavour="emulcompat"
7899 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7900 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7901 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7902 gcc_target_cpu="mc68000"
7904 *i?86*)
7905 aros_target_cpu="i386"
7906 aros_object_format="elf_i386"
7907 aros_flavour="emulation"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7909 aros_kernel_ldflags="-Wl,-melf_i386"
7910 aros_nominal_depth=8
7911 gcc_target_cpu="i386"
7912 pci_hidd_target="hidd-pci-linux"
7913 android_tool_dir_prefix="x86"
7914 android_tool_prefix="i686-android-linux"
7915 android_ndk_arch="x86"
7917 *x86_64*)
7918 aros_target_cpu="x86_64"
7919 aros_object_format="elf_x86_64"
7920 aros_flavour="emulation"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7922 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7923 aros_nominal_depth=8
7924 pci_hidd_target="hidd-pci-linux"
7926 *powerpc*)
7927 aros_target_cpu="ppc"
7928 aros_object_format="elf32ppc"
7929 aros_flavour="emulation"
7930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7931 aros_nominal_depth=8
7932 gcc_target_cpu="ppc"
7934 # TODO
7935 # Same as powerpc, but I need this for the nightly build to work again.
7936 # Actually, the nightly should be made working with powerpc target.
7937 # That just was too much work for the moment, another week or two.
7938 *ppc*)
7939 aros_target_cpu="ppc"
7940 aros_object_format="elf32ppc"
7941 aros_flavour="emulation"
7942 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7943 aros_nominal_depth=8
7944 gcc_target_cpu="ppc"
7946 *armhf*)
7947 aros_target_cpu="arm"
7948 target_cpu="arm"
7949 aros_object_format="armelf_aros"
7950 aros_flavour="emulation"
7951 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7952 gcc_target_cpu="arm"
7953 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7954 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7955 aros_arch_libs="-laeabi"
7956 gcc_default_float_abi="hard"
7957 android_tool_dir_prefix="arm-linux-androideabi"
7958 android_tool_prefix="arm-linux-androideabi"
7959 android_ndk_arch="arm"
7960 kernel_tool_prefix="arm-linux-gnueabihf-"
7962 *arm*)
7963 aros_target_cpu="arm"
7964 aros_object_format="armelf_aros"
7965 aros_flavour="emulation"
7966 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7967 gcc_target_cpu="arm"
7968 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7969 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7970 aros_arch_libs="-laeabi"
7971 android_tool_dir_prefix="arm-linux-androideabi"
7972 android_tool_prefix="arm-linux-androideabi"
7973 android_ndk_arch="arm"
7974 kernel_tool_prefix="arm-linux-gnueabi-"
7977 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7979 esac
7980 case "$aros_target_variant" in
7981 android)
7983 if test "$android_ndk_arch" = ""; then
7984 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7987 aros_nominal_width=320
7988 aros_nominal_height=480
7989 if test "$aros_android_ndk" = "none"; then
7990 aros_kernel_cflags="-mandroid"
7991 aros_kernel_ldflags="-mandroid"
7992 CFLAGS="-mandroid"
7993 else
7994 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7995 kernel_tool_version=""
7996 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7997 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7998 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7999 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8000 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8002 need_x11=no
8003 unixgfx_hidd_target=kernel-hidd-androidgfx
8004 # Disable implicit PIC mode
8005 aros_target_cflags="$aros_target_cflags -fno-pic"
8006 kernel_tool_prefix="$android_tool_prefix-"
8008 esac
8012 aros_target_arch="pc"
8013 aros_shared_default="no"
8014 target_bootloader="grub2"
8015 case "$target_cpu" in
8016 *i?86*)
8017 aros_target_cpu="i386"
8020 if test "$aros_object_format" = "" ; then
8021 aros_object_format="elf_i386"
8023 aros_flavour="standalone"
8024 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8025 aros_kernel_ldflags="-Wl,-melf_i386"
8026 aros_nominal_width=640
8027 aros_nominal_height=480
8028 gcc_target_cpu="i386"
8030 *x86_64*)
8031 aros_target_cpu="x86_64"
8032 aros_serial_debug=1
8033 if test "$aros_object_format" = "" ; then
8034 aros_object_format="elf_x86_64"
8036 aros_flavour="standalone"
8037 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8038 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8039 aros_kernel_ldflags=""
8040 aros_nominal_width=640
8041 aros_nominal_height=480
8042 case "$aros_target_variant" in
8043 smp)
8044 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8046 esac
8049 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8051 esac
8054 prep)
8055 aros_target_arch="prep"
8056 aros_shared_default="no"
8057 aros_target_cpu="ppc"
8058 aros_object_format="elf32ppc"
8059 aros_flavour="ppcnative"
8060 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8061 aros_kernel_ldflags=""
8062 aros_nominal_width=640
8063 aros_nominal_height=480
8064 gcc_target_cpu="ppc"
8067 freebsd*)
8068 aros_target_arch="freebsd"
8069 aros_target_family="unix"
8070 aros_target_cpu="i386"
8071 aros_flavour="emulation"
8072 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8073 gcc_target_cpu="i386"
8075 aros_target_strip_flags="-x"
8078 darwin*)
8079 aros_target_arch="darwin"
8080 aros_target_family="unix"
8081 aros_flavour="emulation"
8082 case "$target_cpu" in
8083 *i?86*)
8084 aros_ios_platform="iPhoneSimulator"
8085 aros_target_cpu="i386"
8086 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8087 aros_kernel_ldflags=""
8088 aros_macosx_version="10.4"
8089 aros_nominal_depth=8
8090 gcc_target_cpu="i386"
8091 aros_object_format="elf_i386"
8092 aros_kernel_ar_flags="-cr"
8093 aros_target_strip_flags="-x"
8094 kernel_tool_flags="-m32"
8096 *x86_64*)
8097 aros_target_cpu="x86_64"
8098 aros_object_format="elf_x86_64"
8099 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8100 aros_macosx_version="10.6"
8101 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8102 aros_kernel_cflags="-m64"
8103 aros_kernel_ldflags="-m64"
8104 aros_target_cflags="-mcmodel=large"
8105 aros_nominal_depth=8
8106 aros_kernel_ar="ar"
8107 aros_kernel_ar_flags="-cr"
8108 aros_kernel_ld="ld"
8109 aros_kernel_as="as"
8110 aros_kernel_ranlib="ranlib"
8111 aros_kernel_nm="nm"
8112 aros_kernel_strip="strip"
8113 kernel_tool_prefix="i686-apple-darwin10-"
8115 *ppc*)
8116 aros_target_cpu="ppc"
8117 aros_object_format="elf32ppc"
8118 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8119 aros_kernel_ldflags=""
8120 aros_macosx_version="10.0"
8121 aros_nominal_depth=8
8122 gcc_target_cpu="ppc"
8123 aros_kernel_ar="ar"
8124 aros_kernel_ar_flags="-cr"
8125 aros_kernel_ld="ld -arch ppc"
8126 aros_kernel_as="as -arch ppc"
8127 aros_kernel_ranlib="ranlib -arch ppc"
8128 aros_kernel_nm="nm -arch ppc"
8129 aros_kernel_strip="strip -arch ppc"
8130 kernel_tool_prefix="powerpc-apple-darwin10-"
8132 *arm*)
8133 aros_ios_platform="iPhoneOS"
8134 aros_target_cpu="arm"
8135 aros_object_format="armelf_aros"
8136 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8137 aros_arch_libs="-laeabi"
8138 aros_nominal_depth=8
8139 gcc_target_cpu="arm"
8140 aros_kernel_ar="ar"
8141 aros_kernel_ar_flags="-cr"
8142 aros_kernel_ld="ld -arch arm"
8143 aros_kernel_ranlib="ranlib -arch arm"
8144 kernel_tool_prefix="arm-apple-darwin10-"
8145 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8148 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8150 esac
8151 case "$aros_target_variant" in
8152 ios)
8153 aros_ios_version="3.0"
8154 aros_nominal_width=320
8155 aros_nominal_height=480
8156 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8157 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8158 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8159 need_x11=no
8160 # This is here because it may depend on iOS or SDK version
8161 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8162 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8163 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8166 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8167 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8169 esac
8172 dragonfly*)
8173 aros_target_arch="dragonfly"
8174 aros_target_family="unix"
8175 aros_flavour="emulation"
8176 case "$target_cpu" in
8177 *i?86*)
8178 aros_target_cpu="i386"
8179 aros_object_format="elf_i386"
8180 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8182 *x86_64*)
8183 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8184 aros_target_cpu="x86_64"
8185 aros_object_format="elf_x86_64"
8186 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8189 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8191 esac
8194 netbsd*)
8195 aros_target_arch="netbsd"
8196 aros_target_family="unix"
8197 case "$target_cpu" in
8198 *m68k*)
8199 aros_target_cpu="m68k"
8200 aros_object_format="m68kelf"
8201 aros_flavour="emulcompat"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8203 gcc_target_cpu="mc68000"
8205 *i?86*)
8206 aros_target_cpu="i386"
8207 aros_object_format="elf_i386"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8210 aros_nominal_depth=8
8211 gcc_target_cpu="i386"
8214 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8216 esac
8217 aros_target_genmap="-Wl,-M -Xlinker >"
8218 aros_flavour="emulation"
8219 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8222 openbsd*)
8223 aros_target_arch="openbsd"
8224 aros_target_family="unix"
8225 case "$target_cpu" in
8226 *i?86*)
8227 aros_target_cpu="i386"
8228 aros_object_format="elf_i386"
8229 aros_flavour="emulation"
8230 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8231 gcc_target_cpu="i386"
8234 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8236 esac
8237 aros_target_genmap="-Wl,-M -Xlinker >"
8238 aros_target_nm_flags="-u"
8239 aros_flavour="emulation"
8242 solaris*)
8243 aros_target_arch="solaris"
8244 aros_target_family="unix"
8245 case "$target_cpu" in
8246 *i?86*)
8247 aros_target_cpu="i386"
8248 aros_object_format="elf_i386"
8249 aros_flavour="emulation"
8250 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8251 aros_nominal_depth=8
8252 gcc_target_cpu="i386"
8254 *sparc*)
8255 aros_target_cpu="sparc"
8256 aros_object_format="elf_sparc"
8257 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8258 gcc_target_cpu="sparc"
8261 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8263 esac
8264 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8265 aros_flavour="emulation"
8268 morphos*)
8269 aros_target_arch="morphos"
8270 aros_shared_default="no"
8271 aros_target_cpu="ppc"
8272 aros_object_format="elf_ppc"
8273 aros_flavour="nativecompat"
8274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8275 gcc_target_cpu="ppc"
8278 sam440)
8279 aros_target_arch="sam440"
8280 aros_shared_default="no"
8281 aros_target_cpu="ppc"
8282 aros_object_format="elf32ppc"
8283 aros_flavour="ppcnative"
8284 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8285 aros_kernel_ldflags=""
8286 aros_nominal_width=1024
8287 aros_nominal_height=768
8288 aros_nominal_depth=24
8289 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8290 gcc_target_cpu="powerpc"
8293 efika)
8294 aros_target_arch="efika"
8295 aros_shared_default="no"
8296 aros_target_cpu="arm"
8297 aros_object_format="armelf_aros"
8298 aros_flavour="standalone"
8299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8300 aros_kernel_ldflags=""
8301 aros_nominal_width=1024
8302 aros_nominal_height=600
8303 aros_arch_libs="-laeabi"
8304 gcc_default_cpu="armv7-a"
8305 gcc_default_fpu="vfpv3"
8306 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8307 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8308 aros_optimization_cflags="$aros_optimization_cflags -Os"
8309 case "$target_cpu" in
8310 *armhf*)
8311 gcc_default_float_abi="hard"
8312 target_cpu=arm
8313 aros_target_cpu=arm
8315 *arm*)
8316 gcc_default_float_abi="softfp"
8319 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8321 esac
8324 chrp)
8325 aros_target_arch="chrp"
8326 aros_shared_default="no"
8327 aros_target_cpu="ppc"
8328 aros_object_format="elf32ppc"
8329 aros_flavour="ppcnative"
8330 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8331 aros_kernel_ldflags=""
8332 aros_nominal_width=640
8333 aros_nominal_height=480
8334 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8335 gcc_target_cpu="powerpc"
8336 case "$aros_target_variant" in
8337 efika)
8338 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8340 esac
8343 r*pi)
8344 aros_flavour="standalone"
8345 aros_target_arch="raspi"
8346 aros_target_cpu="arm"
8347 aros_object_format="armelf_aros"
8348 aros_shared_default="no"
8349 aros_arch_libs="-laeabi"
8351 gcc_default_cpu="armv6zk"
8352 gcc_default_cpu_tune="arm1176jzf-s"
8354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8355 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8356 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8357 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8358 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8359 case "$aros_target_variant" in
8360 smp)
8361 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8363 esac
8366 stm32f7_discovery)
8367 aros_flavour="standalone"
8368 aros_target_arch="stm32f7_discovery"
8369 aros_target_cpu="arm"
8370 aros_target_cpu_mode="thumb2"
8371 aros_object_format="armelf_aros"
8372 aros_shared_default="no"
8374 # stm32f7 has DSP opcode support
8375 gcc_default_cpu="armv7e-m"
8376 # gcc_default_cpu="armv7-m"
8377 gcc_default_cpu_tune="cortex-m7"
8378 gcc_default_fpu="fpv4-sp-d16"
8379 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8380 # gcc_default_fpu="fpv5-sp-d16"
8381 gcc_default_float_abi="hard"
8383 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8386 amiga*)
8387 aros_target_arch="amiga"
8388 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8389 aros_shared_default="no"
8391 case "$target_cpu" in
8392 *m68k*)
8393 # Check whether --enable-amigaos_compliance was given.
8394 if test "${enable_amigaos_compliance+set}" = set; then :
8395 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8398 aros_enable_mmu=no
8399 aros_target_cpu="m68k"
8400 aros_object_format="m68kelf"
8401 aros_flavour="standcompat"
8402 gcc_target_cpu="m68000"
8403 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8404 aros_optimization_cflags="$aros_optimization_cflags -Os"
8405 aros_config_aflags="$aros_config_aflags"
8406 aros_target_strip_flags="-R.comment --strip-debug"
8407 aros_nominal_width=640
8408 aros_nominal_height=256
8409 aros_nominal_depth=2
8411 *ppc*)
8412 aros_cpu="ppc"
8413 aros_flavour="native"
8414 gcc_target_cpu="ppc"
8417 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8419 esac
8422 mingw*)
8423 aros_target_arch="mingw32"
8424 aros_shared_default="no"
8425 aros_flavour="emulation"
8426 aros_shared_cflags=""
8427 need_crosstools="yes"
8428 need_dlopen="no"
8429 rescomp="windres"
8430 case "$target_cpu" in
8431 *i?86*)
8432 aros_target_cpu="i386"
8433 aros_object_format="elf_i386"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8435 aros_nominal_depth=8
8436 gcc_target_cpu="i386"
8438 kernel_tool_prefix="i386-mingw32-"
8440 *x86_64*)
8441 aros_target_cpu="x86_64"
8442 aros_object_format="elf_x86_64"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8444 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8445 aros_nominal_depth=8
8446 kernel_tool_prefix="x86_64-w64-mingw32-"
8448 *arm*)
8449 aros_target_cpu="arm"
8450 aros_object_format="armelf_aros"
8451 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8452 aros_arch_libs="-laeabi"
8453 aros_nominal_depth=8
8454 gcc_target_cpu="arm"
8455 gcc_default_float_abi="soft"
8456 kernel_tool_prefix="arm-mingw32ce-"
8457 aros_nominal_width=160
8458 aros_nominal_height=160
8461 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8463 esac
8464 if test $host_os = "cygwin"; then
8465 aros_kernel_cflags="-mno-cygwin"
8468 pp*)
8469 aros_target_arch="pp"
8470 aros_shared_default="no"
8471 case "$target_cpu" in
8472 *m68k*)
8473 aros_target_cpu="m68k"
8474 aros_object_format="m68kelf"
8475 aros_flavour="palmnative"
8476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8477 aros_nominal_width=160
8478 aros_nominal_height=160
8479 aros_nominal_depth=1
8480 aros_target_ar_flags="cru"
8481 aros_compiler_libs="-lgcc1"
8482 aros_shared_default=no
8483 aros_shared_cflags="-fpic"
8484 aros_shared_aflags=""
8485 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8486 aros_kernel_ldflags="-Wl,-rpath,./lib"
8487 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8488 aros_debug_aflags=""
8489 aros_debug_ldflags="$aros_symbols_debug"
8490 aros_mungwall_debug="0"
8491 aros_modules_debug="0"
8492 gcc_target_cpu="mc68000"
8493 ignore_undefined_symbols="-ius"
8496 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8498 esac
8501 mac*)
8502 aros_target_arch="mac"
8503 aros_shared_default="no"
8504 case "$target_cpu" in
8505 *m68k*)
8506 aros_target_cpu="m68k"
8507 aros_object_format="m68kelf"
8508 aros_flavour="mac68knative"
8509 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8510 aros_nominal_width=512
8511 aros_nominal_height=384
8512 aros_nominal_depth=8
8513 aros_target_ar_flags="cru"
8514 aros_compiler_libs="-lgcc1"
8515 aros_shared_default=no
8516 aros_shared_cflags="-fpic"
8517 aros_shared_aflags=""
8518 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8519 aros_kernel_ldflags="-Wl,-rpath,./lib"
8520 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8521 aros_debug_aflags=""
8522 aros_debug_ldflags="$aros_symbols_debug"
8523 aros_mungwall_debug="0"
8524 aros_modules_debug="0"
8525 gcc_target_cpu="mc68000"
8526 ignore_undefined_symbols="-ius"
8529 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8531 esac
8535 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8537 esac
8539 #-----------------------------------------------------------------------------
8540 crosstools_guess="yes"
8541 aros_target_toolchain="no"
8542 aros_config_sysroot=""
8543 aros_kernel_sysroot=""
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8546 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8548 # Check whether --with-kernel-toolchain-prefix was given.
8549 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8550 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8554 $as_echo "$kernel_tool_prefix" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8557 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8559 # Check whether --with-elf-toolchain-prefix was given.
8560 if test "${with_elf_toolchain_prefix+set}" = set; then :
8561 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8562 crosstools_guess="no"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8566 $as_echo "$elf_tool_prefix" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8569 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8571 # Check whether --with-aros-toolchain was given.
8572 if test "${with_aros_toolchain+set}" = set; then :
8573 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8574 crosstools_guess="no"
8577 if test "$aros_tool_prefix" = "yes" ; then
8578 aros_tool_prefix=$aros_target_cpu-aros-
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8581 $as_echo "$aros_tool_prefix" >&6; }
8583 #-----------------------------------------------------------------------------
8584 # Checking if we should build crosstools..
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8586 $as_echo_n "checking whether to build crosstools... " >&6; }
8587 # Check whether --enable-crosstools was given.
8588 if test "${enable_crosstools+set}" = set; then :
8589 enableval=$enable_crosstools; crosstools="$enableval"
8590 else
8591 crosstools="$crosstools_guess"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8595 $as_echo "$crosstools" >&6; }
8597 if test "${crosstools}" = "yes"; then
8598 if test "${crosstools_guess}" = "no"; then
8599 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8603 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8604 aros_target_toolchain="yes"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8608 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8610 # Check whether --with-aros-toolchain-install was given.
8611 if test "${with_aros_toolchain_install+set}" = set; then :
8612 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8615 if test "x$aros_toolchain_install" = "x"; then
8616 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8617 else
8618 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8619 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8620 if test "$crosstools_guess" = "no" ; then
8621 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8623 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8624 aros_kernel_sysroot = $aros_config_sysroot
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8629 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8631 #-----------------------------------------------------------------------------
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8633 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8635 # Check whether --with-binutils-version was given.
8636 if test "${with_binutils_version+set}" = set; then :
8637 withval=$with_binutils_version; use_binutils_version="$withval"
8638 else
8639 use_binutils_version=""
8642 if test "$use_binutils_version" = ""; then
8643 target_binutils_version="$default_binutils_version"
8644 else
8645 target_binutils_version="$use_binutils_version"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8648 $as_echo "$target_binutils_version" >&6; }
8651 # Helper to identify gcc version
8654 #-----------------------------------------------------------------------------
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8656 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8658 # Check whether --with-gcc-version was given.
8659 if test "${with_gcc_version+set}" = set; then :
8660 withval=$with_gcc_version; use_gcc_version="$withval"
8661 else
8662 use_gcc_version=""
8665 if test "$use_gcc_version" = ""; then
8666 if test "${crosstools}" = "no"; then
8667 if test "x$aros_toolchain_install" != "x"; then
8669 target_gcc_version=""
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8671 $as_echo_n "checking gcc version... " >&6; }
8672 if ${ax_cv_gcc_version+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8676 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8677 if test "x$ax_cv_gcc_version" = "x"; then :
8679 ax_cv_gcc_version=""
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8685 $as_echo "$ax_cv_gcc_version" >&6; }
8686 target_gcc_version=$ax_cv_gcc_version
8691 if test "$use_gcc_version" = ""; then
8692 target_gcc_version="$default_gcc_version"
8694 else
8695 target_gcc_version="$use_gcc_version"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8698 $as_echo "$target_gcc_version" >&6; }
8700 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8701 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8702 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8704 gcc_fix_bitfields="false"
8705 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8706 gcc_fix_bitfields="true"
8707 else
8708 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8709 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8710 gcc_fix_bitfields="true"
8715 if test "$gcc_fix_bitfields" = "true" ; then
8716 case "$aros_target_cpu" in
8717 *x86_64*)
8718 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8719 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8721 i386)
8722 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8723 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8725 esac
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8729 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8730 # Check whether --enable-objc was given.
8731 if test "${enable_objc+set}" = set; then :
8732 enableval=$enable_objc; objc="$enableval"
8733 else
8734 objc="no"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8738 $as_echo "$objc" >&6; }
8739 if test "x$objc" = "xyes"; then
8740 objc_target="$objc"
8741 else
8742 objc_target="no-objc"
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8746 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8747 # Check whether --enable-java was given.
8748 if test "${enable_java+set}" = set; then :
8749 enableval=$enable_java; java="$enableval"
8750 else
8751 java="no"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8755 $as_echo "$java" >&6; }
8756 if test "x$java" != "xno"; then
8757 java_target="$java"
8758 else
8759 java_target="no-java"
8762 spec_obj_format="-m $aros_object_format"
8763 # Now process extra architecture-specific options.
8764 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8765 # as well as floating-point ABI.
8766 case "$aros_target_cpu" in
8767 *x86_64*)
8768 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8770 arm*)
8771 if test "$gcc_default_cpu" = ""; then
8772 gcc_default_cpu="armv6"
8774 if test "$gcc_default_fpu" = ""; then
8775 gcc_default_fpu="vfp"
8777 if test "$gcc_default_float_abi" = ""; then
8778 if test "$target_cpu" = "armhf"; then
8779 gcc_default_float_abi="hard"
8780 else
8781 gcc_default_float_abi="softfp"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8786 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8788 # Check whether --with-cpu was given.
8789 if test "${with_cpu+set}" = set; then :
8790 withval=$with_cpu; aros_gcc_cpu="$withval"
8791 else
8792 aros_gcc_cpu=$gcc_default_cpu
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8796 $as_echo "$aros_gcc_cpu" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8799 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8801 # Check whether --with-fpu was given.
8802 if test "${with_fpu+set}" = set; then :
8803 withval=$with_fpu; aros_gcc_fpu="$withval"
8804 else
8805 aros_gcc_fpu=$gcc_default_fpu
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8809 $as_echo "$aros_gcc_fpu" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8812 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8814 # Check whether --with-float was given.
8815 if test "${with_float+set}" = set; then :
8816 withval=$with_float; aros_gcc_float_abi="$withval"
8817 else
8818 aros_gcc_float_abi=$gcc_default_float_abi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8822 $as_echo "$aros_gcc_float_abi" >&6; }
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8825 $as_echo_n "checking Which ARM mode to use... " >&6; }
8826 if test "$aros_target_cpu_mode" = ""; then
8827 aros_target_cpu_mode="arm32"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8829 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8830 else
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8832 $as_echo "$aros_target_cpu_mode" >&6; }
8835 case "$aros_target_cpu_mode" in
8836 arm32)
8837 gcc_default_mode="arm"
8838 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8840 arm64)
8841 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
8843 thumb)
8844 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8846 thumb1)
8847 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8849 thumb2)
8850 gcc_default_mode="thumb"
8851 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
8852 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8855 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
8857 esac
8859 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8860 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8862 i386)
8863 aros_isa_flags="-m32 -march=i486"
8864 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8865 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8867 esac
8869 # Some architectures may need custom ELF specs.
8870 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8871 elf_specs_in=config/${aros_object_format}-specs.in
8872 else
8873 elf_specs_in=config/elf-specs.in
8876 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8877 # Since we override specs, we may need to put these defines there
8878 if test "$gcc_target_cpu" != ""; then
8879 gcc_target_cpu="-D__${gcc_target_cpu}__"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8883 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8885 # Check whether --with-portssources was given.
8886 if test "${with_portssources+set}" = set; then :
8887 withval=$with_portssources; with_portssrcdir=$withval
8888 else
8889 with_portssrcdir="default"
8892 if test "$with_portssrcdir" = "default"; then
8893 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8894 else
8895 AROS_PORTSSRCDIR="$with_portssrcdir"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8898 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8901 $as_echo_n "checking which bootloader to use... " >&6; }
8903 # Check whether --with-bootloader was given.
8904 if test "${with_bootloader+set}" = set; then :
8905 withval=$with_bootloader; target_bootloader=$withval
8906 else
8907 target_bootloader=$target_bootloader
8910 if test "$target_bootloader" = "none"; then
8911 aros_target_bootloader=""
8912 else
8913 aros_target_bootloader="$target_bootloader"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8916 $as_echo "$target_bootloader" >&6; }
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8919 $as_echo_n "checking which icon-set to use... " >&6; }
8921 # Check whether --with-iconset was given.
8922 if test "${with_iconset+set}" = set; then :
8923 withval=$with_iconset; target_iconset=$withval
8924 else
8925 target_iconset="default"
8928 if test "$target_iconset" = "default"; then
8929 aros_target_iconset="Gorilla"
8930 target_iconset="default (Gorilla)"
8931 else
8932 aros_target_iconset="$target_iconset"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8935 $as_echo "$target_iconset" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8938 $as_echo_n "checking which GUI Theme to use... " >&6; }
8940 # Check whether --with-theme was given.
8941 if test "${with_theme+set}" = set; then :
8942 withval=$with_theme; target_guitheme=$withval
8943 else
8944 target_guitheme="default"
8947 if test "$target_guitheme" = "default"; then
8948 aros_target_guitheme="Ice"
8949 else
8950 aros_target_guitheme="$target_guitheme"
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8953 $as_echo "$aros_target_guitheme" >&6; }
8955 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8956 # for target code)
8957 cross_compiling=no
8959 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8960 cross_compiling=yes
8963 if test "$aros_host_cpu" == "x86_64" ; then
8964 if test "$aros_target_cpu" == "i386" ; then
8965 cross_compiling=no
8969 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8970 if test "$aros_host_arch" != "$aros_target_arch" ; then
8971 cross_compiling=yes
8973 else
8974 if test "$host_cc_elf" = "no" ; then
8975 cross_compiling=yes
8979 if test "$cross_compiling" = "no" ; then
8980 kernel_tool_prefix=""
8981 if test "$host_cc_elf" = "yes" ; then
8982 elf_tool_prefix=""
8986 if test "$kernel_tool_version" != ""; then
8987 kernel_tool_version="-$kernel_tool_version"
8990 #######################################################################
8991 ## Compute what toolchains to use, and their paths ##
8992 #######################################################################
8994 # This takes, as input:
8995 # crosstools {yes,no}
8996 # kernel_tool_version {"",[version]}
8997 # target_tool_version {"",[version]}
8998 # kernel_tool_prefix {none,[some-arch-os-]}
8999 # target_tool_prefix ${aros_target_cpu}-aros-
9000 # aros_tool_prefix ${aros_target_cpu}-aros-
9002 # The output is
9003 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9004 # Where the 'kernel' binaries are located
9005 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9006 # Where the 'target' binaries are located
9007 # (not the symlink farm - that is aros_target_*!)
9009 # The rules are:
9010 # if crosstools then
9011 # if kernel_tools_prefix = "no-kernel-prefix-"
9012 # aros_kernel_* = crosstools cc paths
9013 # aros_kernel_cc = elf cc wrapper around crosstools cc
9014 # else
9015 # VALIDATE(${kernel_tools_prefix}*)
9016 # aros_kernel_* = ${kernel_tools_prefix}*
9017 # if ${kernel_tools_prefix}cc is an AROS gcc
9018 # aros_kernel_cc = ${kernel_tools_prefix}cc
9019 # else
9020 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9021 # fi
9022 # fi
9024 # orig_target_* = aros built crosstools
9025 # orig_target_cc = elf cc wrapper around crosstools cc
9026 # else
9027 # VALIDATE(${kernel_tools_prefix}*)
9029 # orig_target_* = aros_kernel_*
9030 # if aros_kernel_cc is an AROS gcc
9031 # orig_target_cc = aros_kernel_cc
9032 # else
9033 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9034 # fi
9035 # fi
9037 target_tool_prefix="${aros_target_cpu}-aros-"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9040 $as_echo_n "checking which kernel tools... " >&6; }
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9042 $as_echo "$kernel_tool_prefix" >&6; };
9044 if test "$kernel_tool_prefix" = "none" ; then
9045 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9046 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9048 else
9049 # Kernel tools required - find them
9050 # Note that 'normally', aros_kernel_* overrides will be
9051 # empty, unless specified in the per-arch sections above.
9052 if test "x$aros_kernel_cpp" = "x"; then
9053 aros_kernel_cpp=${kernel_tool_prefix}cpp
9056 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9057 if test "$cross_compiling" = "yes" ; then
9058 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9059 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061 $as_echo_n "checking for $ac_word... " >&6; }
9062 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 case $aros_kernel_cpp in
9066 [\\/]* | ?:[\\/]*)
9067 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9077 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 break 2
9081 done
9082 done
9083 IFS=$as_save_IFS
9086 esac
9088 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9089 if test -n "$aros_kernel_cpp"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9091 $as_echo "$aros_kernel_cpp" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9098 else
9099 if test "$GCC" = "yes"; then
9100 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9101 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9102 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 case $aros_kernel_cpp in
9109 [\\/]* | ?:[\\/]*)
9110 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in `dirname $aros_gcc_cpp`
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9120 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9129 esac
9131 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9132 if test -n "$aros_kernel_cpp"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9134 $as_echo "$aros_kernel_cpp" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9142 if test "$aros_kernel_cpp" = ""; then
9143 # Extract the first word of "cpp", so it can be a program name with args.
9144 set dummy cpp; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 case $aros_kernel_cpp in
9151 [\\/]* | ?:[\\/]*)
9152 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9166 done
9167 done
9168 IFS=$as_save_IFS
9171 esac
9173 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9174 if test -n "$aros_kernel_cpp"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9176 $as_echo "$aros_kernel_cpp" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9185 else
9186 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9187 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 case $aros_kernel_cpp in
9194 [\\/]* | ?:[\\/]*)
9195 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9209 done
9210 done
9211 IFS=$as_save_IFS
9214 esac
9216 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9217 if test -n "$aros_kernel_cpp"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9219 $as_echo "$aros_kernel_cpp" >&6; }
9220 else
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9228 if test "$aros_kernel_cpp" = ""; then
9229 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9231 if test "x$aros_kernel_cc" = "x"; then
9232 aros_kernel_cc=${kernel_tool_prefix}gcc
9235 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9236 if test "$cross_compiling" = "yes" ; then
9237 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9238 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 case $aros_kernel_cc in
9245 [\\/]* | ?:[\\/]*)
9246 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9260 done
9261 done
9262 IFS=$as_save_IFS
9265 esac
9267 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9268 if test -n "$aros_kernel_cc"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9270 $as_echo "$aros_kernel_cc" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9277 else
9278 if test "$GCC" = "yes"; then
9279 aros_gcc_cc=`$CC -print-prog-name=cc`
9280 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9281 set dummy `basename $aros_gcc_cc`; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $aros_kernel_cc in
9288 [\\/]* | ?:[\\/]*)
9289 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in `dirname $aros_gcc_cc`
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9305 IFS=$as_save_IFS
9308 esac
9310 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9311 if test -n "$aros_kernel_cc"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9313 $as_echo "$aros_kernel_cc" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9321 if test "$aros_kernel_cc" = ""; then
9322 # Extract the first word of "cc", so it can be a program name with args.
9323 set dummy cc; ac_word=$2
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 case $aros_kernel_cc in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9341 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9350 esac
9352 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9353 if test -n "$aros_kernel_cc"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9355 $as_echo "$aros_kernel_cc" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9364 else
9365 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9366 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 case $aros_kernel_cc in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9384 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9388 done
9389 done
9390 IFS=$as_save_IFS
9393 esac
9395 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9396 if test -n "$aros_kernel_cc"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9398 $as_echo "$aros_kernel_cc" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9407 if test "$aros_kernel_cc" = ""; then
9408 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9410 if test "x$aros_kernel_cxx" = "x"; then
9411 aros_kernel_cxx=${kernel_tool_prefix}g++
9414 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9415 if test "$cross_compiling" = "yes" ; then
9416 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9417 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $aros_kernel_cxx in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9435 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9444 esac
9446 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9447 if test -n "$aros_kernel_cxx"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9449 $as_echo "$aros_kernel_cxx" >&6; }
9450 else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9456 else
9457 if test "$GCC" = "yes"; then
9458 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9459 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9460 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 case $aros_kernel_cxx in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in `dirname $aros_gcc_cxx`
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9482 done
9483 done
9484 IFS=$as_save_IFS
9487 esac
9489 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9490 if test -n "$aros_kernel_cxx"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9492 $as_echo "$aros_kernel_cxx" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 if test "$aros_kernel_cxx" = ""; then
9501 # Extract the first word of "cxx", so it can be a program name with args.
9502 set dummy cxx; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 case $aros_kernel_cxx in
9509 [\\/]* | ?:[\\/]*)
9510 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9524 done
9525 done
9526 IFS=$as_save_IFS
9529 esac
9531 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9532 if test -n "$aros_kernel_cxx"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9534 $as_echo "$aros_kernel_cxx" >&6; }
9535 else
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 $as_echo "no" >&6; }
9543 else
9544 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9545 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 case $aros_kernel_cxx in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9572 esac
9574 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9575 if test -n "$aros_kernel_cxx"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9577 $as_echo "$aros_kernel_cxx" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9586 # If it's set, make sure it's really there
9587 if test "x$aros_kernel_cxx" != "x" ; then
9588 if test "$aros_kernel_cxx" = ""; then
9589 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9593 if test "$aros_kernel_ld" = ""; then
9594 if test "$cross_compiling" = "yes" ; then
9595 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9596 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 case $aros_kernel_ld in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9626 if test -n "$aros_kernel_ld"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9628 $as_echo "$aros_kernel_ld" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9635 else
9636 if test "$GCC" = "yes"; then
9637 aros_gcc_ld=`$CC -print-prog-name=ld`
9638 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9639 set dummy `basename $aros_gcc_ld`; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 case $aros_kernel_ld in
9646 [\\/]* | ?:[\\/]*)
9647 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in `dirname $aros_gcc_ld`
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9661 done
9662 done
9663 IFS=$as_save_IFS
9666 esac
9668 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9669 if test -n "$aros_kernel_ld"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9671 $as_echo "$aros_kernel_ld" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9679 if test "$aros_kernel_ld" = ""; then
9680 # Extract the first word of "ld", so it can be a program name with args.
9681 set dummy ld; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 case $aros_kernel_ld in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9703 done
9704 done
9705 IFS=$as_save_IFS
9708 esac
9710 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9711 if test -n "$aros_kernel_ld"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9713 $as_echo "$aros_kernel_ld" >&6; }
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9722 else
9723 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9724 set dummy $aros_kernel_ld; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 case $aros_kernel_ld in
9731 [\\/]* | ?:[\\/]*)
9732 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9742 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 break 2
9746 done
9747 done
9748 IFS=$as_save_IFS
9751 esac
9753 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9754 if test -n "$aros_kernel_ld"; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9756 $as_echo "$aros_kernel_ld" >&6; }
9757 else
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759 $as_echo "no" >&6; }
9765 if test "$aros_kernel_ld" = ""; then
9766 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9769 if test "$aros_kernel_as" = ""; then
9770 if test "$cross_compiling" = "yes" ; then
9771 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9772 set dummy ${kernel_tool_prefix}as; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_path_aros_kernel_as+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 case $aros_kernel_as in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9799 esac
9801 aros_kernel_as=$ac_cv_path_aros_kernel_as
9802 if test -n "$aros_kernel_as"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9804 $as_echo "$aros_kernel_as" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9811 else
9812 if test "$GCC" = "yes"; then
9813 aros_gcc_as=`$CC -print-prog-name=as`
9814 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9815 set dummy `basename $aros_gcc_as`; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_path_aros_kernel_as+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 case $aros_kernel_as in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in `dirname $aros_gcc_as`
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9837 done
9838 done
9839 IFS=$as_save_IFS
9842 esac
9844 aros_kernel_as=$ac_cv_path_aros_kernel_as
9845 if test -n "$aros_kernel_as"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9847 $as_echo "$aros_kernel_as" >&6; }
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9855 if test "$aros_kernel_as" = ""; then
9856 # Extract the first word of "as", so it can be a program name with args.
9857 set dummy as; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_path_aros_kernel_as+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 case $aros_kernel_as in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9879 done
9880 done
9881 IFS=$as_save_IFS
9884 esac
9886 aros_kernel_as=$ac_cv_path_aros_kernel_as
9887 if test -n "$aros_kernel_as"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9889 $as_echo "$aros_kernel_as" >&6; }
9890 else
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9898 else
9899 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9900 set dummy $aros_kernel_as; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_path_aros_kernel_as+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 case $aros_kernel_as in
9907 [\\/]* | ?:[\\/]*)
9908 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9922 done
9923 done
9924 IFS=$as_save_IFS
9927 esac
9929 aros_kernel_as=$ac_cv_path_aros_kernel_as
9930 if test -n "$aros_kernel_as"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9932 $as_echo "$aros_kernel_as" >&6; }
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9941 if test "$aros_kernel_as" = ""; then
9942 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9945 if test "$aros_kernel_ar" = ""; then
9946 if test "$cross_compiling" = "yes" ; then
9947 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9948 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 case $aros_kernel_ar in
9955 [\\/]* | ?:[\\/]*)
9956 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9966 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9970 done
9971 done
9972 IFS=$as_save_IFS
9975 esac
9977 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9978 if test -n "$aros_kernel_ar"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9980 $as_echo "$aros_kernel_ar" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9987 else
9988 if test "$GCC" = "yes"; then
9989 aros_gcc_ar=`$CC -print-prog-name=ar`
9990 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9991 set dummy `basename $aros_gcc_ar`; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 case $aros_kernel_ar in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in `dirname $aros_gcc_ar`
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10013 done
10014 done
10015 IFS=$as_save_IFS
10018 esac
10020 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10021 if test -n "$aros_kernel_ar"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10023 $as_echo "$aros_kernel_ar" >&6; }
10024 else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10031 if test "$aros_kernel_ar" = ""; then
10032 # Extract the first word of "ar", so it can be a program name with args.
10033 set dummy ar; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 case $aros_kernel_ar in
10040 [\\/]* | ?:[\\/]*)
10041 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10051 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10055 done
10056 done
10057 IFS=$as_save_IFS
10060 esac
10062 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10063 if test -n "$aros_kernel_ar"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10065 $as_echo "$aros_kernel_ar" >&6; }
10066 else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10074 else
10075 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10076 set dummy $aros_kernel_ar; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 case $aros_kernel_ar in
10083 [\\/]* | ?:[\\/]*)
10084 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10098 done
10099 done
10100 IFS=$as_save_IFS
10103 esac
10105 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10106 if test -n "$aros_kernel_ar"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10108 $as_echo "$aros_kernel_ar" >&6; }
10109 else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10117 if test "$aros_kernel_ar" = ""; then
10118 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10121 if test "$aros_kernel_ranlib" = ""; then
10122 if test "$cross_compiling" = "yes" ; then
10123 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10124 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 case $aros_kernel_ranlib in
10131 [\\/]* | ?:[\\/]*)
10132 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10146 done
10147 done
10148 IFS=$as_save_IFS
10151 esac
10153 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10154 if test -n "$aros_kernel_ranlib"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10156 $as_echo "$aros_kernel_ranlib" >&6; }
10157 else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10163 else
10164 if test "$GCC" = "yes"; then
10165 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10166 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10167 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 case $aros_kernel_ranlib in
10174 [\\/]* | ?:[\\/]*)
10175 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in `dirname $aros_gcc_ranlib`
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10185 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10189 done
10190 done
10191 IFS=$as_save_IFS
10194 esac
10196 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10197 if test -n "$aros_kernel_ranlib"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10199 $as_echo "$aros_kernel_ranlib" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10207 if test "$aros_kernel_ranlib" = ""; then
10208 # Extract the first word of "ranlib", so it can be a program name with args.
10209 set dummy ranlib; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 case $aros_kernel_ranlib in
10216 [\\/]* | ?:[\\/]*)
10217 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10227 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10231 done
10232 done
10233 IFS=$as_save_IFS
10236 esac
10238 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10239 if test -n "$aros_kernel_ranlib"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10241 $as_echo "$aros_kernel_ranlib" >&6; }
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10250 else
10251 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10252 set dummy $aros_kernel_ranlib; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 case $aros_kernel_ranlib in
10259 [\\/]* | ?:[\\/]*)
10260 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10279 esac
10281 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10282 if test -n "$aros_kernel_ranlib"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10284 $as_echo "$aros_kernel_ranlib" >&6; }
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10293 if test "$aros_kernel_ranlib" = ""; then
10294 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10297 if test "$aros_kernel_nm" = ""; then
10298 if test "$cross_compiling" = "yes" ; then
10299 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10300 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 case $aros_kernel_nm in
10307 [\\/]* | ?:[\\/]*)
10308 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10322 done
10323 done
10324 IFS=$as_save_IFS
10327 esac
10329 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10330 if test -n "$aros_kernel_nm"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10332 $as_echo "$aros_kernel_nm" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10339 else
10340 if test "$GCC" = "yes"; then
10341 aros_gcc_nm=`$CC -print-prog-name=nm`
10342 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10343 set dummy `basename $aros_gcc_nm`; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 case $aros_kernel_nm in
10350 [\\/]* | ?:[\\/]*)
10351 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in `dirname $aros_gcc_nm`
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10365 done
10366 done
10367 IFS=$as_save_IFS
10370 esac
10372 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10373 if test -n "$aros_kernel_nm"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10375 $as_echo "$aros_kernel_nm" >&6; }
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10383 if test "$aros_kernel_nm" = ""; then
10384 # Extract the first word of "nm", so it can be a program name with args.
10385 set dummy nm; ac_word=$2
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387 $as_echo_n "checking for $ac_word... " >&6; }
10388 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 case $aros_kernel_nm in
10392 [\\/]* | ?:[\\/]*)
10393 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10407 done
10408 done
10409 IFS=$as_save_IFS
10412 esac
10414 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10415 if test -n "$aros_kernel_nm"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10417 $as_echo "$aros_kernel_nm" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10426 else
10427 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10428 set dummy $aros_kernel_nm; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 case $aros_kernel_nm in
10435 [\\/]* | ?:[\\/]*)
10436 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10450 done
10451 done
10452 IFS=$as_save_IFS
10455 esac
10457 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10458 if test -n "$aros_kernel_nm"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10460 $as_echo "$aros_kernel_nm" >&6; }
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10469 if test "$aros_kernel_nm" = ""; then
10470 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10473 if test "$aros_kernel_strip" = ""; then
10474 if test "$cross_compiling" = "yes" ; then
10475 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10476 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 case $aros_kernel_strip in
10483 [\\/]* | ?:[\\/]*)
10484 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10494 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10498 done
10499 done
10500 IFS=$as_save_IFS
10503 esac
10505 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10506 if test -n "$aros_kernel_strip"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10508 $as_echo "$aros_kernel_strip" >&6; }
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10515 else
10516 if test "$GCC" = "yes"; then
10517 aros_gcc_strip=`$CC -print-prog-name=strip`
10518 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10519 set dummy `basename $aros_gcc_strip`; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 case $aros_kernel_strip in
10526 [\\/]* | ?:[\\/]*)
10527 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in `dirname $aros_gcc_strip`
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10537 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10541 done
10542 done
10543 IFS=$as_save_IFS
10546 esac
10548 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10549 if test -n "$aros_kernel_strip"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10551 $as_echo "$aros_kernel_strip" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10559 if test "$aros_kernel_strip" = ""; then
10560 # Extract the first word of "strip", so it can be a program name with args.
10561 set dummy strip; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 case $aros_kernel_strip in
10568 [\\/]* | ?:[\\/]*)
10569 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10583 done
10584 done
10585 IFS=$as_save_IFS
10588 esac
10590 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10591 if test -n "$aros_kernel_strip"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10593 $as_echo "$aros_kernel_strip" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10602 else
10603 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10604 set dummy $aros_kernel_strip; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 case $aros_kernel_strip in
10611 [\\/]* | ?:[\\/]*)
10612 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10622 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10626 done
10627 done
10628 IFS=$as_save_IFS
10631 esac
10633 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10634 if test -n "$aros_kernel_strip"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10636 $as_echo "$aros_kernel_strip" >&6; }
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10645 if test "$aros_kernel_strip" = ""; then
10646 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10649 # Objcopy and objdump are not required for the kernel
10650 # toolchain on many architectures.
10651 # So we'll look for them, but not make them strictly required.
10653 if test "$aros_kernel_objcopy" = ""; then
10654 if test "$cross_compiling" = "yes" ; then
10655 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10656 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 case $aros_kernel_objcopy in
10663 [\\/]* | ?:[\\/]*)
10664 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10678 done
10679 done
10680 IFS=$as_save_IFS
10683 esac
10685 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10686 if test -n "$aros_kernel_objcopy"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10688 $as_echo "$aros_kernel_objcopy" >&6; }
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10695 else
10696 if test "$GCC" = "yes"; then
10697 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10698 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10699 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 case $aros_kernel_objcopy in
10706 [\\/]* | ?:[\\/]*)
10707 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in `dirname $aros_gcc_objcopy`
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10721 done
10722 done
10723 IFS=$as_save_IFS
10726 esac
10728 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10729 if test -n "$aros_kernel_objcopy"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10731 $as_echo "$aros_kernel_objcopy" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10739 if test "$aros_kernel_objcopy" = ""; then
10740 # Extract the first word of "objcopy", so it can be a program name with args.
10741 set dummy objcopy; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 case $aros_kernel_objcopy in
10748 [\\/]* | ?:[\\/]*)
10749 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10763 done
10764 done
10765 IFS=$as_save_IFS
10768 esac
10770 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10771 if test -n "$aros_kernel_objcopy"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10773 $as_echo "$aros_kernel_objcopy" >&6; }
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10782 else
10783 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10784 set dummy $aros_kernel_objcopy; ac_word=$2
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 $as_echo_n "checking for $ac_word... " >&6; }
10787 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 case $aros_kernel_objcopy in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10814 if test -n "$aros_kernel_objcopy"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10816 $as_echo "$aros_kernel_objcopy" >&6; }
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10826 if test "$aros_kernel_objdump" = ""; then
10827 if test "$cross_compiling" = "yes" ; then
10828 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10829 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 case $aros_kernel_objdump in
10836 [\\/]* | ?:[\\/]*)
10837 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10851 done
10852 done
10853 IFS=$as_save_IFS
10856 esac
10858 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10859 if test -n "$aros_kernel_objdump"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10861 $as_echo "$aros_kernel_objdump" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10868 else
10869 if test "$GCC" = "yes"; then
10870 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10871 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10872 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 case $aros_kernel_objdump in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in `dirname $aros_gcc_objdump`
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10894 done
10895 done
10896 IFS=$as_save_IFS
10899 esac
10901 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10902 if test -n "$aros_kernel_objdump"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10904 $as_echo "$aros_kernel_objdump" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10912 if test "$aros_kernel_objdump" = ""; then
10913 # Extract the first word of "objdump", so it can be a program name with args.
10914 set dummy objdump; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 case $aros_kernel_objdump in
10921 [\\/]* | ?:[\\/]*)
10922 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10936 done
10937 done
10938 IFS=$as_save_IFS
10941 esac
10943 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10944 if test -n "$aros_kernel_objdump"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10946 $as_echo "$aros_kernel_objdump" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10955 else
10956 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10957 set dummy $aros_kernel_objdump; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $aros_kernel_objdump in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10979 done
10980 done
10981 IFS=$as_save_IFS
10984 esac
10986 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10987 if test -n "$aros_kernel_objdump"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10989 $as_echo "$aros_kernel_objdump" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10998 if test "x${crosstools}" != "xyes" ; then
10999 if test "$aros_kernel_objcopy" = ""; then
11000 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11002 if test "$aros_kernel_objdump" = ""; then
11003 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11009 $as_echo_n "checking which target tools to use... " >&6; }
11010 if test "$aros_target_toolchain" = "yes"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
11012 $as_echo "$target_tool_prefix" >&6; }
11013 # We are building AROS crosstools
11014 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11015 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
11016 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
11017 orig_target_cpp="${tmp_tool_prefix}cpp"
11018 orig_target_ld="${tmp_tool_prefix}ld"
11019 orig_target_as="${tmp_tool_prefix}as"
11020 orig_target_ar="${tmp_tool_prefix}ar"
11021 orig_target_ranlib="${tmp_tool_prefix}ranlib"
11022 orig_target_nm="${tmp_tool_prefix}nm"
11023 orig_target_strip="${tmp_tool_prefix}strip"
11024 orig_target_objcopy="${tmp_tool_prefix}objcopy"
11025 orig_target_objdump="${tmp_tool_prefix}objdump"
11026 else
11027 # Determine whether AROS or ELF tools should be used
11028 if test "$aros_tool_prefix" = "none"; then
11029 aros_tool_prefix="${elf_tool_prefix}"
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11033 $as_echo "$aros_tool_prefix" >&6; }
11034 # We are *not* building AROS crosstools - use the AROS or ELF tools
11036 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
11037 if test "$cross_compiling" = "yes" ; then
11038 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11039 set dummy ${target_tool_prefix}cpp; ac_word=$2
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041 $as_echo_n "checking for $ac_word... " >&6; }
11042 if ${ac_cv_path_orig_target_cpp+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 case $orig_target_cpp in
11046 [\\/]* | ?:[\\/]*)
11047 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11057 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11061 done
11062 done
11063 IFS=$as_save_IFS
11066 esac
11068 orig_target_cpp=$ac_cv_path_orig_target_cpp
11069 if test -n "$orig_target_cpp"; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11071 $as_echo "$orig_target_cpp" >&6; }
11072 else
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; }
11078 else
11079 if test "$GCC" = "yes"; then
11080 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11081 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11082 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if ${ac_cv_path_orig_target_cpp+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 case $orig_target_cpp in
11089 [\\/]* | ?:[\\/]*)
11090 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in `dirname $aros_gcc_cpp`
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11104 done
11105 done
11106 IFS=$as_save_IFS
11109 esac
11111 orig_target_cpp=$ac_cv_path_orig_target_cpp
11112 if test -n "$orig_target_cpp"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11114 $as_echo "$orig_target_cpp" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11122 if test "$orig_target_cpp" = ""; then
11123 # Extract the first word of "cpp", so it can be a program name with args.
11124 set dummy cpp; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_path_orig_target_cpp+:} false; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 case $orig_target_cpp in
11131 [\\/]* | ?:[\\/]*)
11132 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
11141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11142 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 break 2
11146 done
11147 done
11148 IFS=$as_save_IFS
11151 esac
11153 orig_target_cpp=$ac_cv_path_orig_target_cpp
11154 if test -n "$orig_target_cpp"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11156 $as_echo "$orig_target_cpp" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11165 else
11166 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11167 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169 $as_echo_n "checking for $ac_word... " >&6; }
11170 if ${ac_cv_path_orig_target_cpp+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 case $orig_target_cpp in
11174 [\\/]* | ?:[\\/]*)
11175 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11189 done
11190 done
11191 IFS=$as_save_IFS
11194 esac
11196 orig_target_cpp=$ac_cv_path_orig_target_cpp
11197 if test -n "$orig_target_cpp"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11199 $as_echo "$orig_target_cpp" >&6; }
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11208 if test "$orig_target_cpp" = ""; then
11209 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11212 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11213 if test "$cross_compiling" = "yes" ; then
11214 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11215 set dummy ${target_tool_prefix}gcc; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_path_orig_target_cc+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 case $orig_target_cc in
11222 [\\/]* | ?:[\\/]*)
11223 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 break 2
11237 done
11238 done
11239 IFS=$as_save_IFS
11242 esac
11244 orig_target_cc=$ac_cv_path_orig_target_cc
11245 if test -n "$orig_target_cc"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11247 $as_echo "$orig_target_cc" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11254 else
11255 if test "$GCC" = "yes"; then
11256 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11257 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11258 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_orig_target_cc+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 case $orig_target_cc in
11265 [\\/]* | ?:[\\/]*)
11266 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in `dirname $aros_gcc_gcc`
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11280 done
11281 done
11282 IFS=$as_save_IFS
11285 esac
11287 orig_target_cc=$ac_cv_path_orig_target_cc
11288 if test -n "$orig_target_cc"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11290 $as_echo "$orig_target_cc" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 if test "$orig_target_cc" = ""; then
11299 # Extract the first word of "gcc", so it can be a program name with args.
11300 set dummy gcc; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_orig_target_cc+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 case $orig_target_cc in
11307 [\\/]* | ?:[\\/]*)
11308 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11322 done
11323 done
11324 IFS=$as_save_IFS
11327 esac
11329 orig_target_cc=$ac_cv_path_orig_target_cc
11330 if test -n "$orig_target_cc"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11332 $as_echo "$orig_target_cc" >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11341 else
11342 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11343 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if ${ac_cv_path_orig_target_cc+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 case $orig_target_cc in
11350 [\\/]* | ?:[\\/]*)
11351 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11365 done
11366 done
11367 IFS=$as_save_IFS
11370 esac
11372 orig_target_cc=$ac_cv_path_orig_target_cc
11373 if test -n "$orig_target_cc"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11375 $as_echo "$orig_target_cc" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11384 if test "$orig_target_cc" = ""; then
11385 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11388 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11389 if test "$cross_compiling" = "yes" ; then
11390 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11391 set dummy ${target_tool_prefix}g++; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if ${ac_cv_path_orig_target_cxx+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 case $orig_target_cxx in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11418 esac
11420 orig_target_cxx=$ac_cv_path_orig_target_cxx
11421 if test -n "$orig_target_cxx"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11423 $as_echo "$orig_target_cxx" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11430 else
11431 if test "$GCC" = "yes"; then
11432 aros_gcc_g++=`$CC -print-prog-name=g++`
11433 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11434 set dummy `basename $aros_gcc_g++`; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_path_orig_target_cxx+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 case $orig_target_cxx in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in `dirname $aros_gcc_g++`
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11456 done
11457 done
11458 IFS=$as_save_IFS
11461 esac
11463 orig_target_cxx=$ac_cv_path_orig_target_cxx
11464 if test -n "$orig_target_cxx"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11466 $as_echo "$orig_target_cxx" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11474 if test "$orig_target_cxx" = ""; then
11475 # Extract the first word of "g++", so it can be a program name with args.
11476 set dummy g++; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if ${ac_cv_path_orig_target_cxx+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 case $orig_target_cxx in
11483 [\\/]* | ?:[\\/]*)
11484 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11494 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11498 done
11499 done
11500 IFS=$as_save_IFS
11503 esac
11505 orig_target_cxx=$ac_cv_path_orig_target_cxx
11506 if test -n "$orig_target_cxx"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11508 $as_echo "$orig_target_cxx" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11517 else
11518 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11519 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if ${ac_cv_path_orig_target_cxx+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 case $orig_target_cxx in
11526 [\\/]* | ?:[\\/]*)
11527 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11537 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 break 2
11541 done
11542 done
11543 IFS=$as_save_IFS
11546 esac
11548 orig_target_cxx=$ac_cv_path_orig_target_cxx
11549 if test -n "$orig_target_cxx"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11551 $as_echo "$orig_target_cxx" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11560 if test "$orig_target_cxx" = ""; then
11561 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11564 if test "${aros_tool_prefix}ld" = ""; then
11565 if test "$cross_compiling" = "yes" ; then
11566 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11567 set dummy ${target_tool_prefix}gcc; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_path_orig_target_ld+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 case $orig_target_ld in
11574 [\\/]* | ?:[\\/]*)
11575 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587 break 2
11589 done
11590 done
11591 IFS=$as_save_IFS
11594 esac
11596 orig_target_ld=$ac_cv_path_orig_target_ld
11597 if test -n "$orig_target_ld"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11599 $as_echo "$orig_target_ld" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11606 else
11607 if test "$GCC" = "yes"; then
11608 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11609 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11610 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if ${ac_cv_path_orig_target_ld+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 case $orig_target_ld in
11617 [\\/]* | ?:[\\/]*)
11618 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in `dirname $aros_gcc_gcc`
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11632 done
11633 done
11634 IFS=$as_save_IFS
11637 esac
11639 orig_target_ld=$ac_cv_path_orig_target_ld
11640 if test -n "$orig_target_ld"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11642 $as_echo "$orig_target_ld" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11650 if test "$orig_target_ld" = ""; then
11651 # Extract the first word of "gcc", so it can be a program name with args.
11652 set dummy gcc; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_path_orig_target_ld+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 case $orig_target_ld in
11659 [\\/]* | ?:[\\/]*)
11660 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11674 done
11675 done
11676 IFS=$as_save_IFS
11679 esac
11681 orig_target_ld=$ac_cv_path_orig_target_ld
11682 if test -n "$orig_target_ld"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11684 $as_echo "$orig_target_ld" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11693 else
11694 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11695 set dummy ${aros_tool_prefix}ld; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_path_orig_target_ld+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 case $orig_target_ld in
11702 [\\/]* | ?:[\\/]*)
11703 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11717 done
11718 done
11719 IFS=$as_save_IFS
11722 esac
11724 orig_target_ld=$ac_cv_path_orig_target_ld
11725 if test -n "$orig_target_ld"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11727 $as_echo "$orig_target_ld" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11736 if test "$orig_target_ld" = ""; then
11737 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11740 if test "${aros_tool_prefix}as" = ""; then
11741 if test "$cross_compiling" = "yes" ; then
11742 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11743 set dummy ${target_tool_prefix}as; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_path_orig_target_as+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 case $orig_target_as in
11750 [\\/]* | ?:[\\/]*)
11751 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11765 done
11766 done
11767 IFS=$as_save_IFS
11770 esac
11772 orig_target_as=$ac_cv_path_orig_target_as
11773 if test -n "$orig_target_as"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11775 $as_echo "$orig_target_as" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11782 else
11783 if test "$GCC" = "yes"; then
11784 aros_gcc_as=`$CC -print-prog-name=as`
11785 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11786 set dummy `basename $aros_gcc_as`; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if ${ac_cv_path_orig_target_as+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 case $orig_target_as in
11793 [\\/]* | ?:[\\/]*)
11794 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in `dirname $aros_gcc_as`
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11813 esac
11815 orig_target_as=$ac_cv_path_orig_target_as
11816 if test -n "$orig_target_as"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11818 $as_echo "$orig_target_as" >&6; }
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11826 if test "$orig_target_as" = ""; then
11827 # Extract the first word of "as", so it can be a program name with args.
11828 set dummy as; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_path_orig_target_as+:} false; then :
11832 $as_echo_n "(cached) " >&6
11833 else
11834 case $orig_target_as in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11850 done
11851 done
11852 IFS=$as_save_IFS
11855 esac
11857 orig_target_as=$ac_cv_path_orig_target_as
11858 if test -n "$orig_target_as"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11860 $as_echo "$orig_target_as" >&6; }
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11869 else
11870 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11871 set dummy ${aros_tool_prefix}as; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_path_orig_target_as+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 case $orig_target_as in
11878 [\\/]* | ?:[\\/]*)
11879 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11893 done
11894 done
11895 IFS=$as_save_IFS
11898 esac
11900 orig_target_as=$ac_cv_path_orig_target_as
11901 if test -n "$orig_target_as"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11903 $as_echo "$orig_target_as" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11912 if test "$orig_target_as" = ""; then
11913 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11916 if test "${aros_tool_prefix}ar" = ""; then
11917 if test "$cross_compiling" = "yes" ; then
11918 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11919 set dummy ${target_tool_prefix}ar; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 $as_echo_n "checking for $ac_word... " >&6; }
11922 if ${ac_cv_path_orig_target_ar+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 case $orig_target_ar in
11926 [\\/]* | ?:[\\/]*)
11927 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 break 2
11941 done
11942 done
11943 IFS=$as_save_IFS
11946 esac
11948 orig_target_ar=$ac_cv_path_orig_target_ar
11949 if test -n "$orig_target_ar"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11951 $as_echo "$orig_target_ar" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11958 else
11959 if test "$GCC" = "yes"; then
11960 aros_gcc_ar=`$CC -print-prog-name=ar`
11961 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11962 set dummy `basename $aros_gcc_ar`; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_path_orig_target_ar+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 case $orig_target_ar in
11969 [\\/]* | ?:[\\/]*)
11970 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in `dirname $aros_gcc_ar`
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11984 done
11985 done
11986 IFS=$as_save_IFS
11989 esac
11991 orig_target_ar=$ac_cv_path_orig_target_ar
11992 if test -n "$orig_target_ar"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11994 $as_echo "$orig_target_ar" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12002 if test "$orig_target_ar" = ""; then
12003 # Extract the first word of "ar", so it can be a program name with args.
12004 set dummy ar; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_path_orig_target_ar+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 case $orig_target_ar in
12011 [\\/]* | ?:[\\/]*)
12012 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12031 esac
12033 orig_target_ar=$ac_cv_path_orig_target_ar
12034 if test -n "$orig_target_ar"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12036 $as_echo "$orig_target_ar" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12045 else
12046 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
12047 set dummy ${aros_tool_prefix}ar; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_path_orig_target_ar+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 case $orig_target_ar in
12054 [\\/]* | ?:[\\/]*)
12055 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12069 done
12070 done
12071 IFS=$as_save_IFS
12074 esac
12076 orig_target_ar=$ac_cv_path_orig_target_ar
12077 if test -n "$orig_target_ar"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12079 $as_echo "$orig_target_ar" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12088 if test "$orig_target_ar" = ""; then
12089 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12092 if test "${aros_tool_prefix}ranlib" = ""; then
12093 if test "$cross_compiling" = "yes" ; then
12094 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12095 set dummy ${target_tool_prefix}ar; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 case $orig_target_ranlib in
12102 [\\/]* | ?:[\\/]*)
12103 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12122 esac
12124 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12125 if test -n "$orig_target_ranlib"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12127 $as_echo "$orig_target_ranlib" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12134 else
12135 if test "$GCC" = "yes"; then
12136 aros_gcc_ar=`$CC -print-prog-name=ar`
12137 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12138 set dummy `basename $aros_gcc_ar`; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 case $orig_target_ranlib in
12145 [\\/]* | ?:[\\/]*)
12146 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in `dirname $aros_gcc_ar`
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12160 done
12161 done
12162 IFS=$as_save_IFS
12165 esac
12167 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12168 if test -n "$orig_target_ranlib"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12170 $as_echo "$orig_target_ranlib" >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12178 if test "$orig_target_ranlib" = ""; then
12179 # Extract the first word of "ar", so it can be a program name with args.
12180 set dummy ar; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 case $orig_target_ranlib in
12187 [\\/]* | ?:[\\/]*)
12188 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12202 done
12203 done
12204 IFS=$as_save_IFS
12207 esac
12209 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12210 if test -n "$orig_target_ranlib"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12212 $as_echo "$orig_target_ranlib" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12221 else
12222 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12223 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 case $orig_target_ranlib in
12230 [\\/]* | ?:[\\/]*)
12231 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12245 done
12246 done
12247 IFS=$as_save_IFS
12250 esac
12252 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12253 if test -n "$orig_target_ranlib"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12255 $as_echo "$orig_target_ranlib" >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12264 if test "$orig_target_ranlib" = ""; then
12265 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12268 if test "${aros_tool_prefix}nm" = ""; then
12269 if test "$cross_compiling" = "yes" ; then
12270 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12271 set dummy ${target_tool_prefix}nm; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_path_orig_target_nm+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 case $orig_target_nm in
12278 [\\/]* | ?:[\\/]*)
12279 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12293 done
12294 done
12295 IFS=$as_save_IFS
12298 esac
12300 orig_target_nm=$ac_cv_path_orig_target_nm
12301 if test -n "$orig_target_nm"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12303 $as_echo "$orig_target_nm" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12310 else
12311 if test "$GCC" = "yes"; then
12312 aros_gcc_nm=`$CC -print-prog-name=nm`
12313 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12314 set dummy `basename $aros_gcc_nm`; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if ${ac_cv_path_orig_target_nm+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 case $orig_target_nm in
12321 [\\/]* | ?:[\\/]*)
12322 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in `dirname $aros_gcc_nm`
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12336 done
12337 done
12338 IFS=$as_save_IFS
12341 esac
12343 orig_target_nm=$ac_cv_path_orig_target_nm
12344 if test -n "$orig_target_nm"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12346 $as_echo "$orig_target_nm" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12354 if test "$orig_target_nm" = ""; then
12355 # Extract the first word of "nm", so it can be a program name with args.
12356 set dummy nm; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_path_orig_target_nm+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 case $orig_target_nm in
12363 [\\/]* | ?:[\\/]*)
12364 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12378 done
12379 done
12380 IFS=$as_save_IFS
12383 esac
12385 orig_target_nm=$ac_cv_path_orig_target_nm
12386 if test -n "$orig_target_nm"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12388 $as_echo "$orig_target_nm" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12397 else
12398 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12399 set dummy ${aros_tool_prefix}nm; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_path_orig_target_nm+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 case $orig_target_nm in
12406 [\\/]* | ?:[\\/]*)
12407 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 break 2
12421 done
12422 done
12423 IFS=$as_save_IFS
12426 esac
12428 orig_target_nm=$ac_cv_path_orig_target_nm
12429 if test -n "$orig_target_nm"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12431 $as_echo "$orig_target_nm" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12440 if test "$orig_target_nm" = ""; then
12441 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12444 if test "${aros_tool_prefix}strip" = ""; then
12445 if test "$cross_compiling" = "yes" ; then
12446 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12447 set dummy ${target_tool_prefix}strip; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_path_orig_target_strip+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 case $orig_target_strip in
12454 [\\/]* | ?:[\\/]*)
12455 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12465 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12469 done
12470 done
12471 IFS=$as_save_IFS
12474 esac
12476 orig_target_strip=$ac_cv_path_orig_target_strip
12477 if test -n "$orig_target_strip"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12479 $as_echo "$orig_target_strip" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12486 else
12487 if test "$GCC" = "yes"; then
12488 aros_gcc_strip=`$CC -print-prog-name=strip`
12489 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12490 set dummy `basename $aros_gcc_strip`; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_path_orig_target_strip+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 case $orig_target_strip in
12497 [\\/]* | ?:[\\/]*)
12498 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in `dirname $aros_gcc_strip`
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12512 done
12513 done
12514 IFS=$as_save_IFS
12517 esac
12519 orig_target_strip=$ac_cv_path_orig_target_strip
12520 if test -n "$orig_target_strip"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12522 $as_echo "$orig_target_strip" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12530 if test "$orig_target_strip" = ""; then
12531 # Extract the first word of "strip", so it can be a program name with args.
12532 set dummy strip; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_path_orig_target_strip+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 case $orig_target_strip in
12539 [\\/]* | ?:[\\/]*)
12540 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12554 done
12555 done
12556 IFS=$as_save_IFS
12559 esac
12561 orig_target_strip=$ac_cv_path_orig_target_strip
12562 if test -n "$orig_target_strip"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12564 $as_echo "$orig_target_strip" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12573 else
12574 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12575 set dummy ${aros_tool_prefix}strip; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_path_orig_target_strip+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 case $orig_target_strip in
12582 [\\/]* | ?:[\\/]*)
12583 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12597 done
12598 done
12599 IFS=$as_save_IFS
12602 esac
12604 orig_target_strip=$ac_cv_path_orig_target_strip
12605 if test -n "$orig_target_strip"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12607 $as_echo "$orig_target_strip" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12616 if test "$orig_target_strip" = ""; then
12617 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12620 if test "${aros_tool_prefix}objcopy" = ""; then
12621 if test "$cross_compiling" = "yes" ; then
12622 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12623 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 case $orig_target_objcopy in
12630 [\\/]* | ?:[\\/]*)
12631 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12645 done
12646 done
12647 IFS=$as_save_IFS
12650 esac
12652 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12653 if test -n "$orig_target_objcopy"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12655 $as_echo "$orig_target_objcopy" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12662 else
12663 if test "$GCC" = "yes"; then
12664 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12665 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12666 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 case $orig_target_objcopy in
12673 [\\/]* | ?:[\\/]*)
12674 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in `dirname $aros_gcc_objcopy`
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12684 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12688 done
12689 done
12690 IFS=$as_save_IFS
12693 esac
12695 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12696 if test -n "$orig_target_objcopy"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12698 $as_echo "$orig_target_objcopy" >&6; }
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12706 if test "$orig_target_objcopy" = ""; then
12707 # Extract the first word of "objcopy", so it can be a program name with args.
12708 set dummy objcopy; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 case $orig_target_objcopy in
12715 [\\/]* | ?:[\\/]*)
12716 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12726 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12730 done
12731 done
12732 IFS=$as_save_IFS
12735 esac
12737 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12738 if test -n "$orig_target_objcopy"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12740 $as_echo "$orig_target_objcopy" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12749 else
12750 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12751 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 case $orig_target_objcopy in
12758 [\\/]* | ?:[\\/]*)
12759 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12773 done
12774 done
12775 IFS=$as_save_IFS
12778 esac
12780 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12781 if test -n "$orig_target_objcopy"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12783 $as_echo "$orig_target_objcopy" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12792 if test "$orig_target_objcopy" = ""; then
12793 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12796 if test "${aros_tool_prefix}objdump" = ""; then
12797 if test "$cross_compiling" = "yes" ; then
12798 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12799 set dummy ${target_tool_prefix}objdump; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_path_orig_target_objdump+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 case $orig_target_objdump in
12806 [\\/]* | ?:[\\/]*)
12807 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 break 2
12821 done
12822 done
12823 IFS=$as_save_IFS
12826 esac
12828 orig_target_objdump=$ac_cv_path_orig_target_objdump
12829 if test -n "$orig_target_objdump"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12831 $as_echo "$orig_target_objdump" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12838 else
12839 if test "$GCC" = "yes"; then
12840 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12841 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12842 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_path_orig_target_objdump+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 case $orig_target_objdump in
12849 [\\/]* | ?:[\\/]*)
12850 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in `dirname $aros_gcc_objdump`
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12864 done
12865 done
12866 IFS=$as_save_IFS
12869 esac
12871 orig_target_objdump=$ac_cv_path_orig_target_objdump
12872 if test -n "$orig_target_objdump"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12874 $as_echo "$orig_target_objdump" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 if test "$orig_target_objdump" = ""; then
12883 # Extract the first word of "objdump", so it can be a program name with args.
12884 set dummy objdump; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_path_orig_target_objdump+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 case $orig_target_objdump in
12891 [\\/]* | ?:[\\/]*)
12892 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12906 done
12907 done
12908 IFS=$as_save_IFS
12911 esac
12913 orig_target_objdump=$ac_cv_path_orig_target_objdump
12914 if test -n "$orig_target_objdump"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12916 $as_echo "$orig_target_objdump" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12925 else
12926 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12927 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if ${ac_cv_path_orig_target_objdump+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 case $orig_target_objdump in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939 for as_dir in $PATH
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12949 done
12950 done
12951 IFS=$as_save_IFS
12954 esac
12956 orig_target_objdump=$ac_cv_path_orig_target_objdump
12957 if test -n "$orig_target_objdump"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12959 $as_echo "$orig_target_objdump" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12968 if test "$orig_target_objdump" = ""; then
12969 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12973 if test "$kernel_tool_prefix" = "none" ; then
12974 # No kernel tools specified
12975 # Assume target tools == kernel tools with ELF wrapper
12976 aros_kernel_cc=$orig_target_cc
12977 aros_kernel_cxx=$orig_target_cxx
12978 aros_kernel_cpp=$orig_target_cpp
12979 aros_kernel_ld=$orig_target_ld
12980 aros_kernel_as=$orig_target_as
12981 aros_kernel_ar=$orig_target_ar
12982 aros_kernel_ranlib=$orig_target_ranlib
12983 aros_kernel_nm=$orig_target_nm
12984 aros_kernel_strip=$orig_target_strip
12985 aros_kernel_objcopy=$orig_target_objcopy
12986 aros_kernel_objdump=$orig_target_objdump
12987 use_kernel_cc_wrapper=yes
12990 # At this point, all aros_kernel_* and aros_target_*
12991 # tools should be set up correctly
12993 CC="$aros_kernel_cc $kernel_tool_flags"
12994 CPP="$aros_kernel_cpp"
12996 #-----------------------------------------------------------------------------
12998 # Disable pointer-signedness warnings if the compiler recognises the option
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
13001 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
13002 save_cflags="$CFLAGS"
13003 if test "$crosstools" != "yes" ; then
13004 CFLAGS="$CFLAGS -Wno-pointer-sign"
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13009 main ()
13013 return 0;
13015 _ACEOF
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017 use_no_sign_warning="yes"
13018 else
13019 use_no_sign_warning="no"
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 else
13023 # we do know it is supported for the smallest version of gcc we are going to build
13024 # we assume it's also supported by later versions
13025 use_no_sign_warning=yes
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
13028 $as_echo "$use_no_sign_warning" >&6; }
13029 if test "x-$use_no_sign_warning" = "x-yes" ; then
13030 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
13032 CFLAGS="$save_cflags"
13034 #-----------------------------------------------------------------------------
13036 # Find all the tools we need to compile. This could be cross-compiling
13037 # though! If that is the case we use the GNU form of the target and
13038 # simply add this to the front of the binary name. This is rather simple,
13039 # but it should work under most circumstances.
13041 # The default tools are to use the same as the host, but only if the
13042 # host and target CPU are the same. With GCC this is normally enough.
13045 aros_cc_pre=""
13046 aros_shared_ld="$aros_host_ld"
13048 aros_target_mkdep="$aros_host_mkdep"
13050 # The default tools executables to be linked to.
13051 if test "$rescomp" != ""; then
13052 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13053 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 case $aros_kernel_rescomp in
13060 [\\/]* | ?:[\\/]*)
13061 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065 for as_dir in $PATH
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13071 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13073 break 2
13075 done
13076 done
13077 IFS=$as_save_IFS
13080 esac
13082 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13083 if test -n "$aros_kernel_rescomp"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13085 $as_echo "$aros_kernel_rescomp" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13092 if test "$aros_kernel_rescomp" = ""; then
13093 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13097 # Set up the sources for the symlink farm
13098 if test "$crosstools" = "yes"; then
13099 crosstools_target=tools-crosstools
13102 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13103 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13105 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13106 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13107 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13108 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13109 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13110 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13111 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13113 # aros_cc_pre is a variable that is added to the front of the compiler name
13114 # in the generated aros-gcc shell script. We need this to enable the cache
13115 # to work across cleaned builds. Also, support DISTCC using the correct
13116 # environment variable.
13119 if test "x${DISTCC}" != "x" ; then
13120 if test "x${CCACHE}" != "x" ; then
13121 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13122 else
13123 aros_cc_pre="${DISTCC} "
13125 else
13126 if test "x${CCACHE}" != "x" ; then
13127 aros_cc_pre="${CCACHE} "
13131 aros_target_nostdinc_cflags=-nostdinc
13133 aros_target_nostartup_ldflags=-nostartfiles
13135 aros_target_nix_ldflags=-nix
13137 aros_target_detach_ldflags=-detach
13139 aros_target_nostdlib_ldflags=-nostdlib
13142 # Target tools
13143 if test "$aros_target_toolchain" != "yes"; then
13144 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13145 if test "$GCC" = "yes"; then
13146 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13148 else
13149 # We do not know which gcc version we are going to build and what we need to know
13150 # here is different for different versions so this will be set later during the
13151 # build of crosstools.
13152 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13153 aros_target_cc_path=@aros_target_cc_path@
13155 aros_target_cpp="${prefix}cpp"
13156 aros_target_cc="${prefix}gcc"
13157 aros_target_cxx="${prefix}g++"
13158 aros_target_as="${prefix}as"
13159 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13160 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13161 aros_target_objcopy="${prefix}objcopy"
13162 aros_target_objdump="${prefix}objdump"
13163 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13164 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13165 aros_target_strip="${prefix}strip"
13166 aros_plain_nm="${prefix}nm"
13167 aros_plain_ar="${prefix}ar"
13169 # Check whether --enable-includes was given.
13170 if test "${enable_includes+set}" = set; then :
13171 enableval=$enable_includes; aros_target_incl=$enable_includes
13172 else
13173 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13177 if test "$aros_kernel_includes" = ""; then
13178 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13179 aros_kernel_includes="-isystem $aros_target_incl"
13183 if test "$aros_kernel_includes" != "" ; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13185 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13186 if test "$aros_kernel_cc_includes" = "" ; then
13187 # Try to guess where the directory is.
13188 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13189 if test -d $aros_kernel_cc_includes; then
13190 # Check if there is also an include-fixed directory and add it
13191 # to kernel compiler's include path as it may contain some of
13192 # the headers we need.
13193 if test -d "$aros_kernel_cc_includes"-fixed; then
13194 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13196 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13197 case ${host_cpu} in
13198 i[3456]86)
13199 host_cpu_glibc=i386
13202 host_cpu_glibc=${host_cpu}
13204 esac
13205 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13206 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13208 else
13209 # The directory doesn't exist, we need to do some more work.
13210 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13212 # These are the headers we're looking for.
13213 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13214 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13215 zutil.h stdint.h"
13217 dirs=
13218 for h in $headers; do
13219 # Which other headers are needed by each of the above?
13220 deps=$(echo "#include <$h>" | \
13221 $aros_kernel_cc -E -M - 2>/dev/null | \
13222 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13224 # Copy all the needed headers to a directory beneath gendir.
13225 for d in $deps; do
13226 h=$(basename $d)
13227 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13228 sed -n "s,^.*/include\(/.*\),\1,p")
13229 ! test -d $dir && mkdir -p $dir
13230 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13231 done
13232 done
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13236 $as_echo "$aros_kernel_cc_includes" >&6; }
13237 # Adding -nostdinc to kernel includes as they are always used together.
13238 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13241 if test "$crosstools" != "yes"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13243 $as_echo_n "checking for the target compiler's include path... " >&6; }
13244 if test "$aros_target_cc_includes" = "" ; then
13245 #try to guess where the directory is
13246 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13247 if ! test -d $aros_target_cc_includes; then
13248 #the directory doesn't exist, we need to do some more work
13249 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13251 #these are the headers we're looking for
13252 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13253 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13254 zutil.h"
13256 dirs=
13257 for h in $headers; do
13258 #which other headers each of the above headers needs?
13259 deps=$(echo "#include <$h>" | \
13260 $orig_target_cc -E -M - 2>/dev/null | \
13261 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13263 #copy all the needed headers to a directory beneath gendir
13264 for d in $deps; do
13265 h=$(basename $d)
13266 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13267 sed -n "s,^.*/include\(/.*\),\1,p")
13268 ! test -d $dir && mkdir -p $dir
13269 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13270 done
13271 done
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13275 $as_echo "$aros_target_cc_includes" >&6; }
13276 else
13277 # We do not know which gcc version we are going to build and what we need to know
13278 # here is different for different versions so this will be set later during the
13279 # build of crosstools.
13280 aros_target_cc_includes=@aros_target_cc_includes@
13284 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13285 # On GCC >= 4.0 -iquote should be used
13288 save_cc="$CC"
13289 save_cflags="$CFLAGS"
13290 CFLAGS="-iquote."
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13292 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13293 if test "x-$crosstools" != "x-yes"; then
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13298 main ()
13302 return 0;
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 has_iquote="yes"
13307 else
13308 has_iquote="no"
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 else
13312 # we do know it is supported for the smallest version of gcc we are going to build
13313 # we assume it's also supported by later versions
13314 has_iquote=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13317 $as_echo "$has_iquote" >&6; }
13318 if test "x-$has_iquote" = "x-yes" ; then
13319 host_cflags_iquote=-iquote
13320 host_cflags_iquote_end=
13321 else
13322 host_cflags_iquote=-I
13323 host_cflags_iquote_end=-I-
13325 kernel_cflags_iquote=$host_cflags_iquote
13326 kernel_cflags_iquote_end=$host_cflags_iquote_end
13327 if test "x-$cross_compiling" = "x-yes"; then
13328 CC="$aros_kernel_cc"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13330 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13331 if test "x-$crosstools" != "x-yes"; then
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13336 main ()
13340 return 0;
13342 _ACEOF
13343 if ac_fn_c_try_compile "$LINENO"; then :
13344 use_no_stack_protector="yes"
13345 else
13346 use_no_stack_protector="no"
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 else
13350 # we do know it is supported for the smallest version of gcc we are going to build
13351 # we assume it's also supported by later versions
13352 use_no_stack_protector=yes
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13355 $as_echo "$use_no_stack_protector" >&6; }
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13357 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13358 if test "x-$crosstools" != "x-yes"; then
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13363 main ()
13367 return 0;
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 has_iquote="yes"
13372 else
13373 has_iquote="no"
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 else
13377 # we do know it is supported for the smallest version of gcc we are going to build
13378 # we assume it's also supported by later versions
13379 has_iquote=yes
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13382 $as_echo "$has_iquote" >&6; }
13383 if test "x-$has_iquote" = "x-yes" ; then
13384 kernel_cflags_iquote=-iquote
13385 kernel_cflags_iquote_end=
13386 else
13387 kernel_cflags_iquote=-I
13388 kernel_cflags_iquote_end=-I-
13391 aros_cflags_iquote=$kernel_cflags_iquote
13392 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13393 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13394 CC="$orig_target_cc"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13396 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13397 if test "x-$crosstools" != "x-yes"; then
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13402 main ()
13406 return 0;
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"; then :
13410 has_iquote="yes"
13411 else
13412 has_iquote="no"
13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415 else
13416 # we do know it is supported for the smallest version of gcc we are going to build
13417 # we assume it's also supported by later versions
13418 has_iquote=yes
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13421 $as_echo "$has_iquote" >&6; }
13422 if test "x-$has_iquote" = "x-yes" ; then
13423 aros_cflags_iquote=-iquote
13424 aros_cflags_iquote_end=
13425 else
13426 aros_cflags_iquote=-I
13427 aros_cflags_iquote_end=-I-
13430 if test "x-$use_no_stack_protector" = "x-yes" ; then
13431 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13435 #-----------------------------------------------------------------------------
13437 # Check if the target compiler supports some options used for delinting:
13438 # -Wunused-but-set-variable
13439 # -Warray-bounds
13440 # -Wenum-compare
13441 # -Wstrict-overflow
13442 # -Wformat-security
13444 if test "x-$crosstools" != "x-yes"; then
13445 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13446 CC="$orig_target_cc"
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13449 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13450 CFLAGS=-Wunused-but-set-variable
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13455 main ()
13459 return 0;
13461 _ACEOF
13462 if ac_fn_c_try_compile "$LINENO"; then :
13463 aros_unused_but_set_variable="yes"
13464 else
13465 aros_unused_but_set_variable="no"
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13469 $as_echo "$aros_unused_but_set_variable" >&6; }
13470 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13471 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13475 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13476 CFLAGS=-Warray-bounds
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13481 main ()
13485 return 0;
13487 _ACEOF
13488 if ac_fn_c_try_compile "$LINENO"; then :
13489 aros_array_bounds="yes"
13490 else
13491 aros_array_bounds="no"
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13495 $as_echo "$aros_array_bounds" >&6; }
13496 if test "x-$aros_array_bounds" = "x-yes" ; then
13497 aros_cflags_array_bounds=-Wno-array-bounds
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13501 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13502 CFLAGS=-Wenum-compare
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13507 main ()
13511 return 0;
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"; then :
13515 aros_enum_compare="yes"
13516 else
13517 aros_enum_compare="no"
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13521 $as_echo "$aros_enum_compare" >&6; }
13522 if test "x-$aros_enum_compare" = "x-yes" ; then
13523 aros_cflags_enum_compare=-Wno-enum-compare
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13527 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13528 CFLAGS=-Wstrict-overflow
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13533 main ()
13537 return 0;
13539 _ACEOF
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541 aros_strict_overflow="yes"
13542 else
13543 aros_strict_overflow="no"
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13547 $as_echo "$aros_strict_overflow" >&6; }
13548 if test "x-$aros_strict_overflow" = "x-yes" ; then
13549 aros_cflags_strict_overflow=-Wno-strict-overflow
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13553 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13554 CFLAGS=-Wformat-security
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13559 main ()
13563 return 0;
13565 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567 aros_format_security="yes"
13568 else
13569 aros_format_security="no"
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13573 $as_echo "$aros_format_security" >&6; }
13574 if test "x-$aros_format_security" = "x-yes" ; then
13575 aros_cflags_format_security=-Wno-format-security
13577 else
13578 # We do not know which gcc version we are going to build and what we need to know
13579 # here is different for different versions so this will be set later during the
13580 # build of crosstools.
13581 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13582 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13583 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13584 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13585 aros_cflags_format_security=@aros_cflags_format_security@
13588 #-----------------------------------------------------------------------------
13590 # Check if we can explicitly choose older version of symbol hashing
13592 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13593 CC="$aros_kernel_cc"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13595 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13600 main ()
13604 return 0;
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 use_hash_style="yes"
13609 else
13610 use_hash_style="no"
13612 rm -f core conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13615 $as_echo "$use_hash_style" >&6; }
13616 if test "x-$use_hash_style" = "x-yes" ; then
13617 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13619 CC="$save_cc"
13620 CFLAGS="$save_cflags"
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13631 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13633 # Check whether --with-resolution was given.
13634 if test "${with_resolution+set}" = set; then :
13635 withval=$with_resolution; resolution=$withval
13636 else
13637 resolution=none
13640 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13641 if test "$resolution" = "yes" ; then
13642 resolution="none"
13644 if test "$resolution" = "no" ; then
13645 resolution="none"
13647 if test "$resolution" != "none" ; then
13648 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13649 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13650 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13653 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13654 aros_cv_nominal_width=$aros_nominal_width
13655 aros_cv_nominal_height=$aros_nominal_height
13656 aros_cv_nominal_depth=$aros_nominal_depth
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13659 $as_echo_n "checking if serial debug is enabled... " >&6; }
13661 # Check whether --with-serial-debug was given.
13662 if test "${with_serial_debug+set}" = set; then :
13663 withval=$with_serial_debug; serial_debug=$withval
13664 else
13665 serial_debug=none
13668 if test "$aros_serial_debug" = 0 ; then
13669 serial_debug_forced=""
13670 if test "$serial_debug" = "yes" ; then
13671 serial_debug="1"
13673 if test "$serial_debug" = "no" ; then
13674 serial_debug="none"
13676 else
13677 serial_debug_forced="(forced)"
13678 serial_debug=$aros_serial_debug
13680 if test "$serial_debug" != "none" ; then
13681 aros_serial_debug=$serial_debug
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13683 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13690 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13691 # Check whether --enable-palm_debug_hack was given.
13692 if test "${enable_palm_debug_hack+set}" = set; then :
13693 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13694 else
13695 palm_debug_hack="no"
13698 if test "$palm_debug_hack" = "yes" ; then
13699 aros_palm_debug_hack="1"
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13702 $as_echo "$palm_debug_hack" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13705 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13706 # Check whether --enable-usb30_code was given.
13707 if test "${enable_usb30_code+set}" = set; then :
13708 enableval=$enable_usb30_code; usb30_code="yes"
13709 else
13710 usb30_code="no"
13713 if test "$usb30_code" = "yes" ; then
13714 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13715 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13718 $as_echo "$usb30_code" >&6; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13721 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13722 # Check whether --enable-nesting_supervisor was given.
13723 if test "${enable_nesting_supervisor+set}" = set; then :
13724 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13725 else
13726 nesting_supervisor="no"
13729 if test "$nesting_supervisor" = "yes" ; then
13730 aros_nesting_supervisor="1"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13733 $as_echo "$nesting_supervisor" >&6; }
13735 if test "$aros_enable_mmu" = "" ; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13737 $as_echo_n "checking if MMU support is enabled... " >&6; }
13738 # Check whether --enable-mmu was given.
13739 if test "${enable_mmu+set}" = set; then :
13740 enableval=$enable_mmu; aros_enable_mmu=$enableval
13741 else
13742 aros_enable_mmu="yes"
13745 if test "$aros_enable_mmu" = "" ; then
13746 aros_enable_mmu="yes"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13749 $as_echo "$aros_enable_mmu" >&6; }
13751 if test "$aros_enable_mmu" = "no" ; then
13752 aros_enable_mmu="0"
13753 else
13754 aros_enable_mmu="1"
13758 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13760 if test "x-$need_dlopen" != "x-no" ; then
13761 save_libs="$LIBS"
13762 LIBS=""
13763 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13764 if test "x$ac_cv_func_dlopen" = xyes; then :
13765 have_dl="yes"
13766 else
13767 have_dl="no"
13770 if test "x-$have_dl" = "x-no" ; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13773 if ${ac_cv_lib_dl_dlopen+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-ldl $LIBS"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13781 /* Override any GCC internal prototype to avoid an error.
13782 Use char because int might match the return type of a GCC
13783 builtin and then its argument prototype would still apply. */
13784 #ifdef __cplusplus
13785 extern "C"
13786 #endif
13787 char dlopen ();
13789 main ()
13791 return dlopen ();
13793 return 0;
13795 _ACEOF
13796 if ac_fn_c_try_link "$LINENO"; then :
13797 ac_cv_lib_dl_dlopen=yes
13798 else
13799 ac_cv_lib_dl_dlopen=no
13801 rm -f core conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 LIBS=$ac_check_lib_save_LIBS
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13808 have_dl="yes"
13809 aros_host_ldflags="$aros_host_ldflags -ldl"
13810 else
13811 have_dl="no"
13815 if test "x-$have_dl" = "x-no" ; then
13816 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13818 LIBS="$save_libs"
13822 # Check whether --enable-x11_hidd was given.
13823 if test "${enable_x11_hidd+set}" = set; then :
13824 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13825 else
13826 x11_hidd="$need_x11"
13829 case "x-$x11_hidd" in
13830 x-yes|x-no|x-auto) ;;
13831 *) x11_hidd="$need_x11" ;;
13832 esac
13834 ENABLE_X11=0
13836 if test "x-$x11_hidd" != "x-no" ; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13839 $as_echo_n "checking for X... " >&6; }
13842 # Check whether --with-x was given.
13843 if test "${with_x+set}" = set; then :
13844 withval=$with_x;
13847 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13848 if test "x$with_x" = xno; then
13849 # The user explicitly disabled X.
13850 have_x=disabled
13851 else
13852 case $x_includes,$x_libraries in #(
13853 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13854 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 # One or both of the vars are not set, and there is no cached value.
13858 ac_x_includes=no ac_x_libraries=no
13859 rm -f -r conftest.dir
13860 if mkdir conftest.dir; then
13861 cd conftest.dir
13862 cat >Imakefile <<'_ACEOF'
13863 incroot:
13864 @echo incroot='${INCROOT}'
13865 usrlibdir:
13866 @echo usrlibdir='${USRLIBDIR}'
13867 libdir:
13868 @echo libdir='${LIBDIR}'
13869 _ACEOF
13870 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13871 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13872 for ac_var in incroot usrlibdir libdir; do
13873 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13874 done
13875 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13876 for ac_extension in a so sl dylib la dll; do
13877 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13878 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13879 ac_im_usrlibdir=$ac_im_libdir; break
13881 done
13882 # Screen out bogus values from the imake configuration. They are
13883 # bogus both because they are the default anyway, and because
13884 # using them would break gcc on systems where it needs fixed includes.
13885 case $ac_im_incroot in
13886 /usr/include) ac_x_includes= ;;
13887 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13888 esac
13889 case $ac_im_usrlibdir in
13890 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13891 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13892 esac
13894 cd ..
13895 rm -f -r conftest.dir
13898 # Standard set of common directories for X headers.
13899 # Check X11 before X11Rn because it is often a symlink to the current release.
13900 ac_x_header_dirs='
13901 /usr/X11/include
13902 /usr/X11R7/include
13903 /usr/X11R6/include
13904 /usr/X11R5/include
13905 /usr/X11R4/include
13907 /usr/include/X11
13908 /usr/include/X11R7
13909 /usr/include/X11R6
13910 /usr/include/X11R5
13911 /usr/include/X11R4
13913 /usr/local/X11/include
13914 /usr/local/X11R7/include
13915 /usr/local/X11R6/include
13916 /usr/local/X11R5/include
13917 /usr/local/X11R4/include
13919 /usr/local/include/X11
13920 /usr/local/include/X11R7
13921 /usr/local/include/X11R6
13922 /usr/local/include/X11R5
13923 /usr/local/include/X11R4
13925 /usr/X386/include
13926 /usr/x386/include
13927 /usr/XFree86/include/X11
13929 /usr/include
13930 /usr/local/include
13931 /usr/unsupported/include
13932 /usr/athena/include
13933 /usr/local/x11r5/include
13934 /usr/lpp/Xamples/include
13936 /usr/openwin/include
13937 /usr/openwin/share/include'
13939 if test "$ac_x_includes" = no; then
13940 # Guess where to find include files, by looking for Xlib.h.
13941 # First, try using that file with no special directory specified.
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 #include <X11/Xlib.h>
13945 _ACEOF
13946 if ac_fn_c_try_cpp "$LINENO"; then :
13947 # We can compile using X headers with no special include directory.
13948 ac_x_includes=
13949 else
13950 for ac_dir in $ac_x_header_dirs; do
13951 if test -r "$ac_dir/X11/Xlib.h"; then
13952 ac_x_includes=$ac_dir
13953 break
13955 done
13957 rm -f conftest.err conftest.i conftest.$ac_ext
13958 fi # $ac_x_includes = no
13960 if test "$ac_x_libraries" = no; then
13961 # Check for the libraries.
13962 # See if we find them without any special options.
13963 # Don't add to $LIBS permanently.
13964 ac_save_LIBS=$LIBS
13965 LIBS="-lX11 $LIBS"
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <X11/Xlib.h>
13970 main ()
13972 XrmInitialize ()
13974 return 0;
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 LIBS=$ac_save_LIBS
13979 # We can link X programs with no special library path.
13980 ac_x_libraries=
13981 else
13982 LIBS=$ac_save_LIBS
13983 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13985 # Don't even attempt the hair of trying to link an X program!
13986 for ac_extension in a so sl dylib la dll; do
13987 if test -r "$ac_dir/libX11.$ac_extension"; then
13988 ac_x_libraries=$ac_dir
13989 break 2
13991 done
13992 done
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 fi # $ac_x_libraries = no
13998 case $ac_x_includes,$ac_x_libraries in #(
13999 no,* | *,no | *\'*)
14000 # Didn't find X, or a directory has "'" in its name.
14001 ac_cv_have_x="have_x=no";; #(
14003 # Record where we found X for the cache.
14004 ac_cv_have_x="have_x=yes\
14005 ac_x_includes='$ac_x_includes'\
14006 ac_x_libraries='$ac_x_libraries'"
14007 esac
14009 ;; #(
14010 *) have_x=yes;;
14011 esac
14012 eval "$ac_cv_have_x"
14013 fi # $with_x != no
14015 if test "$have_x" != yes; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14017 $as_echo "$have_x" >&6; }
14018 no_x=yes
14019 else
14020 # If each of the values was on the command line, it overrides each guess.
14021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14023 # Update the cache value to reflect the command line values.
14024 ac_cv_have_x="have_x=yes\
14025 ac_x_includes='$x_includes'\
14026 ac_x_libraries='$x_libraries'"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14028 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14032 x_cflags=
14033 for path in $x_libraries
14035 x_cflags="$x_cflags -L$path"
14036 done
14038 for path in $x_includes
14040 x_cflags="$x_cflags -I$path"
14041 done
14043 if test "x-$no_x" = "x-yes" ; then
14045 if test "x-$x11_hidd" != "x-auto" ; then
14046 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14049 else
14050 unixgfx_hidd_target=kernel-x11gfx
14051 ENABLE_X11=1
14053 # Check whether --enable-x11_shm was given.
14054 if test "${enable_x11_shm+set}" = set; then :
14055 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14056 else
14057 x11_hidd_shm="auto"
14060 case "x-$x11_hidd_shm" in
14061 x-yes|x-no|x-auto) ;;
14062 *) x11_hidd_shm="auto" ;;
14063 esac
14065 have_xshm=no
14067 if test "x-$x11_hidd_shm" != "x-no" ; then
14069 for ac_header in sys/ipc.h
14070 do :
14071 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14072 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_SYS_IPC_H 1
14075 _ACEOF
14079 done
14081 for ac_header in sys/shm.h
14082 do :
14083 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14084 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_SYS_SHM_H 1
14087 _ACEOF
14091 done
14094 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14096 save_cflags="$CFLAGS"
14097 CFLAGS="$CFLAGS $x_cflags"
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14099 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14100 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lXext $LIBS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char XShmQueryExtension ();
14116 main ()
14118 return XShmQueryExtension ();
14120 return 0;
14122 _ACEOF
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 ac_cv_lib_Xext_XShmQueryExtension=yes
14125 else
14126 ac_cv_lib_Xext_XShmQueryExtension=no
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14133 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14134 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14135 have_xshm=yes
14138 CFLAGS="$save_cflags"
14142 if test "x-$have_xshm" = "x-yes" ; then
14143 DO_XSHM_SUPPORT="1"
14144 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14145 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14146 else
14147 DO_XSHM_SUPPORT="0"
14151 # Check whether --enable-x11_vidmode was given.
14152 if test "${enable_x11_vidmode+set}" = set; then :
14153 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14154 else
14155 x11_hidd_vidmode="auto"
14158 case "x-$x11_hidd_vidmode" in
14159 x-yes|x-no|x-auto) ;;
14160 *) x11_hidd_vidmode="auto" ;;
14161 esac
14163 have_vidmode=no
14165 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14167 save_cflags="$CFLAGS"
14168 CFLAGS="$CFLAGS $x_cflags"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14170 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14171 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-lXxf86vm $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14179 /* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
14182 #ifdef __cplusplus
14183 extern "C"
14184 #endif
14185 char XF86VidModeQueryExtension ();
14187 main ()
14189 return XF86VidModeQueryExtension ();
14191 return 0;
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14196 else
14197 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14204 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14205 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14206 have_vidmode=yes
14209 CFLAGS="$save_cflags"
14212 if test "x-$have_vidmode" = "x-yes" ; then
14213 DO_VIDMODE_SUPPORT="1"
14214 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14215 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14216 else
14217 DO_VIDMODE_SUPPORT="0"
14221 aros_host_x11_includes=$x_includes
14222 aros_host_x11_libdirs=$x_libraries
14226 # Check whether --enable-sdl_hidd was given.
14227 if test "${enable_sdl_hidd+set}" = set; then :
14228 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14229 else
14230 sdl_hidd="auto"
14233 case "x-$sdl_hidd" in
14234 x-yes|x-no|x-auto) ;;
14235 *) sdl_hidd="auto" ;;
14236 esac
14238 if test "x-$sdl_hidd" != "x-no" ; then
14241 # Check whether --with-sdl-prefix was given.
14242 if test "${with_sdl_prefix+set}" = set; then :
14243 withval=$with_sdl_prefix; sdl_prefix="$withval"
14244 else
14245 sdl_prefix=""
14249 # Check whether --with-sdl-exec-prefix was given.
14250 if test "${with_sdl_exec_prefix+set}" = set; then :
14251 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14252 else
14253 sdl_exec_prefix=""
14256 # Check whether --enable-sdltest was given.
14257 if test "${enable_sdltest+set}" = set; then :
14258 enableval=$enable_sdltest;
14259 else
14260 enable_sdltest=yes
14264 if test x$sdl_exec_prefix != x ; then
14265 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14266 if test x${SDL_CONFIG+set} != xset ; then
14267 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14270 if test x$sdl_prefix != x ; then
14271 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14272 if test x${SDL_CONFIG+set} != xset ; then
14273 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14277 as_save_PATH="$PATH"
14278 if test "x$prefix" != xNONE; then
14279 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14281 # Extract the first word of "sdl-config", so it can be a program name with args.
14282 set dummy sdl-config; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 case $SDL_CONFIG in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14304 done
14305 done
14306 IFS=$as_save_IFS
14308 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14310 esac
14312 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14313 if test -n "$SDL_CONFIG"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14315 $as_echo "$SDL_CONFIG" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14322 PATH="$as_save_PATH"
14323 min_sdl_version=1.2.10
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14325 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14326 no_sdl=""
14327 if test "$SDL_CONFIG" = "no" ; then
14328 no_sdl=yes
14329 else
14330 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14331 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14333 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14335 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14337 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14339 if test "x$enable_sdltest" = "xyes" ; then
14340 ac_save_CFLAGS="$CFLAGS"
14341 ac_save_CXXFLAGS="$CXXFLAGS"
14342 ac_save_LIBS="$LIBS"
14343 CFLAGS="$CFLAGS $SDL_CFLAGS"
14344 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14345 LIBS="$LIBS $SDL_LIBS"
14346 rm -f conf.sdltest
14347 if test "$cross_compiling" = yes; then :
14348 echo $ac_n "cross compiling; assumed OK... $ac_c"
14349 else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14353 #include <stdio.h>
14354 #include <stdlib.h>
14355 #include <string.h>
14356 #include "SDL.h"
14358 char*
14359 my_strdup (char *str)
14361 char *new_str;
14363 if (str)
14365 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14366 strcpy (new_str, str);
14368 else
14369 new_str = NULL;
14371 return new_str;
14374 int main (int argc, char *argv[])
14376 int major, minor, micro;
14377 char *tmp_version;
14379 /* This hangs on some systems (?)
14380 system ("touch conf.sdltest");
14382 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14384 /* HP/UX 9 (%@#!) writes to sscanf strings */
14385 tmp_version = my_strdup("$min_sdl_version");
14386 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14387 printf("%s, bad version string\n", "$min_sdl_version");
14388 exit(1);
14391 if (($sdl_major_version > major) ||
14392 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14393 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14395 return 0;
14397 else
14399 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14400 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14401 printf("*** best to upgrade to the required version.\n");
14402 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14403 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14404 printf("*** config.cache before re-running configure\n");
14405 return 1;
14410 _ACEOF
14411 if ac_fn_c_try_run "$LINENO"; then :
14413 else
14414 no_sdl=yes
14416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14417 conftest.$ac_objext conftest.beam conftest.$ac_ext
14420 CFLAGS="$ac_save_CFLAGS"
14421 CXXFLAGS="$ac_save_CXXFLAGS"
14422 LIBS="$ac_save_LIBS"
14425 if test "x$no_sdl" = x ; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14427 $as_echo "yes" >&6; }
14428 have_sdl="yes"
14429 else
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14432 if test "$SDL_CONFIG" = "no" ; then
14433 echo "*** The sdl-config script installed by SDL could not be found"
14434 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14435 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14436 echo "*** full path to sdl-config."
14437 else
14438 if test -f conf.sdltest ; then
14440 else
14441 echo "*** Could not run SDL test program, checking why..."
14442 CFLAGS="$CFLAGS $SDL_CFLAGS"
14443 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14444 LIBS="$LIBS $SDL_LIBS"
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14448 #include <stdio.h>
14449 #include "SDL.h"
14451 int main(int argc, char *argv[])
14452 { return 0; }
14453 #undef main
14454 #define main K_and_R_C_main
14457 main ()
14459 return 0;
14461 return 0;
14463 _ACEOF
14464 if ac_fn_c_try_link "$LINENO"; then :
14465 echo "*** The test program compiled, but did not run. This usually means"
14466 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14467 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14468 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14469 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14470 echo "*** is required on your system"
14471 echo "***"
14472 echo "*** If you have an old version installed, it is best to remove it, although"
14473 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14474 else
14475 echo "*** The test program failed to compile or link. See the file config.log for the"
14476 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14477 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14478 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14480 rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext conftest.$ac_ext
14482 CFLAGS="$ac_save_CFLAGS"
14483 CXXFLAGS="$ac_save_CXXFLAGS"
14484 LIBS="$ac_save_LIBS"
14487 SDL_CFLAGS=""
14488 SDL_LIBS=""
14489 have_sdl="no"
14493 rm -f conf.sdltest
14496 if test "x-$have_sdl" != "x-yes" ; then
14498 if test "x-$sdl_hidd" != "x-auto" ; then
14499 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14502 else
14503 sdl_hidd_target=kernel-hidd-sdl
14504 aros_host_sdl_cflags=SDL_CFLAGS
14505 aros_host_sdl_libs=SDL_LIBS
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14513 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14514 # Check whether --enable-dbus was given.
14515 if test "${enable_dbus+set}" = set; then :
14516 enableval=$enable_dbus; dbus="yes"
14517 else
14518 dbus="no"
14521 if test "$dbus" = "yes" ; then
14522 ENABLE_DBUS=1
14523 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14524 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14525 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14526 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14527 else
14528 ENABLE_DBUS=0
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14531 $as_echo "$dbus" >&6; }
14533 if test "$use_kernel_cc_wrapper" = "yes" ; then
14534 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14538 # Generic
14550 # Compatability with other Amiga-like operation systems
14553 # Host related
14581 # Target Related
14652 # Delinting target compiler flags
14659 # Graphics Related
14675 # Native version related
14679 # Palm native version related
14682 # Unix/Hosted version related
14685 # MMU related
14688 # Apple iOS related
14693 # ARM default GCC target related
14700 # Android related
14705 # DBUS related
14712 #X11 related
14715 # Debug related
14721 # Collect-aros stuff: "-ius" to ignore undefined symbols
14724 # C compiler related
14729 #ObjC compiler related
14732 #Java related
14735 # USB3.0 code
14738 case "$aros_flavour" in
14739 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14740 aros_flavour="emulation" ;;
14741 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14742 aros_flavour="emulation" ;;
14743 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14744 aros_flavour="standalone";;
14745 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14746 aros_flavour="standalone";;
14747 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14748 aros_flavour="native" ;;
14749 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14750 aros_flavour="native" ;;
14751 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14752 aros_flavour="linklib" ;;
14753 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14754 aros_flavour="palmnative" ;;
14755 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14756 aros_flavour="mac68knative" ;;
14757 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14758 aros_flavour="ppcnative" ;;
14759 esac
14761 if test ! -d ${aros_inc_dir} ; then
14762 ${MKDIR} ${aros_inc_dir}
14764 if test ! -d ${aros_geninc_dir} ; then
14765 ${MKDIR} ${aros_geninc_dir}
14767 if test ! -d ${aros_hostcfg_dir} ; then
14768 ${MKDIR} ${aros_hostcfg_dir}
14770 if test ! -d ${aros_targetcfg_dir} ; then
14771 ${MKDIR} ${aros_targetcfg_dir}
14773 if test ! -d ${aros_tools_dir} ; then
14774 ${MKDIR} ${aros_tools_dir}
14776 if test ! -d ${aros_scripts_dir} ; then
14777 ${MKDIR} ${aros_scripts_dir}
14780 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14783 # Generic build tools (metamake, etc)
14784 ac_config_commands="$ac_config_commands genmf-executable-support"
14786 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_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14789 # Binutils
14790 ac_config_commands="$ac_config_commands binutils-support"
14792 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14795 # Bare Elf support script and spec
14796 if test "${use_kernel_cc_wrapper}" = "yes"; then
14797 ac_config_commands="$ac_config_commands elf-compiler-support"
14799 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
14803 # Host compiler support scripts and spec
14804 if test "${aros_target_toolchain}" = "no"; then
14805 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14807 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/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"
14811 # Android support
14812 if test "$aros_target_variant" == "android"; then
14813 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14817 # cmake helper
14818 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14821 cat >confcache <<\_ACEOF
14822 # This file is a shell script that caches the results of configure
14823 # tests run on this system so they can be shared between configure
14824 # scripts and configure runs, see configure's option --config-cache.
14825 # It is not useful on other systems. If it contains results you don't
14826 # want to keep, you may remove or edit it.
14828 # config.status only pays attention to the cache file if you give it
14829 # the --recheck option to rerun configure.
14831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14833 # following values.
14835 _ACEOF
14837 # The following way of writing the cache mishandles newlines in values,
14838 # but we know of no workaround that is simple, portable, and efficient.
14839 # So, we kill variables containing newlines.
14840 # Ultrix sh set writes to stderr and can't be redirected directly,
14841 # and sets the high bit in the cache file unless we assign to the vars.
14843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14844 eval ac_val=\$$ac_var
14845 case $ac_val in #(
14846 *${as_nl}*)
14847 case $ac_var in #(
14848 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14849 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14850 esac
14851 case $ac_var in #(
14852 _ | IFS | as_nl) ;; #(
14853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14854 *) { eval $ac_var=; unset $ac_var;} ;;
14855 esac ;;
14856 esac
14857 done
14859 (set) 2>&1 |
14860 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14861 *${as_nl}ac_space=\ *)
14862 # `set' does not quote correctly, so add quotes: double-quote
14863 # substitution turns \\\\ into \\, and sed turns \\ into \.
14864 sed -n \
14865 "s/'/'\\\\''/g;
14866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14867 ;; #(
14869 # `set' quotes correctly as required by POSIX, so do not add quotes.
14870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14872 esac |
14873 sort
14875 sed '
14876 /^ac_cv_env_/b end
14877 t clear
14878 :clear
14879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14880 t end
14881 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14882 :end' >>confcache
14883 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14884 if test -w "$cache_file"; then
14885 if test "x$cache_file" != "x/dev/null"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14887 $as_echo "$as_me: updating cache $cache_file" >&6;}
14888 if test ! -f "$cache_file" || test -h "$cache_file"; then
14889 cat confcache >"$cache_file"
14890 else
14891 case $cache_file in #(
14892 */* | ?:*)
14893 mv -f confcache "$cache_file"$$ &&
14894 mv -f "$cache_file"$$ "$cache_file" ;; #(
14896 mv -f confcache "$cache_file" ;;
14897 esac
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14902 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14905 rm -f confcache
14907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14908 # Let make expand exec_prefix.
14909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14911 DEFS=-DHAVE_CONFIG_H
14913 ac_libobjs=
14914 ac_ltlibobjs=
14916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14917 # 1. Remove the extension, and $U if already installed.
14918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14921 # will be set to the directory where LIBOBJS objects are built.
14922 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14923 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14924 done
14925 LIBOBJS=$ac_libobjs
14927 LTLIBOBJS=$ac_ltlibobjs
14931 : "${CONFIG_STATUS=./config.status}"
14932 ac_write_fail=0
14933 ac_clean_files_save=$ac_clean_files
14934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14936 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14937 as_write_fail=0
14938 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14939 #! $SHELL
14940 # Generated by $as_me.
14941 # Run this file to recreate the current configuration.
14942 # Compiler output produced by configure, useful for debugging
14943 # configure, is in config.log if it exists.
14945 debug=false
14946 ac_cs_recheck=false
14947 ac_cs_silent=false
14949 SHELL=\${CONFIG_SHELL-$SHELL}
14950 export SHELL
14951 _ASEOF
14952 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14953 ## -------------------- ##
14954 ## M4sh Initialization. ##
14955 ## -------------------- ##
14957 # Be more Bourne compatible
14958 DUALCASE=1; export DUALCASE # for MKS sh
14959 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14960 emulate sh
14961 NULLCMD=:
14962 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14963 # is contrary to our usage. Disable this feature.
14964 alias -g '${1+"$@"}'='"$@"'
14965 setopt NO_GLOB_SUBST
14966 else
14967 case `(set -o) 2>/dev/null` in #(
14968 *posix*) :
14969 set -o posix ;; #(
14970 *) :
14972 esac
14976 as_nl='
14978 export as_nl
14979 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14980 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14983 # Prefer a ksh shell builtin over an external printf program on Solaris,
14984 # but without wasting forks for bash or zsh.
14985 if test -z "$BASH_VERSION$ZSH_VERSION" \
14986 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14987 as_echo='print -r --'
14988 as_echo_n='print -rn --'
14989 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14990 as_echo='printf %s\n'
14991 as_echo_n='printf %s'
14992 else
14993 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14994 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14995 as_echo_n='/usr/ucb/echo -n'
14996 else
14997 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14998 as_echo_n_body='eval
14999 arg=$1;
15000 case $arg in #(
15001 *"$as_nl"*)
15002 expr "X$arg" : "X\\(.*\\)$as_nl";
15003 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15004 esac;
15005 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15007 export as_echo_n_body
15008 as_echo_n='sh -c $as_echo_n_body as_echo'
15010 export as_echo_body
15011 as_echo='sh -c $as_echo_body as_echo'
15014 # The user is always right.
15015 if test "${PATH_SEPARATOR+set}" != set; then
15016 PATH_SEPARATOR=:
15017 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15018 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15019 PATH_SEPARATOR=';'
15024 # IFS
15025 # We need space, tab and new line, in precisely that order. Quoting is
15026 # there to prevent editors from complaining about space-tab.
15027 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15028 # splitting by setting IFS to empty value.)
15029 IFS=" "" $as_nl"
15031 # Find who we are. Look in the path if we contain no directory separator.
15032 as_myself=
15033 case $0 in #((
15034 *[\\/]* ) as_myself=$0 ;;
15035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15041 done
15042 IFS=$as_save_IFS
15045 esac
15046 # We did not find ourselves, most probably we were run as `sh COMMAND'
15047 # in which case we are not to be found in the path.
15048 if test "x$as_myself" = x; then
15049 as_myself=$0
15051 if test ! -f "$as_myself"; then
15052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15053 exit 1
15056 # Unset variables that we do not need and which cause bugs (e.g. in
15057 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15058 # suppresses any "Segmentation fault" message there. '((' could
15059 # trigger a bug in pdksh 5.2.14.
15060 for as_var in BASH_ENV ENV MAIL MAILPATH
15061 do eval test x\${$as_var+set} = xset \
15062 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15063 done
15064 PS1='$ '
15065 PS2='> '
15066 PS4='+ '
15068 # NLS nuisances.
15069 LC_ALL=C
15070 export LC_ALL
15071 LANGUAGE=C
15072 export LANGUAGE
15074 # CDPATH.
15075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15078 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15079 # ----------------------------------------
15080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15082 # script with STATUS, using 1 if that was 0.
15083 as_fn_error ()
15085 as_status=$1; test $as_status -eq 0 && as_status=1
15086 if test "$4"; then
15087 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15090 $as_echo "$as_me: error: $2" >&2
15091 as_fn_exit $as_status
15092 } # as_fn_error
15095 # as_fn_set_status STATUS
15096 # -----------------------
15097 # Set $? to STATUS, without forking.
15098 as_fn_set_status ()
15100 return $1
15101 } # as_fn_set_status
15103 # as_fn_exit STATUS
15104 # -----------------
15105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15106 as_fn_exit ()
15108 set +e
15109 as_fn_set_status $1
15110 exit $1
15111 } # as_fn_exit
15113 # as_fn_unset VAR
15114 # ---------------
15115 # Portably unset VAR.
15116 as_fn_unset ()
15118 { eval $1=; unset $1;}
15120 as_unset=as_fn_unset
15121 # as_fn_append VAR VALUE
15122 # ----------------------
15123 # Append the text in VALUE to the end of the definition contained in VAR. Take
15124 # advantage of any shell optimizations that allow amortized linear growth over
15125 # repeated appends, instead of the typical quadratic growth present in naive
15126 # implementations.
15127 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15128 eval 'as_fn_append ()
15130 eval $1+=\$2
15132 else
15133 as_fn_append ()
15135 eval $1=\$$1\$2
15137 fi # as_fn_append
15139 # as_fn_arith ARG...
15140 # ------------------
15141 # Perform arithmetic evaluation on the ARGs, and store the result in the
15142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15143 # must be portable across $(()) and expr.
15144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15145 eval 'as_fn_arith ()
15147 as_val=$(( $* ))
15149 else
15150 as_fn_arith ()
15152 as_val=`expr "$@" || test $? -eq 1`
15154 fi # as_fn_arith
15157 if expr a : '\(a\)' >/dev/null 2>&1 &&
15158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15159 as_expr=expr
15160 else
15161 as_expr=false
15164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15165 as_basename=basename
15166 else
15167 as_basename=false
15170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15171 as_dirname=dirname
15172 else
15173 as_dirname=false
15176 as_me=`$as_basename -- "$0" ||
15177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15178 X"$0" : 'X\(//\)$' \| \
15179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15180 $as_echo X/"$0" |
15181 sed '/^.*\/\([^/][^/]*\)\/*$/{
15182 s//\1/
15185 /^X\/\(\/\/\)$/{
15186 s//\1/
15189 /^X\/\(\/\).*/{
15190 s//\1/
15193 s/.*/./; q'`
15195 # Avoid depending upon Character Ranges.
15196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15199 as_cr_digits='0123456789'
15200 as_cr_alnum=$as_cr_Letters$as_cr_digits
15202 ECHO_C= ECHO_N= ECHO_T=
15203 case `echo -n x` in #(((((
15204 -n*)
15205 case `echo 'xy\c'` in
15206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15207 xy) ECHO_C='\c';;
15208 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15209 ECHO_T=' ';;
15210 esac;;
15212 ECHO_N='-n';;
15213 esac
15215 rm -f conf$$ conf$$.exe conf$$.file
15216 if test -d conf$$.dir; then
15217 rm -f conf$$.dir/conf$$.file
15218 else
15219 rm -f conf$$.dir
15220 mkdir conf$$.dir 2>/dev/null
15222 if (echo >conf$$.file) 2>/dev/null; then
15223 if ln -s conf$$.file conf$$ 2>/dev/null; then
15224 as_ln_s='ln -s'
15225 # ... but there are two gotchas:
15226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15228 # In both cases, we have to default to `cp -pR'.
15229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15230 as_ln_s='cp -pR'
15231 elif ln conf$$.file conf$$ 2>/dev/null; then
15232 as_ln_s=ln
15233 else
15234 as_ln_s='cp -pR'
15236 else
15237 as_ln_s='cp -pR'
15239 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15240 rmdir conf$$.dir 2>/dev/null
15243 # as_fn_mkdir_p
15244 # -------------
15245 # Create "$as_dir" as a directory, including parents if necessary.
15246 as_fn_mkdir_p ()
15249 case $as_dir in #(
15250 -*) as_dir=./$as_dir;;
15251 esac
15252 test -d "$as_dir" || eval $as_mkdir_p || {
15253 as_dirs=
15254 while :; do
15255 case $as_dir in #(
15256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15257 *) as_qdir=$as_dir;;
15258 esac
15259 as_dirs="'$as_qdir' $as_dirs"
15260 as_dir=`$as_dirname -- "$as_dir" ||
15261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15262 X"$as_dir" : 'X\(//\)[^/]' \| \
15263 X"$as_dir" : 'X\(//\)$' \| \
15264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15265 $as_echo X"$as_dir" |
15266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15267 s//\1/
15270 /^X\(\/\/\)[^/].*/{
15271 s//\1/
15274 /^X\(\/\/\)$/{
15275 s//\1/
15278 /^X\(\/\).*/{
15279 s//\1/
15282 s/.*/./; q'`
15283 test -d "$as_dir" && break
15284 done
15285 test -z "$as_dirs" || eval "mkdir $as_dirs"
15286 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15289 } # as_fn_mkdir_p
15290 if mkdir -p . 2>/dev/null; then
15291 as_mkdir_p='mkdir -p "$as_dir"'
15292 else
15293 test -d ./-p && rmdir ./-p
15294 as_mkdir_p=false
15298 # as_fn_executable_p FILE
15299 # -----------------------
15300 # Test if FILE is an executable regular file.
15301 as_fn_executable_p ()
15303 test -f "$1" && test -x "$1"
15304 } # as_fn_executable_p
15305 as_test_x='test -x'
15306 as_executable_p=as_fn_executable_p
15308 # Sed expression to map a string onto a valid CPP name.
15309 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15311 # Sed expression to map a string onto a valid variable name.
15312 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15315 exec 6>&1
15316 ## ----------------------------------- ##
15317 ## Main body of $CONFIG_STATUS script. ##
15318 ## ----------------------------------- ##
15319 _ASEOF
15320 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15323 # Save the log message, to keep $0 and so on meaningful, and to
15324 # report actual input values of CONFIG_FILES etc. instead of their
15325 # values after options handling.
15326 ac_log="
15327 This file was extended by $as_me, which was
15328 generated by GNU Autoconf 2.69. Invocation command line was
15330 CONFIG_FILES = $CONFIG_FILES
15331 CONFIG_HEADERS = $CONFIG_HEADERS
15332 CONFIG_LINKS = $CONFIG_LINKS
15333 CONFIG_COMMANDS = $CONFIG_COMMANDS
15334 $ $0 $@
15336 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15339 _ACEOF
15341 case $ac_config_files in *"
15342 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15343 esac
15345 case $ac_config_headers in *"
15346 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15347 esac
15350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351 # Files that config.status was made for.
15352 config_files="$ac_config_files"
15353 config_headers="$ac_config_headers"
15354 config_commands="$ac_config_commands"
15356 _ACEOF
15358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15359 ac_cs_usage="\
15360 \`$as_me' instantiates files and other configuration actions
15361 from templates according to the current configuration. Unless the files
15362 and actions are specified as TAGs, all are instantiated by default.
15364 Usage: $0 [OPTION]... [TAG]...
15366 -h, --help print this help, then exit
15367 -V, --version print version number and configuration settings, then exit
15368 --config print configuration, then exit
15369 -q, --quiet, --silent
15370 do not print progress messages
15371 -d, --debug don't remove temporary files
15372 --recheck update $as_me by reconfiguring in the same conditions
15373 --file=FILE[:TEMPLATE]
15374 instantiate the configuration file FILE
15375 --header=FILE[:TEMPLATE]
15376 instantiate the configuration header FILE
15378 Configuration files:
15379 $config_files
15381 Configuration headers:
15382 $config_headers
15384 Configuration commands:
15385 $config_commands
15387 Report bugs to the package provider."
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15392 ac_cs_version="\\
15393 config.status
15394 configured by $0, generated by GNU Autoconf 2.69,
15395 with options \\"\$ac_cs_config\\"
15397 Copyright (C) 2012 Free Software Foundation, Inc.
15398 This config.status script is free software; the Free Software Foundation
15399 gives unlimited permission to copy, distribute and modify it."
15401 ac_pwd='$ac_pwd'
15402 srcdir='$srcdir'
15403 test -n "\$AWK" || AWK=awk
15404 _ACEOF
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 # The default lists apply if the user does not specify any file.
15408 ac_need_defaults=:
15409 while test $# != 0
15411 case $1 in
15412 --*=?*)
15413 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15414 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15415 ac_shift=:
15417 --*=)
15418 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15419 ac_optarg=
15420 ac_shift=:
15423 ac_option=$1
15424 ac_optarg=$2
15425 ac_shift=shift
15427 esac
15429 case $ac_option in
15430 # Handling of the options.
15431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15432 ac_cs_recheck=: ;;
15433 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15434 $as_echo "$ac_cs_version"; exit ;;
15435 --config | --confi | --conf | --con | --co | --c )
15436 $as_echo "$ac_cs_config"; exit ;;
15437 --debug | --debu | --deb | --de | --d | -d )
15438 debug=: ;;
15439 --file | --fil | --fi | --f )
15440 $ac_shift
15441 case $ac_optarg in
15442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15443 '') as_fn_error $? "missing file argument" ;;
15444 esac
15445 as_fn_append CONFIG_FILES " '$ac_optarg'"
15446 ac_need_defaults=false;;
15447 --header | --heade | --head | --hea )
15448 $ac_shift
15449 case $ac_optarg in
15450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15451 esac
15452 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15453 ac_need_defaults=false;;
15454 --he | --h)
15455 # Conflict between --help and --header
15456 as_fn_error $? "ambiguous option: \`$1'
15457 Try \`$0 --help' for more information.";;
15458 --help | --hel | -h )
15459 $as_echo "$ac_cs_usage"; exit ;;
15460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15462 ac_cs_silent=: ;;
15464 # This is an error.
15465 -*) as_fn_error $? "unrecognized option: \`$1'
15466 Try \`$0 --help' for more information." ;;
15468 *) as_fn_append ac_config_targets " $1"
15469 ac_need_defaults=false ;;
15471 esac
15472 shift
15473 done
15475 ac_configure_extra_args=
15477 if $ac_cs_silent; then
15478 exec 6>/dev/null
15479 ac_configure_extra_args="$ac_configure_extra_args --silent"
15482 _ACEOF
15483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15484 if \$ac_cs_recheck; then
15485 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15486 shift
15487 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15488 CONFIG_SHELL='$SHELL'
15489 export CONFIG_SHELL
15490 exec "\$@"
15493 _ACEOF
15494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15495 exec 5>>config.log
15497 echo
15498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15499 ## Running $as_me. ##
15500 _ASBOX
15501 $as_echo "$ac_log"
15502 } >&5
15504 _ACEOF
15505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15507 # INIT-COMMANDS
15509 aros_tools_dir=${aros_tools_dir}
15512 aros_host_exe_suffix=${aros_host_exe_suffix}
15513 aros_tools_dir=${aros_tools_dir}
15514 aros_target_cpu=${aros_target_cpu}
15515 aros_target_arch=${aros_target_arch}
15516 aros_target_suffix=${aros_target_suffix}
15517 orig_target_nm=${orig_target_nm}
15518 orig_target_as=${orig_target_as}
15519 orig_target_ar=${orig_target_ar}
15520 orig_target_ranlib=${orig_target_ranlib}
15521 orig_target_objdump=${orig_target_objdump}
15522 orig_target_objcopy=${orig_target_objcopy}
15523 orig_target_strip=${orig_target_strip}
15524 aros_kernel_ld=${aros_kernel_ld}
15528 aros_host_exe_suffix=${aros_host_exe_suffix}
15529 aros_tools_dir=${aros_tools_dir}
15530 aros_target_cpu=${aros_target_cpu}
15531 aros_target_arch=${aros_target_arch}
15532 aros_target_suffix=${aros_target_suffix}
15533 aros_kernel_ld=${aros_kernel_ld}
15537 aros_host_exe_suffix=${aros_host_exe_suffix}
15538 aros_tools_dir=${aros_tools_dir}
15539 aros_target_cpu=${aros_target_cpu}
15540 aros_target_arch=${aros_target_arch}
15541 aros_target_suffix=${aros_target_suffix}
15545 _ACEOF
15547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 # Handling of arguments.
15550 for ac_config_target in $ac_config_targets
15552 case $ac_config_target in
15553 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15554 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15555 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15556 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15557 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15558 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15559 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15560 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15561 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15562 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15563 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15564 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15565 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15566 "${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" ;;
15567 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15568 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15569 "${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" ;;
15570 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15571 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15572 "${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" ;;
15573 "${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" ;;
15574 "${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" ;;
15575 "${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" ;;
15576 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15578 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15579 esac
15580 done
15583 # If the user did not use the arguments to specify the items to instantiate,
15584 # then the envvar interface is used. Set only those that are not.
15585 # We use the long form for the default assignment because of an extremely
15586 # bizarre bug on SunOS 4.1.3.
15587 if $ac_need_defaults; then
15588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15593 # Have a temporary directory for convenience. Make it in the build tree
15594 # simply because there is no reason against having it here, and in addition,
15595 # creating and moving files from /tmp can sometimes cause problems.
15596 # Hook for its removal unless debugging.
15597 # Note that there is a small window in which the directory will not be cleaned:
15598 # after its creation but before its name has been assigned to `$tmp'.
15599 $debug ||
15601 tmp= ac_tmp=
15602 trap 'exit_status=$?
15603 : "${ac_tmp:=$tmp}"
15604 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15606 trap 'as_fn_exit 1' 1 2 13 15
15608 # Create a (secure) tmp directory for tmp files.
15611 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15612 test -d "$tmp"
15613 } ||
15615 tmp=./conf$$-$RANDOM
15616 (umask 077 && mkdir "$tmp")
15617 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15618 ac_tmp=$tmp
15620 # Set up the scripts for CONFIG_FILES section.
15621 # No need to generate them if there are no CONFIG_FILES.
15622 # This happens for instance with `./config.status config.h'.
15623 if test -n "$CONFIG_FILES"; then
15626 ac_cr=`echo X | tr X '\015'`
15627 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15628 # But we know of no other shell where ac_cr would be empty at this
15629 # point, so we can use a bashism as a fallback.
15630 if test "x$ac_cr" = x; then
15631 eval ac_cr=\$\'\\r\'
15633 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15634 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15635 ac_cs_awk_cr='\\r'
15636 else
15637 ac_cs_awk_cr=$ac_cr
15640 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15641 _ACEOF
15645 echo "cat >conf$$subs.awk <<_ACEOF" &&
15646 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15647 echo "_ACEOF"
15648 } >conf$$subs.sh ||
15649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15650 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15651 ac_delim='%!_!# '
15652 for ac_last_try in false false false false false :; do
15653 . ./conf$$subs.sh ||
15654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15656 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15657 if test $ac_delim_n = $ac_delim_num; then
15658 break
15659 elif $ac_last_try; then
15660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15661 else
15662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15664 done
15665 rm -f conf$$subs.sh
15667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15669 _ACEOF
15670 sed -n '
15672 s/^/S["/; s/!.*/"]=/
15675 s/^[^!]*!//
15676 :repl
15677 t repl
15678 s/'"$ac_delim"'$//
15679 t delim
15682 s/\(.\{148\}\)..*/\1/
15683 t more1
15684 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15687 b repl
15688 :more1
15689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15692 s/.\{148\}//
15693 t nl
15694 :delim
15696 s/\(.\{148\}\)..*/\1/
15697 t more2
15698 s/["\\]/\\&/g; s/^/"/; s/$/"/
15701 :more2
15702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15705 s/.\{148\}//
15706 t delim
15707 ' <conf$$subs.awk | sed '
15708 /^[^""]/{
15710 s/\n//
15712 ' >>$CONFIG_STATUS || ac_write_fail=1
15713 rm -f conf$$subs.awk
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 _ACAWK
15716 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15717 for (key in S) S_is_set[key] = 1
15718 FS = "\a"
15722 line = $ 0
15723 nfields = split(line, field, "@")
15724 substed = 0
15725 len = length(field[1])
15726 for (i = 2; i < nfields; i++) {
15727 key = field[i]
15728 keylen = length(key)
15729 if (S_is_set[key]) {
15730 value = S[key]
15731 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15732 len += length(value) + length(field[++i])
15733 substed = 1
15734 } else
15735 len += 1 + keylen
15738 print line
15741 _ACAWK
15742 _ACEOF
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15745 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15746 else
15748 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15749 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15750 _ACEOF
15752 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15753 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15754 # trailing colons and then remove the whole line if VPATH becomes empty
15755 # (actually we leave an empty line to preserve line numbers).
15756 if test "x$srcdir" = x.; then
15757 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15759 s///
15760 s/^/:/
15761 s/[ ]*$/:/
15762 s/:\$(srcdir):/:/g
15763 s/:\${srcdir}:/:/g
15764 s/:@srcdir@:/:/g
15765 s/^:*//
15766 s/:*$//
15768 s/\(=[ ]*\).*/\1/
15770 s/\n//
15771 s/^[^=]*=[ ]*$//
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15776 fi # test -n "$CONFIG_FILES"
15778 # Set up the scripts for CONFIG_HEADERS section.
15779 # No need to generate them if there are no CONFIG_HEADERS.
15780 # This happens for instance with `./config.status Makefile'.
15781 if test -n "$CONFIG_HEADERS"; then
15782 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15783 BEGIN {
15784 _ACEOF
15786 # Transform confdefs.h into an awk script `defines.awk', embedded as
15787 # here-document in config.status, that substitutes the proper values into
15788 # config.h.in to produce config.h.
15790 # Create a delimiter string that does not exist in confdefs.h, to ease
15791 # handling of long lines.
15792 ac_delim='%!_!# '
15793 for ac_last_try in false false :; do
15794 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15795 if test -z "$ac_tt"; then
15796 break
15797 elif $ac_last_try; then
15798 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15799 else
15800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15802 done
15804 # For the awk script, D is an array of macro values keyed by name,
15805 # likewise P contains macro parameters if any. Preserve backslash
15806 # newline sequences.
15808 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15809 sed -n '
15810 s/.\{148\}/&'"$ac_delim"'/g
15811 t rset
15812 :rset
15813 s/^[ ]*#[ ]*define[ ][ ]*/ /
15814 t def
15816 :def
15817 s/\\$//
15818 t bsnl
15819 s/["\\]/\\&/g
15820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15821 D["\1"]=" \3"/p
15822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15824 :bsnl
15825 s/["\\]/\\&/g
15826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15827 D["\1"]=" \3\\\\\\n"\\/p
15828 t cont
15829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15830 t cont
15832 :cont
15834 s/.\{148\}/&'"$ac_delim"'/g
15835 t clear
15836 :clear
15837 s/\\$//
15838 t bsnlc
15839 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15841 :bsnlc
15842 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15843 b cont
15844 ' <confdefs.h | sed '
15845 s/'"$ac_delim"'/"\\\
15846 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15849 for (key in D) D_is_set[key] = 1
15850 FS = "\a"
15852 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15853 line = \$ 0
15854 split(line, arg, " ")
15855 if (arg[1] == "#") {
15856 defundef = arg[2]
15857 mac1 = arg[3]
15858 } else {
15859 defundef = substr(arg[1], 2)
15860 mac1 = arg[2]
15862 split(mac1, mac2, "(") #)
15863 macro = mac2[1]
15864 prefix = substr(line, 1, index(line, defundef) - 1)
15865 if (D_is_set[macro]) {
15866 # Preserve the white space surrounding the "#".
15867 print prefix "define", macro P[macro] D[macro]
15868 next
15869 } else {
15870 # Replace #undef with comments. This is necessary, for example,
15871 # in the case of _POSIX_SOURCE, which is predefined and required
15872 # on some systems where configure will not decide to define it.
15873 if (defundef == "undef") {
15874 print "/*", prefix defundef, macro, "*/"
15875 next
15879 { print }
15880 _ACAWK
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15884 fi # test -n "$CONFIG_HEADERS"
15887 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15888 shift
15889 for ac_tag
15891 case $ac_tag in
15892 :[FHLC]) ac_mode=$ac_tag; continue;;
15893 esac
15894 case $ac_mode$ac_tag in
15895 :[FHL]*:*);;
15896 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15897 :[FH]-) ac_tag=-:-;;
15898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15899 esac
15900 ac_save_IFS=$IFS
15901 IFS=:
15902 set x $ac_tag
15903 IFS=$ac_save_IFS
15904 shift
15905 ac_file=$1
15906 shift
15908 case $ac_mode in
15909 :L) ac_source=$1;;
15910 :[FH])
15911 ac_file_inputs=
15912 for ac_f
15914 case $ac_f in
15915 -) ac_f="$ac_tmp/stdin";;
15916 *) # Look for the file first in the build tree, then in the source tree
15917 # (if the path is not absolute). The absolute path cannot be DOS-style,
15918 # because $ac_f cannot contain `:'.
15919 test -f "$ac_f" ||
15920 case $ac_f in
15921 [\\/$]*) false;;
15922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15923 esac ||
15924 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15925 esac
15926 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15927 as_fn_append ac_file_inputs " '$ac_f'"
15928 done
15930 # Let's still pretend it is `configure' which instantiates (i.e., don't
15931 # use $as_me), people would be surprised to read:
15932 # /* config.h. Generated by config.status. */
15933 configure_input='Generated from '`
15934 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15935 `' by configure.'
15936 if test x"$ac_file" != x-; then
15937 configure_input="$ac_file. $configure_input"
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15939 $as_echo "$as_me: creating $ac_file" >&6;}
15941 # Neutralize special characters interpreted by sed in replacement strings.
15942 case $configure_input in #(
15943 *\&* | *\|* | *\\* )
15944 ac_sed_conf_input=`$as_echo "$configure_input" |
15945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15946 *) ac_sed_conf_input=$configure_input;;
15947 esac
15949 case $ac_tag in
15950 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15952 esac
15954 esac
15956 ac_dir=`$as_dirname -- "$ac_file" ||
15957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15958 X"$ac_file" : 'X\(//\)[^/]' \| \
15959 X"$ac_file" : 'X\(//\)$' \| \
15960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15961 $as_echo X"$ac_file" |
15962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15963 s//\1/
15966 /^X\(\/\/\)[^/].*/{
15967 s//\1/
15970 /^X\(\/\/\)$/{
15971 s//\1/
15974 /^X\(\/\).*/{
15975 s//\1/
15978 s/.*/./; q'`
15979 as_dir="$ac_dir"; as_fn_mkdir_p
15980 ac_builddir=.
15982 case "$ac_dir" in
15983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15985 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15986 # A ".." for each directory in $ac_dir_suffix.
15987 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15988 case $ac_top_builddir_sub in
15989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15991 esac ;;
15992 esac
15993 ac_abs_top_builddir=$ac_pwd
15994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15995 # for backward compatibility:
15996 ac_top_builddir=$ac_top_build_prefix
15998 case $srcdir in
15999 .) # We are building in place.
16000 ac_srcdir=.
16001 ac_top_srcdir=$ac_top_builddir_sub
16002 ac_abs_top_srcdir=$ac_pwd ;;
16003 [\\/]* | ?:[\\/]* ) # Absolute name.
16004 ac_srcdir=$srcdir$ac_dir_suffix;
16005 ac_top_srcdir=$srcdir
16006 ac_abs_top_srcdir=$srcdir ;;
16007 *) # Relative name.
16008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16009 ac_top_srcdir=$ac_top_build_prefix$srcdir
16010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16011 esac
16012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16015 case $ac_mode in
16018 # CONFIG_FILE
16021 _ACEOF
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 # If the template does not know about datarootdir, expand it.
16025 # FIXME: This hack should be removed a few years after 2.60.
16026 ac_datarootdir_hack=; ac_datarootdir_seen=
16027 ac_sed_dataroot='
16028 /datarootdir/ {
16032 /@datadir@/p
16033 /@docdir@/p
16034 /@infodir@/p
16035 /@localedir@/p
16036 /@mandir@/p'
16037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16038 *datarootdir*) ac_datarootdir_seen=yes;;
16039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16042 _ACEOF
16043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16044 ac_datarootdir_hack='
16045 s&@datadir@&$datadir&g
16046 s&@docdir@&$docdir&g
16047 s&@infodir@&$infodir&g
16048 s&@localedir@&$localedir&g
16049 s&@mandir@&$mandir&g
16050 s&\\\${datarootdir}&$datarootdir&g' ;;
16051 esac
16052 _ACEOF
16054 # Neutralize VPATH when `$srcdir' = `.'.
16055 # Shell code in configure.ac might set extrasub.
16056 # FIXME: do we really want to maintain this feature?
16057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16058 ac_sed_extra="$ac_vpsub
16059 $extrasub
16060 _ACEOF
16061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16064 s|@configure_input@|$ac_sed_conf_input|;t t
16065 s&@top_builddir@&$ac_top_builddir_sub&;t t
16066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16067 s&@srcdir@&$ac_srcdir&;t t
16068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16069 s&@top_srcdir@&$ac_top_srcdir&;t t
16070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16071 s&@builddir@&$ac_builddir&;t t
16072 s&@abs_builddir@&$ac_abs_builddir&;t t
16073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16074 $ac_datarootdir_hack
16076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16082 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16084 which seems to be undefined. Please make sure it is defined" >&5
16085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16086 which seems to be undefined. Please make sure it is defined" >&2;}
16088 rm -f "$ac_tmp/stdin"
16089 case $ac_file in
16090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16092 esac \
16093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16097 # CONFIG_HEADER
16099 if test x"$ac_file" != x-; then
16101 $as_echo "/* $configure_input */" \
16102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16103 } >"$ac_tmp/config.h" \
16104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16105 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16108 else
16109 rm -f "$ac_file"
16110 mv "$ac_tmp/config.h" "$ac_file" \
16111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16113 else
16114 $as_echo "/* $configure_input */" \
16115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16116 || as_fn_error $? "could not create -" "$LINENO" 5
16120 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16121 $as_echo "$as_me: executing $ac_file commands" >&6;}
16123 esac
16126 case $ac_file$ac_mode in
16127 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16128 "binutils-support":C)
16129 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16130 mkdir -p $prefix
16131 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16133 chmod a+x ${prefix2}-ld
16135 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16136 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16137 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16138 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16139 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16140 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16141 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16143 "elf-compiler-support":C)
16144 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16145 mkdir -p $prefix
16146 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16148 chmod a+x ${prefix2}-gcc
16150 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16152 "host-compiler-wrapper-support":C)
16153 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16154 mkdir -p $prefix
16155 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16157 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16160 esac
16161 done # for ac_tag
16164 as_fn_exit 0
16165 _ACEOF
16166 ac_clean_files=$ac_clean_files_save
16168 test $ac_write_fail = 0 ||
16169 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16172 # configure is writing to config.log, and then calls config.status.
16173 # config.status does its own redirection, appending to config.log.
16174 # Unfortunately, on DOS this fails, as config.log is still kept open
16175 # by configure, so config.status won't be able to write to it; its
16176 # output is simply discarded. So we exec the FD to /dev/null,
16177 # effectively closing config.log, so it can be properly (re)opened and
16178 # appended to by config.status. When coming back to configure, we
16179 # need to make the FD available again.
16180 if test "$no_create" != yes; then
16181 ac_cs_success=:
16182 ac_config_status_args=
16183 test "$silent" = yes &&
16184 ac_config_status_args="$ac_config_status_args --quiet"
16185 exec 5>/dev/null
16186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16187 exec 5>>config.log
16188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16189 # would make configure fail if this is the last instruction.
16190 $ac_cs_success || as_fn_exit 1
16192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16199 #XXX compatability...
16200 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16202 if test -n "$aros_shared_cflags" ; then
16203 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16204 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg