don't dereference type punned pointer.
[AROS.git] / configure
blob2e1cd355f4dcc22958d1a78b0349eef6b3e5743f
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 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 aros_cflags_format_security
669 aros_cflags_strict_overflow
670 aros_cflags_enum_compare
671 aros_cflags_array_bounds
672 aros_cflags_unused_but_set_variable
673 crosstools_cxx_target
674 crosstools_target
675 aros_isa_flags
676 aros_optimization_cflags
677 aros_target_strip_flags
678 aros_target_genmap
679 aros_debug_ldflags
680 aros_debug_aflags
681 aros_debug_cflags
682 aros_target_cflags
683 aros_kernel_ldflags
684 aros_kernel_objcflags
685 aros_kernel_includes
686 aros_kernel_cflags
687 aros_kernel_sysroot
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cflags
691 aros_config_sysroot
692 aros_shared_ldflags
693 aros_shared_aflags
694 aros_shared_cflags
695 aros_arch_libs
696 aros_compiler_libs
697 spec_obj_format
698 aros_object_format
699 aros_shared_ld
700 aros_shared_default
701 aros_target_nm
702 aros_target_strip
703 aros_target_objcopy
704 aros_target_objdump
705 aros_target_cc_path
706 aros_target_cc_includes
707 aros_target_ld
708 aros_target_as
709 aros_target_cpp
710 aros_target_cxx
711 aros_target_cc
712 aros_plain_ar
713 aros_plain_nm
714 aros_target_ranlib
715 aros_target_ar
716 aros_target_suffix
717 aros_target_variant
718 aros_target_cpu_mode
719 aros_target_cpu
720 aros_target_family
721 aros_target_arch
722 aros_target_bootloader
723 aros_target_iconset
724 aros_target_guitheme
725 aros_tools_dir
726 aros_host_lib_suffix
727 aros_host_exe_suffix
728 aros_host_mkargs
729 aros_host_mkdep
730 aros_host_debug
731 aros_host_ldflags
732 gnu89_inline
733 aros_host_cxxflags
734 aros_host_cflags
735 aros_host_make
736 aros_host_cxx
737 aros_host_cc
738 aros_host_cpp
739 aros_host_cpu
740 aros_host_arch
741 aros_cc_pre
742 aros_amigaos_compliance
743 AROS_PORTSSRCDIR
744 AROS_CROSSTOOLSDIR
745 SRCDIR
746 AROS_BUILDDIR_UNIX
747 AROS_BUILDDIR
748 aros_target_toolchain
749 aros_flavour_uc
750 aros_flavour
751 aros_cpu
752 aros_arch
753 SDL_LIBS
754 SDL_CFLAGS
755 SDL_CONFIG
756 X_EXTRA_LIBS
757 X_LIBS
758 X_PRE_LIBS
759 X_CFLAGS
760 XMKMF
761 aros_cflags_iquote_end
762 aros_cflags_iquote
763 kernel_cflags_iquote_end
764 kernel_cflags_iquote
765 host_cflags_iquote_end
766 host_cflags_iquote
767 aros_target_nostdlib_ldflags
768 aros_target_detach_ldflags
769 aros_target_nix_ldflags
770 aros_target_nostartup_ldflags
771 aros_target_nostdinc_cflags
772 aros_kernel_rescomp
773 orig_target_objdump
774 orig_target_objcopy
775 orig_target_strip
776 orig_target_nm
777 orig_target_ranlib
778 orig_target_ar
779 orig_target_as
780 orig_target_ld
781 orig_target_cxx
782 orig_target_cc
783 orig_target_cpp
784 aros_kernel_objdump
785 aros_kernel_objcopy
786 aros_kernel_strip
787 aros_kernel_nm
788 aros_kernel_ranlib
789 aros_kernel_ar
790 aros_kernel_as
791 aros_kernel_ld
792 aros_kernel_cxx
793 aros_kernel_cc
794 aros_kernel_cpp
795 target_gcc_version
797 android_tool
798 CCACHE
799 DISTCC
800 LIBOBJS
801 EGREP
802 GREP
804 TEST
807 pkgpyexecdir
808 pyexecdir
809 pkgpythondir
810 pythondir
811 PYTHON_PLATFORM
812 PYTHON_EXEC_PREFIX
813 PYTHON_PREFIX
814 PYTHON_VERSION
815 PYTHON
816 PATCH
817 CHMOD
819 PPMTOILBM
820 PNGTOPNM
821 FLEX
822 BISON
825 UNIQ
826 SORT
827 TOUCH
828 MKDIR
829 ECHO
833 aros_host_strip
834 aros_host_ranlib
835 aros_host_ar
836 aros_host_automake
837 aros_host_autoheader
838 aros_host_autoconf
839 aros_host_aclocal
840 aros_host_ld
841 MMAKE
844 ac_ct_CC
845 CFLAGS
847 OBJEXT
848 EXEEXT
849 ac_ct_CXX
850 CPPFLAGS
851 LDFLAGS
852 CXXFLAGS
854 host_os
855 host_vendor
856 host_cpu
857 host
858 build_os
859 build_vendor
860 build_cpu
861 build
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_build_type
904 enable_debug
905 enable_distcc
906 enable_ccache
907 with_kernel_gcc_version
908 with_optimization
909 with_paranoia
910 enable_target_variant
911 with_xcode
912 with_sdk_version
913 with_sdk
914 with_ndk
915 with_ndk_version
916 with_apk_version
917 enable_amigaos_compliance
918 with_kernel_toolchain_prefix
919 with_elf_toolchain_prefix
920 with_aros_toolchain
921 enable_crosstools
922 with_aros_toolchain_install
923 with_binutils_version
924 with_gcc_version
925 enable_objc
926 enable_java
927 with_cpu
928 with_fpu
929 with_float
930 with_portssources
931 with_bootloader
932 with_iconset
933 with_theme
934 enable_includes
935 with_resolution
936 with_serial_debug
937 enable_palm_debug_hack
938 enable_usb30_code
939 enable_nesting_supervisor
940 enable_mmu
941 enable_x11_hidd
942 with_x
943 enable_x11_shm
944 enable_x11_vidmode
945 enable_sdl_hidd
946 with_sdl_prefix
947 with_sdl_exec_prefix
948 enable_sdltest
949 enable_dbus
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
955 CXXFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
961 CFLAGS
963 PYTHON
964 XMKMF'
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1022 ac_prev=
1023 continue
1026 case $ac_option in
1027 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 *=) ac_optarg= ;;
1029 *) ac_optarg=yes ;;
1030 esac
1032 # Accept the important Cygnus configure options, so we can diagnose typos.
1034 case $ac_dashdash$ac_option in
1036 ac_dashdash=yes ;;
1038 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039 ac_prev=bindir ;;
1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041 bindir=$ac_optarg ;;
1043 -build | --build | --buil | --bui | --bu)
1044 ac_prev=build_alias ;;
1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046 build_alias=$ac_optarg ;;
1048 -cache-file | --cache-file | --cache-fil | --cache-fi \
1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050 ac_prev=cache_file ;;
1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053 cache_file=$ac_optarg ;;
1055 --config-cache | -C)
1056 cache_file=config.cache ;;
1058 -datadir | --datadir | --datadi | --datad)
1059 ac_prev=datadir ;;
1060 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061 datadir=$ac_optarg ;;
1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064 | --dataroo | --dataro | --datar)
1065 ac_prev=datarootdir ;;
1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068 datarootdir=$ac_optarg ;;
1070 -disable-* | --disable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=\$ac_optarg ;;
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1123 with_gas=yes ;;
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 ac_prev=htmldir ;;
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 | --ht=*)
1141 htmldir=$ac_optarg ;;
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 ac_prev=infodir ;;
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1155 -libdir | --libdir | --libdi | --libd)
1156 ac_prev=libdir ;;
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 ac_prev=mandir ;;
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1186 with_fp=no ;;
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1190 no_create=yes ;;
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 no_recursion=yes ;;
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 ac_prev=prefix ;;
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 ac_prev=pdfdir ;;
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1246 -psdir | --psdir | --psdi | --psd | --ps)
1247 ac_prev=psdir ;;
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 psdir=$ac_optarg ;;
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 silent=yes ;;
1255 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256 ac_prev=sbindir ;;
1257 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258 | --sbi=* | --sb=*)
1259 sbindir=$ac_optarg ;;
1261 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263 | --sharedst | --shareds | --shared | --share | --shar \
1264 | --sha | --sh)
1265 ac_prev=sharedstatedir ;;
1266 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269 | --sha=* | --sh=*)
1270 sharedstatedir=$ac_optarg ;;
1272 -site | --site | --sit)
1273 ac_prev=site ;;
1274 -site=* | --site=* | --sit=*)
1275 site=$ac_optarg ;;
1277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278 ac_prev=srcdir ;;
1279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280 srcdir=$ac_optarg ;;
1282 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283 | --syscon | --sysco | --sysc | --sys | --sy)
1284 ac_prev=sysconfdir ;;
1285 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287 sysconfdir=$ac_optarg ;;
1289 -target | --target | --targe | --targ | --tar | --ta | --t)
1290 ac_prev=target_alias ;;
1291 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292 target_alias=$ac_optarg ;;
1294 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 verbose=yes ;;
1297 -version | --version | --versio | --versi | --vers | -V)
1298 ac_init_version=: ;;
1300 -with-* | --with-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error $? "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=\$ac_optarg ;;
1316 -without-* | --without-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error $? "invalid package name: $ac_useropt"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1325 "with_$ac_useropt"
1326 "*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=no ;;
1332 --x)
1333 # Obsolete; use --with-x.
1334 with_x=yes ;;
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev=x_includes ;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes=$ac_optarg ;;
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev=x_libraries ;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries=$ac_optarg ;;
1350 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1351 Try \`$0 --help' for more information"
1354 *=*)
1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356 # Reject names that are not valid shell variable names.
1357 case $ac_envvar in #(
1358 '' | [0-9]* | *[!_$as_cr_alnum]* )
1359 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1360 esac
1361 eval $ac_envvar=\$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1372 esac
1373 done
1375 if test -n "$ac_prev"; then
1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377 as_fn_error $? "missing argument to $ac_option"
1380 if test -n "$ac_unrecognized_opts"; then
1381 case $enable_option_checking in
1382 no) ;;
1383 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385 esac
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1396 case $ac_val in
1397 */ )
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1400 esac
1401 # Be sure to have absolute directory names.
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1407 done
1409 # There might be people who depend on the old broken behavior: `$host'
1410 # used to hold the argument of --host etc.
1411 # FIXME: To remove some day.
1412 build=$build_alias
1413 host=$host_alias
1414 target=$target_alias
1416 # FIXME: To remove some day.
1417 if test "x$host_alias" != x; then
1418 if test "x$build_alias" = x; then
1419 cross_compiling=maybe
1420 elif test "x$build_alias" != "x$host_alias"; then
1421 cross_compiling=yes
1425 ac_tool_prefix=
1426 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428 test "$silent" = yes && exec 6>/dev/null
1431 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432 ac_ls_di=`ls -di .` &&
1433 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434 as_fn_error $? "working directory cannot be determined"
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 as_fn_error $? "pwd does not report name of working directory"
1439 # Find the source files, if location was not specified.
1440 if test -z "$srcdir"; then
1441 ac_srcdir_defaulted=yes
1442 # Try the directory containing this script, then the parent directory.
1443 ac_confdir=`$as_dirname -- "$as_myself" ||
1444 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445 X"$as_myself" : 'X\(//\)[^/]' \| \
1446 X"$as_myself" : 'X\(//\)$' \| \
1447 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1448 $as_echo X"$as_myself" |
1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 s//\1/
1453 /^X\(\/\/\)[^/].*/{
1454 s//\1/
1457 /^X\(\/\/\)$/{
1458 s//\1/
1461 /^X\(\/\).*/{
1462 s//\1/
1465 s/.*/./; q'`
1466 srcdir=$ac_confdir
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 srcdir=..
1470 else
1471 ac_srcdir_defaulted=no
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1477 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 ac_abs_confdir=`(
1479 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1480 pwd)`
1481 # When building in place, set srcdir=.
1482 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 srcdir=.
1485 # Remove unnecessary trailing slashes from srcdir.
1486 # Double slashes in file names in object file debugging info
1487 # mess up M-x gdb in Emacs.
1488 case $srcdir in
1489 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 esac
1491 for ac_var in $ac_precious_vars; do
1492 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_env_${ac_var}_value=\$${ac_var}
1494 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1496 done
1499 # Report the --help message.
1501 if test "$ac_init_help" = "long"; then
1502 # Omit some internal or obsolete options to make the list less imposing.
1503 # This message is too long to be a string in the A/UX 3.1 sh.
1504 cat <<_ACEOF
1505 \`configure' configures this package to adapt to many kinds of systems.
1507 Usage: $0 [OPTION]... [VAR=VALUE]...
1509 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1510 VAR=VALUE. See below for descriptions of some of the useful variables.
1512 Defaults for the options are specified in brackets.
1514 Configuration:
1515 -h, --help display this help and exit
1516 --help=short display options specific to this package
1517 --help=recursive display the short help of all the included packages
1518 -V, --version display version information and exit
1519 -q, --quiet, --silent do not print \`checking ...' messages
1520 --cache-file=FILE cache test results in FILE [disabled]
1521 -C, --config-cache alias for \`--cache-file=config.cache'
1522 -n, --no-create do not create output files
1523 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525 Installation directories:
1526 --prefix=PREFIX install architecture-independent files in PREFIX
1527 [$ac_default_prefix]
1528 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 [PREFIX]
1531 By default, \`make install' will install all the files in
1532 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1533 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1534 for instance \`--prefix=\$HOME'.
1536 For better control, use the options below.
1538 Fine tuning of the installation directories:
1539 --bindir=DIR user executables [EPREFIX/bin]
1540 --sbindir=DIR system admin executables [EPREFIX/sbin]
1541 --libexecdir=DIR program executables [EPREFIX/libexec]
1542 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1543 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1544 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1545 --libdir=DIR object code libraries [EPREFIX/lib]
1546 --includedir=DIR C header files [PREFIX/include]
1547 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1548 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1549 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1550 --infodir=DIR info documentation [DATAROOTDIR/info]
1551 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1552 --mandir=DIR man documentation [DATAROOTDIR/man]
1553 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1554 --htmldir=DIR html documentation [DOCDIR]
1555 --dvidir=DIR dvi documentation [DOCDIR]
1556 --pdfdir=DIR pdf documentation [DOCDIR]
1557 --psdir=DIR ps documentation [DOCDIR]
1558 _ACEOF
1560 cat <<\_ACEOF
1562 X features:
1563 --x-includes=DIR X include files are in DIR
1564 --x-libraries=DIR X library files are in DIR
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 _ACEOF
1572 if test -n "$ac_init_help"; then
1574 cat <<\_ACEOF
1576 Optional Features:
1577 --disable-option-checking ignore unrecognized --enable/--with options
1578 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1579 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1580 --enable-build-type=TYPE
1581 Select the build type. Available types are:
1582 personal, nightly, snapshot, milestone, release. Do
1583 NOT use this option unless you know what you are
1584 doing! (default=personal)
1585 --enable-debug=list Enable different types of debug. Commas or
1586 whitespaces can be used to separate the items in the
1587 list. Available types of debug are: all, none,
1588 messages, stack, mungwall, modules, symbols. If no
1589 list is provided then "all" is assumed.
1590 (default=none)
1591 --enable-distcc Use distcc as a front end to the compiler
1592 (default=no).
1593 --enable-ccache Use ccache as a front end to the compiler
1594 (default=no).
1595 --enable-target-variant=NAME
1596 Enable a specific target variant(default=none)
1597 --enable-amigaos-compliance=VERSION
1598 Enforce userspace AmigaOS compliance to a specific
1599 KickStart version (default=none).
1600 --disable-crosstools Do not build cross-compiler toolchain
1601 --enable-objc Enable Objectve-C support (default=no)
1602 --enable-java Enable Java support (default=no)
1603 --enable-includes=dir Alternative system include directory
1604 --enable-palm-debug-hack
1605 Enable palm debug output hack in palm native
1606 (default=no)
1607 --enable-usb30-code Enable usb3.0 code (default=no)
1608 --enable-nesting-supervisor
1609 Enable nesting supervisor support in unix
1610 (default=no)
1611 --disable-mmu Disable MMU support (default=enabled)
1612 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1613 --enable-x11-shm use X11 shared memory (default=auto)
1614 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1615 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1616 --disable-sdltest Do not try to compile and run a test SDL program
1617 --enable-dbus Enable DBUS support via dbus.library (default=no)
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-kernel-gcc-version=VERSION
1623 Use gcc-VERSION for building bootstrap
1624 --with-optimization=FLAGS
1625 Use optimization flags FLAGS (default=-O2).
1626 --with-paranoia=FLAGS CC flags to enable paranoia
1627 --with-xcode=PATH Specify XCode path for iOS targets
1628 (default=/Developer).
1629 --with-sdk-version=VERSION
1630 Use iOS SDK version VERSION (default=4.1).
1631 --with-sdk=PATH Specify Android SDK path
1632 (default=$default_android_sdk).
1633 --with-ndk=PATH Specify Android NDK path (default=none).
1634 --with-sdk-version=LEVEL
1635 Use Android SDK for API LEVEL (default=12).
1636 --with-ndk-version=LEVEL
1637 Use Android NDK for API LEVEL (default=9).
1638 --with-apk-version=(release|debug)
1639 Which version of AROSBootstrap.apk to compile.
1640 Release version needs key for signing, debug version
1641 will only run in emulator. (default=release)
1642 --with-kernel-toolchain-prefix=...
1643 Specify crosscompile toolchain prefix for kernel
1644 objects
1645 --with-elf-toolchain-prefix=...
1646 Specify crosscompile toolchain prefix to wrap for
1647 AROS objects
1648 --with-aros-toolchain=PREFIX
1649 Specify prebuilt AROS toolchain. Use yes for default
1650 name
1651 --with-aros-toolchain-install=DIR
1652 Where to install or search for cross tools binaries
1653 --with-binutils-version=VERSION
1654 Use binutils-VERSION for building AROS
1655 --with-gcc-version=VERSION
1656 Use gcc-VERSION for building AROS
1657 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1658 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1659 --with-float=<spec> Specify floating point ABI
1660 (default=$gcc_default_float_abi).
1661 --with-portssources=DIR Where to download sourcecode for external ports
1662 --with-bootloader=NAME Use a specific bootloader
1663 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1664 --with-theme=NAME Use a specific GUI Theme
1665 --with-resolution=XRESxYRESxDEPTH
1666 Default resolution of the initial WorkbenchScreen
1667 --with-serial-debug Enable serial debug output in native (default=no)
1668 --with-x use the X Window System
1669 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1670 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1672 Some influential environment variables:
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1676 nonstandard directory <lib dir>
1677 LIBS libraries to pass to the linker, e.g. -l<library>
1678 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1679 you have headers in a nonstandard directory <include dir>
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 CPP C preprocessor
1683 PYTHON the Python interpreter
1684 XMKMF Path to xmkmf, Makefile generator for X Window System
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 continue
1700 ac_builddir=.
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1718 case $srcdir in
1719 .) # We are building in place.
1720 ac_srcdir=.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1727 *) # Relative name.
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1742 else
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 fi || ac_status=$?
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1746 done
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751 cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.69
1755 Copyright (C) 2012 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759 exit
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_cxx_try_compile
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=1
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_cpp
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_mongrel
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2016 ac_fn_c_try_run ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_link"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2030 { { case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_try") 2>&5
2037 ac_status=$?
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; }; }; then :
2040 ac_retval=0
2041 else
2042 $as_echo "$as_me: program exited with status $ac_status" >&5
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=$ac_status
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_run
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 eval "$3=yes"
2073 else
2074 eval "$3=no"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2086 # ----------------------------------------------------
2087 # Tries to find if the field MEMBER exists in type AGGR, after including
2088 # INCLUDES, setting cache variable VAR accordingly.
2089 ac_fn_c_check_member ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2093 $as_echo_n "checking for $2.$3... " >&6; }
2094 if eval \${$4+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2101 main ()
2103 static $2 ac_aggr;
2104 if (ac_aggr.$3)
2105 return 0;
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 eval "$4=yes"
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 static $2 ac_aggr;
2120 if (sizeof ac_aggr.$3)
2121 return 0;
2123 return 0;
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 eval "$4=yes"
2128 else
2129 eval "$4=no"
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 eval ac_res=\$$4
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_member
2142 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2143 # ---------------------------------------------
2144 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2145 # accordingly.
2146 ac_fn_c_check_decl ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 as_decl_name=`echo $2|sed 's/ *(.*//'`
2150 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2152 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 #ifndef $as_decl_name
2163 #ifdef __cplusplus
2164 (void) $as_decl_use;
2165 #else
2166 (void) $as_decl_name;
2167 #endif
2168 #endif
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 eval "$3=yes"
2176 else
2177 eval "$3=no"
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_decl
2188 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2189 # -------------------------------------------
2190 # Tests whether TYPE exists after having included INCLUDES, setting cache
2191 # variable VAR accordingly.
2192 ac_fn_c_check_type ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 eval "$3=no"
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 if (sizeof ($2))
2208 return 0;
2210 return 0;
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 if (sizeof (($2)))
2221 return 0;
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2228 else
2229 eval "$3=yes"
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 } # ac_fn_c_check_type
2242 # ac_fn_c_check_func LINENO FUNC VAR
2243 # ----------------------------------
2244 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2245 ac_fn_c_check_func ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2257 #define $2 innocuous_$2
2259 /* System header to define __stub macros and hopefully few prototypes,
2260 which can conflict with char $2 (); below.
2261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2262 <limits.h> exists even on freestanding compilers. */
2264 #ifdef __STDC__
2265 # include <limits.h>
2266 #else
2267 # include <assert.h>
2268 #endif
2270 #undef $2
2272 /* Override any GCC internal prototype to avoid an error.
2273 Use char because int might match the return type of a GCC
2274 builtin and then its argument prototype would still apply. */
2275 #ifdef __cplusplus
2276 extern "C"
2277 #endif
2278 char $2 ();
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined __stub_$2 || defined __stub___$2
2283 choke me
2284 #endif
2287 main ()
2289 return $2 ();
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_link "$LINENO"; then :
2295 eval "$3=yes"
2296 else
2297 eval "$3=no"
2299 rm -f core conftest.err conftest.$ac_objext \
2300 conftest$ac_exeext conftest.$ac_ext
2302 eval ac_res=\$$3
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 } # ac_fn_c_check_func
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.69. Invocation command line was
2315 $ $0 $@
2317 _ACEOF
2318 exec 5>>config.log
2320 cat <<_ASUNAME
2321 ## --------- ##
2322 ## Platform. ##
2323 ## --------- ##
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2334 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2338 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2342 _ASUNAME
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2350 done
2351 IFS=$as_save_IFS
2353 } >&5
2355 cat >&5 <<_ACEOF
2358 ## ----------- ##
2359 ## Core tests. ##
2360 ## ----------- ##
2362 _ACEOF
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2370 ac_configure_args=
2371 ac_configure_args0=
2372 ac_configure_args1=
2373 ac_must_keep_next=false
2374 for ac_pass in 1 2
2376 for ac_arg
2378 case $ac_arg in
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2382 continue ;;
2383 *\'*)
2384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 esac
2386 case $ac_pass in
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2392 else
2393 case $ac_arg in
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 esac
2402 -* ) ac_must_keep_next=true ;;
2403 esac
2405 as_fn_append ac_configure_args " '$ac_arg'"
2407 esac
2408 done
2409 done
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2421 echo
2423 $as_echo "## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##"
2426 echo
2427 # The following way of writing the cache mishandles newlines in values,
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in #(
2432 *${as_nl}*)
2433 case $ac_var in #(
2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436 esac
2437 case $ac_var in #(
2438 _ | IFS | as_nl) ;; #(
2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440 *) { eval $ac_var=; unset $ac_var;} ;;
2441 esac ;;
2442 esac
2443 done
2444 (set) 2>&1 |
2445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
2447 sed -n \
2448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 ;; #(
2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454 esac |
2455 sort
2457 echo
2459 $as_echo "## ----------------- ##
2460 ## Output variables. ##
2461 ## ----------------- ##"
2462 echo
2463 for ac_var in $ac_subst_vars
2465 eval ac_val=\$$ac_var
2466 case $ac_val in
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 esac
2469 $as_echo "$ac_var='\''$ac_val'\''"
2470 done | sort
2471 echo
2473 if test -n "$ac_subst_files"; then
2474 $as_echo "## ------------------- ##
2475 ## File substitutions. ##
2476 ## ------------------- ##"
2477 echo
2478 for ac_var in $ac_subst_files
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2489 if test -s confdefs.h; then
2490 $as_echo "## ----------- ##
2491 ## confdefs.h. ##
2492 ## ----------- ##"
2493 echo
2494 cat confdefs.h
2495 echo
2497 test "$ac_signal" != 0 &&
2498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
2500 } >&5
2501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2503 exit $exit_status
2505 for ac_signal in 1 2 13 15; do
2506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2507 done
2508 ac_signal=0
2510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2511 rm -f -r conftest* confdefs.h
2513 $as_echo "/* confdefs.h */" > confdefs.h
2515 # Predefined preprocessor variables.
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_NAME "$PACKAGE_NAME"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523 _ACEOF
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2527 _ACEOF
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_STRING "$PACKAGE_STRING"
2531 _ACEOF
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_URL "$PACKAGE_URL"
2539 _ACEOF
2542 # Let the site file select an alternate cache file if it wants to.
2543 # Prefer an explicitly selected file to automatically selected ones.
2544 ac_site_file1=NONE
2545 ac_site_file2=NONE
2546 if test -n "$CONFIG_SITE"; then
2547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2552 esac
2553 elif test "x$prefix" != xNONE; then
2554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
2556 else
2557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562 test "x$ac_site_file" = xNONE && continue
2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2567 . "$ac_site_file" \
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2573 done
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 case $cache_file in
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2584 esac
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2589 >$cache_file
2592 as_fn_append ac_header_list " stdlib.h"
2593 as_fn_append ac_header_list " unistd.h"
2594 as_fn_append ac_header_list " sys/param.h"
2595 # Check that the precious variables saved in the cache have kept the same
2596 # value.
2597 ac_cache_corrupted=false
2598 for ac_var in $ac_precious_vars; do
2599 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600 eval ac_new_set=\$ac_env_${ac_var}_set
2601 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602 eval ac_new_val=\$ac_env_${ac_var}_value
2603 case $ac_old_set,$ac_new_set in
2604 set,)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,set)
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 ac_cache_corrupted=: ;;
2612 ,);;
2614 if test "x$ac_old_val" != "x$ac_new_val"; then
2615 # differences in whitespace do not lead to failure.
2616 ac_old_val_w=`echo x $ac_old_val`
2617 ac_new_val_w=`echo x $ac_new_val`
2618 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621 ac_cache_corrupted=:
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625 eval $ac_var=\$ac_old_val
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2628 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2630 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2631 fi;;
2632 esac
2633 # Pass precious variables to config.status.
2634 if test "$ac_new_set" = set; then
2635 case $ac_new_val in
2636 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 *) ac_arg=$ac_var=$ac_new_val ;;
2638 esac
2639 case " $ac_configure_args " in
2640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2641 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 esac
2644 done
2645 if $ac_cache_corrupted; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2652 ## -------------------- ##
2653 ## Main body of script. ##
2654 ## -------------------- ##
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 ac_aux_dir=
2665 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2666 if test -f "$ac_dir/install-sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install-sh -c"
2669 break
2670 elif test -f "$ac_dir/install.sh"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 break
2674 elif test -f "$ac_dir/shtool"; then
2675 ac_aux_dir=$ac_dir
2676 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 break
2679 done
2680 if test -z "$ac_aux_dir"; then
2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2694 # Check what host we are running on.
2695 # If a target is not suggested, we use this one.
2696 # Note that what we call a target, Autoconf calls a host.
2697 # Make sure we can run config.sub.
2698 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2699 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2702 $as_echo_n "checking build system type... " >&6; }
2703 if ${ac_cv_build+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 ac_build_alias=$build_alias
2707 test "x$ac_build_alias" = x &&
2708 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2709 test "x$ac_build_alias" = x &&
2710 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2711 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2716 $as_echo "$ac_cv_build" >&6; }
2717 case $ac_cv_build in
2718 *-*-*) ;;
2719 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2720 esac
2721 build=$ac_cv_build
2722 ac_save_IFS=$IFS; IFS='-'
2723 set x $ac_cv_build
2724 shift
2725 build_cpu=$1
2726 build_vendor=$2
2727 shift; shift
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2730 build_os=$*
2731 IFS=$ac_save_IFS
2732 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2736 $as_echo_n "checking host system type... " >&6; }
2737 if ${ac_cv_host+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test "x$host_alias" = x; then
2741 ac_cv_host=$ac_cv_build
2742 else
2743 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2749 $as_echo "$ac_cv_host" >&6; }
2750 case $ac_cv_host in
2751 *-*-*) ;;
2752 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2753 esac
2754 host=$ac_cv_host
2755 ac_save_IFS=$IFS; IFS='-'
2756 set x $ac_cv_host
2757 shift
2758 host_cpu=$1
2759 host_vendor=$2
2760 shift; shift
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2763 host_os=$*
2764 IFS=$ac_save_IFS
2765 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2769 # Default version of gnu tools to use
2770 default_gcc_version="4.6.4"
2771 default_binutils_version="2.23.2"
2773 # The AROS target is slightly different to the normal GNU style
2774 # format. We don't have the middle part, and we reverse the order
2775 # of the $(CPU) and $(OS) bits.
2777 # Don't strip the version of the target yet, it might be
2778 # useful on some systems.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2781 $as_echo_n "checking for AROS style target... " >&6; }
2783 if test "$target" = "NONE" ; then
2784 target=$host_os-$host_cpu
2785 else
2786 if test "$target" = "" ; then
2787 target=$host_os-$host_cpu
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2791 $as_echo "$target" >&6; }
2793 if test "$host_os" = "mingw32" ; then
2794 PWDCMD="pwd -W"
2797 # Don't know where else to put this...
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2799 $as_echo_n "checking building AROS in... " >&6; }
2800 AROS_BUILDDIR=`${PWDCMD-pwd}`
2801 AROS_BUILDDIR_UNIX=${PWD}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2803 $as_echo "$AROS_BUILDDIR" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2806 $as_echo_n "checking AROS source in... " >&6; }
2807 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2808 SRCDIR=${srcpwd}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2810 $as_echo "$SRCDIR" >&6; }
2812 # Parse the target field into something useful.
2814 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2815 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2818 # Some debug output, to be removed again.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2820 $as_echo_n "checking for target system (debug output)... " >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2822 $as_echo "$target_os" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2824 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2826 $as_echo "$target_cpu" >&6; }
2828 aros_nominal_width=800
2829 aros_nominal_height=600
2830 aros_nominal_depth=4
2833 # The first step is to find the host binaries.
2834 # Check for a compiler.
2835 # Due to a bug in autoconf check for c++ compiler first.
2836 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2837 ac_ext=cpp
2838 ac_cpp='$CXXCPP $CPPFLAGS'
2839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2842 if test -z "$CXX"; then
2843 if test -n "$CCC"; then
2844 CXX=$CCC
2845 else
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CXX+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$CXX"; then
2857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2872 IFS=$as_save_IFS
2876 CXX=$ac_cv_prog_CXX
2877 if test -n "$CXX"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2879 $as_echo "$CXX" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2886 test -n "$CXX" && break
2887 done
2889 if test -z "$CXX"; then
2890 ac_ct_CXX=$CXX
2891 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$ac_ct_CXX"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_CXX="$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2916 IFS=$as_save_IFS
2920 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2921 if test -n "$ac_ct_CXX"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2923 $as_echo "$ac_ct_CXX" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2930 test -n "$ac_ct_CXX" && break
2931 done
2933 if test "x$ac_ct_CXX" = x; then
2934 CXX="g++"
2935 else
2936 case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942 CXX=$ac_ct_CXX
2948 # Provide some information about the compiler.
2949 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2950 set X $ac_compile
2951 ac_compiler=$2
2952 for ac_option in --version -v -V -qversion; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961 ac_status=$?
2962 if test -s conftest.err; then
2963 sed '10a\
2964 ... rest of stderr output deleted ...
2965 10q' conftest.err >conftest.er1
2966 cat conftest.er1 >&5
2968 rm -f conftest.er1 conftest.err
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 done
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2988 # of exeext.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2990 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2991 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2996 ac_rmfiles=
2997 for ac_file in $ac_files
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003 done
3004 rm -f $ac_rmfiles
3006 if { { ac_try="$ac_link_default"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3020 # so that the user can short-circuit this test for compilers unknown to
3021 # Autoconf.
3022 for ac_file in $ac_files ''
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3044 break;;
3045 esac
3046 done
3047 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049 else
3050 ac_file=''
3052 if test -z "$ac_file"; then :
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 $as_echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error 77 "C++ compiler cannot create executables
3061 See \`config.log' for more details" "$LINENO" 5; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3067 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069 $as_echo "$ac_file" >&6; }
3070 ac_exeext=$ac_cv_exeext
3072 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073 ac_clean_files=$ac_clean_files_save
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075 $as_echo_n "checking for suffix of executables... " >&6; }
3076 if { { ac_try="$ac_link"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3089 # work properly (i.e., refer to `conftest.exe'), while it won't with
3090 # `rm'.
3091 for ac_file in conftest.exe conftest conftest.*; do
3092 test -f "$ac_file" || continue
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 break;;
3097 * ) break;;
3098 esac
3099 done
3100 else
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3104 See \`config.log' for more details" "$LINENO" 5; }
3106 rm -f conftest conftest$ac_cv_exeext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108 $as_echo "$ac_cv_exeext" >&6; }
3110 rm -f conftest.$ac_ext
3111 EXEEXT=$ac_cv_exeext
3112 ac_exeext=$EXEEXT
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115 #include <stdio.h>
3117 main ()
3119 FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3123 return 0;
3125 _ACEOF
3126 ac_clean_files="$ac_clean_files conftest.out"
3127 # Check that the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130 $as_echo_n "checking whether we are cross compiling... " >&6; }
3131 if test "$cross_compiling" != yes; then
3132 { { ac_try="$ac_link"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143 if { ac_try='./conftest$ac_cv_exeext'
3144 { { case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; }; then
3154 cross_compiling=no
3155 else
3156 if test "$cross_compiling" = maybe; then
3157 cross_compiling=yes
3158 else
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot run C++ compiled programs.
3162 If you meant to cross compile, use \`--host'.
3163 See \`config.log' for more details" "$LINENO" 5; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168 $as_echo "$cross_compiling" >&6; }
3170 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3171 ac_clean_files=$ac_clean_files_save
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173 $as_echo_n "checking for suffix of object files... " >&6; }
3174 if ${ac_cv_objext+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.o conftest.obj
3189 if { { ac_try="$ac_compile"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compile") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 for ac_file in conftest.o conftest.obj conftest.*; do
3201 test -f "$ac_file" || continue;
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207 done
3208 else
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot compute suffix of object files: cannot compile
3215 See \`config.log' for more details" "$LINENO" 5; }
3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220 $as_echo "$ac_cv_objext" >&6; }
3221 OBJEXT=$ac_cv_objext
3222 ac_objext=$OBJEXT
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3224 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3225 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3234 #ifndef __GNUC__
3235 choke me
3236 #endif
3239 return 0;
3241 _ACEOF
3242 if ac_fn_cxx_try_compile "$LINENO"; then :
3243 ac_compiler_gnu=yes
3244 else
3245 ac_compiler_gnu=no
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3252 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3253 if test $ac_compiler_gnu = yes; then
3254 GXX=yes
3255 else
3256 GXX=
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3261 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3262 if ${ac_cv_prog_cxx_g+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3266 ac_cxx_werror_flag=yes
3267 ac_cv_prog_cxx_g=no
3268 CXXFLAGS="-g"
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 if ac_fn_cxx_try_compile "$LINENO"; then :
3281 ac_cv_prog_cxx_g=yes
3282 else
3283 CXXFLAGS=""
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3297 else
3298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3299 CXXFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 if ac_fn_cxx_try_compile "$LINENO"; then :
3312 ac_cv_prog_cxx_g=yes
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3322 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3323 if test "$ac_test_CXXFLAGS" = set; then
3324 CXXFLAGS=$ac_save_CXXFLAGS
3325 elif test $ac_cv_prog_cxx_g = yes; then
3326 if test "$GXX" = yes; then
3327 CXXFLAGS="-g -O2"
3328 else
3329 CXXFLAGS="-g"
3331 else
3332 if test "$GXX" = yes; then
3333 CXXFLAGS="-O2"
3334 else
3335 CXXFLAGS=
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3371 done
3372 done
3373 IFS=$as_save_IFS
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3388 if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "gcc", so it can be a program name with args.
3391 set dummy gcc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="gcc"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3426 if test "x$ac_ct_CC" = x; then
3427 CC=""
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 CC=$ac_ct_CC
3437 else
3438 CC="$ac_cv_prog_CC"
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}cc; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="${ac_tool_prefix}cc"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3482 if test -z "$CC"; then
3483 # Extract the first word of "cc", so it can be a program name with args.
3484 set dummy cc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 ac_prog_rejected=no
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3502 ac_prog_rejected=yes
3503 continue
3505 ac_cv_prog_CC="cc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3509 done
3510 done
3511 IFS=$as_save_IFS
3513 if test $ac_prog_rejected = yes; then
3514 # We found a bogon in the path, so make sure we never use it.
3515 set dummy $ac_cv_prog_CC
3516 shift
3517 if test $# != 0; then
3518 # We chose a different compiler from the bogus one.
3519 # However, it has the same basename, so the bogon will be chosen
3520 # first if we set CC to just the basename; use the full file name.
3521 shift
3522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3527 CC=$ac_cv_prog_CC
3528 if test -n "$CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3530 $as_echo "$CC" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 for ac_prog in cl.exe
3542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$CC" && break
3580 done
3582 if test -z "$CC"; then
3583 ac_ct_CC=$CC
3584 for ac_prog in cl.exe
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$ac_ct_CC"; then
3594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_ac_ct_CC="$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616 $as_echo "$ac_ct_CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3623 test -n "$ac_ct_CC" && break
3624 done
3626 if test "x$ac_ct_CC" = x; then
3627 CC=""
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 CC=$ac_ct_CC
3642 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "no acceptable C compiler found in \$PATH
3645 See \`config.log' for more details" "$LINENO" 5; }
3647 # Provide some information about the compiler.
3648 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3649 set X $ac_compile
3650 ac_compiler=$2
3651 for ac_option in --version -v -V -qversion; do
3652 { { ac_try="$ac_compiler $ac_option >&5"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3660 ac_status=$?
3661 if test -s conftest.err; then
3662 sed '10a\
3663 ... rest of stderr output deleted ...
3664 10q' conftest.err >conftest.er1
3665 cat conftest.er1 >&5
3667 rm -f conftest.er1 conftest.err
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }
3670 done
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3674 if ${ac_cv_c_compiler_gnu+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3681 main ()
3683 #ifndef __GNUC__
3684 choke me
3685 #endif
3688 return 0;
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_compiler_gnu=yes
3693 else
3694 ac_compiler_gnu=no
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702 if test $ac_compiler_gnu = yes; then
3703 GCC=yes
3704 else
3705 GCC=
3707 ac_test_CFLAGS=${CFLAGS+set}
3708 ac_save_CFLAGS=$CFLAGS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3711 if ${ac_cv_prog_cc_g+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 ac_save_c_werror_flag=$ac_c_werror_flag
3715 ac_c_werror_flag=yes
3716 ac_cv_prog_cc_g=no
3717 CFLAGS="-g"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3722 main ()
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_g=yes
3731 else
3732 CFLAGS=""
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3746 else
3747 ac_c_werror_flag=$ac_save_c_werror_flag
3748 CFLAGS="-g"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 main ()
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_g=yes
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3771 $as_echo "$ac_cv_prog_cc_g" >&6; }
3772 if test "$ac_test_CFLAGS" = set; then
3773 CFLAGS=$ac_save_CFLAGS
3774 elif test $ac_cv_prog_cc_g = yes; then
3775 if test "$GCC" = yes; then
3776 CFLAGS="-g -O2"
3777 else
3778 CFLAGS="-g"
3780 else
3781 if test "$GCC" = yes; then
3782 CFLAGS="-O2"
3783 else
3784 CFLAGS=
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3789 if ${ac_cv_prog_cc_c89+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_cv_prog_cc_c89=no
3793 ac_save_CC=$CC
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #include <stdarg.h>
3797 #include <stdio.h>
3798 struct stat;
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3803 char **p;
3804 int i;
3806 return p[i];
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3810 char *s;
3811 va_list v;
3812 va_start (v,p);
3813 s = g (p, va_arg (v,int));
3814 va_end (v);
3815 return s;
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3819 function prototypes and stuff, but not '\xHH' hex character constants.
3820 These don't provoke an error unfortunately, instead are silently treated
3821 as 'x'. The following induces an error, until -std is added to get
3822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3823 array size at least. It's necessary to write '\x00'==0 to get something
3824 that's true only with -std. */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828 inside strings and character constants. */
3829 #define FOO(x) 'x'
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3836 int argc;
3837 char **argv;
3839 main ()
3841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3843 return 0;
3845 _ACEOF
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849 CC="$ac_save_CC $ac_arg"
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_prog_cc_c89=$ac_arg
3853 rm -f core conftest.err conftest.$ac_objext
3854 test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 done
3856 rm -f conftest.$ac_ext
3857 CC=$ac_save_CC
3860 # AC_CACHE_VAL
3861 case "x$ac_cv_prog_cc_c89" in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3865 xno)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3869 CC="$CC $ac_cv_prog_cc_c89"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3872 esac
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 case $ac_cv_prog_cc_stdc in #(
3884 no) :
3885 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3886 *) :
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3888 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3889 if ${ac_cv_prog_cc_c99+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 ac_cv_prog_cc_c99=no
3893 ac_save_CC=$CC
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdarg.h>
3897 #include <stdbool.h>
3898 #include <stdlib.h>
3899 #include <wchar.h>
3900 #include <stdio.h>
3902 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3903 #define debug(...) fprintf (stderr, __VA_ARGS__)
3904 #define showlist(...) puts (#__VA_ARGS__)
3905 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3906 static void
3907 test_varargs_macros (void)
3909 int x = 1234;
3910 int y = 5678;
3911 debug ("Flag");
3912 debug ("X = %d\n", x);
3913 showlist (The first, second, and third items.);
3914 report (x>y, "x is %d but y is %d", x, y);
3917 // Check long long types.
3918 #define BIG64 18446744073709551615ull
3919 #define BIG32 4294967295ul
3920 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3921 #if !BIG_OK
3922 your preprocessor is broken;
3923 #endif
3924 #if BIG_OK
3925 #else
3926 your preprocessor is broken;
3927 #endif
3928 static long long int bignum = -9223372036854775807LL;
3929 static unsigned long long int ubignum = BIG64;
3931 struct incomplete_array
3933 int datasize;
3934 double data[];
3937 struct named_init {
3938 int number;
3939 const wchar_t *name;
3940 double average;
3943 typedef const char *ccp;
3945 static inline int
3946 test_restrict (ccp restrict text)
3948 // See if C++-style comments work.
3949 // Iterate through items via the restricted pointer.
3950 // Also check for declarations in for loops.
3951 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3952 continue;
3953 return 0;
3956 // Check varargs and va_copy.
3957 static void
3958 test_varargs (const char *format, ...)
3960 va_list args;
3961 va_start (args, format);
3962 va_list args_copy;
3963 va_copy (args_copy, args);
3965 const char *str;
3966 int number;
3967 float fnumber;
3969 while (*format)
3971 switch (*format++)
3973 case 's': // string
3974 str = va_arg (args_copy, const char *);
3975 break;
3976 case 'd': // int
3977 number = va_arg (args_copy, int);
3978 break;
3979 case 'f': // float
3980 fnumber = va_arg (args_copy, double);
3981 break;
3982 default:
3983 break;
3986 va_end (args_copy);
3987 va_end (args);
3991 main ()
3994 // Check bool.
3995 _Bool success = false;
3997 // Check restrict.
3998 if (test_restrict ("String literal") == 0)
3999 success = true;
4000 char *restrict newvar = "Another string";
4002 // Check varargs.
4003 test_varargs ("s, d' f .", "string", 65, 34.234);
4004 test_varargs_macros ();
4006 // Check flexible array members.
4007 struct incomplete_array *ia =
4008 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4009 ia->datasize = 10;
4010 for (int i = 0; i < ia->datasize; ++i)
4011 ia->data[i] = i * 1.234;
4013 // Check named initializers.
4014 struct named_init ni = {
4015 .number = 34,
4016 .name = L"Test wide string",
4017 .average = 543.34343,
4020 ni.number = 58;
4022 int dynamic_array[ni.number];
4023 dynamic_array[ni.number - 1] = 543;
4025 // work around unused variable warnings
4026 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4027 || dynamic_array[ni.number - 1] != 543);
4030 return 0;
4032 _ACEOF
4033 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4035 CC="$ac_save_CC $ac_arg"
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_prog_cc_c99=$ac_arg
4039 rm -f core conftest.err conftest.$ac_objext
4040 test "x$ac_cv_prog_cc_c99" != "xno" && break
4041 done
4042 rm -f conftest.$ac_ext
4043 CC=$ac_save_CC
4046 # AC_CACHE_VAL
4047 case "x$ac_cv_prog_cc_c99" in
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 $as_echo "none needed" >&6; } ;;
4051 xno)
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4053 $as_echo "unsupported" >&6; } ;;
4055 CC="$CC $ac_cv_prog_cc_c99"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4057 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4058 esac
4059 if test "x$ac_cv_prog_cc_c99" != xno; then :
4060 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4064 if ${ac_cv_prog_cc_c89+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 ac_cv_prog_cc_c89=no
4068 ac_save_CC=$CC
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <stdarg.h>
4072 #include <stdio.h>
4073 struct stat;
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4078 char **p;
4079 int i;
4081 return p[i];
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4085 char *s;
4086 va_list v;
4087 va_start (v,p);
4088 s = g (p, va_arg (v,int));
4089 va_end (v);
4090 return s;
4093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4094 function prototypes and stuff, but not '\xHH' hex character constants.
4095 These don't provoke an error unfortunately, instead are silently treated
4096 as 'x'. The following induces an error, until -std is added to get
4097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4098 array size at least. It's necessary to write '\x00'==0 to get something
4099 that's true only with -std. */
4100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103 inside strings and character constants. */
4104 #define FOO(x) 'x'
4105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4107 int test (int i, double x);
4108 struct s1 {int (*f) (int a);};
4109 struct s2 {int (*f) (double a);};
4110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111 int argc;
4112 char **argv;
4114 main ()
4116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4118 return 0;
4120 _ACEOF
4121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4124 CC="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_c89=$ac_arg
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4140 xno)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4148 if test "x$ac_cv_prog_cc_c89" != xno; then :
4149 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4150 else
4151 ac_cv_prog_cc_stdc=no
4156 esac
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4158 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4159 if ${ac_cv_prog_cc_stdc+:} false; then :
4160 $as_echo_n "(cached) " >&6
4163 case $ac_cv_prog_cc_stdc in #(
4164 no) :
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;; #(
4167 '') :
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;; #(
4170 *) :
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4172 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4173 esac
4175 ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4181 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4184 CPP=
4186 if test -z "$CPP"; then
4187 if ${ac_cv_prog_CPP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 # Double quotes because CPP needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209 Syntax error
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4213 else
4214 # Broken: fails on valid input.
4215 continue
4217 rm -f conftest.err conftest.i conftest.$ac_ext
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226 # Broken: success on invalid input.
4227 continue
4228 else
4229 # Passes both tests.
4230 ac_preproc_ok=:
4231 break
4233 rm -f conftest.err conftest.i conftest.$ac_ext
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.i conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then :
4239 break
4242 done
4243 ac_cv_prog_CPP=$CPP
4246 CPP=$ac_cv_prog_CPP
4247 else
4248 ac_cv_prog_CPP=$CPP
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4251 $as_echo "$CPP" >&6; }
4252 ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #ifdef __STDC__
4264 # include <limits.h>
4265 #else
4266 # include <assert.h>
4267 #endif
4268 Syntax error
4269 _ACEOF
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4272 else
4273 # Broken: fails on valid input.
4274 continue
4276 rm -f conftest.err conftest.i conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4286 continue
4287 else
4288 # Passes both tests.
4289 ac_preproc_ok=:
4290 break
4292 rm -f conftest.err conftest.i conftest.$ac_ext
4294 done
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.i conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4299 else
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4303 See \`config.log' for more details" "$LINENO" 5; }
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 # Check for a compatible awk
4314 for ac_prog in gawk nawk
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_AWK+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -n "$AWK"; then
4324 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_AWK="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 AWK=$ac_cv_prog_AWK
4344 if test -n "$AWK"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4346 $as_echo "$AWK" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4353 test -n "$AWK" && break
4354 done
4356 if test "$AWK" = ""; then
4357 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4359 # Extract the first word of "mmake", so it can be a program name with args.
4360 set dummy mmake; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_MMAKE+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$MMAKE"; then
4367 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_MMAKE="mmake "
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4386 MMAKE=$ac_cv_prog_MMAKE
4387 if test -n "$MMAKE"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4389 $as_echo "$MMAKE" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4397 # Perform some default variable assignments. Note all of these will be
4398 # Regenerated from the script, so there is no need to cache them.
4400 aros_host_cpp="$CPP"
4401 aros_host_cc="$CC"
4402 aros_host_cxx="$CXX"
4403 if test "$GCC" = "yes"; then
4404 aros_gcc_ld=`$CC -print-prog-name=ld`
4405 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4406 set dummy `basename $aros_gcc_ld`; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_path_aros_host_ld+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 case $aros_host_ld in
4413 [\\/]* | ?:[\\/]*)
4414 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in `dirname $aros_gcc_ld`
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4428 done
4429 done
4430 IFS=$as_save_IFS
4433 esac
4435 aros_host_ld=$ac_cv_path_aros_host_ld
4436 if test -n "$aros_host_ld"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4438 $as_echo "$aros_host_ld" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4446 if test "$aros_host_ld" = ""; then
4447 # Extract the first word of "ld", so it can be a program name with args.
4448 set dummy ld; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_path_aros_host_ld+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 case $aros_host_ld in
4455 [\\/]* | ?:[\\/]*)
4456 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4475 esac
4477 aros_host_ld=$ac_cv_path_aros_host_ld
4478 if test -n "$aros_host_ld"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4480 $as_echo "$aros_host_ld" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4488 if test "$aros_host_ld" = ""; then
4489 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4491 aros_host_make="make"
4492 aros_host_cflags="$CFLAGS"
4493 aros_host_cxxflags="$CXXFLAGS"
4494 aros_host_ldflags="$LDFLAGS"
4495 aros_host_debug="-g -O0"
4496 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4497 aros_host_mkargs="--no-print-directory"
4498 aros_host_exe_suffix="$EXEEXT"
4499 aros_host_lib_suffix=""
4501 # Ignore all compliance, AROS ROMs = 0
4502 # KickStart v1.0 = 30
4503 # KickStart v1.3 = 34
4504 # KickStart v2.0 = 37
4505 # KickStart v3.0 = 39
4506 # KickStart v3.1 = 40
4507 # AmigaOS v3.5 = 44
4508 aros_amigaos_compliance=0
4510 for ac_prog in aclocal aclocal19 aclocal-1.9
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$aros_host_aclocal"; then
4520 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_aros_host_aclocal="$ac_prog"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4533 done
4534 done
4535 IFS=$as_save_IFS
4539 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4540 if test -n "$aros_host_aclocal"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4542 $as_echo "$aros_host_aclocal" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 test -n "$aros_host_aclocal" && break
4550 done
4552 for ac_prog in autoconf autoconf259 autoconf253
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$aros_host_autoconf"; then
4562 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_aros_host_autoconf="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4582 if test -n "$aros_host_autoconf"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4584 $as_echo "$aros_host_autoconf" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$aros_host_autoconf" && break
4592 done
4594 for ac_prog in autoheader autoheader259 autoheader253
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$aros_host_autoheader"; then
4604 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_aros_host_autoheader="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4624 if test -n "$aros_host_autoheader"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4626 $as_echo "$aros_host_autoheader" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$aros_host_autoheader" && break
4634 done
4636 for ac_prog in automake automake19 automake-1.9
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_aros_host_automake+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$aros_host_automake"; then
4646 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_aros_host_automake="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 aros_host_automake=$ac_cv_prog_aros_host_automake
4666 if test -n "$aros_host_automake"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4668 $as_echo "$aros_host_automake" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$aros_host_automake" && break
4676 done
4679 if test "$aros_host_aclocal" = ""; then
4680 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4682 if test "$aros_host_automake" = ""; then
4683 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4686 case "$aros_host_cc" in
4687 *clang*)
4688 aros_host_cc_pipe=""
4690 *gcc*)
4691 aros_host_cc_pipe="-pipe"
4693 icc)
4694 aros_host_cc_pipe=""
4697 aros_host_cc_pipe=""
4699 esac
4701 aros_kernel_cc_includes=""
4702 aros_target_cc_includes=""
4703 host_cc_elf=yes
4705 # ----------------------------------------------------------------------------------------
4706 # Host-specific defaults
4708 # This is the main host configuration section. It is where the host
4709 # can change the values of any variables it needs to change. We do
4710 # not look at anything that compiles to the target yet, we'll get
4711 # to that later.
4713 case "$host_os" in
4714 aros*)
4715 aros_host_arch="aros"
4716 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4717 case "$host_cpu" in
4718 *i?86*)
4719 aros_host_cpu="i386"
4721 *x86_64*)
4722 aros_host_cpu="x86_64"
4724 *powerpc*)
4725 aros_host_cpu="ppc"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4729 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4730 aros_host_cpu="$host_cpu"
4732 esac
4735 linux*)
4736 aros_host_arch="linux"
4737 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4738 android_build_os="linux-x86"
4739 android_tool="android"
4740 default_android_sdk="/opt/android-sdk-linux_x86"
4741 case "$host_cpu" in
4742 *i?86*)
4743 aros_host_cpu="i386"
4745 *x86_64*)
4746 aros_host_cpu="x86_64"
4748 *m68k*)
4749 aros_host_cpu="m68k"
4751 *powerpc*)
4752 aros_host_cpu="ppc"
4754 *arm*)
4755 aros_host_cpu="arm"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4759 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4760 aros_host_cpu="$host_cpu"
4762 esac
4765 freebsd*)
4766 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4767 aros_host_make="gmake"
4768 aros_host_arch="freebsd"
4769 aros_host_cpu="i386"
4771 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4773 case $host_os in
4774 freebsd[234]*)
4775 aros_object_format="elf_i386"
4779 aros_object_format="elf_i386_fbsd"
4781 esac
4785 darwin*)
4786 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4787 aros_host_arch="darwin"
4788 host_cc_elf=no
4789 if [ -z ${SED+x} ]; then SED="gsed"; fi
4790 android_build_os="darwin-x86"
4791 android_tool="android"
4792 default_android_sdk="/android-sdk-mac_x86"
4793 case "$host_cpu" in
4794 *i?86*)
4795 aros_host_cpu="i386"
4797 *x86_64*)
4798 aros_host_cpu="x86_64"
4800 *powerpc*)
4801 aros_host_cpu="ppc"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4805 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4806 aros_host_cpu="$host_cpu"
4808 esac
4810 aros_host_ldflags="$aros_host_ldflags -liconv"
4814 dragonfly*)
4815 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4816 aros_host_make="gmake"
4817 aros_host_arch="dragonfly"
4818 case $host_cpu in
4819 *i?86*)
4820 aros_host_cpu="i386"
4822 *amd64*)
4823 aros_host_cpu="x86_64"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4827 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4828 aros_host_cpu="$host_cpu"
4830 esac
4833 netbsd*)
4834 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4835 aros_host_make="gmake"
4836 aros_host_arch="netbsd"
4837 case "$host_cpu" in
4838 *i?86*)
4839 aros_host_cpu="i386"
4841 *m68k*)
4842 aros_host_cpu="m68k"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4846 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4847 aros_host_cpu="$host_cpu"
4849 esac
4850 aros_host_lib_suffix=".0.0"
4853 openbsd*)
4854 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4855 aros_host_make="gmake"
4856 aros_host_arch="openbsd"
4857 case "$host_cpu" in
4858 *i?86*)
4859 aros_host_cpu="i386"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4863 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4864 aros_host_cpu="$host_cpu"
4866 esac
4869 solaris*)
4870 aros_host_arch="solaris"
4871 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4872 case "$host_cpu" in
4873 *i?86*)
4874 aros_host_cpu="i386"
4876 *sparc*)
4877 aros_host_cpu="sparc"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4881 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4882 aros_host_cpu="$host_cpu"
4884 esac
4887 morphos*)
4888 aros_host_arch="morphos"
4889 aros_host_cpu="ppc"
4890 host_cc_elf=no
4893 amiga*)
4894 aros_host_arch="amiga"
4895 host_cc_elf=no
4896 SORT="/gg/bin/sort"
4897 TEST="/gg/bin/test"
4898 UNIQ="/gg/bin/uniq"
4899 FOR="for"
4900 TOUCH="/gg/bin/touch"
4901 case "$host_cpu" in
4902 *m68k*)
4903 aros_host_cpu="m68k"
4905 *powerpc*)
4906 aros_host_cpu="ppc"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu="$host_cpu"
4913 esac
4916 cygwin*)
4917 aros_host_arch="cygwin"
4918 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4919 host_cc_elf=no
4920 android_build_os="windows"
4921 android_tool="android.bat"
4922 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4924 case "$host_cpu" in
4925 *i?86*)
4926 aros_host_cpu="i386"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4930 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4931 aros_host_cpu="$host_cpu"
4933 esac
4936 mingw32*)
4937 aros_host_arch="mingw32"
4938 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4939 host_cc_elf=no
4940 android_build_os="windows"
4941 android_tool="android.bat"
4942 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4944 case "$host_cpu" in
4945 *i?86*)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4948 $as_echo_n "checking for Windows native gcc target... " >&6; }
4949 host_cpu=`gcc -dumpmachine`
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4951 $as_echo "$host_cpu" >&6; }
4954 esac
4956 case "$host_cpu" in
4957 *i?86*)
4958 aros_host_cpu="i386"
4961 mingw32*)
4962 aros_host_cpu="i386"
4965 *x86_64*)
4966 aros_host_cpu="x86_64"
4967 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4972 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4973 aros_host_cpu="$host_cpu"
4975 esac
4978 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4980 esac
4982 # Extract the first word of "ar", so it can be a program name with args.
4983 set dummy ar; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_prog_aros_host_ar+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$aros_host_ar"; then
4990 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_aros_host_ar="ar cr"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 aros_host_ar=$ac_cv_prog_aros_host_ar
5010 if test -n "$aros_host_ar"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5012 $as_echo "$aros_host_ar" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5019 if test "$aros_host_ar" = ""; then
5020 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5022 # Extract the first word of "ranlib", so it can be a program name with args.
5023 set dummy ranlib; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$aros_host_ranlib"; then
5030 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_aros_host_ranlib="ranlib "
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5050 if test -n "$aros_host_ranlib"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5052 $as_echo "$aros_host_ranlib" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5059 if test "$aros_host_ranlib" = ""; then
5060 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5062 # Extract the first word of "strip", so it can be a program name with args.
5063 set dummy strip; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_aros_host_strip+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$aros_host_strip"; then
5070 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_aros_host_strip="strip "
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 aros_host_strip=$ac_cv_prog_aros_host_strip
5090 if test -n "$aros_host_strip"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5092 $as_echo "$aros_host_strip" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 if test "$aros_host_strip" = ""; then
5100 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "rm", so it can be a program name with args.
5104 set dummy rm; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_RM+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$RM"; then
5111 ac_cv_prog_RM="$RM" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_RM="rm -rf"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 RM=$ac_cv_prog_RM
5131 if test -n "$RM"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5133 $as_echo "$RM" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 if test "$RM" = ""; then
5141 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 # Extract the first word of "cp", so it can be a program name with args.
5144 set dummy cp; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_CP+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$CP"; then
5151 ac_cv_prog_CP="$CP" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_CP="cp "
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 CP=$ac_cv_prog_CP
5171 if test -n "$CP"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5173 $as_echo "$CP" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 if test "$CP" = ""; then
5181 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5183 # Extract the first word of "mv", so it can be a program name with args.
5184 set dummy mv; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_MV+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$MV"; then
5191 ac_cv_prog_MV="$MV" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_MV="mv "
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 MV=$ac_cv_prog_MV
5211 if test -n "$MV"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5213 $as_echo "$MV" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 if test "$MV" = ""; then
5221 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5223 # Extract the first word of "echo", so it can be a program name with args.
5224 set dummy echo; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_ECHO+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$ECHO"; then
5231 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_ECHO="echo "
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 ECHO=$ac_cv_prog_ECHO
5251 if test -n "$ECHO"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5253 $as_echo "$ECHO" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 if test "$ECHO" = ""; then
5261 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5263 # Extract the first word of "mkdir", so it can be a program name with args.
5264 set dummy mkdir; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_MKDIR+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$MKDIR"; then
5271 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_MKDIR="mkdir -p"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 MKDIR=$ac_cv_prog_MKDIR
5291 if test -n "$MKDIR"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5293 $as_echo "$MKDIR" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 if test "$MKDIR" = ""; then
5301 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5303 # Extract the first word of "touch", so it can be a program name with args.
5304 set dummy touch; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_TOUCH+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$TOUCH"; then
5311 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_TOUCH="touch "
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5324 done
5325 done
5326 IFS=$as_save_IFS
5330 TOUCH=$ac_cv_prog_TOUCH
5331 if test -n "$TOUCH"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5333 $as_echo "$TOUCH" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 if test "$TOUCH" = ""; then
5341 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5343 # Extract the first word of "sort", so it can be a program name with args.
5344 set dummy sort; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_SORT+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$SORT"; then
5351 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_SORT="sort "
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 SORT=$ac_cv_prog_SORT
5371 if test -n "$SORT"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5373 $as_echo "$SORT" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 if test "$SORT" = ""; then
5381 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 # Extract the first word of "uniq", so it can be a program name with args.
5384 set dummy uniq; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_UNIQ+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$UNIQ"; then
5391 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_UNIQ="uniq "
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 UNIQ=$ac_cv_prog_UNIQ
5411 if test -n "$UNIQ"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5413 $as_echo "$UNIQ" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 if test "$UNIQ" = ""; then
5421 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5423 # Extract the first word of "true", so it can be a program name with args.
5424 set dummy true; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_NOP+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$NOP"; then
5431 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_NOP="true "
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5446 IFS=$as_save_IFS
5450 NOP=$ac_cv_prog_NOP
5451 if test -n "$NOP"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5453 $as_echo "$NOP" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 if test "$NOP" = ""; then
5461 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5463 # Extract the first word of "cat", so it can be a program name with args.
5464 set dummy cat; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_CAT+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -n "$CAT"; then
5471 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_CAT="cat "
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5484 done
5485 done
5486 IFS=$as_save_IFS
5490 CAT=$ac_cv_prog_CAT
5491 if test -n "$CAT"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5493 $as_echo "$CAT" >&6; }
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5500 if test "$CAT" = ""; then
5501 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5503 # Extract the first word of "bison", so it can be a program name with args.
5504 set dummy bison; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_BISON+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$BISON"; then
5511 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_BISON="bison "
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5530 BISON=$ac_cv_prog_BISON
5531 if test -n "$BISON"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5533 $as_echo "$BISON" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5540 if test "$BISON" = ""; then
5541 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5543 # Extract the first word of "flex", so it can be a program name with args.
5544 set dummy flex; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_FLEX+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$FLEX"; then
5551 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_FLEX="flex "
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 FLEX=$ac_cv_prog_FLEX
5571 if test -n "$FLEX"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5573 $as_echo "$FLEX" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5580 if test "$FLEX" = ""; then
5581 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5583 # Extract the first word of "pngtopnm", so it can be a program name with args.
5584 set dummy pngtopnm; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$PNGTOPNM"; then
5591 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_PNGTOPNM="pngtopnm "
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5611 if test -n "$PNGTOPNM"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5613 $as_echo "$PNGTOPNM" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 if test "$PNGTOPNM" = ""; then
5621 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5623 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5624 set dummy ppmtoilbm; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$PPMTOILBM"; then
5631 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5651 if test -n "$PPMTOILBM"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5653 $as_echo "$PPMTOILBM" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 if test "$PPMTOILBM" = ""; then
5661 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5663 # Extract the first word of "sed", so it can be a program name with args.
5664 set dummy sed; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_SED+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$SED"; then
5671 ac_cv_prog_SED="$SED" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_SED="sed "
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 SED=$ac_cv_prog_SED
5691 if test -n "$SED"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5693 $as_echo "$SED" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5700 if test "$SED" = ""; then
5701 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5703 # Extract the first word of "chmod", so it can be a program name with args.
5704 set dummy chmod; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_CHMOD+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$CHMOD"; then
5711 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CHMOD="chmod "
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5726 IFS=$as_save_IFS
5730 CHMOD=$ac_cv_prog_CHMOD
5731 if test -n "$CHMOD"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5733 $as_echo "$CHMOD" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 if test "$CHMOD" = ""; then
5741 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5743 # Extract the first word of "patch", so it can be a program name with args.
5744 set dummy patch; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_PATCH+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$PATCH"; then
5751 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_PATCH="patch "
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5764 done
5765 done
5766 IFS=$as_save_IFS
5770 PATCH=$ac_cv_prog_PATCH
5771 if test -n "$PATCH"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5773 $as_echo "$PATCH" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5780 if test "$PATCH" = ""; then
5781 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5790 if test -n "$PYTHON"; then
5791 # If the user set $PYTHON, use it and don't search something else.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5793 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5794 prog="import sys
5795 # split strings by '.' and convert to numeric. Append some zeros
5796 # because we need at least 4 digits for the hex conversion.
5797 # map returns an iterator in Python 3.0 and a list in 2.x
5798 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5799 minverhex = 0
5800 # xrange is not present in Python 3.0 and range returns an iterator
5801 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5802 sys.exit(sys.hexversion < minverhex)"
5803 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5804 ($PYTHON -c "$prog") >&5 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; then :
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809 $as_echo "yes" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5815 am_display_PYTHON=$PYTHON
5816 else
5817 # Otherwise, try each interpreter until we find one that satisfies
5818 # VERSION.
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5820 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5821 if ${am_cv_pathless_PYTHON+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5825 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
5826 test "$am_cv_pathless_PYTHON" = none && break
5827 prog="import sys
5828 # split strings by '.' and convert to numeric. Append some zeros
5829 # because we need at least 4 digits for the hex conversion.
5830 # map returns an iterator in Python 3.0 and a list in 2.x
5831 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5832 minverhex = 0
5833 # xrange is not present in Python 3.0 and range returns an iterator
5834 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5835 sys.exit(sys.hexversion < minverhex)"
5836 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5837 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; then :
5841 break
5843 done
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5846 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5847 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5848 if test "$am_cv_pathless_PYTHON" = none; then
5849 PYTHON=:
5850 else
5851 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5852 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_path_PYTHON+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 case $PYTHON in
5859 [\\/]* | ?:[\\/]*)
5860 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5879 esac
5881 PYTHON=$ac_cv_path_PYTHON
5882 if test -n "$PYTHON"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5884 $as_echo "$PYTHON" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5892 am_display_PYTHON=$am_cv_pathless_PYTHON
5896 if test "$PYTHON" = :; then
5897 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5898 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5902 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5903 if ${am_cv_python_version+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5909 $as_echo "$am_cv_python_version" >&6; }
5910 PYTHON_VERSION=$am_cv_python_version
5914 PYTHON_PREFIX='${prefix}'
5916 PYTHON_EXEC_PREFIX='${exec_prefix}'
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5921 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5922 if ${am_cv_python_platform+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5928 $as_echo "$am_cv_python_platform" >&6; }
5929 PYTHON_PLATFORM=$am_cv_python_platform
5932 # Just factor out some code duplication.
5933 am_python_setup_sysconfig="\
5934 import sys
5935 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5936 # with python 3.x. See automake bug#10227.
5937 try:
5938 import sysconfig
5939 except ImportError:
5940 can_use_sysconfig = 0
5941 else:
5942 can_use_sysconfig = 1
5943 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5944 # <https://github.com/pypa/virtualenv/issues/118>
5945 try:
5946 from platform import python_implementation
5947 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5948 can_use_sysconfig = 0
5949 except ImportError:
5950 pass"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5954 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5955 if ${am_cv_python_pythondir+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test "x$prefix" = xNONE
5959 then
5960 am_py_prefix=$ac_default_prefix
5961 else
5962 am_py_prefix=$prefix
5964 am_cv_python_pythondir=`$PYTHON -c "
5965 $am_python_setup_sysconfig
5966 if can_use_sysconfig:
5967 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5968 else:
5969 from distutils import sysconfig
5970 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5971 sys.stdout.write(sitedir)"`
5972 case $am_cv_python_pythondir in
5973 $am_py_prefix*)
5974 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5975 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5978 case $am_py_prefix in
5979 /usr|/System*) ;;
5981 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5983 esac
5985 esac
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5989 $as_echo "$am_cv_python_pythondir" >&6; }
5990 pythondir=$am_cv_python_pythondir
5994 pkgpythondir=\${pythondir}/$PACKAGE
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5998 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5999 if ${am_cv_python_pyexecdir+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if test "x$exec_prefix" = xNONE
6003 then
6004 am_py_exec_prefix=$am_py_prefix
6005 else
6006 am_py_exec_prefix=$exec_prefix
6008 am_cv_python_pyexecdir=`$PYTHON -c "
6009 $am_python_setup_sysconfig
6010 if can_use_sysconfig:
6011 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6012 else:
6013 from distutils import sysconfig
6014 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6015 sys.stdout.write(sitedir)"`
6016 case $am_cv_python_pyexecdir in
6017 $am_py_exec_prefix*)
6018 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6019 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6022 case $am_py_exec_prefix in
6023 /usr|/System*) ;;
6025 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6027 esac
6029 esac
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6033 $as_echo "$am_cv_python_pyexecdir" >&6; }
6034 pyexecdir=$am_cv_python_pyexecdir
6038 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6048 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6049 if ${ac_cv_lib_png_png_read_png+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_check_lib_save_LIBS=$LIBS
6053 LIBS="-lpng $LIBS"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6057 /* Override any GCC internal prototype to avoid an error.
6058 Use char because int might match the return type of a GCC
6059 builtin and then its argument prototype would still apply. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 char png_read_png ();
6065 main ()
6067 return png_read_png ();
6069 return 0;
6071 _ACEOF
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_lib_png_png_read_png=yes
6074 else
6075 ac_cv_lib_png_png_read_png=no
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6082 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6083 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6084 cat >>confdefs.h <<_ACEOF
6085 #define HAVE_LIBPNG 1
6086 _ACEOF
6088 LIBS="-lpng $LIBS"
6092 if test "$ac_cv_lib_png_png_read_png" = ""; then
6093 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6096 FOR=for
6098 IF=if
6100 TEST=test
6102 CMP=cmp
6106 # Check for some includes for the X11 HIDD and the kernel
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6110 if ${ac_cv_path_GREP+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 if test -z "$GREP"; then
6114 ac_path_GREP_found=false
6115 # Loop through the user's path and test for each of PROGNAME-LIST
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_prog in grep ggrep; do
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6124 as_fn_executable_p "$ac_path_GREP" || continue
6125 # Check for GNU ac_path_GREP and select it if it is found.
6126 # Check for GNU $ac_path_GREP
6127 case `"$ac_path_GREP" --version 2>&1` in
6128 *GNU*)
6129 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6131 ac_count=0
6132 $as_echo_n 0123456789 >"conftest.in"
6133 while :
6135 cat "conftest.in" "conftest.in" >"conftest.tmp"
6136 mv "conftest.tmp" "conftest.in"
6137 cp "conftest.in" "conftest.nl"
6138 $as_echo 'GREP' >> "conftest.nl"
6139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6141 as_fn_arith $ac_count + 1 && ac_count=$as_val
6142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6143 # Best one so far, save it but keep looking for a better one
6144 ac_cv_path_GREP="$ac_path_GREP"
6145 ac_path_GREP_max=$ac_count
6147 # 10*(2^10) chars as input seems more than enough
6148 test $ac_count -gt 10 && break
6149 done
6150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6151 esac
6153 $ac_path_GREP_found && break 3
6154 done
6155 done
6156 done
6157 IFS=$as_save_IFS
6158 if test -z "$ac_cv_path_GREP"; then
6159 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6161 else
6162 ac_cv_path_GREP=$GREP
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6167 $as_echo "$ac_cv_path_GREP" >&6; }
6168 GREP="$ac_cv_path_GREP"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6172 $as_echo_n "checking for egrep... " >&6; }
6173 if ${ac_cv_path_EGREP+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6177 then ac_cv_path_EGREP="$GREP -E"
6178 else
6179 if test -z "$EGREP"; then
6180 ac_path_EGREP_found=false
6181 # Loop through the user's path and test for each of PROGNAME-LIST
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_prog in egrep; do
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6190 as_fn_executable_p "$ac_path_EGREP" || continue
6191 # Check for GNU ac_path_EGREP and select it if it is found.
6192 # Check for GNU $ac_path_EGREP
6193 case `"$ac_path_EGREP" --version 2>&1` in
6194 *GNU*)
6195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6197 ac_count=0
6198 $as_echo_n 0123456789 >"conftest.in"
6199 while :
6201 cat "conftest.in" "conftest.in" >"conftest.tmp"
6202 mv "conftest.tmp" "conftest.in"
6203 cp "conftest.in" "conftest.nl"
6204 $as_echo 'EGREP' >> "conftest.nl"
6205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6207 as_fn_arith $ac_count + 1 && ac_count=$as_val
6208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6209 # Best one so far, save it but keep looking for a better one
6210 ac_cv_path_EGREP="$ac_path_EGREP"
6211 ac_path_EGREP_max=$ac_count
6213 # 10*(2^10) chars as input seems more than enough
6214 test $ac_count -gt 10 && break
6215 done
6216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6217 esac
6219 $ac_path_EGREP_found && break 3
6220 done
6221 done
6222 done
6223 IFS=$as_save_IFS
6224 if test -z "$ac_cv_path_EGREP"; then
6225 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6227 else
6228 ac_cv_path_EGREP=$EGREP
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6234 $as_echo "$ac_cv_path_EGREP" >&6; }
6235 EGREP="$ac_cv_path_EGREP"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6239 $as_echo_n "checking for ANSI C header files... " >&6; }
6240 if ${ac_cv_header_stdc+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 #include <stdlib.h>
6246 #include <stdarg.h>
6247 #include <string.h>
6248 #include <float.h>
6251 main ()
6255 return 0;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 ac_cv_header_stdc=yes
6260 else
6261 ac_cv_header_stdc=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <string.h>
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev/null 2>&1; then :
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f conftest*
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 #include <stdlib.h>
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "free" >/dev/null 2>&1; then :
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f conftest*
6299 if test $ac_cv_header_stdc = yes; then
6300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6301 if test "$cross_compiling" = yes; then :
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <ctype.h>
6307 #include <stdlib.h>
6308 #if ((' ' & 0x0FF) == 0x020)
6309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 #else
6312 # define ISLOWER(c) \
6313 (('a' <= (c) && (c) <= 'i') \
6314 || ('j' <= (c) && (c) <= 'r') \
6315 || ('s' <= (c) && (c) <= 'z'))
6316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6317 #endif
6319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 main ()
6323 int i;
6324 for (i = 0; i < 256; i++)
6325 if (XOR (islower (i), ISLOWER (i))
6326 || toupper (i) != TOUPPER (i))
6327 return 2;
6328 return 0;
6330 _ACEOF
6331 if ac_fn_c_try_run "$LINENO"; then :
6333 else
6334 ac_cv_header_stdc=no
6336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6337 conftest.$ac_objext conftest.beam conftest.$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6343 $as_echo "$ac_cv_header_stdc" >&6; }
6344 if test $ac_cv_header_stdc = yes; then
6346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6352 inttypes.h stdint.h unistd.h
6353 do :
6354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6367 for ac_header in sys/ipc.h sys/shm.h \
6368 sys/mmap.h sys/mman.h sysexits.h \
6369 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6371 do :
6372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6375 cat >>confdefs.h <<_ACEOF
6376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6377 _ACEOF
6381 done
6384 for ac_header in sys/mount.h
6385 do :
6386 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6388 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_SYS_MOUNT_H 1
6391 _ACEOF
6395 done
6398 ac_header_dirent=no
6399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6400 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6402 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6403 if eval \${$as_ac_Header+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #include <sys/types.h>
6409 #include <$ac_hdr>
6412 main ()
6414 if ((DIR *) 0)
6415 return 0;
6417 return 0;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 eval "$as_ac_Header=yes"
6422 else
6423 eval "$as_ac_Header=no"
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 eval ac_res=\$$as_ac_Header
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6431 cat >>confdefs.h <<_ACEOF
6432 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6433 _ACEOF
6435 ac_header_dirent=$ac_hdr; break
6438 done
6439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6440 if test $ac_header_dirent = dirent.h; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6442 $as_echo_n "checking for library containing opendir... " >&6; }
6443 if ${ac_cv_search_opendir+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_func_search_save_LIBS=$LIBS
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 char opendir ();
6458 main ()
6460 return opendir ();
6462 return 0;
6464 _ACEOF
6465 for ac_lib in '' dir; do
6466 if test -z "$ac_lib"; then
6467 ac_res="none required"
6468 else
6469 ac_res=-l$ac_lib
6470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6472 if ac_fn_c_try_link "$LINENO"; then :
6473 ac_cv_search_opendir=$ac_res
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext
6477 if ${ac_cv_search_opendir+:} false; then :
6478 break
6480 done
6481 if ${ac_cv_search_opendir+:} false; then :
6483 else
6484 ac_cv_search_opendir=no
6486 rm conftest.$ac_ext
6487 LIBS=$ac_func_search_save_LIBS
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6490 $as_echo "$ac_cv_search_opendir" >&6; }
6491 ac_res=$ac_cv_search_opendir
6492 if test "$ac_res" != no; then :
6493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6497 else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6499 $as_echo_n "checking for library containing opendir... " >&6; }
6500 if ${ac_cv_search_opendir+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 ac_func_search_save_LIBS=$LIBS
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 /* Override any GCC internal prototype to avoid an error.
6508 Use char because int might match the return type of a GCC
6509 builtin and then its argument prototype would still apply. */
6510 #ifdef __cplusplus
6511 extern "C"
6512 #endif
6513 char opendir ();
6515 main ()
6517 return opendir ();
6519 return 0;
6521 _ACEOF
6522 for ac_lib in '' x; do
6523 if test -z "$ac_lib"; then
6524 ac_res="none required"
6525 else
6526 ac_res=-l$ac_lib
6527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 ac_cv_search_opendir=$ac_res
6532 rm -f core conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext
6534 if ${ac_cv_search_opendir+:} false; then :
6535 break
6537 done
6538 if ${ac_cv_search_opendir+:} false; then :
6540 else
6541 ac_cv_search_opendir=no
6543 rm conftest.$ac_ext
6544 LIBS=$ac_func_search_save_LIBS
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6547 $as_echo "$ac_cv_search_opendir" >&6; }
6548 ac_res=$ac_cv_search_opendir
6549 if test "$ac_res" != no; then :
6550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6557 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6558 if ${ac_cv_header_stat_broken+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #include <sys/types.h>
6564 #include <sys/stat.h>
6566 #if defined S_ISBLK && defined S_IFDIR
6567 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6568 #endif
6570 #if defined S_ISBLK && defined S_IFCHR
6571 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6572 #endif
6574 #if defined S_ISLNK && defined S_IFREG
6575 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6576 #endif
6578 #if defined S_ISSOCK && defined S_IFREG
6579 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6580 #endif
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 ac_cv_header_stat_broken=no
6585 else
6586 ac_cv_header_stat_broken=yes
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6591 $as_echo "$ac_cv_header_stat_broken" >&6; }
6592 if test $ac_cv_header_stat_broken = yes; then
6594 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6599 $as_echo_n "checking for ANSI C header files... " >&6; }
6600 if ${ac_cv_header_stdc+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #include <stdlib.h>
6606 #include <stdarg.h>
6607 #include <string.h>
6608 #include <float.h>
6611 main ()
6615 return 0;
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 ac_cv_header_stdc=yes
6620 else
6621 ac_cv_header_stdc=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 if test $ac_cv_header_stdc = yes; then
6626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 #include <string.h>
6631 _ACEOF
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 $EGREP "memchr" >/dev/null 2>&1; then :
6635 else
6636 ac_cv_header_stdc=no
6638 rm -f conftest*
6642 if test $ac_cv_header_stdc = yes; then
6643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <stdlib.h>
6648 _ACEOF
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "free" >/dev/null 2>&1; then :
6652 else
6653 ac_cv_header_stdc=no
6655 rm -f conftest*
6659 if test $ac_cv_header_stdc = yes; then
6660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6661 if test "$cross_compiling" = yes; then :
6663 else
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <ctype.h>
6667 #include <stdlib.h>
6668 #if ((' ' & 0x0FF) == 0x020)
6669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6671 #else
6672 # define ISLOWER(c) \
6673 (('a' <= (c) && (c) <= 'i') \
6674 || ('j' <= (c) && (c) <= 'r') \
6675 || ('s' <= (c) && (c) <= 'z'))
6676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6677 #endif
6679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6681 main ()
6683 int i;
6684 for (i = 0; i < 256; i++)
6685 if (XOR (islower (i), ISLOWER (i))
6686 || toupper (i) != TOUPPER (i))
6687 return 2;
6688 return 0;
6690 _ACEOF
6691 if ac_fn_c_try_run "$LINENO"; then :
6693 else
6694 ac_cv_header_stdc=no
6696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6697 conftest.$ac_objext conftest.beam conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6703 $as_echo "$ac_cv_header_stdc" >&6; }
6704 if test $ac_cv_header_stdc = yes; then
6706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6711 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6712 if ${ac_cv_header_sys_wait_h+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 #include <sys/wait.h>
6719 #ifndef WEXITSTATUS
6720 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6721 #endif
6722 #ifndef WIFEXITED
6723 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6724 #endif
6727 main ()
6729 int s;
6730 wait (&s);
6731 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6733 return 0;
6735 _ACEOF
6736 if ac_fn_c_try_compile "$LINENO"; then :
6737 ac_cv_header_sys_wait_h=yes
6738 else
6739 ac_cv_header_sys_wait_h=no
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6744 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6745 if test $ac_cv_header_sys_wait_h = yes; then
6747 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6752 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6753 if ${ac_cv_header_time+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <sys/types.h>
6759 #include <sys/time.h>
6760 #include <time.h>
6763 main ()
6765 if ((struct tm *) 0)
6766 return 0;
6768 return 0;
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_cv_header_time=yes
6773 else
6774 ac_cv_header_time=no
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6779 $as_echo "$ac_cv_header_time" >&6; }
6780 if test $ac_cv_header_time = yes; then
6782 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6786 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6787 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6791 _ACEOF
6794 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6799 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6800 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6804 _ACEOF
6807 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6809 else
6810 case " $LIBOBJS " in
6811 *" fileblocks.$ac_objext "* ) ;;
6812 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6814 esac
6819 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6820 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_STRUCT_STAT_ST_RDEV 1
6824 _ACEOF
6827 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6833 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6834 if ${ac_cv_struct_tm+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <sys/types.h>
6840 #include <time.h>
6843 main ()
6845 struct tm tm;
6846 int *p = &tm.tm_sec;
6847 return !p;
6849 return 0;
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 ac_cv_struct_tm=time.h
6854 else
6855 ac_cv_struct_tm=sys/time.h
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6860 $as_echo "$ac_cv_struct_tm" >&6; }
6861 if test $ac_cv_struct_tm = sys/time.h; then
6863 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6867 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6868 #include <$ac_cv_struct_tm>
6871 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STRUCT_TM_TM_ZONE 1
6875 _ACEOF
6880 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6882 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6884 else
6885 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6887 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6888 ac_have_decl=1
6889 else
6890 ac_have_decl=0
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_DECL_TZNAME $ac_have_decl
6895 _ACEOF
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6898 $as_echo_n "checking for tzname... " >&6; }
6899 if ${ac_cv_var_tzname+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <time.h>
6905 #if !HAVE_DECL_TZNAME
6906 extern char *tzname[];
6907 #endif
6910 main ()
6912 return tzname[0][0];
6914 return 0;
6916 _ACEOF
6917 if ac_fn_c_try_link "$LINENO"; then :
6918 ac_cv_var_tzname=yes
6919 else
6920 ac_cv_var_tzname=no
6922 rm -f core conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6926 $as_echo "$ac_cv_var_tzname" >&6; }
6927 if test $ac_cv_var_tzname = yes; then
6929 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6934 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6935 if test "x$ac_cv_type_off_t" = xyes; then :
6937 else
6939 cat >>confdefs.h <<_ACEOF
6940 #define off_t long int
6941 _ACEOF
6945 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6946 if test "x$ac_cv_type_pid_t" = xyes; then :
6948 else
6950 cat >>confdefs.h <<_ACEOF
6951 #define pid_t int
6952 _ACEOF
6956 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6957 if test "x$ac_cv_type_size_t" = xyes; then :
6959 else
6961 cat >>confdefs.h <<_ACEOF
6962 #define size_t unsigned int
6963 _ACEOF
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6968 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6969 if ${ac_cv_type_uid_t+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6976 _ACEOF
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "uid_t" >/dev/null 2>&1; then :
6979 ac_cv_type_uid_t=yes
6980 else
6981 ac_cv_type_uid_t=no
6983 rm -f conftest*
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6987 $as_echo "$ac_cv_type_uid_t" >&6; }
6988 if test $ac_cv_type_uid_t = no; then
6990 $as_echo "#define uid_t int" >>confdefs.h
6993 $as_echo "#define gid_t int" >>confdefs.h
6998 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6999 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7003 _ACEOF
7009 # Look for some functions
7010 for ac_func in getpagesize kqueue statfs statvfs \
7011 clone kse_create rfork_thread thr_create sa_register \
7012 getcontext makecontext setcontext sigaltstack swapcontext
7013 do :
7014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7017 cat >>confdefs.h <<_ACEOF
7018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7019 _ACEOF
7022 done
7028 for ac_header in $ac_header_list
7029 do :
7030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7034 cat >>confdefs.h <<_ACEOF
7035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7036 _ACEOF
7040 done
7049 for ac_func in getpagesize
7050 do :
7051 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7052 if test "x$ac_cv_func_getpagesize" = xyes; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_GETPAGESIZE 1
7055 _ACEOF
7058 done
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7061 $as_echo_n "checking for working mmap... " >&6; }
7062 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test "$cross_compiling" = yes; then :
7066 ac_cv_func_mmap_fixed_mapped=no
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 /* malloc might have been renamed as rpl_malloc. */
7072 #undef malloc
7074 /* Thanks to Mike Haertel and Jim Avera for this test.
7075 Here is a matrix of mmap possibilities:
7076 mmap private not fixed
7077 mmap private fixed at somewhere currently unmapped
7078 mmap private fixed at somewhere already mapped
7079 mmap shared not fixed
7080 mmap shared fixed at somewhere currently unmapped
7081 mmap shared fixed at somewhere already mapped
7082 For private mappings, we should verify that changes cannot be read()
7083 back from the file, nor mmap's back from the file at a different
7084 address. (There have been systems where private was not correctly
7085 implemented like the infamous i386 svr4.0, and systems where the
7086 VM page cache was not coherent with the file system buffer cache
7087 like early versions of FreeBSD and possibly contemporary NetBSD.)
7088 For shared mappings, we should conversely verify that changes get
7089 propagated back to all the places they're supposed to be.
7091 Grep wants private fixed already mapped.
7092 The main things grep needs to know about mmap are:
7093 * does it exist and is it safe to write into the mmap'd area
7094 * how to use it (BSD variants) */
7096 #include <fcntl.h>
7097 #include <sys/mman.h>
7099 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7100 char *malloc ();
7101 #endif
7103 /* This mess was copied from the GNU getpagesize.h. */
7104 #ifndef HAVE_GETPAGESIZE
7105 # ifdef _SC_PAGESIZE
7106 # define getpagesize() sysconf(_SC_PAGESIZE)
7107 # else /* no _SC_PAGESIZE */
7108 # ifdef HAVE_SYS_PARAM_H
7109 # include <sys/param.h>
7110 # ifdef EXEC_PAGESIZE
7111 # define getpagesize() EXEC_PAGESIZE
7112 # else /* no EXEC_PAGESIZE */
7113 # ifdef NBPG
7114 # define getpagesize() NBPG * CLSIZE
7115 # ifndef CLSIZE
7116 # define CLSIZE 1
7117 # endif /* no CLSIZE */
7118 # else /* no NBPG */
7119 # ifdef NBPC
7120 # define getpagesize() NBPC
7121 # else /* no NBPC */
7122 # ifdef PAGESIZE
7123 # define getpagesize() PAGESIZE
7124 # endif /* PAGESIZE */
7125 # endif /* no NBPC */
7126 # endif /* no NBPG */
7127 # endif /* no EXEC_PAGESIZE */
7128 # else /* no HAVE_SYS_PARAM_H */
7129 # define getpagesize() 8192 /* punt totally */
7130 # endif /* no HAVE_SYS_PARAM_H */
7131 # endif /* no _SC_PAGESIZE */
7133 #endif /* no HAVE_GETPAGESIZE */
7136 main ()
7138 char *data, *data2, *data3;
7139 const char *cdata2;
7140 int i, pagesize;
7141 int fd, fd2;
7143 pagesize = getpagesize ();
7145 /* First, make a file with some known garbage in it. */
7146 data = (char *) malloc (pagesize);
7147 if (!data)
7148 return 1;
7149 for (i = 0; i < pagesize; ++i)
7150 *(data + i) = rand ();
7151 umask (0);
7152 fd = creat ("conftest.mmap", 0600);
7153 if (fd < 0)
7154 return 2;
7155 if (write (fd, data, pagesize) != pagesize)
7156 return 3;
7157 close (fd);
7159 /* Next, check that the tail of a page is zero-filled. File must have
7160 non-zero length, otherwise we risk SIGBUS for entire page. */
7161 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7162 if (fd2 < 0)
7163 return 4;
7164 cdata2 = "";
7165 if (write (fd2, cdata2, 1) != 1)
7166 return 5;
7167 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7168 if (data2 == MAP_FAILED)
7169 return 6;
7170 for (i = 0; i < pagesize; ++i)
7171 if (*(data2 + i))
7172 return 7;
7173 close (fd2);
7174 if (munmap (data2, pagesize))
7175 return 8;
7177 /* Next, try to mmap the file at a fixed address which already has
7178 something else allocated at it. If we can, also make sure that
7179 we see the same garbage. */
7180 fd = open ("conftest.mmap", O_RDWR);
7181 if (fd < 0)
7182 return 9;
7183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7185 return 10;
7186 for (i = 0; i < pagesize; ++i)
7187 if (*(data + i) != *(data2 + i))
7188 return 11;
7190 /* Finally, make sure that changes to the mapped area do not
7191 percolate back to the file as seen by read(). (This is a bug on
7192 some variants of i386 svr4.0.) */
7193 for (i = 0; i < pagesize; ++i)
7194 *(data2 + i) = *(data2 + i) + 1;
7195 data3 = (char *) malloc (pagesize);
7196 if (!data3)
7197 return 12;
7198 if (read (fd, data3, pagesize) != pagesize)
7199 return 13;
7200 for (i = 0; i < pagesize; ++i)
7201 if (*(data + i) != *(data3 + i))
7202 return 14;
7203 close (fd);
7204 return 0;
7206 _ACEOF
7207 if ac_fn_c_try_run "$LINENO"; then :
7208 ac_cv_func_mmap_fixed_mapped=yes
7209 else
7210 ac_cv_func_mmap_fixed_mapped=no
7212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7213 conftest.$ac_objext conftest.beam conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7218 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7221 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7224 rm -f conftest.mmap conftest.txt
7229 aros_config_cflags="-Wall -Werror-implicit-function-declaration -Wno-parentheses"
7230 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7231 aros_config_ldflags=""
7233 aros_shared_default=yes
7235 aros_shared_cflags="-fPIC"
7236 aros_shared_aflags=""
7237 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7238 aros_kernel_ldflags="-Wl,-rpath,./lib"
7240 aros_kernel_ar_flags="cr"
7241 aros_target_ar_flags="cr"
7242 aros_target_nm_flags="-C -ul"
7243 aros_target_strip_flags="--strip-unneeded -R.comment"
7245 aros_compiler_libs=
7246 aros_arch_libs=
7248 aros_target_genmap="-Wl,-Map -Xlinker"
7250 # Native flavour stuff
7251 aros_serial_debug="0"
7253 # Palm native flavour stuff
7254 aros_palm_debug_hack="0"
7256 # Unix flavour stuff
7257 aros_nesting_supervisor="0"
7259 # Collect-aros stuff: "-ius" to ignore undefined symbols
7260 ignore_undefined_symbols=""
7262 # Check for X11 by default
7263 need_x11="auto"
7265 host_x_gfx=no
7266 host_sdl_gfx=no
7267 host_android_gfx=no
7269 #-----------------------------------------------------------------------------
7272 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7273 # it switched on by default, and we use the host compiler, so it compiles AROS
7274 # code with this enabled resulting in link failures as we don't have support
7275 # for it.
7277 # We use two methods to disable it. For the host compiler (used to compile
7278 # some hosted modules), we test to see if the compiler supports stack
7279 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7280 # work on all platforms.
7282 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7283 # (this is done unconditionally, as it should have no effect on compilers
7284 # without the stack protection feature). This may be specific to the way that
7285 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7286 # strong enough to disable it in a generic way though, so we'll live with it
7287 # until another vendor ships GCC with it enabled in a different way, and deal
7288 # with it then.
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7292 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7293 save_cflags="$CFLAGS"
7294 CFLAGS="$CFLAGS -fno-stack-protector"
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7299 main ()
7303 return 0;
7305 _ACEOF
7306 if ac_fn_c_try_compile "$LINENO"; then :
7307 use_no_stack_protector="yes"
7308 else
7309 use_no_stack_protector="no"
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7313 $as_echo "$use_no_stack_protector" >&6; }
7314 if test "x-$use_no_stack_protector" = "x-yes" ; then
7315 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7317 CFLAGS="$save_cflags"
7319 #-----------------------------------------------------------------------------
7321 # Disable pointer-signedness warnings if the compiler recognises the option
7322 # (this only works for the host compiler at the moment)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7325 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7326 save_cflags="$CFLAGS"
7327 CFLAGS="$CFLAGS -Wno-pointer-sign"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7332 main ()
7336 return 0;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 use_no_sign_warning="yes"
7341 else
7342 use_no_sign_warning="no"
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7346 $as_echo "$use_no_sign_warning" >&6; }
7347 if test "x-$use_no_sign_warning" = "x-yes" ; then
7348 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7350 CFLAGS="$save_cflags"
7352 #-----------------------------------------------------------------------------
7354 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7357 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7358 save_cflags="$CFLAGS"
7359 CFLAGS="$CFLAGS -fgnu89-inline"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 main ()
7368 return 0;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 use_gnu89_inline="yes"
7373 else
7374 use_gnu89_inline="no"
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7378 $as_echo "$use_gnu89_inline" >&6; }
7379 if test "x-$use_gnu89_inline" = "x-yes" ; then
7380 gnu89_inline="-fgnu89-inline"
7382 CFLAGS="$save_cflags"
7384 #-----------------------------------------------------------------------------
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7387 $as_echo_n "checking for type of build... " >&6; }
7388 # Check whether --enable-build_type was given.
7389 if test "${enable_build_type+set}" = set; then :
7390 enableval=$enable_build_type; build_type=$enableval
7391 else
7392 build_type="personal"
7396 if test "$build_type" = "nightly"; then
7397 build_type_string="NIGHTLY"
7398 elif test "$build_type" = "snapshot"; then
7399 build_type_string="SNAPSHOT"
7400 elif test "$build_type" = "milestone"; then
7401 build_type_string="MILESTONE"
7402 elif test "$build_type" = "release"; then
7403 build_type_string="RELEASE"
7404 else
7405 build_type_string="PERSONAL"
7406 build_type="personal"
7409 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7412 $as_echo "$build_type" >&6; }
7414 #-----------------------------------------------------------------------------
7415 all_debug_types="messages stack modules mungwall symbols"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7418 $as_echo_n "checking which debug types to enable... " >&6; }
7419 # Check whether --enable-debug was given.
7420 if test "${enable_debug+set}" = set; then :
7421 enableval=$enable_debug; debug="$enableval"
7422 else
7423 debug=""
7427 if test "$debug" = "" -o "$debug" = "no"; then
7428 debug="none"
7429 elif test "$debug" = "yes"; then
7430 debug="all"
7433 if test "$debug" = "all" ; then
7434 debug="messages stack modules symbols"
7435 for d in $all_debug_types; do
7436 export aros_${d}_debug="1"
7437 done
7438 else
7439 for d in $all_debug_types; do
7440 export aros_${d}_debug="0"
7441 done
7444 if test "$debug" != "none"; then
7445 debug=`echo $debug | sed s/,/\ /g`
7446 for d in $debug; do
7447 found="0"
7448 for d2 in $all_debug_types; do
7449 if test "$d2" = "$d"; then
7450 found="1"
7451 break
7453 done
7454 if test "$found" = "0"; then
7455 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7457 export aros_${d}_debug="1"
7458 done
7459 aros_debug="yes"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7462 $as_echo "$debug" >&6; }
7464 if test "$aros_messages_debug" = "1"; then
7465 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7466 else
7467 aros_messages_debug=""
7469 if test "$aros_symbols_debug" = "1"; then
7470 aros_symbols_debug="-g"
7471 else
7472 aros_symbols_debug=""
7475 # These are the flags to pass when compiling debugged programs
7476 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7477 aros_debug_aflags=""
7478 aros_debug_ldflags="$aros_symbols_debug"
7480 #-----------------------------------------------------------------------------
7481 # Checking for distcc and ccache.
7483 # Always apply the transforms in this particular order. Basically you should
7484 # always run 'ccache distcc compiler' in that order for the best performance.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7487 $as_echo_n "checking whether to enable distcc... " >&6; }
7488 # Check whether --enable-distcc was given.
7489 if test "${enable_distcc+set}" = set; then :
7490 enableval=$enable_distcc; distcc="$enableval"
7491 else
7492 distcc="no"
7495 if test "$distcc" != "" -a "$distcc" != "no"; then
7496 # AC_CHECK_PROG will print out the result in this case
7497 # Extract the first word of "distcc", so it can be a program name with args.
7498 set dummy distcc; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_path_DISTCC+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 case $DISTCC in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7520 done
7521 done
7522 IFS=$as_save_IFS
7524 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7526 esac
7528 DISTCC=$ac_cv_path_DISTCC
7529 if test -n "$DISTCC"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7531 $as_echo "$DISTCC" >&6; }
7532 else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7544 $as_echo_n "checking whether to enable ccache... " >&6; }
7545 # Check whether --enable-ccache was given.
7546 if test "${enable_ccache+set}" = set; then :
7547 enableval=$enable_ccache; ccache="$enableval"
7548 else
7549 ccache="no"
7552 if test "$ccache" != "" -a "$ccache" != "no"; then
7553 # AC_CHECK_PROG will print out the result in this case
7554 # Extract the first word of "ccache", so it can be a program name with args.
7555 set dummy ccache; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_CCACHE+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$CCACHE"; then
7562 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_CCACHE="ccache"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 CCACHE=$ac_cv_prog_CCACHE
7582 if test -n "$CCACHE"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7584 $as_echo "$CCACHE" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7596 #-----------------------------------------------------------------------------
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7598 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7600 # Check whether --with-kernel-gcc-version was given.
7601 if test "${with_kernel_gcc_version+set}" = set; then :
7602 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7603 else
7604 kernel_tool_version=""
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7608 $as_echo "$kernel_tool_version" >&6; }
7610 #-----------------------------------------------------------------------------
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7612 $as_echo_n "checking what optimization flags to use... " >&6; }
7614 # Check whether --with-optimization was given.
7615 if test "${with_optimization+set}" = set; then :
7616 withval=$with_optimization; optimization="$withval"
7617 else
7618 optimization="unknown"
7621 if test "$optimization" = "unknown"; then
7622 if test "$debug" != "none"; then
7623 optimization="-O0"
7624 else
7625 optimization="-O2"
7628 aros_optimization_cflags="$optimization"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7630 $as_echo "$optimization" >&6; }
7632 #-----------------------------------------------------------------------------
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7634 $as_echo_n "checking what paranoia flags to use... " >&6; }
7636 # Check whether --with-paranoia was given.
7637 if test "${with_paranoia+set}" = set; then :
7638 withval=$with_paranoia; paranoia_flags="$withval"
7639 else
7640 paranoia_flags="default"
7643 if test "$paranoia_flags" = "default"; then
7644 paranoia_flags=""
7645 else if test "$paranoia_flags" = "yes"; then
7646 paranoia_flags="-Wall -Werror"
7647 fi fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7649 $as_echo "$paranoia_flags" >&6; }
7650 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7652 #-----------------------------------------------------------------------------
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7654 $as_echo_n "checking what target variant to enable... " >&6; }
7655 # Check whether --enable-target_variant was given.
7656 if test "${enable_target_variant+set}" = set; then :
7657 enableval=$enable_target_variant; target_variant=$enableval
7658 else
7659 target_variant=""
7662 if test "$target_variant" = ""; then
7663 aros_target_variant=""
7664 aros_target_suffix=""
7665 enableval="none"
7666 else
7667 aros_target_variant="$target_variant"
7668 aros_target_suffix="-$target_variant"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7671 $as_echo "$enableval" >&6; }
7673 #-----------------------------------------------------------------------------
7674 # Target-specific defaults. You can override then on a per-target basis.
7676 # Bootloader name. Currently used by PC target.
7677 target_bootloader="none"
7678 ENABLE_EXECSMP=
7680 #-----------------------------------------------------------------------------
7681 # Additional options for some specific targets
7683 case "$aros_target_variant" in
7684 ios)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7686 $as_echo_n "checking XCode path... " >&6; }
7688 # Check whether --with-xcode was given.
7689 if test "${with_xcode+set}" = set; then :
7690 withval=$with_xcode; aros_xcode_path="$withval"
7691 else
7692 aros_xcode_path="/Developer"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7696 $as_echo "$aros_xcode_path" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7699 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7701 # Check whether --with-sdk-version was given.
7702 if test "${with_sdk_version+set}" = set; then :
7703 withval=$with_sdk_version; aros_sdk_version="$withval"
7704 else
7705 aros_sdk_version="4.1"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7709 $as_echo "$aros_sdk_version" >&6; }
7713 "android")
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7715 $as_echo_n "checking Android SDK path... " >&6; }
7717 # Check whether --with-sdk was given.
7718 if test "${with_sdk+set}" = set; then :
7719 withval=$with_sdk; aros_android_sdk="$withval"
7720 else
7721 aros_android_sdk=$default_android_sdk
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7725 $as_echo "$aros_android_sdk" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7728 $as_echo_n "checking Android NDK path... " >&6; }
7730 # Check whether --with-ndk was given.
7731 if test "${with_ndk+set}" = set; then :
7732 withval=$with_ndk; aros_android_ndk="$withval"
7733 else
7734 aros_android_ndk="none"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7738 $as_echo "$aros_android_ndk" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7741 $as_echo_n "checking what Android SDK version to use... " >&6; }
7743 # Check whether --with-sdk-version was given.
7744 if test "${with_sdk_version+set}" = set; then :
7745 withval=$with_sdk_version; aros_sdk_version="$withval"
7746 else
7747 aros_sdk_version="12"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7751 $as_echo "$aros_sdk_version" >&6; }
7753 aros_android_level=android-$aros_sdk_version
7754 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7755 echo "Platform $aros_android_level is not installed in your SDK"
7756 echo "Use --with-sdk-version=<API level number> to select another platform version"
7757 echo "You can check what plaform versions are installed in your SDK"
7758 echo "by examining contents of $aros_android_sdk/platforms directory"
7759 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7762 export PATH="$aros_android_sdk/tools:$PATH"
7763 # Extract the first word of "$android_tool", so it can be a program name with args.
7764 set dummy $android_tool; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_path_android_tool+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 case $android_tool in
7771 [\\/]* | ?:[\\/]*)
7772 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7791 esac
7793 android_tool=$ac_cv_path_android_tool
7794 if test -n "$android_tool"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7796 $as_echo "$android_tool" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 if test "$android_tool" = ""; then
7804 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7807 if test "$aros_android_ndk" != "none"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7809 $as_echo_n "checking what Android NDK version to use... " >&6; }
7811 # Check whether --with-ndk-version was given.
7812 if test "${with_ndk_version+set}" = set; then :
7813 withval=$with_ndk_version; aros_ndk_version="$withval"
7814 else
7815 aros_ndk_version="9"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7819 $as_echo "$aros_ndk_version" >&6; }
7822 # Extract the first word of "ant", so it can be a program name with args.
7823 set dummy ant; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_path_ant+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 case $ant in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7845 done
7846 done
7847 IFS=$as_save_IFS
7850 esac
7852 ant=$ac_cv_path_ant
7853 if test -n "$ant"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7855 $as_echo "$ant" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 if test "$ant" = ""; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7864 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7868 $as_echo_n "checking Build debug or release apk... " >&6; }
7870 # Check whether --with-apk-version was given.
7871 if test "${with_apk_version+set}" = set; then :
7872 withval=$with_apk_version; aros_android_antapk=$withval
7873 else
7874 aros_android_antapk=release
7877 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7878 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7881 $as_echo "$aros_android_antapk" >&6; }
7883 if test "$host_os" = "mingw32"; then
7884 android_tool="cmd //c $android_tool"
7887 need_dlopen="no"
7890 esac
7892 #-----------------------------------------------------------------------------
7893 # External toolchains
7894 kernel_tool_prefix="none"
7895 aros_tool_prefix="none"
7896 elf_tool_prefix="${target_cpu}-elf-"
7898 # This is the target configuration switch.
7899 case "$target_os" in
7900 linux*)
7901 aros_target_arch="linux"
7902 aros_target_family="unix"
7903 case "$target_cpu" in
7904 *m68k*)
7905 aros_target_cpu="m68k"
7906 aros_object_format="m68kelf"
7907 aros_flavour="emulcompat"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7909 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7910 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7911 gcc_target_cpu="mc68000"
7913 *i?86*)
7914 aros_target_cpu="i386"
7915 aros_object_format="elf_i386"
7916 aros_flavour="emulation"
7917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7918 aros_kernel_ldflags="-Wl,-melf_i386"
7919 aros_nominal_depth=8
7920 gcc_target_cpu="i386"
7921 pci_hidd_target="hidd-pci-linux"
7922 android_tool_dir_prefix="x86"
7923 android_tool_prefix="i686-android-linux"
7924 android_ndk_arch="x86"
7926 *x86_64*)
7927 aros_target_cpu="x86_64"
7928 aros_object_format="elf_x86_64"
7929 aros_flavour="emulation"
7930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7931 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
7932 aros_nominal_depth=8
7933 pci_hidd_target="hidd-pci-linux"
7935 *powerpc*)
7936 aros_target_cpu="ppc"
7937 aros_object_format="elf32ppc"
7938 aros_flavour="emulation"
7939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7940 aros_nominal_depth=8
7941 gcc_target_cpu="ppc"
7943 # TODO
7944 # Same as powerpc, but I need this for the nightly build to work again.
7945 # Actually, the nightly should be made working with powerpc target.
7946 # That just was too much work for the moment, another week or two.
7947 *ppc*)
7948 aros_target_cpu="ppc"
7949 aros_object_format="elf32ppc"
7950 aros_flavour="emulation"
7951 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7952 aros_nominal_depth=8
7953 gcc_target_cpu="ppc"
7955 *armhf*)
7956 aros_target_cpu="arm"
7957 target_cpu="arm"
7958 aros_object_format="armelf_aros"
7959 aros_flavour="emulation"
7960 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7961 gcc_target_cpu="arm"
7962 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7963 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7964 aros_arch_libs="-laeabi"
7965 gcc_default_float_abi="hard"
7966 android_tool_dir_prefix="arm-linux-androideabi"
7967 android_tool_prefix="arm-linux-androideabi"
7968 android_ndk_arch="arm"
7969 kernel_tool_prefix="arm-linux-gnueabihf-"
7971 *arm*)
7972 aros_target_cpu="arm"
7973 aros_object_format="armelf_aros"
7974 aros_flavour="emulation"
7975 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7976 gcc_target_cpu="arm"
7977 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7978 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7979 aros_arch_libs="-laeabi"
7980 android_tool_dir_prefix="arm-linux-androideabi"
7981 android_tool_prefix="arm-linux-androideabi"
7982 android_ndk_arch="arm"
7983 kernel_tool_prefix="arm-linux-gnueabi-"
7986 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7988 esac
7989 case "$aros_target_variant" in
7990 android)
7992 if test "$android_ndk_arch" = ""; then
7993 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7996 aros_nominal_width=320
7997 aros_nominal_height=480
7998 if test "$aros_android_ndk" = "none"; then
7999 aros_kernel_cflags="-mandroid"
8000 aros_kernel_ldflags="-mandroid"
8001 CFLAGS="-mandroid"
8002 else
8003 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8004 kernel_tool_version=""
8005 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8006 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8007 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8008 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8009 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8011 need_x11=no
8012 host_android_gfx=yes
8013 # Disable implicit PIC mode
8014 aros_target_cflags="$aros_target_cflags -fno-pic"
8015 kernel_tool_prefix="$android_tool_prefix-"
8017 esac
8021 aros_target_arch="pc"
8022 aros_shared_default="no"
8023 target_bootloader="grub2"
8024 case "$target_cpu" in
8025 *i?86*)
8026 aros_target_cpu="i386"
8029 if test "$aros_object_format" = "" ; then
8030 aros_object_format="elf_i386"
8032 aros_flavour="standalone"
8033 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8034 aros_kernel_ldflags="-Wl,-melf_i386"
8035 aros_nominal_width=640
8036 aros_nominal_height=480
8037 gcc_target_cpu="i386"
8039 *x86_64*)
8040 aros_target_cpu="x86_64"
8041 aros_serial_debug=1
8042 if test "$aros_object_format" = "" ; then
8043 aros_object_format="elf_x86_64"
8045 aros_flavour="standalone"
8046 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8047 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8048 aros_kernel_ldflags=""
8049 aros_nominal_width=640
8050 aros_nominal_height=480
8051 case "$aros_target_variant" in
8052 smp)
8053 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8055 esac
8058 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8060 esac
8063 prep)
8064 aros_target_arch="prep"
8065 aros_shared_default="no"
8066 aros_target_cpu="ppc"
8067 aros_object_format="elf32ppc"
8068 aros_flavour="ppcnative"
8069 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8070 aros_kernel_ldflags=""
8071 aros_nominal_width=640
8072 aros_nominal_height=480
8073 gcc_target_cpu="ppc"
8076 freebsd*)
8077 aros_target_arch="freebsd"
8078 aros_target_family="unix"
8079 aros_target_cpu="i386"
8080 aros_flavour="emulation"
8081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8082 gcc_target_cpu="i386"
8084 aros_target_strip_flags="-x"
8087 darwin*)
8088 aros_target_arch="darwin"
8089 aros_target_family="unix"
8090 aros_flavour="emulation"
8091 case "$target_cpu" in
8092 *i?86*)
8093 aros_ios_platform="iPhoneSimulator"
8094 aros_target_cpu="i386"
8095 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8096 aros_kernel_ldflags=""
8097 aros_macosx_version="10.4"
8098 aros_nominal_depth=8
8099 gcc_target_cpu="i386"
8100 aros_object_format="elf_i386"
8101 aros_kernel_ar_flags="-cr"
8102 aros_target_strip_flags="-x"
8103 kernel_tool_flags="-m32"
8105 *x86_64*)
8106 aros_target_cpu="x86_64"
8107 aros_object_format="elf_x86_64"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8109 aros_macosx_version="10.6"
8110 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8111 aros_kernel_cflags="-m64"
8112 aros_kernel_ldflags="-m64"
8113 aros_target_cflags="-mcmodel=large"
8114 aros_nominal_depth=8
8115 aros_kernel_ar="ar"
8116 aros_kernel_ar_flags="-cr"
8117 aros_kernel_ld="ld"
8118 aros_kernel_as="as"
8119 aros_kernel_ranlib="ranlib"
8120 aros_kernel_nm="nm"
8121 aros_kernel_strip="strip"
8122 kernel_tool_prefix="i686-apple-darwin10-"
8124 *ppc*)
8125 aros_target_cpu="ppc"
8126 aros_object_format="elf32ppc"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8128 aros_kernel_ldflags=""
8129 aros_macosx_version="10.0"
8130 aros_nominal_depth=8
8131 gcc_target_cpu="ppc"
8132 aros_kernel_ar="ar"
8133 aros_kernel_ar_flags="-cr"
8134 aros_kernel_ld="ld -arch ppc"
8135 aros_kernel_as="as -arch ppc"
8136 aros_kernel_ranlib="ranlib -arch ppc"
8137 aros_kernel_nm="nm -arch ppc"
8138 aros_kernel_strip="strip -arch ppc"
8139 kernel_tool_prefix="powerpc-apple-darwin10-"
8141 *arm*)
8142 aros_ios_platform="iPhoneOS"
8143 aros_target_cpu="arm"
8144 aros_object_format="armelf_aros"
8145 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8146 aros_arch_libs="-laeabi"
8147 aros_nominal_depth=8
8148 gcc_target_cpu="arm"
8149 aros_kernel_ar="ar"
8150 aros_kernel_ar_flags="-cr"
8151 aros_kernel_ld="ld -arch arm"
8152 aros_kernel_ranlib="ranlib -arch arm"
8153 kernel_tool_prefix="arm-apple-darwin10-"
8154 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8157 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8159 esac
8160 case "$aros_target_variant" in
8161 ios)
8162 aros_ios_version="3.0"
8163 aros_nominal_width=320
8164 aros_nominal_height=480
8165 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8166 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8167 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8168 need_x11=no
8169 # This is here because it may depend on iOS or SDK version
8170 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8171 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8172 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8175 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8176 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8178 esac
8181 dragonfly*)
8182 aros_target_arch="dragonfly"
8183 aros_target_family="unix"
8184 aros_flavour="emulation"
8185 case "$target_cpu" in
8186 *i?86*)
8187 aros_target_cpu="i386"
8188 aros_object_format="elf_i386"
8189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8191 *x86_64*)
8192 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8193 aros_target_cpu="x86_64"
8194 aros_object_format="elf_x86_64"
8195 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8198 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8200 esac
8203 netbsd*)
8204 aros_target_arch="netbsd"
8205 aros_target_family="unix"
8206 case "$target_cpu" in
8207 *m68k*)
8208 aros_target_cpu="m68k"
8209 aros_object_format="m68kelf"
8210 aros_flavour="emulcompat"
8211 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8212 gcc_target_cpu="mc68000"
8214 *i?86*)
8215 aros_target_cpu="i386"
8216 aros_object_format="elf_i386"
8217 aros_flavour="emulation"
8218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8219 aros_nominal_depth=8
8220 gcc_target_cpu="i386"
8223 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8225 esac
8226 aros_target_genmap="-Wl,-M -Xlinker >"
8227 aros_flavour="emulation"
8228 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8231 openbsd*)
8232 aros_target_arch="openbsd"
8233 aros_target_family="unix"
8234 case "$target_cpu" in
8235 *i?86*)
8236 aros_target_cpu="i386"
8237 aros_object_format="elf_i386"
8238 aros_flavour="emulation"
8239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8240 gcc_target_cpu="i386"
8243 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8245 esac
8246 aros_target_genmap="-Wl,-M -Xlinker >"
8247 aros_target_nm_flags="-u"
8248 aros_flavour="emulation"
8251 solaris*)
8252 aros_target_arch="solaris"
8253 aros_target_family="unix"
8254 case "$target_cpu" in
8255 *i?86*)
8256 aros_target_cpu="i386"
8257 aros_object_format="elf_i386"
8258 aros_flavour="emulation"
8259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8260 aros_nominal_depth=8
8261 gcc_target_cpu="i386"
8263 *sparc*)
8264 aros_target_cpu="sparc"
8265 aros_object_format="elf_sparc"
8266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8267 gcc_target_cpu="sparc"
8270 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8272 esac
8273 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8274 aros_flavour="emulation"
8277 morphos*)
8278 aros_target_arch="morphos"
8279 aros_shared_default="no"
8280 aros_target_cpu="ppc"
8281 aros_object_format="elf_ppc"
8282 aros_flavour="nativecompat"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8284 gcc_target_cpu="ppc"
8287 sam440)
8288 aros_target_arch="sam440"
8289 aros_shared_default="no"
8290 aros_target_cpu="ppc"
8291 aros_object_format="elf32ppc"
8292 aros_flavour="ppcnative"
8293 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8294 aros_kernel_ldflags=""
8295 aros_nominal_width=1024
8296 aros_nominal_height=768
8297 aros_nominal_depth=24
8298 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8299 gcc_target_cpu="powerpc"
8302 efika)
8303 aros_target_arch="efika"
8304 aros_shared_default="no"
8305 aros_target_cpu="arm"
8306 aros_object_format="armelf_aros"
8307 aros_flavour="standalone"
8308 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8309 aros_kernel_ldflags=""
8310 aros_nominal_width=1024
8311 aros_nominal_height=600
8312 aros_arch_libs="-laeabi"
8313 gcc_default_cpu="armv7-a"
8314 gcc_default_fpu="vfpv3"
8315 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8316 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8317 aros_optimization_cflags="$aros_optimization_cflags -Os"
8318 case "$target_cpu" in
8319 *armhf*)
8320 gcc_default_float_abi="hard"
8321 target_cpu=arm
8322 aros_target_cpu=arm
8324 *arm*)
8325 gcc_default_float_abi="softfp"
8328 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8330 esac
8333 chrp)
8334 aros_target_arch="chrp"
8335 aros_shared_default="no"
8336 aros_target_cpu="ppc"
8337 aros_object_format="elf32ppc"
8338 aros_flavour="ppcnative"
8339 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8340 aros_kernel_ldflags=""
8341 aros_nominal_width=640
8342 aros_nominal_height=480
8343 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8344 gcc_target_cpu="powerpc"
8345 case "$aros_target_variant" in
8346 efika)
8347 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8349 esac
8352 r*pi)
8353 aros_flavour="standalone"
8354 aros_target_arch="raspi"
8355 aros_target_cpu="arm"
8356 aros_object_format="armelf_aros"
8357 aros_shared_default="no"
8358 aros_arch_libs="-laeabi"
8360 gcc_default_cpu="armv6zk"
8361 gcc_default_cpu_tune="arm1176jzf-s"
8363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8364 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8365 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8366 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8367 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8368 case "$aros_target_variant" in
8369 smp)
8370 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8372 esac
8375 stm32f7_discovery)
8376 aros_flavour="standalone"
8377 aros_target_arch="stm32f7_discovery"
8378 aros_target_cpu="arm"
8379 aros_target_cpu_mode="thumb2"
8380 aros_object_format="armelf_aros"
8381 aros_shared_default="no"
8383 # stm32f7 has DSP opcode support
8384 gcc_default_cpu="armv7e-m"
8385 # gcc_default_cpu="armv7-m"
8386 gcc_default_cpu_tune="cortex-m7"
8387 gcc_default_fpu="fpv4-sp-d16"
8388 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8389 # gcc_default_fpu="fpv5-sp-d16"
8390 gcc_default_float_abi="hard"
8392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8395 amiga*)
8396 aros_target_arch="amiga"
8397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8398 aros_shared_default="no"
8400 case "$target_cpu" in
8401 *m68k*)
8402 # Check whether --enable-amigaos_compliance was given.
8403 if test "${enable_amigaos_compliance+set}" = set; then :
8404 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8407 aros_enable_mmu=no
8408 aros_target_cpu="m68k"
8409 aros_object_format="m68kelf"
8410 aros_flavour="standcompat"
8411 gcc_target_cpu="m68000"
8412 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8413 aros_optimization_cflags="$aros_optimization_cflags -Os"
8414 aros_config_aflags="$aros_config_aflags"
8415 aros_target_strip_flags="-R.comment --strip-debug"
8416 aros_nominal_width=640
8417 aros_nominal_height=256
8418 aros_nominal_depth=2
8420 *ppc*)
8421 aros_cpu="ppc"
8422 aros_flavour="native"
8423 gcc_target_cpu="ppc"
8426 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8428 esac
8431 mingw*)
8432 aros_target_arch="mingw32"
8433 aros_shared_default="no"
8434 aros_flavour="emulation"
8435 aros_shared_cflags=""
8436 need_crosstools="yes"
8437 need_dlopen="no"
8438 rescomp="windres"
8439 case "$target_cpu" in
8440 *i?86*)
8441 aros_target_cpu="i386"
8442 aros_object_format="elf_i386"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8444 aros_nominal_depth=8
8445 gcc_target_cpu="i386"
8447 kernel_tool_prefix="i386-mingw32-"
8449 *x86_64*)
8450 aros_target_cpu="x86_64"
8451 aros_object_format="elf_x86_64"
8452 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8453 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8454 aros_nominal_depth=8
8455 kernel_tool_prefix="x86_64-w64-mingw32-"
8457 *arm*)
8458 aros_target_cpu="arm"
8459 aros_object_format="armelf_aros"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8461 aros_arch_libs="-laeabi"
8462 aros_nominal_depth=8
8463 gcc_target_cpu="arm"
8464 gcc_default_float_abi="soft"
8465 kernel_tool_prefix="arm-mingw32ce-"
8466 aros_nominal_width=160
8467 aros_nominal_height=160
8470 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8472 esac
8473 if test $host_os = "cygwin"; then
8474 aros_kernel_cflags="-mno-cygwin"
8477 pp*)
8478 aros_target_arch="pp"
8479 aros_shared_default="no"
8480 case "$target_cpu" in
8481 *m68k*)
8482 aros_target_cpu="m68k"
8483 aros_object_format="m68kelf"
8484 aros_flavour="palmnative"
8485 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8486 aros_nominal_width=160
8487 aros_nominal_height=160
8488 aros_nominal_depth=1
8489 aros_target_ar_flags="cru"
8490 aros_compiler_libs="-lgcc1"
8491 aros_shared_default=no
8492 aros_shared_cflags="-fpic"
8493 aros_shared_aflags=""
8494 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8495 aros_kernel_ldflags="-Wl,-rpath,./lib"
8496 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8497 aros_debug_aflags=""
8498 aros_debug_ldflags="$aros_symbols_debug"
8499 aros_mungwall_debug="0"
8500 aros_modules_debug="0"
8501 gcc_target_cpu="mc68000"
8502 ignore_undefined_symbols="-ius"
8505 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8507 esac
8510 mac*)
8511 aros_target_arch="mac"
8512 aros_shared_default="no"
8513 case "$target_cpu" in
8514 *m68k*)
8515 aros_target_cpu="m68k"
8516 aros_object_format="m68kelf"
8517 aros_flavour="mac68knative"
8518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8519 aros_nominal_width=512
8520 aros_nominal_height=384
8521 aros_nominal_depth=8
8522 aros_target_ar_flags="cru"
8523 aros_compiler_libs="-lgcc1"
8524 aros_shared_default=no
8525 aros_shared_cflags="-fpic"
8526 aros_shared_aflags=""
8527 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8528 aros_kernel_ldflags="-Wl,-rpath,./lib"
8529 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8530 aros_debug_aflags=""
8531 aros_debug_ldflags="$aros_symbols_debug"
8532 aros_mungwall_debug="0"
8533 aros_modules_debug="0"
8534 gcc_target_cpu="mc68000"
8535 ignore_undefined_symbols="-ius"
8538 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8540 esac
8544 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8546 esac
8548 #-----------------------------------------------------------------------------
8549 crosstools_guess="yes"
8550 aros_target_toolchain="no"
8551 aros_config_sysroot=""
8552 aros_kernel_sysroot=""
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8555 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8557 # Check whether --with-kernel-toolchain-prefix was given.
8558 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8559 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8563 $as_echo "$kernel_tool_prefix" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8566 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8568 # Check whether --with-elf-toolchain-prefix was given.
8569 if test "${with_elf_toolchain_prefix+set}" = set; then :
8570 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8571 crosstools_guess="no"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8575 $as_echo "$elf_tool_prefix" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8578 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8580 # Check whether --with-aros-toolchain was given.
8581 if test "${with_aros_toolchain+set}" = set; then :
8582 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8583 crosstools_guess="no"
8586 if test "$aros_tool_prefix" = "yes" ; then
8587 aros_tool_prefix=$aros_target_cpu-aros-
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8590 $as_echo "$aros_tool_prefix" >&6; }
8592 #-----------------------------------------------------------------------------
8593 # Checking if we should build crosstools..
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8595 $as_echo_n "checking whether to build crosstools... " >&6; }
8596 # Check whether --enable-crosstools was given.
8597 if test "${enable_crosstools+set}" = set; then :
8598 enableval=$enable_crosstools; crosstools="$enableval"
8599 else
8600 crosstools="$crosstools_guess"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8604 $as_echo "$crosstools" >&6; }
8606 if test "${crosstools}" = "yes"; then
8607 if test "${crosstools_guess}" = "no"; then
8608 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8612 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8613 aros_target_toolchain="yes"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8617 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8619 # Check whether --with-aros-toolchain-install was given.
8620 if test "${with_aros_toolchain_install+set}" = set; then :
8621 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8624 if test "x$aros_toolchain_install" = "x"; then
8625 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8626 else
8627 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8628 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8629 if test "$crosstools_guess" = "no" ; then
8630 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8632 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8633 aros_kernel_sysroot = $aros_config_sysroot
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8638 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8640 #-----------------------------------------------------------------------------
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8642 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8644 # Check whether --with-binutils-version was given.
8645 if test "${with_binutils_version+set}" = set; then :
8646 withval=$with_binutils_version; use_binutils_version="$withval"
8647 else
8648 use_binutils_version=""
8651 if test "$use_binutils_version" = ""; then
8652 target_binutils_version="$default_binutils_version"
8653 else
8654 target_binutils_version="$use_binutils_version"
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8657 $as_echo "$target_binutils_version" >&6; }
8660 # Helper to identify gcc version
8663 #-----------------------------------------------------------------------------
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8665 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8667 # Check whether --with-gcc-version was given.
8668 if test "${with_gcc_version+set}" = set; then :
8669 withval=$with_gcc_version; use_gcc_version="$withval"
8670 else
8671 use_gcc_version=""
8674 if test "$use_gcc_version" = ""; then
8675 if test "${crosstools}" = "no"; then
8676 if test "x$aros_toolchain_install" != "x"; then
8678 target_gcc_version=""
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8680 $as_echo_n "checking gcc version... " >&6; }
8681 if ${ax_cv_gcc_version+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8685 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8686 if test "x$ax_cv_gcc_version" = "x"; then :
8688 ax_cv_gcc_version=""
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8694 $as_echo "$ax_cv_gcc_version" >&6; }
8695 target_gcc_version=$ax_cv_gcc_version
8700 if test "$use_gcc_version" = ""; then
8701 target_gcc_version="$default_gcc_version"
8703 else
8704 target_gcc_version="$use_gcc_version"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8707 $as_echo "$target_gcc_version" >&6; }
8709 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8710 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8711 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8713 gcc_fix_bitfields="false"
8714 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8715 gcc_fix_bitfields="true"
8716 else
8717 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8718 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8719 gcc_fix_bitfields="true"
8724 if test "$gcc_fix_bitfields" = "true" ; then
8725 case "$aros_target_cpu" in
8726 *x86_64*)
8727 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8728 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8730 i386)
8731 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8732 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8734 esac
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8738 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8739 # Check whether --enable-objc was given.
8740 if test "${enable_objc+set}" = set; then :
8741 enableval=$enable_objc; objc="$enableval"
8742 else
8743 objc="no"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8747 $as_echo "$objc" >&6; }
8748 if test "x$objc" = "xyes"; then
8749 objc_target="$objc"
8750 else
8751 objc_target="no-objc"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8755 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8756 # Check whether --enable-java was given.
8757 if test "${enable_java+set}" = set; then :
8758 enableval=$enable_java; java="$enableval"
8759 else
8760 java="no"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8764 $as_echo "$java" >&6; }
8765 if test "x$java" != "xno"; then
8766 java_target="$java"
8767 else
8768 java_target="no-java"
8771 spec_obj_format="-m $aros_object_format"
8772 # Now process extra architecture-specific options.
8773 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8774 # as well as floating-point ABI.
8775 case "$aros_target_cpu" in
8776 *x86_64*)
8777 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8779 arm*)
8780 if test "$gcc_default_cpu" = ""; then
8781 gcc_default_cpu="armv6"
8783 if test "$gcc_default_fpu" = ""; then
8784 gcc_default_fpu="vfp"
8786 if test "$gcc_default_float_abi" = ""; then
8787 if test "$target_cpu" = "armhf"; then
8788 gcc_default_float_abi="hard"
8789 else
8790 gcc_default_float_abi="softfp"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8795 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8797 # Check whether --with-cpu was given.
8798 if test "${with_cpu+set}" = set; then :
8799 withval=$with_cpu; aros_gcc_cpu="$withval"
8800 else
8801 aros_gcc_cpu=$gcc_default_cpu
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8805 $as_echo "$aros_gcc_cpu" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8808 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8810 # Check whether --with-fpu was given.
8811 if test "${with_fpu+set}" = set; then :
8812 withval=$with_fpu; aros_gcc_fpu="$withval"
8813 else
8814 aros_gcc_fpu=$gcc_default_fpu
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8818 $as_echo "$aros_gcc_fpu" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8821 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8823 # Check whether --with-float was given.
8824 if test "${with_float+set}" = set; then :
8825 withval=$with_float; aros_gcc_float_abi="$withval"
8826 else
8827 aros_gcc_float_abi=$gcc_default_float_abi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8831 $as_echo "$aros_gcc_float_abi" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8834 $as_echo_n "checking Which ARM mode to use... " >&6; }
8835 if test "$aros_target_cpu_mode" = ""; then
8836 aros_target_cpu_mode="arm32"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8838 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8841 $as_echo "$aros_target_cpu_mode" >&6; }
8844 case "$aros_target_cpu_mode" in
8845 arm32)
8846 gcc_default_mode="arm"
8847 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8849 arm64)
8850 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
8852 thumb)
8853 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8855 thumb1)
8856 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8858 thumb2)
8859 gcc_default_mode="thumb"
8860 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
8861 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8864 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
8866 esac
8868 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8869 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8871 i386)
8872 aros_isa_flags="-m32 -march=i486"
8873 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8874 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8876 esac
8878 # Some architectures may need custom ELF specs.
8879 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8880 elf_specs_in=config/${aros_object_format}-specs.in
8881 else
8882 elf_specs_in=config/elf-specs.in
8885 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8886 # Since we override specs, we may need to put these defines there
8887 if test "$gcc_target_cpu" != ""; then
8888 gcc_target_cpu="-D__${gcc_target_cpu}__"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8892 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8894 # Check whether --with-portssources was given.
8895 if test "${with_portssources+set}" = set; then :
8896 withval=$with_portssources; with_portssrcdir=$withval
8897 else
8898 with_portssrcdir="default"
8901 if test "$with_portssrcdir" = "default"; then
8902 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8903 else
8904 AROS_PORTSSRCDIR="$with_portssrcdir"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8907 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8910 $as_echo_n "checking which bootloader to use... " >&6; }
8912 # Check whether --with-bootloader was given.
8913 if test "${with_bootloader+set}" = set; then :
8914 withval=$with_bootloader; target_bootloader=$withval
8915 else
8916 target_bootloader=$target_bootloader
8919 if test "$target_bootloader" = "none"; then
8920 aros_target_bootloader=""
8921 else
8922 aros_target_bootloader="$target_bootloader"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8925 $as_echo "$target_bootloader" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8928 $as_echo_n "checking which icon-set to use... " >&6; }
8930 # Check whether --with-iconset was given.
8931 if test "${with_iconset+set}" = set; then :
8932 withval=$with_iconset; target_iconset=$withval
8933 else
8934 target_iconset="default"
8937 if test "$target_iconset" = "default"; then
8938 aros_target_iconset="Gorilla"
8939 target_iconset="default (Gorilla)"
8940 else
8941 aros_target_iconset="$target_iconset"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8944 $as_echo "$target_iconset" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8947 $as_echo_n "checking which GUI Theme to use... " >&6; }
8949 # Check whether --with-theme was given.
8950 if test "${with_theme+set}" = set; then :
8951 withval=$with_theme; target_guitheme=$withval
8952 else
8953 target_guitheme="default"
8956 if test "$target_guitheme" = "default"; then
8957 aros_target_guitheme="Ice"
8958 else
8959 aros_target_guitheme="$target_guitheme"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8962 $as_echo "$aros_target_guitheme" >&6; }
8964 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8965 # for target code)
8966 cross_compiling=no
8968 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8969 cross_compiling=yes
8972 if test "$aros_host_cpu" == "x86_64" ; then
8973 if test "$aros_target_cpu" == "i386" ; then
8974 cross_compiling=no
8978 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8979 if test "$aros_host_arch" != "$aros_target_arch" ; then
8980 cross_compiling=yes
8982 else
8983 if test "$host_cc_elf" = "no" ; then
8984 cross_compiling=yes
8988 if test "$cross_compiling" = "no" ; then
8989 kernel_tool_prefix=""
8990 if test "$host_cc_elf" = "yes" ; then
8991 elf_tool_prefix=""
8995 if test "$kernel_tool_version" != ""; then
8996 kernel_tool_version="-$kernel_tool_version"
8999 #######################################################################
9000 ## Compute what toolchains to use, and their paths ##
9001 #######################################################################
9003 # This takes, as input:
9004 # crosstools {yes,no}
9005 # kernel_tool_version {"",[version]}
9006 # target_tool_version {"",[version]}
9007 # kernel_tool_prefix {none,[some-arch-os-]}
9008 # target_tool_prefix ${aros_target_cpu}-aros-
9009 # aros_tool_prefix ${aros_target_cpu}-aros-
9011 # The output is
9012 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9013 # Where the 'kernel' binaries are located
9014 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9015 # Where the 'target' binaries are located
9016 # (not the symlink farm - that is aros_target_*!)
9018 # The rules are:
9019 # if crosstools then
9020 # if kernel_tools_prefix = "no-kernel-prefix-"
9021 # aros_kernel_* = crosstools cc paths
9022 # aros_kernel_cc = elf cc wrapper around crosstools cc
9023 # else
9024 # VALIDATE(${kernel_tools_prefix}*)
9025 # aros_kernel_* = ${kernel_tools_prefix}*
9026 # if ${kernel_tools_prefix}cc is an AROS gcc
9027 # aros_kernel_cc = ${kernel_tools_prefix}cc
9028 # else
9029 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9030 # fi
9031 # fi
9033 # orig_target_* = aros built crosstools
9034 # orig_target_cc = elf cc wrapper around crosstools cc
9035 # else
9036 # VALIDATE(${kernel_tools_prefix}*)
9038 # orig_target_* = aros_kernel_*
9039 # if aros_kernel_cc is an AROS gcc
9040 # orig_target_cc = aros_kernel_cc
9041 # else
9042 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9043 # fi
9044 # fi
9046 target_tool_prefix="${aros_target_cpu}-aros-"
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9049 $as_echo_n "checking which kernel tools... " >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9051 $as_echo "$kernel_tool_prefix" >&6; };
9053 if test "$kernel_tool_prefix" = "none" ; then
9054 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9055 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9057 else
9058 # Kernel tools required - find them
9059 # Note that 'normally', aros_kernel_* overrides will be
9060 # empty, unless specified in the per-arch sections above.
9061 if test "x$aros_kernel_cpp" = "x"; then
9062 aros_kernel_cpp=${kernel_tool_prefix}cpp
9065 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9066 if test "$cross_compiling" = "yes" ; then
9067 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9068 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 case $aros_kernel_cpp in
9075 [\\/]* | ?:[\\/]*)
9076 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in $PATH
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9086 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9090 done
9091 done
9092 IFS=$as_save_IFS
9095 esac
9097 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9098 if test -n "$aros_kernel_cpp"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9100 $as_echo "$aros_kernel_cpp" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9107 else
9108 if test "$GCC" = "yes"; then
9109 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9110 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9111 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 case $aros_kernel_cpp in
9118 [\\/]* | ?:[\\/]*)
9119 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in `dirname $aros_gcc_cpp`
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9138 esac
9140 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9141 if test -n "$aros_kernel_cpp"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9143 $as_echo "$aros_kernel_cpp" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9151 if test "$aros_kernel_cpp" = ""; then
9152 # Extract the first word of "cpp", so it can be a program name with args.
9153 set dummy cpp; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 case $aros_kernel_cpp in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9180 esac
9182 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9183 if test -n "$aros_kernel_cpp"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9185 $as_echo "$aros_kernel_cpp" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9194 else
9195 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9196 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 case $aros_kernel_cpp in
9203 [\\/]* | ?:[\\/]*)
9204 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9214 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9218 done
9219 done
9220 IFS=$as_save_IFS
9223 esac
9225 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9226 if test -n "$aros_kernel_cpp"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9228 $as_echo "$aros_kernel_cpp" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9237 if test "$aros_kernel_cpp" = ""; then
9238 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9240 if test "x$aros_kernel_cc" = "x"; then
9241 aros_kernel_cc=${kernel_tool_prefix}gcc
9244 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9245 if test "$cross_compiling" = "yes" ; then
9246 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9247 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 case $aros_kernel_cc in
9254 [\\/]* | ?:[\\/]*)
9255 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9269 done
9270 done
9271 IFS=$as_save_IFS
9274 esac
9276 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9277 if test -n "$aros_kernel_cc"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9279 $as_echo "$aros_kernel_cc" >&6; }
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9286 else
9287 if test "$GCC" = "yes"; then
9288 aros_gcc_cc=`$CC -print-prog-name=cc`
9289 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9290 set dummy `basename $aros_gcc_cc`; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 case $aros_kernel_cc in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in `dirname $aros_gcc_cc`
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9317 esac
9319 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9320 if test -n "$aros_kernel_cc"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9322 $as_echo "$aros_kernel_cc" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9330 if test "$aros_kernel_cc" = ""; then
9331 # Extract the first word of "cc", so it can be a program name with args.
9332 set dummy cc; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 case $aros_kernel_cc in
9339 [\\/]* | ?:[\\/]*)
9340 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9354 done
9355 done
9356 IFS=$as_save_IFS
9359 esac
9361 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9362 if test -n "$aros_kernel_cc"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9364 $as_echo "$aros_kernel_cc" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9373 else
9374 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9375 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 case $aros_kernel_cc in
9382 [\\/]* | ?:[\\/]*)
9383 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in $PATH
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9397 done
9398 done
9399 IFS=$as_save_IFS
9402 esac
9404 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9405 if test -n "$aros_kernel_cc"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9407 $as_echo "$aros_kernel_cc" >&6; }
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9416 if test "$aros_kernel_cc" = ""; then
9417 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9419 if test "x$aros_kernel_cxx" = "x"; then
9420 aros_kernel_cxx=${kernel_tool_prefix}g++
9423 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9424 if test "$cross_compiling" = "yes" ; then
9425 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9426 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 case $aros_kernel_cxx in
9433 [\\/]* | ?:[\\/]*)
9434 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9444 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9453 esac
9455 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9456 if test -n "$aros_kernel_cxx"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9458 $as_echo "$aros_kernel_cxx" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9465 else
9466 if test "$GCC" = "yes"; then
9467 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9468 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9469 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 case $aros_kernel_cxx in
9476 [\\/]* | ?:[\\/]*)
9477 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in `dirname $aros_gcc_cxx`
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9496 esac
9498 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9499 if test -n "$aros_kernel_cxx"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9501 $as_echo "$aros_kernel_cxx" >&6; }
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9509 if test "$aros_kernel_cxx" = ""; then
9510 # Extract the first word of "cxx", so it can be a program name with args.
9511 set dummy cxx; ac_word=$2
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 case $aros_kernel_cxx in
9518 [\\/]* | ?:[\\/]*)
9519 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9538 esac
9540 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9541 if test -n "$aros_kernel_cxx"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9543 $as_echo "$aros_kernel_cxx" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9552 else
9553 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9554 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 case $aros_kernel_cxx in
9561 [\\/]* | ?:[\\/]*)
9562 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in $PATH
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 break 2
9576 done
9577 done
9578 IFS=$as_save_IFS
9581 esac
9583 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9584 if test -n "$aros_kernel_cxx"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9586 $as_echo "$aros_kernel_cxx" >&6; }
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9595 # If it's set, make sure it's really there
9596 if test "x$aros_kernel_cxx" != "x" ; then
9597 if test "$aros_kernel_cxx" = ""; then
9598 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9602 if test "$aros_kernel_ld" = ""; then
9603 if test "$cross_compiling" = "yes" ; then
9604 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9605 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 case $aros_kernel_ld in
9612 [\\/]* | ?:[\\/]*)
9613 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $PATH
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9627 done
9628 done
9629 IFS=$as_save_IFS
9632 esac
9634 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9635 if test -n "$aros_kernel_ld"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9637 $as_echo "$aros_kernel_ld" >&6; }
9638 else
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9644 else
9645 if test "$GCC" = "yes"; then
9646 aros_gcc_ld=`$CC -print-prog-name=ld`
9647 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9648 set dummy `basename $aros_gcc_ld`; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 case $aros_kernel_ld in
9655 [\\/]* | ?:[\\/]*)
9656 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in `dirname $aros_gcc_ld`
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9670 done
9671 done
9672 IFS=$as_save_IFS
9675 esac
9677 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9678 if test -n "$aros_kernel_ld"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9680 $as_echo "$aros_kernel_ld" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test "$aros_kernel_ld" = ""; then
9689 # Extract the first word of "ld", so it can be a program name with args.
9690 set dummy ld; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 case $aros_kernel_ld in
9697 [\\/]* | ?:[\\/]*)
9698 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9712 done
9713 done
9714 IFS=$as_save_IFS
9717 esac
9719 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9720 if test -n "$aros_kernel_ld"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9722 $as_echo "$aros_kernel_ld" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9731 else
9732 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9733 set dummy $aros_kernel_ld; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 case $aros_kernel_ld in
9740 [\\/]* | ?:[\\/]*)
9741 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9760 esac
9762 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9763 if test -n "$aros_kernel_ld"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9765 $as_echo "$aros_kernel_ld" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9774 if test "$aros_kernel_ld" = ""; then
9775 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9778 if test "$aros_kernel_as" = ""; then
9779 if test "$cross_compiling" = "yes" ; then
9780 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9781 set dummy ${kernel_tool_prefix}as; ac_word=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if ${ac_cv_path_aros_kernel_as+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 case $aros_kernel_as in
9788 [\\/]* | ?:[\\/]*)
9789 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 for as_dir in $PATH
9795 IFS=$as_save_IFS
9796 test -z "$as_dir" && as_dir=.
9797 for ac_exec_ext in '' $ac_executable_extensions; do
9798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9799 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 break 2
9803 done
9804 done
9805 IFS=$as_save_IFS
9808 esac
9810 aros_kernel_as=$ac_cv_path_aros_kernel_as
9811 if test -n "$aros_kernel_as"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9813 $as_echo "$aros_kernel_as" >&6; }
9814 else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9820 else
9821 if test "$GCC" = "yes"; then
9822 aros_gcc_as=`$CC -print-prog-name=as`
9823 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9824 set dummy `basename $aros_gcc_as`; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_path_aros_kernel_as+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 case $aros_kernel_as in
9831 [\\/]* | ?:[\\/]*)
9832 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in `dirname $aros_gcc_as`
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9846 done
9847 done
9848 IFS=$as_save_IFS
9851 esac
9853 aros_kernel_as=$ac_cv_path_aros_kernel_as
9854 if test -n "$aros_kernel_as"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9856 $as_echo "$aros_kernel_as" >&6; }
9857 else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9864 if test "$aros_kernel_as" = ""; then
9865 # Extract the first word of "as", so it can be a program name with args.
9866 set dummy as; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if ${ac_cv_path_aros_kernel_as+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 case $aros_kernel_as in
9873 [\\/]* | ?:[\\/]*)
9874 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9893 esac
9895 aros_kernel_as=$ac_cv_path_aros_kernel_as
9896 if test -n "$aros_kernel_as"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9898 $as_echo "$aros_kernel_as" >&6; }
9899 else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9907 else
9908 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9909 set dummy $aros_kernel_as; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if ${ac_cv_path_aros_kernel_as+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 case $aros_kernel_as in
9916 [\\/]* | ?:[\\/]*)
9917 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9927 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9931 done
9932 done
9933 IFS=$as_save_IFS
9936 esac
9938 aros_kernel_as=$ac_cv_path_aros_kernel_as
9939 if test -n "$aros_kernel_as"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9941 $as_echo "$aros_kernel_as" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9950 if test "$aros_kernel_as" = ""; then
9951 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9954 if test "$aros_kernel_ar" = ""; then
9955 if test "$cross_compiling" = "yes" ; then
9956 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9957 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 case $aros_kernel_ar in
9964 [\\/]* | ?:[\\/]*)
9965 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 for as_dir in $PATH
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9979 done
9980 done
9981 IFS=$as_save_IFS
9984 esac
9986 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9987 if test -n "$aros_kernel_ar"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9989 $as_echo "$aros_kernel_ar" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9996 else
9997 if test "$GCC" = "yes"; then
9998 aros_gcc_ar=`$CC -print-prog-name=ar`
9999 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10000 set dummy `basename $aros_gcc_ar`; ac_word=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 case $aros_kernel_ar in
10007 [\\/]* | ?:[\\/]*)
10008 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in `dirname $aros_gcc_ar`
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10022 done
10023 done
10024 IFS=$as_save_IFS
10027 esac
10029 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10030 if test -n "$aros_kernel_ar"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10032 $as_echo "$aros_kernel_ar" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 if test "$aros_kernel_ar" = ""; then
10041 # Extract the first word of "ar", so it can be a program name with args.
10042 set dummy ar; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 case $aros_kernel_ar in
10049 [\\/]* | ?:[\\/]*)
10050 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10069 esac
10071 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10072 if test -n "$aros_kernel_ar"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10074 $as_echo "$aros_kernel_ar" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10083 else
10084 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10085 set dummy $aros_kernel_ar; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 case $aros_kernel_ar in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10112 esac
10114 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10115 if test -n "$aros_kernel_ar"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10117 $as_echo "$aros_kernel_ar" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10126 if test "$aros_kernel_ar" = ""; then
10127 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10130 if test "$aros_kernel_ranlib" = ""; then
10131 if test "$cross_compiling" = "yes" ; then
10132 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10133 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 case $aros_kernel_ranlib in
10140 [\\/]* | ?:[\\/]*)
10141 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10155 done
10156 done
10157 IFS=$as_save_IFS
10160 esac
10162 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10163 if test -n "$aros_kernel_ranlib"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10165 $as_echo "$aros_kernel_ranlib" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10172 else
10173 if test "$GCC" = "yes"; then
10174 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10175 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10176 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 case $aros_kernel_ranlib in
10183 [\\/]* | ?:[\\/]*)
10184 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in `dirname $aros_gcc_ranlib`
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10203 esac
10205 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10206 if test -n "$aros_kernel_ranlib"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10208 $as_echo "$aros_kernel_ranlib" >&6; }
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10216 if test "$aros_kernel_ranlib" = ""; then
10217 # Extract the first word of "ranlib", so it can be a program name with args.
10218 set dummy ranlib; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 case $aros_kernel_ranlib in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10240 done
10241 done
10242 IFS=$as_save_IFS
10245 esac
10247 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10248 if test -n "$aros_kernel_ranlib"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10250 $as_echo "$aros_kernel_ranlib" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10259 else
10260 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10261 set dummy $aros_kernel_ranlib; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $aros_kernel_ranlib in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10279 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10288 esac
10290 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10291 if test -n "$aros_kernel_ranlib"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10293 $as_echo "$aros_kernel_ranlib" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10302 if test "$aros_kernel_ranlib" = ""; then
10303 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10306 if test "$aros_kernel_nm" = ""; then
10307 if test "$cross_compiling" = "yes" ; then
10308 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10309 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 case $aros_kernel_nm in
10316 [\\/]* | ?:[\\/]*)
10317 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10331 done
10332 done
10333 IFS=$as_save_IFS
10336 esac
10338 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10339 if test -n "$aros_kernel_nm"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10341 $as_echo "$aros_kernel_nm" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10348 else
10349 if test "$GCC" = "yes"; then
10350 aros_gcc_nm=`$CC -print-prog-name=nm`
10351 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10352 set dummy `basename $aros_gcc_nm`; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 case $aros_kernel_nm in
10359 [\\/]* | ?:[\\/]*)
10360 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in `dirname $aros_gcc_nm`
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10374 done
10375 done
10376 IFS=$as_save_IFS
10379 esac
10381 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10382 if test -n "$aros_kernel_nm"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10384 $as_echo "$aros_kernel_nm" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10392 if test "$aros_kernel_nm" = ""; then
10393 # Extract the first word of "nm", so it can be a program name with args.
10394 set dummy nm; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 case $aros_kernel_nm in
10401 [\\/]* | ?:[\\/]*)
10402 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10421 esac
10423 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10424 if test -n "$aros_kernel_nm"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10426 $as_echo "$aros_kernel_nm" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10435 else
10436 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10437 set dummy $aros_kernel_nm; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 case $aros_kernel_nm in
10444 [\\/]* | ?:[\\/]*)
10445 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10459 done
10460 done
10461 IFS=$as_save_IFS
10464 esac
10466 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10467 if test -n "$aros_kernel_nm"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10469 $as_echo "$aros_kernel_nm" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10478 if test "$aros_kernel_nm" = ""; then
10479 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10482 if test "$aros_kernel_strip" = ""; then
10483 if test "$cross_compiling" = "yes" ; then
10484 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10485 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 case $aros_kernel_strip in
10492 [\\/]* | ?:[\\/]*)
10493 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10512 esac
10514 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10515 if test -n "$aros_kernel_strip"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10517 $as_echo "$aros_kernel_strip" >&6; }
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10524 else
10525 if test "$GCC" = "yes"; then
10526 aros_gcc_strip=`$CC -print-prog-name=strip`
10527 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10528 set dummy `basename $aros_gcc_strip`; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 case $aros_kernel_strip in
10535 [\\/]* | ?:[\\/]*)
10536 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in `dirname $aros_gcc_strip`
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10550 done
10551 done
10552 IFS=$as_save_IFS
10555 esac
10557 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10558 if test -n "$aros_kernel_strip"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10560 $as_echo "$aros_kernel_strip" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10568 if test "$aros_kernel_strip" = ""; then
10569 # Extract the first word of "strip", so it can be a program name with args.
10570 set dummy strip; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 case $aros_kernel_strip in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10597 esac
10599 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10600 if test -n "$aros_kernel_strip"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10602 $as_echo "$aros_kernel_strip" >&6; }
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10611 else
10612 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10613 set dummy $aros_kernel_strip; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 case $aros_kernel_strip in
10620 [\\/]* | ?:[\\/]*)
10621 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10640 esac
10642 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10643 if test -n "$aros_kernel_strip"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10645 $as_echo "$aros_kernel_strip" >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10654 if test "$aros_kernel_strip" = ""; then
10655 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10658 # Objcopy and objdump are not required for the kernel
10659 # toolchain on many architectures.
10660 # So we'll look for them, but not make them strictly required.
10662 if test "$aros_kernel_objcopy" = ""; then
10663 if test "$cross_compiling" = "yes" ; then
10664 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10665 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_objcopy in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10695 if test -n "$aros_kernel_objcopy"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10697 $as_echo "$aros_kernel_objcopy" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10704 else
10705 if test "$GCC" = "yes"; then
10706 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10707 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10708 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 case $aros_kernel_objcopy in
10715 [\\/]* | ?:[\\/]*)
10716 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in `dirname $aros_gcc_objcopy`
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10735 esac
10737 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10738 if test -n "$aros_kernel_objcopy"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10740 $as_echo "$aros_kernel_objcopy" >&6; }
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10748 if test "$aros_kernel_objcopy" = ""; then
10749 # Extract the first word of "objcopy", so it can be a program name with args.
10750 set dummy objcopy; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 case $aros_kernel_objcopy in
10757 [\\/]* | ?:[\\/]*)
10758 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10777 esac
10779 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10780 if test -n "$aros_kernel_objcopy"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10782 $as_echo "$aros_kernel_objcopy" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10791 else
10792 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10793 set dummy $aros_kernel_objcopy; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 case $aros_kernel_objcopy in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10815 done
10816 done
10817 IFS=$as_save_IFS
10820 esac
10822 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10823 if test -n "$aros_kernel_objcopy"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10825 $as_echo "$aros_kernel_objcopy" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10835 if test "$aros_kernel_objdump" = ""; then
10836 if test "$cross_compiling" = "yes" ; then
10837 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10838 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10840 $as_echo_n "checking for $ac_word... " >&6; }
10841 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 case $aros_kernel_objdump in
10845 [\\/]* | ?:[\\/]*)
10846 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10860 done
10861 done
10862 IFS=$as_save_IFS
10865 esac
10867 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10868 if test -n "$aros_kernel_objdump"; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10870 $as_echo "$aros_kernel_objdump" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10877 else
10878 if test "$GCC" = "yes"; then
10879 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10880 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10881 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 case $aros_kernel_objdump in
10888 [\\/]* | ?:[\\/]*)
10889 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893 for as_dir in `dirname $aros_gcc_objdump`
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10899 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10901 break 2
10903 done
10904 done
10905 IFS=$as_save_IFS
10908 esac
10910 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10911 if test -n "$aros_kernel_objdump"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10913 $as_echo "$aros_kernel_objdump" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10921 if test "$aros_kernel_objdump" = ""; then
10922 # Extract the first word of "objdump", so it can be a program name with args.
10923 set dummy objdump; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $aros_kernel_objdump in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10950 esac
10952 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10953 if test -n "$aros_kernel_objdump"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10955 $as_echo "$aros_kernel_objdump" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10964 else
10965 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10966 set dummy $aros_kernel_objdump; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $aros_kernel_objdump in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10993 esac
10995 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10996 if test -n "$aros_kernel_objdump"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10998 $as_echo "$aros_kernel_objdump" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11007 if test "x${crosstools}" != "xyes" ; then
11008 if test "$aros_kernel_objcopy" = ""; then
11009 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11011 if test "$aros_kernel_objdump" = ""; then
11012 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11018 $as_echo_n "checking which target tools to use... " >&6; }
11019 if test "$aros_target_toolchain" = "yes"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
11021 $as_echo "$target_tool_prefix" >&6; }
11022 # We are building AROS crosstools
11023 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11024 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
11025 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
11026 orig_target_cpp="${tmp_tool_prefix}cpp"
11027 orig_target_ld="${tmp_tool_prefix}ld"
11028 orig_target_as="${tmp_tool_prefix}as"
11029 orig_target_ar="${tmp_tool_prefix}ar"
11030 orig_target_ranlib="${tmp_tool_prefix}ranlib"
11031 orig_target_nm="${tmp_tool_prefix}nm"
11032 orig_target_strip="${tmp_tool_prefix}strip"
11033 orig_target_objcopy="${tmp_tool_prefix}objcopy"
11034 orig_target_objdump="${tmp_tool_prefix}objdump"
11035 else
11036 # Determine whether AROS or ELF tools should be used
11037 if test "$aros_tool_prefix" = "none"; then
11038 aros_tool_prefix="${elf_tool_prefix}"
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11042 $as_echo "$aros_tool_prefix" >&6; }
11043 # We are *not* building AROS crosstools - use the AROS or ELF tools
11045 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
11046 if test "$cross_compiling" = "yes" ; then
11047 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11048 set dummy ${target_tool_prefix}cpp; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_orig_target_cpp+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 case $orig_target_cpp in
11055 [\\/]* | ?:[\\/]*)
11056 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11070 done
11071 done
11072 IFS=$as_save_IFS
11075 esac
11077 orig_target_cpp=$ac_cv_path_orig_target_cpp
11078 if test -n "$orig_target_cpp"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11080 $as_echo "$orig_target_cpp" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11087 else
11088 if test "$GCC" = "yes"; then
11089 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11090 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11091 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_orig_target_cpp+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 case $orig_target_cpp in
11098 [\\/]* | ?:[\\/]*)
11099 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in `dirname $aros_gcc_cpp`
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11113 done
11114 done
11115 IFS=$as_save_IFS
11118 esac
11120 orig_target_cpp=$ac_cv_path_orig_target_cpp
11121 if test -n "$orig_target_cpp"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11123 $as_echo "$orig_target_cpp" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11131 if test "$orig_target_cpp" = ""; then
11132 # Extract the first word of "cpp", so it can be a program name with args.
11133 set dummy cpp; ac_word=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if ${ac_cv_path_orig_target_cpp+:} false; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 case $orig_target_cpp in
11140 [\\/]* | ?:[\\/]*)
11141 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11155 done
11156 done
11157 IFS=$as_save_IFS
11160 esac
11162 orig_target_cpp=$ac_cv_path_orig_target_cpp
11163 if test -n "$orig_target_cpp"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11165 $as_echo "$orig_target_cpp" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11174 else
11175 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11176 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_orig_target_cpp+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 case $orig_target_cpp in
11183 [\\/]* | ?:[\\/]*)
11184 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11198 done
11199 done
11200 IFS=$as_save_IFS
11203 esac
11205 orig_target_cpp=$ac_cv_path_orig_target_cpp
11206 if test -n "$orig_target_cpp"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11208 $as_echo "$orig_target_cpp" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11217 if test "$orig_target_cpp" = ""; then
11218 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11221 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11222 if test "$cross_compiling" = "yes" ; then
11223 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11224 set dummy ${target_tool_prefix}gcc; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_path_orig_target_cc+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 case $orig_target_cc in
11231 [\\/]* | ?:[\\/]*)
11232 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11251 esac
11253 orig_target_cc=$ac_cv_path_orig_target_cc
11254 if test -n "$orig_target_cc"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11256 $as_echo "$orig_target_cc" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11263 else
11264 if test "$GCC" = "yes"; then
11265 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11266 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11267 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_orig_target_cc+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 case $orig_target_cc in
11274 [\\/]* | ?:[\\/]*)
11275 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in `dirname $aros_gcc_gcc`
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11285 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11289 done
11290 done
11291 IFS=$as_save_IFS
11294 esac
11296 orig_target_cc=$ac_cv_path_orig_target_cc
11297 if test -n "$orig_target_cc"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11299 $as_echo "$orig_target_cc" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11307 if test "$orig_target_cc" = ""; then
11308 # Extract the first word of "gcc", so it can be a program name with args.
11309 set dummy gcc; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_orig_target_cc+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $orig_target_cc in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11336 esac
11338 orig_target_cc=$ac_cv_path_orig_target_cc
11339 if test -n "$orig_target_cc"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11341 $as_echo "$orig_target_cc" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11350 else
11351 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11352 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_path_orig_target_cc+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 case $orig_target_cc in
11359 [\\/]* | ?:[\\/]*)
11360 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11374 done
11375 done
11376 IFS=$as_save_IFS
11379 esac
11381 orig_target_cc=$ac_cv_path_orig_target_cc
11382 if test -n "$orig_target_cc"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11384 $as_echo "$orig_target_cc" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11393 if test "$orig_target_cc" = ""; then
11394 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11397 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11398 if test "$cross_compiling" = "yes" ; then
11399 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11400 set dummy ${target_tool_prefix}g++; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if ${ac_cv_path_orig_target_cxx+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $orig_target_cxx in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11422 done
11423 done
11424 IFS=$as_save_IFS
11427 esac
11429 orig_target_cxx=$ac_cv_path_orig_target_cxx
11430 if test -n "$orig_target_cxx"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11432 $as_echo "$orig_target_cxx" >&6; }
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11439 else
11440 if test "$GCC" = "yes"; then
11441 aros_gcc_g++=`$CC -print-prog-name=g++`
11442 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11443 set dummy `basename $aros_gcc_g++`; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_path_orig_target_cxx+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 case $orig_target_cxx in
11450 [\\/]* | ?:[\\/]*)
11451 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in `dirname $aros_gcc_g++`
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 break 2
11465 done
11466 done
11467 IFS=$as_save_IFS
11470 esac
11472 orig_target_cxx=$ac_cv_path_orig_target_cxx
11473 if test -n "$orig_target_cxx"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11475 $as_echo "$orig_target_cxx" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11483 if test "$orig_target_cxx" = ""; then
11484 # Extract the first word of "g++", so it can be a program name with args.
11485 set dummy g++; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_orig_target_cxx+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $orig_target_cxx in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11507 done
11508 done
11509 IFS=$as_save_IFS
11512 esac
11514 orig_target_cxx=$ac_cv_path_orig_target_cxx
11515 if test -n "$orig_target_cxx"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11517 $as_echo "$orig_target_cxx" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11526 else
11527 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11528 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_path_orig_target_cxx+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 case $orig_target_cxx in
11535 [\\/]* | ?:[\\/]*)
11536 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11546 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11550 done
11551 done
11552 IFS=$as_save_IFS
11555 esac
11557 orig_target_cxx=$ac_cv_path_orig_target_cxx
11558 if test -n "$orig_target_cxx"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11560 $as_echo "$orig_target_cxx" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11569 if test "$orig_target_cxx" = ""; then
11570 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11573 if test "${aros_tool_prefix}ld" = ""; then
11574 if test "$cross_compiling" = "yes" ; then
11575 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11576 set dummy ${target_tool_prefix}gcc; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_path_orig_target_ld+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 case $orig_target_ld in
11583 [\\/]* | ?:[\\/]*)
11584 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11594 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11603 esac
11605 orig_target_ld=$ac_cv_path_orig_target_ld
11606 if test -n "$orig_target_ld"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11608 $as_echo "$orig_target_ld" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11615 else
11616 if test "$GCC" = "yes"; then
11617 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11618 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11619 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if ${ac_cv_path_orig_target_ld+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 case $orig_target_ld in
11626 [\\/]* | ?:[\\/]*)
11627 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in `dirname $aros_gcc_gcc`
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11641 done
11642 done
11643 IFS=$as_save_IFS
11646 esac
11648 orig_target_ld=$ac_cv_path_orig_target_ld
11649 if test -n "$orig_target_ld"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11651 $as_echo "$orig_target_ld" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11659 if test "$orig_target_ld" = ""; then
11660 # Extract the first word of "gcc", so it can be a program name with args.
11661 set dummy gcc; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if ${ac_cv_path_orig_target_ld+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 case $orig_target_ld in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11679 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11688 esac
11690 orig_target_ld=$ac_cv_path_orig_target_ld
11691 if test -n "$orig_target_ld"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11693 $as_echo "$orig_target_ld" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11702 else
11703 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11704 set dummy ${aros_tool_prefix}ld; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_path_orig_target_ld+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $orig_target_ld in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11731 esac
11733 orig_target_ld=$ac_cv_path_orig_target_ld
11734 if test -n "$orig_target_ld"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11736 $as_echo "$orig_target_ld" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11745 if test "$orig_target_ld" = ""; then
11746 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11749 if test "${aros_tool_prefix}as" = ""; then
11750 if test "$cross_compiling" = "yes" ; then
11751 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11752 set dummy ${target_tool_prefix}as; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if ${ac_cv_path_orig_target_as+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 case $orig_target_as in
11759 [\\/]* | ?:[\\/]*)
11760 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11774 done
11775 done
11776 IFS=$as_save_IFS
11779 esac
11781 orig_target_as=$ac_cv_path_orig_target_as
11782 if test -n "$orig_target_as"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11784 $as_echo "$orig_target_as" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11791 else
11792 if test "$GCC" = "yes"; then
11793 aros_gcc_as=`$CC -print-prog-name=as`
11794 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11795 set dummy `basename $aros_gcc_as`; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_path_orig_target_as+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 case $orig_target_as in
11802 [\\/]* | ?:[\\/]*)
11803 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in `dirname $aros_gcc_as`
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11813 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11817 done
11818 done
11819 IFS=$as_save_IFS
11822 esac
11824 orig_target_as=$ac_cv_path_orig_target_as
11825 if test -n "$orig_target_as"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11827 $as_echo "$orig_target_as" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$orig_target_as" = ""; then
11836 # Extract the first word of "as", so it can be a program name with args.
11837 set dummy as; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_as+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 case $orig_target_as in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11859 done
11860 done
11861 IFS=$as_save_IFS
11864 esac
11866 orig_target_as=$ac_cv_path_orig_target_as
11867 if test -n "$orig_target_as"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11869 $as_echo "$orig_target_as" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11878 else
11879 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11880 set dummy ${aros_tool_prefix}as; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_as+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $orig_target_as in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11907 esac
11909 orig_target_as=$ac_cv_path_orig_target_as
11910 if test -n "$orig_target_as"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11912 $as_echo "$orig_target_as" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11921 if test "$orig_target_as" = ""; then
11922 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11925 if test "${aros_tool_prefix}ar" = ""; then
11926 if test "$cross_compiling" = "yes" ; then
11927 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11928 set dummy ${target_tool_prefix}ar; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_orig_target_ar+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 case $orig_target_ar in
11935 [\\/]* | ?:[\\/]*)
11936 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11950 done
11951 done
11952 IFS=$as_save_IFS
11955 esac
11957 orig_target_ar=$ac_cv_path_orig_target_ar
11958 if test -n "$orig_target_ar"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11960 $as_echo "$orig_target_ar" >&6; }
11961 else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11967 else
11968 if test "$GCC" = "yes"; then
11969 aros_gcc_ar=`$CC -print-prog-name=ar`
11970 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11971 set dummy `basename $aros_gcc_ar`; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_orig_target_ar+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 case $orig_target_ar in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in `dirname $aros_gcc_ar`
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11993 done
11994 done
11995 IFS=$as_save_IFS
11998 esac
12000 orig_target_ar=$ac_cv_path_orig_target_ar
12001 if test -n "$orig_target_ar"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12003 $as_echo "$orig_target_ar" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12011 if test "$orig_target_ar" = ""; then
12012 # Extract the first word of "ar", so it can be a program name with args.
12013 set dummy ar; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_path_orig_target_ar+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 case $orig_target_ar in
12020 [\\/]* | ?:[\\/]*)
12021 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12035 done
12036 done
12037 IFS=$as_save_IFS
12040 esac
12042 orig_target_ar=$ac_cv_path_orig_target_ar
12043 if test -n "$orig_target_ar"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12045 $as_echo "$orig_target_ar" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12054 else
12055 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
12056 set dummy ${aros_tool_prefix}ar; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_orig_target_ar+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 case $orig_target_ar in
12063 [\\/]* | ?:[\\/]*)
12064 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12078 done
12079 done
12080 IFS=$as_save_IFS
12083 esac
12085 orig_target_ar=$ac_cv_path_orig_target_ar
12086 if test -n "$orig_target_ar"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12088 $as_echo "$orig_target_ar" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12097 if test "$orig_target_ar" = ""; then
12098 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12101 if test "${aros_tool_prefix}ranlib" = ""; then
12102 if test "$cross_compiling" = "yes" ; then
12103 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12104 set dummy ${target_tool_prefix}ar; ac_word=$2
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106 $as_echo_n "checking for $ac_word... " >&6; }
12107 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 case $orig_target_ranlib in
12111 [\\/]* | ?:[\\/]*)
12112 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12126 done
12127 done
12128 IFS=$as_save_IFS
12131 esac
12133 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12134 if test -n "$orig_target_ranlib"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12136 $as_echo "$orig_target_ranlib" >&6; }
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12143 else
12144 if test "$GCC" = "yes"; then
12145 aros_gcc_ar=`$CC -print-prog-name=ar`
12146 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12147 set dummy `basename $aros_gcc_ar`; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $orig_target_ranlib in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in `dirname $aros_gcc_ar`
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12169 done
12170 done
12171 IFS=$as_save_IFS
12174 esac
12176 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12177 if test -n "$orig_target_ranlib"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12179 $as_echo "$orig_target_ranlib" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12187 if test "$orig_target_ranlib" = ""; then
12188 # Extract the first word of "ar", so it can be a program name with args.
12189 set dummy ar; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $orig_target_ranlib in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12211 done
12212 done
12213 IFS=$as_save_IFS
12216 esac
12218 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12219 if test -n "$orig_target_ranlib"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12221 $as_echo "$orig_target_ranlib" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12230 else
12231 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12232 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 case $orig_target_ranlib in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12254 done
12255 done
12256 IFS=$as_save_IFS
12259 esac
12261 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12262 if test -n "$orig_target_ranlib"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12264 $as_echo "$orig_target_ranlib" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12273 if test "$orig_target_ranlib" = ""; then
12274 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12277 if test "${aros_tool_prefix}nm" = ""; then
12278 if test "$cross_compiling" = "yes" ; then
12279 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12280 set dummy ${target_tool_prefix}nm; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if ${ac_cv_path_orig_target_nm+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 case $orig_target_nm in
12287 [\\/]* | ?:[\\/]*)
12288 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12302 done
12303 done
12304 IFS=$as_save_IFS
12307 esac
12309 orig_target_nm=$ac_cv_path_orig_target_nm
12310 if test -n "$orig_target_nm"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12312 $as_echo "$orig_target_nm" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12319 else
12320 if test "$GCC" = "yes"; then
12321 aros_gcc_nm=`$CC -print-prog-name=nm`
12322 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12323 set dummy `basename $aros_gcc_nm`; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_path_orig_target_nm+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 case $orig_target_nm in
12330 [\\/]* | ?:[\\/]*)
12331 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in `dirname $aros_gcc_nm`
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12345 done
12346 done
12347 IFS=$as_save_IFS
12350 esac
12352 orig_target_nm=$ac_cv_path_orig_target_nm
12353 if test -n "$orig_target_nm"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12355 $as_echo "$orig_target_nm" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12363 if test "$orig_target_nm" = ""; then
12364 # Extract the first word of "nm", so it can be a program name with args.
12365 set dummy nm; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_orig_target_nm+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 case $orig_target_nm in
12372 [\\/]* | ?:[\\/]*)
12373 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12387 done
12388 done
12389 IFS=$as_save_IFS
12392 esac
12394 orig_target_nm=$ac_cv_path_orig_target_nm
12395 if test -n "$orig_target_nm"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12397 $as_echo "$orig_target_nm" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12406 else
12407 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12408 set dummy ${aros_tool_prefix}nm; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_path_orig_target_nm+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 case $orig_target_nm in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12435 esac
12437 orig_target_nm=$ac_cv_path_orig_target_nm
12438 if test -n "$orig_target_nm"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12440 $as_echo "$orig_target_nm" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12449 if test "$orig_target_nm" = ""; then
12450 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12453 if test "${aros_tool_prefix}strip" = ""; then
12454 if test "$cross_compiling" = "yes" ; then
12455 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12456 set dummy ${target_tool_prefix}strip; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_path_orig_target_strip+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 case $orig_target_strip in
12463 [\\/]* | ?:[\\/]*)
12464 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12474 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12478 done
12479 done
12480 IFS=$as_save_IFS
12483 esac
12485 orig_target_strip=$ac_cv_path_orig_target_strip
12486 if test -n "$orig_target_strip"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12488 $as_echo "$orig_target_strip" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12495 else
12496 if test "$GCC" = "yes"; then
12497 aros_gcc_strip=`$CC -print-prog-name=strip`
12498 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12499 set dummy `basename $aros_gcc_strip`; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if ${ac_cv_path_orig_target_strip+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 case $orig_target_strip in
12506 [\\/]* | ?:[\\/]*)
12507 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in `dirname $aros_gcc_strip`
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12517 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12521 done
12522 done
12523 IFS=$as_save_IFS
12526 esac
12528 orig_target_strip=$ac_cv_path_orig_target_strip
12529 if test -n "$orig_target_strip"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12531 $as_echo "$orig_target_strip" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12539 if test "$orig_target_strip" = ""; then
12540 # Extract the first word of "strip", so it can be a program name with args.
12541 set dummy strip; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if ${ac_cv_path_orig_target_strip+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 case $orig_target_strip in
12548 [\\/]* | ?:[\\/]*)
12549 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12568 esac
12570 orig_target_strip=$ac_cv_path_orig_target_strip
12571 if test -n "$orig_target_strip"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12573 $as_echo "$orig_target_strip" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12582 else
12583 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12584 set dummy ${aros_tool_prefix}strip; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_strip+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $orig_target_strip in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 orig_target_strip=$ac_cv_path_orig_target_strip
12614 if test -n "$orig_target_strip"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12616 $as_echo "$orig_target_strip" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12625 if test "$orig_target_strip" = ""; then
12626 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12629 if test "${aros_tool_prefix}objcopy" = ""; then
12630 if test "$cross_compiling" = "yes" ; then
12631 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12632 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 case $orig_target_objcopy in
12639 [\\/]* | ?:[\\/]*)
12640 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12654 done
12655 done
12656 IFS=$as_save_IFS
12659 esac
12661 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12662 if test -n "$orig_target_objcopy"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12664 $as_echo "$orig_target_objcopy" >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12671 else
12672 if test "$GCC" = "yes"; then
12673 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12674 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12675 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $orig_target_objcopy in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in `dirname $aros_gcc_objcopy`
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12702 esac
12704 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12705 if test -n "$orig_target_objcopy"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12707 $as_echo "$orig_target_objcopy" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$orig_target_objcopy" = ""; then
12716 # Extract the first word of "objcopy", so it can be a program name with args.
12717 set dummy objcopy; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 case $orig_target_objcopy in
12724 [\\/]* | ?:[\\/]*)
12725 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12739 done
12740 done
12741 IFS=$as_save_IFS
12744 esac
12746 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12747 if test -n "$orig_target_objcopy"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12749 $as_echo "$orig_target_objcopy" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12758 else
12759 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12760 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $orig_target_objcopy in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12787 esac
12789 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12790 if test -n "$orig_target_objcopy"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12792 $as_echo "$orig_target_objcopy" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12801 if test "$orig_target_objcopy" = ""; then
12802 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12805 if test "${aros_tool_prefix}objdump" = ""; then
12806 if test "$cross_compiling" = "yes" ; then
12807 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12808 set dummy ${target_tool_prefix}objdump; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_path_orig_target_objdump+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 case $orig_target_objdump in
12815 [\\/]* | ?:[\\/]*)
12816 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12826 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12830 done
12831 done
12832 IFS=$as_save_IFS
12835 esac
12837 orig_target_objdump=$ac_cv_path_orig_target_objdump
12838 if test -n "$orig_target_objdump"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12840 $as_echo "$orig_target_objdump" >&6; }
12841 else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12847 else
12848 if test "$GCC" = "yes"; then
12849 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12850 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12851 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if ${ac_cv_path_orig_target_objdump+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 case $orig_target_objdump in
12858 [\\/]* | ?:[\\/]*)
12859 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in `dirname $aros_gcc_objdump`
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12873 done
12874 done
12875 IFS=$as_save_IFS
12878 esac
12880 orig_target_objdump=$ac_cv_path_orig_target_objdump
12881 if test -n "$orig_target_objdump"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12883 $as_echo "$orig_target_objdump" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12891 if test "$orig_target_objdump" = ""; then
12892 # Extract the first word of "objdump", so it can be a program name with args.
12893 set dummy objdump; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_path_orig_target_objdump+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 case $orig_target_objdump in
12900 [\\/]* | ?:[\\/]*)
12901 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12915 done
12916 done
12917 IFS=$as_save_IFS
12920 esac
12922 orig_target_objdump=$ac_cv_path_orig_target_objdump
12923 if test -n "$orig_target_objdump"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12925 $as_echo "$orig_target_objdump" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12934 else
12935 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12936 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_path_orig_target_objdump+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 case $orig_target_objdump in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12963 esac
12965 orig_target_objdump=$ac_cv_path_orig_target_objdump
12966 if test -n "$orig_target_objdump"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12968 $as_echo "$orig_target_objdump" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12977 if test "$orig_target_objdump" = ""; then
12978 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12982 if test "$kernel_tool_prefix" = "none" ; then
12983 # No kernel tools specified
12984 # Assume target tools == kernel tools with ELF wrapper
12985 aros_kernel_cc=$orig_target_cc
12986 aros_kernel_cxx=$orig_target_cxx
12987 aros_kernel_cpp=$orig_target_cpp
12988 aros_kernel_ld=$orig_target_ld
12989 aros_kernel_as=$orig_target_as
12990 aros_kernel_ar=$orig_target_ar
12991 aros_kernel_ranlib=$orig_target_ranlib
12992 aros_kernel_nm=$orig_target_nm
12993 aros_kernel_strip=$orig_target_strip
12994 aros_kernel_objcopy=$orig_target_objcopy
12995 aros_kernel_objdump=$orig_target_objdump
12996 use_kernel_cc_wrapper=yes
12999 # At this point, all aros_kernel_* and aros_target_*
13000 # tools should be set up correctly
13002 CC="$aros_kernel_cc $kernel_tool_flags"
13003 CPP="$aros_kernel_cpp"
13005 #-----------------------------------------------------------------------------
13007 # Disable pointer-signedness warnings if the compiler recognises the option
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
13010 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
13011 save_cflags="$CFLAGS"
13012 if test "$crosstools" != "yes" ; then
13013 CFLAGS="$CFLAGS -Wno-pointer-sign"
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13018 main ()
13022 return 0;
13024 _ACEOF
13025 if ac_fn_c_try_compile "$LINENO"; then :
13026 use_no_sign_warning="yes"
13027 else
13028 use_no_sign_warning="no"
13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 else
13032 # we do know it is supported for the smallest version of gcc we are going to build
13033 # we assume it's also supported by later versions
13034 use_no_sign_warning=yes
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
13037 $as_echo "$use_no_sign_warning" >&6; }
13038 if test "x-$use_no_sign_warning" = "x-yes" ; then
13039 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
13041 CFLAGS="$save_cflags"
13043 #-----------------------------------------------------------------------------
13045 # Find all the tools we need to compile. This could be cross-compiling
13046 # though! If that is the case we use the GNU form of the target and
13047 # simply add this to the front of the binary name. This is rather simple,
13048 # but it should work under most circumstances.
13050 # The default tools are to use the same as the host, but only if the
13051 # host and target CPU are the same. With GCC this is normally enough.
13054 aros_cc_pre=""
13055 aros_shared_ld="$aros_host_ld"
13057 aros_target_mkdep="$aros_host_mkdep"
13059 # The default tools executables to be linked to.
13060 if test "$rescomp" != ""; then
13061 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13062 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 case $aros_kernel_rescomp in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13089 esac
13091 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13092 if test -n "$aros_kernel_rescomp"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13094 $as_echo "$aros_kernel_rescomp" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 if test "$aros_kernel_rescomp" = ""; then
13102 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13106 # Set up the sources for the symlink farm
13107 if test "$crosstools" = "yes"; then
13108 crosstools_target=tools-crosstools
13111 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13112 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13114 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13115 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13116 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13117 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13118 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13119 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13120 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13122 # aros_cc_pre is a variable that is added to the front of the compiler name
13123 # in the generated aros-gcc shell script. We need this to enable the cache
13124 # to work across cleaned builds. Also, support DISTCC using the correct
13125 # environment variable.
13128 if test "x${DISTCC}" != "x" ; then
13129 if test "x${CCACHE}" != "x" ; then
13130 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13131 else
13132 aros_cc_pre="${DISTCC} "
13134 else
13135 if test "x${CCACHE}" != "x" ; then
13136 aros_cc_pre="${CCACHE} "
13140 aros_target_nostdinc_cflags=-nostdinc
13142 aros_target_nostartup_ldflags=-nostartfiles
13144 aros_target_nix_ldflags=-nix
13146 aros_target_detach_ldflags=-detach
13148 aros_target_nostdlib_ldflags=-nostdlib
13151 # Target tools
13152 if test "$aros_target_toolchain" != "yes"; then
13153 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13154 if test "$GCC" = "yes"; then
13155 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13157 else
13158 # We do not know which gcc version we are going to build and what we need to know
13159 # here is different for different versions so this will be set later during the
13160 # build of crosstools.
13161 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13162 aros_target_cc_path=@aros_target_cc_path@
13164 aros_target_cpp="${prefix}cpp"
13165 aros_target_cc="${prefix}gcc"
13166 aros_target_cxx="${prefix}g++"
13167 aros_target_as="${prefix}as"
13168 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13169 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13170 aros_target_objcopy="${prefix}objcopy"
13171 aros_target_objdump="${prefix}objdump"
13172 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13173 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13174 aros_target_strip="${prefix}strip"
13175 aros_plain_nm="${prefix}nm"
13176 aros_plain_ar="${prefix}ar"
13178 # Check whether --enable-includes was given.
13179 if test "${enable_includes+set}" = set; then :
13180 enableval=$enable_includes; aros_target_incl=$enable_includes
13181 else
13182 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13186 if test "$aros_kernel_includes" = ""; then
13187 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13188 aros_kernel_includes="-isystem $aros_target_incl"
13192 if test "$aros_kernel_includes" != "" ; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13194 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13195 if test "$aros_kernel_cc_includes" = "" ; then
13196 # Try to guess where the directory is.
13197 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13198 if test -d $aros_kernel_cc_includes; then
13199 # Check if there is also an include-fixed directory and add it
13200 # to kernel compiler's include path as it may contain some of
13201 # the headers we need.
13202 if test -d "$aros_kernel_cc_includes"-fixed; then
13203 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13205 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13206 case ${host_cpu} in
13207 i[3456]86)
13208 host_cpu_glibc=i386
13211 host_cpu_glibc=${host_cpu}
13213 esac
13214 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13215 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13217 else
13218 # The directory doesn't exist, we need to do some more work.
13219 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13221 # These are the headers we're looking for.
13222 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13223 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13224 zutil.h stdint.h"
13226 dirs=
13227 for h in $headers; do
13228 # Which other headers are needed by each of the above?
13229 deps=$(echo "#include <$h>" | \
13230 $aros_kernel_cc -E -M - 2>/dev/null | \
13231 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13233 # Copy all the needed headers to a directory beneath gendir.
13234 for d in $deps; do
13235 h=$(basename $d)
13236 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13237 sed -n "s,^.*/include\(/.*\),\1,p")
13238 ! test -d $dir && mkdir -p $dir
13239 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13240 done
13241 done
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13245 $as_echo "$aros_kernel_cc_includes" >&6; }
13246 # Adding -nostdinc to kernel includes as they are always used together.
13247 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13250 if test "$crosstools" != "yes"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13252 $as_echo_n "checking for the target compiler's include path... " >&6; }
13253 if test "$aros_target_cc_includes" = "" ; then
13254 #try to guess where the directory is
13255 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13256 if ! test -d $aros_target_cc_includes; then
13257 #the directory doesn't exist, we need to do some more work
13258 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13260 #these are the headers we're looking for
13261 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13262 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13263 zutil.h"
13265 dirs=
13266 for h in $headers; do
13267 #which other headers each of the above headers needs?
13268 deps=$(echo "#include <$h>" | \
13269 $orig_target_cc -E -M - 2>/dev/null | \
13270 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13272 #copy all the needed headers to a directory beneath gendir
13273 for d in $deps; do
13274 h=$(basename $d)
13275 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13276 sed -n "s,^.*/include\(/.*\),\1,p")
13277 ! test -d $dir && mkdir -p $dir
13278 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13279 done
13280 done
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13284 $as_echo "$aros_target_cc_includes" >&6; }
13285 else
13286 # We do not know which gcc version we are going to build and what we need to know
13287 # here is different for different versions so this will be set later during the
13288 # build of crosstools.
13289 aros_target_cc_includes=@aros_target_cc_includes@
13293 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13294 # On GCC >= 4.0 -iquote should be used
13297 save_cc="$CC"
13298 save_cflags="$CFLAGS"
13299 CFLAGS="-iquote."
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13301 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13302 if test "x-$crosstools" != "x-yes"; then
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13307 main ()
13311 return 0;
13313 _ACEOF
13314 if ac_fn_c_try_compile "$LINENO"; then :
13315 has_iquote="yes"
13316 else
13317 has_iquote="no"
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 else
13321 # we do know it is supported for the smallest version of gcc we are going to build
13322 # we assume it's also supported by later versions
13323 has_iquote=yes
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13326 $as_echo "$has_iquote" >&6; }
13327 if test "x-$has_iquote" = "x-yes" ; then
13328 host_cflags_iquote=-iquote
13329 host_cflags_iquote_end=
13330 else
13331 host_cflags_iquote=-I
13332 host_cflags_iquote_end=-I-
13334 kernel_cflags_iquote=$host_cflags_iquote
13335 kernel_cflags_iquote_end=$host_cflags_iquote_end
13336 if test "x-$cross_compiling" = "x-yes"; then
13337 CC="$aros_kernel_cc"
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13339 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13340 if test "x-$crosstools" != "x-yes"; then
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13345 main ()
13349 return 0;
13351 _ACEOF
13352 if ac_fn_c_try_compile "$LINENO"; then :
13353 use_no_stack_protector="yes"
13354 else
13355 use_no_stack_protector="no"
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 else
13359 # we do know it is supported for the smallest version of gcc we are going to build
13360 # we assume it's also supported by later versions
13361 use_no_stack_protector=yes
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13364 $as_echo "$use_no_stack_protector" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13366 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13367 if test "x-$crosstools" != "x-yes"; then
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13372 main ()
13376 return 0;
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 has_iquote="yes"
13381 else
13382 has_iquote="no"
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 else
13386 # we do know it is supported for the smallest version of gcc we are going to build
13387 # we assume it's also supported by later versions
13388 has_iquote=yes
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13391 $as_echo "$has_iquote" >&6; }
13392 if test "x-$has_iquote" = "x-yes" ; then
13393 kernel_cflags_iquote=-iquote
13394 kernel_cflags_iquote_end=
13395 else
13396 kernel_cflags_iquote=-I
13397 kernel_cflags_iquote_end=-I-
13400 aros_cflags_iquote=$kernel_cflags_iquote
13401 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13402 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13403 CC="$orig_target_cc"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13405 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13406 if test "x-$crosstools" != "x-yes"; then
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13411 main ()
13415 return 0;
13417 _ACEOF
13418 if ac_fn_c_try_compile "$LINENO"; then :
13419 has_iquote="yes"
13420 else
13421 has_iquote="no"
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 else
13425 # we do know it is supported for the smallest version of gcc we are going to build
13426 # we assume it's also supported by later versions
13427 has_iquote=yes
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13430 $as_echo "$has_iquote" >&6; }
13431 if test "x-$has_iquote" = "x-yes" ; then
13432 aros_cflags_iquote=-iquote
13433 aros_cflags_iquote_end=
13434 else
13435 aros_cflags_iquote=-I
13436 aros_cflags_iquote_end=-I-
13439 if test "x-$use_no_stack_protector" = "x-yes" ; then
13440 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13444 #-----------------------------------------------------------------------------
13446 # Check if the target compiler supports some options used for delinting:
13447 # -Wunused-but-set-variable
13448 # -Warray-bounds
13449 # -Wenum-compare
13450 # -Wstrict-overflow
13451 # -Wformat-security
13453 if test "x-$crosstools" != "x-yes"; then
13454 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13455 CC="$orig_target_cc"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13458 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13459 CFLAGS=-Wunused-but-set-variable
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13464 main ()
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472 aros_unused_but_set_variable="yes"
13473 else
13474 aros_unused_but_set_variable="no"
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13478 $as_echo "$aros_unused_but_set_variable" >&6; }
13479 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13480 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13484 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13485 CFLAGS=-Warray-bounds
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13490 main ()
13494 return 0;
13496 _ACEOF
13497 if ac_fn_c_try_compile "$LINENO"; then :
13498 aros_array_bounds="yes"
13499 else
13500 aros_array_bounds="no"
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13504 $as_echo "$aros_array_bounds" >&6; }
13505 if test "x-$aros_array_bounds" = "x-yes" ; then
13506 aros_cflags_array_bounds=-Wno-array-bounds
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13510 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13511 CFLAGS=-Wenum-compare
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13516 main ()
13520 return 0;
13522 _ACEOF
13523 if ac_fn_c_try_compile "$LINENO"; then :
13524 aros_enum_compare="yes"
13525 else
13526 aros_enum_compare="no"
13528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13530 $as_echo "$aros_enum_compare" >&6; }
13531 if test "x-$aros_enum_compare" = "x-yes" ; then
13532 aros_cflags_enum_compare=-Wno-enum-compare
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13536 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13537 CFLAGS=-Wstrict-overflow
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13542 main ()
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550 aros_strict_overflow="yes"
13551 else
13552 aros_strict_overflow="no"
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13556 $as_echo "$aros_strict_overflow" >&6; }
13557 if test "x-$aros_strict_overflow" = "x-yes" ; then
13558 aros_cflags_strict_overflow=-Wno-strict-overflow
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13562 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13563 CFLAGS=-Wformat-security
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13568 main ()
13572 return 0;
13574 _ACEOF
13575 if ac_fn_c_try_compile "$LINENO"; then :
13576 aros_format_security="yes"
13577 else
13578 aros_format_security="no"
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13582 $as_echo "$aros_format_security" >&6; }
13583 if test "x-$aros_format_security" = "x-yes" ; then
13584 aros_cflags_format_security=-Wno-format-security
13586 else
13587 # We do not know which gcc version we are going to build and what we need to know
13588 # here is different for different versions so this will be set later during the
13589 # build of crosstools.
13590 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13591 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13592 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13593 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13594 aros_cflags_format_security=@aros_cflags_format_security@
13597 #-----------------------------------------------------------------------------
13599 # Check if we can explicitly choose older version of symbol hashing
13601 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13602 CC="$aros_kernel_cc"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13604 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13609 main ()
13613 return 0;
13615 _ACEOF
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 use_hash_style="yes"
13618 else
13619 use_hash_style="no"
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13624 $as_echo "$use_hash_style" >&6; }
13625 if test "x-$use_hash_style" = "x-yes" ; then
13626 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13628 CC="$save_cc"
13629 CFLAGS="$save_cflags"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13640 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13642 # Check whether --with-resolution was given.
13643 if test "${with_resolution+set}" = set; then :
13644 withval=$with_resolution; resolution=$withval
13645 else
13646 resolution=none
13649 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13650 if test "$resolution" = "yes" ; then
13651 resolution="none"
13653 if test "$resolution" = "no" ; then
13654 resolution="none"
13656 if test "$resolution" != "none" ; then
13657 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13658 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13659 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13662 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13663 aros_cv_nominal_width=$aros_nominal_width
13664 aros_cv_nominal_height=$aros_nominal_height
13665 aros_cv_nominal_depth=$aros_nominal_depth
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13668 $as_echo_n "checking if serial debug is enabled... " >&6; }
13670 # Check whether --with-serial-debug was given.
13671 if test "${with_serial_debug+set}" = set; then :
13672 withval=$with_serial_debug; serial_debug=$withval
13673 else
13674 serial_debug=none
13677 if test "$aros_serial_debug" = 0 ; then
13678 serial_debug_forced=""
13679 if test "$serial_debug" = "yes" ; then
13680 serial_debug="1"
13682 if test "$serial_debug" = "no" ; then
13683 serial_debug="none"
13685 else
13686 serial_debug_forced="(forced)"
13687 serial_debug=$aros_serial_debug
13689 if test "$serial_debug" != "none" ; then
13690 aros_serial_debug=$serial_debug
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13692 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13699 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13700 # Check whether --enable-palm_debug_hack was given.
13701 if test "${enable_palm_debug_hack+set}" = set; then :
13702 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13703 else
13704 palm_debug_hack="no"
13707 if test "$palm_debug_hack" = "yes" ; then
13708 aros_palm_debug_hack="1"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13711 $as_echo "$palm_debug_hack" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13714 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13715 # Check whether --enable-usb30_code was given.
13716 if test "${enable_usb30_code+set}" = set; then :
13717 enableval=$enable_usb30_code; usb30_code="yes"
13718 else
13719 usb30_code="no"
13722 if test "$usb30_code" = "yes" ; then
13723 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13724 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13727 $as_echo "$usb30_code" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13730 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13731 # Check whether --enable-nesting_supervisor was given.
13732 if test "${enable_nesting_supervisor+set}" = set; then :
13733 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13734 else
13735 nesting_supervisor="no"
13738 if test "$nesting_supervisor" = "yes" ; then
13739 aros_nesting_supervisor="1"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13742 $as_echo "$nesting_supervisor" >&6; }
13744 if test "$aros_enable_mmu" = "" ; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13746 $as_echo_n "checking if MMU support is enabled... " >&6; }
13747 # Check whether --enable-mmu was given.
13748 if test "${enable_mmu+set}" = set; then :
13749 enableval=$enable_mmu; aros_enable_mmu=$enableval
13750 else
13751 aros_enable_mmu="yes"
13754 if test "$aros_enable_mmu" = "" ; then
13755 aros_enable_mmu="yes"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13758 $as_echo "$aros_enable_mmu" >&6; }
13760 if test "$aros_enable_mmu" = "no" ; then
13761 aros_enable_mmu="0"
13762 else
13763 aros_enable_mmu="1"
13767 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13769 if test "x-$need_dlopen" != "x-no" ; then
13770 save_libs="$LIBS"
13771 LIBS=""
13772 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13773 if test "x$ac_cv_func_dlopen" = xyes; then :
13774 have_dl="yes"
13775 else
13776 have_dl="no"
13779 if test "x-$have_dl" = "x-no" ; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13782 if ${ac_cv_lib_dl_dlopen+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ldl $LIBS"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13793 #ifdef __cplusplus
13794 extern "C"
13795 #endif
13796 char dlopen ();
13798 main ()
13800 return dlopen ();
13802 return 0;
13804 _ACEOF
13805 if ac_fn_c_try_link "$LINENO"; then :
13806 ac_cv_lib_dl_dlopen=yes
13807 else
13808 ac_cv_lib_dl_dlopen=no
13810 rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13812 LIBS=$ac_check_lib_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13815 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13816 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13817 have_dl="yes"
13818 aros_host_ldflags="$aros_host_ldflags -ldl"
13819 else
13820 have_dl="no"
13824 if test "x-$have_dl" = "x-no" ; then
13825 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13827 LIBS="$save_libs"
13831 # Check whether --enable-x11_hidd was given.
13832 if test "${enable_x11_hidd+set}" = set; then :
13833 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13834 else
13835 x11_hidd="$need_x11"
13838 case "x-$x11_hidd" in
13839 x-yes|x-no|x-auto) ;;
13840 *) x11_hidd="$need_x11" ;;
13841 esac
13843 ENABLE_X11=0
13845 if test "x-$x11_hidd" != "x-no" ; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13848 $as_echo_n "checking for X... " >&6; }
13851 # Check whether --with-x was given.
13852 if test "${with_x+set}" = set; then :
13853 withval=$with_x;
13856 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13857 if test "x$with_x" = xno; then
13858 # The user explicitly disabled X.
13859 have_x=disabled
13860 else
13861 case $x_includes,$x_libraries in #(
13862 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13863 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 # One or both of the vars are not set, and there is no cached value.
13867 ac_x_includes=no ac_x_libraries=no
13868 rm -f -r conftest.dir
13869 if mkdir conftest.dir; then
13870 cd conftest.dir
13871 cat >Imakefile <<'_ACEOF'
13872 incroot:
13873 @echo incroot='${INCROOT}'
13874 usrlibdir:
13875 @echo usrlibdir='${USRLIBDIR}'
13876 libdir:
13877 @echo libdir='${LIBDIR}'
13878 _ACEOF
13879 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13881 for ac_var in incroot usrlibdir libdir; do
13882 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13883 done
13884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13885 for ac_extension in a so sl dylib la dll; do
13886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13888 ac_im_usrlibdir=$ac_im_libdir; break
13890 done
13891 # Screen out bogus values from the imake configuration. They are
13892 # bogus both because they are the default anyway, and because
13893 # using them would break gcc on systems where it needs fixed includes.
13894 case $ac_im_incroot in
13895 /usr/include) ac_x_includes= ;;
13896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13897 esac
13898 case $ac_im_usrlibdir in
13899 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13901 esac
13903 cd ..
13904 rm -f -r conftest.dir
13907 # Standard set of common directories for X headers.
13908 # Check X11 before X11Rn because it is often a symlink to the current release.
13909 ac_x_header_dirs='
13910 /usr/X11/include
13911 /usr/X11R7/include
13912 /usr/X11R6/include
13913 /usr/X11R5/include
13914 /usr/X11R4/include
13916 /usr/include/X11
13917 /usr/include/X11R7
13918 /usr/include/X11R6
13919 /usr/include/X11R5
13920 /usr/include/X11R4
13922 /usr/local/X11/include
13923 /usr/local/X11R7/include
13924 /usr/local/X11R6/include
13925 /usr/local/X11R5/include
13926 /usr/local/X11R4/include
13928 /usr/local/include/X11
13929 /usr/local/include/X11R7
13930 /usr/local/include/X11R6
13931 /usr/local/include/X11R5
13932 /usr/local/include/X11R4
13934 /usr/X386/include
13935 /usr/x386/include
13936 /usr/XFree86/include/X11
13938 /usr/include
13939 /usr/local/include
13940 /usr/unsupported/include
13941 /usr/athena/include
13942 /usr/local/x11r5/include
13943 /usr/lpp/Xamples/include
13945 /usr/openwin/include
13946 /usr/openwin/share/include'
13948 if test "$ac_x_includes" = no; then
13949 # Guess where to find include files, by looking for Xlib.h.
13950 # First, try using that file with no special directory specified.
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953 #include <X11/Xlib.h>
13954 _ACEOF
13955 if ac_fn_c_try_cpp "$LINENO"; then :
13956 # We can compile using X headers with no special include directory.
13957 ac_x_includes=
13958 else
13959 for ac_dir in $ac_x_header_dirs; do
13960 if test -r "$ac_dir/X11/Xlib.h"; then
13961 ac_x_includes=$ac_dir
13962 break
13964 done
13966 rm -f conftest.err conftest.i conftest.$ac_ext
13967 fi # $ac_x_includes = no
13969 if test "$ac_x_libraries" = no; then
13970 # Check for the libraries.
13971 # See if we find them without any special options.
13972 # Don't add to $LIBS permanently.
13973 ac_save_LIBS=$LIBS
13974 LIBS="-lX11 $LIBS"
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 #include <X11/Xlib.h>
13979 main ()
13981 XrmInitialize ()
13983 return 0;
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 LIBS=$ac_save_LIBS
13988 # We can link X programs with no special library path.
13989 ac_x_libraries=
13990 else
13991 LIBS=$ac_save_LIBS
13992 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13994 # Don't even attempt the hair of trying to link an X program!
13995 for ac_extension in a so sl dylib la dll; do
13996 if test -r "$ac_dir/libX11.$ac_extension"; then
13997 ac_x_libraries=$ac_dir
13998 break 2
14000 done
14001 done
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 fi # $ac_x_libraries = no
14007 case $ac_x_includes,$ac_x_libraries in #(
14008 no,* | *,no | *\'*)
14009 # Didn't find X, or a directory has "'" in its name.
14010 ac_cv_have_x="have_x=no";; #(
14012 # Record where we found X for the cache.
14013 ac_cv_have_x="have_x=yes\
14014 ac_x_includes='$ac_x_includes'\
14015 ac_x_libraries='$ac_x_libraries'"
14016 esac
14018 ;; #(
14019 *) have_x=yes;;
14020 esac
14021 eval "$ac_cv_have_x"
14022 fi # $with_x != no
14024 if test "$have_x" != yes; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14026 $as_echo "$have_x" >&6; }
14027 no_x=yes
14028 else
14029 # If each of the values was on the command line, it overrides each guess.
14030 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14031 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14032 # Update the cache value to reflect the command line values.
14033 ac_cv_have_x="have_x=yes\
14034 ac_x_includes='$x_includes'\
14035 ac_x_libraries='$x_libraries'"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14037 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14041 x_cflags=
14042 for path in $x_libraries
14044 x_cflags="$x_cflags -L$path"
14045 done
14047 for path in $x_includes
14049 x_cflags="$x_cflags -I$path"
14050 done
14052 if test "x-$no_x" = "x-yes" ; then
14054 if test "x-$x11_hidd" != "x-auto" ; then
14055 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14058 else
14059 host_x_gfx=yes
14060 ENABLE_X11=1
14062 # Check whether --enable-x11_shm was given.
14063 if test "${enable_x11_shm+set}" = set; then :
14064 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14065 else
14066 x11_hidd_shm="auto"
14069 case "x-$x11_hidd_shm" in
14070 x-yes|x-no|x-auto) ;;
14071 *) x11_hidd_shm="auto" ;;
14072 esac
14074 have_xshm=no
14076 if test "x-$x11_hidd_shm" != "x-no" ; then
14078 for ac_header in sys/ipc.h
14079 do :
14080 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14081 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_SYS_IPC_H 1
14084 _ACEOF
14088 done
14090 for ac_header in sys/shm.h
14091 do :
14092 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14093 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_SYS_SHM_H 1
14096 _ACEOF
14100 done
14103 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14105 save_cflags="$CFLAGS"
14106 CFLAGS="$CFLAGS $x_cflags"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14108 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14109 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-lXext $LIBS"
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 char XShmQueryExtension ();
14125 main ()
14127 return XShmQueryExtension ();
14129 return 0;
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_Xext_XShmQueryExtension=yes
14134 else
14135 ac_cv_lib_Xext_XShmQueryExtension=no
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14142 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14143 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14144 have_xshm=yes
14147 CFLAGS="$save_cflags"
14151 if test "x-$have_xshm" = "x-yes" ; then
14152 DO_XSHM_SUPPORT="1"
14153 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14154 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14155 else
14156 DO_XSHM_SUPPORT="0"
14160 # Check whether --enable-x11_vidmode was given.
14161 if test "${enable_x11_vidmode+set}" = set; then :
14162 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14163 else
14164 x11_hidd_vidmode="auto"
14167 case "x-$x11_hidd_vidmode" in
14168 x-yes|x-no|x-auto) ;;
14169 *) x11_hidd_vidmode="auto" ;;
14170 esac
14172 have_vidmode=no
14174 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14176 save_cflags="$CFLAGS"
14177 CFLAGS="$CFLAGS $x_cflags"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14179 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14180 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 ac_check_lib_save_LIBS=$LIBS
14184 LIBS="-lXxf86vm $LIBS"
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char XF86VidModeQueryExtension ();
14196 main ()
14198 return XF86VidModeQueryExtension ();
14200 return 0;
14202 _ACEOF
14203 if ac_fn_c_try_link "$LINENO"; then :
14204 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14205 else
14206 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14208 rm -f core conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LIBS=$ac_check_lib_save_LIBS
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14213 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14214 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14215 have_vidmode=yes
14218 CFLAGS="$save_cflags"
14221 if test "x-$have_vidmode" = "x-yes" ; then
14222 DO_VIDMODE_SUPPORT="1"
14223 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14224 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14225 else
14226 DO_VIDMODE_SUPPORT="0"
14230 aros_host_x11_includes=$x_includes
14231 aros_host_x11_libdirs=$x_libraries
14235 # Check whether --enable-sdl_hidd was given.
14236 if test "${enable_sdl_hidd+set}" = set; then :
14237 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14238 else
14239 sdl_hidd="auto"
14242 case "x-$sdl_hidd" in
14243 x-yes|x-no|x-auto) ;;
14244 *) sdl_hidd="auto" ;;
14245 esac
14247 if test "x-$sdl_hidd" != "x-no" ; then
14249 SDL_VERSION=1.2.5
14251 # Check whether --with-sdl-prefix was given.
14252 if test "${with_sdl_prefix+set}" = set; then :
14253 withval=$with_sdl_prefix; sdl_prefix="$withval"
14254 else
14255 sdl_prefix=""
14259 # Check whether --with-sdl-exec-prefix was given.
14260 if test "${with_sdl_exec_prefix+set}" = set; then :
14261 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14262 else
14263 sdl_exec_prefix=""
14266 # Check whether --enable-sdltest was given.
14267 if test "${enable_sdltest+set}" = set; then :
14268 enableval=$enable_sdltest;
14269 else
14270 enable_sdltest=yes
14274 if test x$sdl_exec_prefix != x ; then
14275 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14276 if test x${SDL_CONFIG+set} != xset ; then
14277 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14280 if test x$sdl_prefix != x ; then
14281 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14282 if test x${SDL_CONFIG+set} != xset ; then
14283 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14287 as_save_PATH="$PATH"
14288 if test "x$prefix" != xNONE; then
14289 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14291 # Extract the first word of "sdl-config", so it can be a program name with args.
14292 set dummy sdl-config; ac_word=$2
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14294 $as_echo_n "checking for $ac_word... " >&6; }
14295 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 case $SDL_CONFIG in
14299 [\\/]* | ?:[\\/]*)
14300 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14304 for as_dir in $PATH
14306 IFS=$as_save_IFS
14307 test -z "$as_dir" && as_dir=.
14308 for ac_exec_ext in '' $ac_executable_extensions; do
14309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14310 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14312 break 2
14314 done
14315 done
14316 IFS=$as_save_IFS
14318 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14320 esac
14322 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14323 if test -n "$SDL_CONFIG"; then
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14325 $as_echo "$SDL_CONFIG" >&6; }
14326 else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14332 PATH="$as_save_PATH"
14333 min_sdl_version=$SDL_VERSION
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14335 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14336 no_sdl=""
14337 if test "$SDL_CONFIG" = "no" ; then
14338 no_sdl=yes
14339 else
14340 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14341 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14343 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14344 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14345 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14346 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14347 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14348 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14349 if test "x$enable_sdltest" = "xyes" ; then
14350 ac_save_CFLAGS="$CFLAGS"
14351 ac_save_CXXFLAGS="$CXXFLAGS"
14352 ac_save_LIBS="$LIBS"
14353 CFLAGS="$CFLAGS $SDL_CFLAGS"
14354 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14355 LIBS="$LIBS $SDL_LIBS"
14356 rm -f conf.sdltest
14357 if test "$cross_compiling" = yes; then :
14358 echo $ac_n "cross compiling; assumed OK... $ac_c"
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 #include <stdio.h>
14364 #include <stdlib.h>
14365 #include <string.h>
14366 #include "SDL.h"
14368 char*
14369 my_strdup (char *str)
14371 char *new_str;
14373 if (str)
14375 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14376 strcpy (new_str, str);
14378 else
14379 new_str = NULL;
14381 return new_str;
14384 int main (int argc, char *argv[])
14386 int major, minor, micro;
14387 char *tmp_version;
14389 /* This hangs on some systems (?)
14390 system ("touch conf.sdltest");
14392 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14394 /* HP/UX 9 (%@#!) writes to sscanf strings */
14395 tmp_version = my_strdup("$min_sdl_version");
14396 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14397 printf("%s, bad version string\n", "$min_sdl_version");
14398 exit(1);
14401 if (($sdl_major_version > major) ||
14402 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14403 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14405 return 0;
14407 else
14409 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14410 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14411 printf("*** best to upgrade to the required version.\n");
14412 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14413 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14414 printf("*** config.cache before re-running configure\n");
14415 return 1;
14420 _ACEOF
14421 if ac_fn_c_try_run "$LINENO"; then :
14423 else
14424 no_sdl=yes
14426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427 conftest.$ac_objext conftest.beam conftest.$ac_ext
14430 CFLAGS="$ac_save_CFLAGS"
14431 CXXFLAGS="$ac_save_CXXFLAGS"
14432 LIBS="$ac_save_LIBS"
14435 if test "x$no_sdl" = x ; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }
14438 have_sdl="yes"
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442 if test "$SDL_CONFIG" = "no" ; then
14443 echo "*** The sdl-config script installed by SDL could not be found"
14444 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14445 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14446 echo "*** full path to sdl-config."
14447 else
14448 if test -f conf.sdltest ; then
14450 else
14451 echo "*** Could not run SDL test program, checking why..."
14452 CFLAGS="$CFLAGS $SDL_CFLAGS"
14453 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14454 LIBS="$LIBS $SDL_LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 #include <stdio.h>
14459 #include "SDL.h"
14461 int main(int argc, char *argv[])
14462 { return 0; }
14463 #undef main
14464 #define main K_and_R_C_main
14467 main ()
14469 return 0;
14471 return 0;
14473 _ACEOF
14474 if ac_fn_c_try_link "$LINENO"; then :
14475 echo "*** The test program compiled, but did not run. This usually means"
14476 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14477 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14478 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14479 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14480 echo "*** is required on your system"
14481 echo "***"
14482 echo "*** If you have an old version installed, it is best to remove it, although"
14483 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14484 else
14485 echo "*** The test program failed to compile or link. See the file config.log for the"
14486 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14487 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14488 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14490 rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492 CFLAGS="$ac_save_CFLAGS"
14493 CXXFLAGS="$ac_save_CXXFLAGS"
14494 LIBS="$ac_save_LIBS"
14497 SDL_CFLAGS=""
14498 SDL_LIBS=""
14499 have_sdl="no"
14503 rm -f conf.sdltest
14506 if test "x-$have_sdl" != "x-yes" ; then
14508 if test "x-$sdl_hidd" != "x-auto" ; then
14509 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14512 else
14513 host_sdl_gfx=yes
14514 aros_host_sdl_cflags=$SDL_CFLAGS
14515 aros_host_sdl_libs=$SDL_LIBS
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14523 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14524 # Check whether --enable-dbus was given.
14525 if test "${enable_dbus+set}" = set; then :
14526 enableval=$enable_dbus; dbus="yes"
14527 else
14528 dbus="no"
14531 if test "$dbus" = "yes" ; then
14532 ENABLE_DBUS=1
14533 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14534 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14535 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14536 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14537 else
14538 ENABLE_DBUS=0
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14541 $as_echo "$dbus" >&6; }
14543 if test "$use_kernel_cc_wrapper" = "yes" ; then
14544 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14548 # Generic
14560 # Compatability with other Amiga-like operation systems
14563 # Host related
14591 # Target Related
14662 # Delinting target compiler flags
14669 # Hosted Graphics Related
14686 # Native version related
14690 # Palm native version related
14693 # Unix/Hosted version related
14696 # MMU related
14699 # Apple iOS related
14704 # ARM default GCC target related
14711 # Android related
14716 # DBUS related
14723 #X11 related
14726 # Debug related
14732 # Collect-aros stuff: "-ius" to ignore undefined symbols
14735 # C compiler related
14740 #ObjC compiler related
14743 #Java related
14746 # USB3.0 code
14749 case "$aros_flavour" in
14750 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14751 aros_flavour="emulation" ;;
14752 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14753 aros_flavour="emulation" ;;
14754 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14755 aros_flavour="standalone";;
14756 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14757 aros_flavour="standalone";;
14758 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14759 aros_flavour="native" ;;
14760 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14761 aros_flavour="native" ;;
14762 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14763 aros_flavour="linklib" ;;
14764 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14765 aros_flavour="palmnative" ;;
14766 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14767 aros_flavour="mac68knative" ;;
14768 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14769 aros_flavour="ppcnative" ;;
14770 esac
14772 if test ! -d ${aros_inc_dir} ; then
14773 ${MKDIR} ${aros_inc_dir}
14775 if test ! -d ${aros_geninc_dir} ; then
14776 ${MKDIR} ${aros_geninc_dir}
14778 if test ! -d ${aros_hostcfg_dir} ; then
14779 ${MKDIR} ${aros_hostcfg_dir}
14781 if test ! -d ${aros_targetcfg_dir} ; then
14782 ${MKDIR} ${aros_targetcfg_dir}
14784 if test ! -d ${aros_tools_dir} ; then
14785 ${MKDIR} ${aros_tools_dir}
14787 if test ! -d ${aros_scripts_dir} ; then
14788 ${MKDIR} ${aros_scripts_dir}
14791 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14794 # Generic build tools (metamake, etc)
14795 ac_config_commands="$ac_config_commands genmf-executable-support"
14797 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 ${aros_targetcfg_dir}/build.cfg:config/build.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"
14800 # Binutils
14801 ac_config_commands="$ac_config_commands binutils-support"
14803 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14806 # Bare Elf support script and spec
14807 if test "${use_kernel_cc_wrapper}" = "yes"; then
14808 ac_config_commands="$ac_config_commands elf-compiler-support"
14810 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"
14814 # Host compiler support scripts and spec
14815 if test "${aros_target_toolchain}" = "no"; then
14816 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14818 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"
14822 # Android support
14823 if test "$aros_target_variant" == "android"; then
14824 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14828 # cmake helper
14829 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14832 cat >confcache <<\_ACEOF
14833 # This file is a shell script that caches the results of configure
14834 # tests run on this system so they can be shared between configure
14835 # scripts and configure runs, see configure's option --config-cache.
14836 # It is not useful on other systems. If it contains results you don't
14837 # want to keep, you may remove or edit it.
14839 # config.status only pays attention to the cache file if you give it
14840 # the --recheck option to rerun configure.
14842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14844 # following values.
14846 _ACEOF
14848 # The following way of writing the cache mishandles newlines in values,
14849 # but we know of no workaround that is simple, portable, and efficient.
14850 # So, we kill variables containing newlines.
14851 # Ultrix sh set writes to stderr and can't be redirected directly,
14852 # and sets the high bit in the cache file unless we assign to the vars.
14854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14855 eval ac_val=\$$ac_var
14856 case $ac_val in #(
14857 *${as_nl}*)
14858 case $ac_var in #(
14859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14861 esac
14862 case $ac_var in #(
14863 _ | IFS | as_nl) ;; #(
14864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14865 *) { eval $ac_var=; unset $ac_var;} ;;
14866 esac ;;
14867 esac
14868 done
14870 (set) 2>&1 |
14871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14872 *${as_nl}ac_space=\ *)
14873 # `set' does not quote correctly, so add quotes: double-quote
14874 # substitution turns \\\\ into \\, and sed turns \\ into \.
14875 sed -n \
14876 "s/'/'\\\\''/g;
14877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14878 ;; #(
14880 # `set' quotes correctly as required by POSIX, so do not add quotes.
14881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14883 esac |
14884 sort
14886 sed '
14887 /^ac_cv_env_/b end
14888 t clear
14889 :clear
14890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14891 t end
14892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14893 :end' >>confcache
14894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14895 if test -w "$cache_file"; then
14896 if test "x$cache_file" != "x/dev/null"; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14898 $as_echo "$as_me: updating cache $cache_file" >&6;}
14899 if test ! -f "$cache_file" || test -h "$cache_file"; then
14900 cat confcache >"$cache_file"
14901 else
14902 case $cache_file in #(
14903 */* | ?:*)
14904 mv -f confcache "$cache_file"$$ &&
14905 mv -f "$cache_file"$$ "$cache_file" ;; #(
14907 mv -f confcache "$cache_file" ;;
14908 esac
14911 else
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14916 rm -f confcache
14918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14919 # Let make expand exec_prefix.
14920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14922 DEFS=-DHAVE_CONFIG_H
14924 ac_libobjs=
14925 ac_ltlibobjs=
14927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14928 # 1. Remove the extension, and $U if already installed.
14929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14932 # will be set to the directory where LIBOBJS objects are built.
14933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14935 done
14936 LIBOBJS=$ac_libobjs
14938 LTLIBOBJS=$ac_ltlibobjs
14942 : "${CONFIG_STATUS=./config.status}"
14943 ac_write_fail=0
14944 ac_clean_files_save=$ac_clean_files
14945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14947 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14948 as_write_fail=0
14949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14950 #! $SHELL
14951 # Generated by $as_me.
14952 # Run this file to recreate the current configuration.
14953 # Compiler output produced by configure, useful for debugging
14954 # configure, is in config.log if it exists.
14956 debug=false
14957 ac_cs_recheck=false
14958 ac_cs_silent=false
14960 SHELL=\${CONFIG_SHELL-$SHELL}
14961 export SHELL
14962 _ASEOF
14963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14964 ## -------------------- ##
14965 ## M4sh Initialization. ##
14966 ## -------------------- ##
14968 # Be more Bourne compatible
14969 DUALCASE=1; export DUALCASE # for MKS sh
14970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14971 emulate sh
14972 NULLCMD=:
14973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14974 # is contrary to our usage. Disable this feature.
14975 alias -g '${1+"$@"}'='"$@"'
14976 setopt NO_GLOB_SUBST
14977 else
14978 case `(set -o) 2>/dev/null` in #(
14979 *posix*) :
14980 set -o posix ;; #(
14981 *) :
14983 esac
14987 as_nl='
14989 export as_nl
14990 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14991 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14994 # Prefer a ksh shell builtin over an external printf program on Solaris,
14995 # but without wasting forks for bash or zsh.
14996 if test -z "$BASH_VERSION$ZSH_VERSION" \
14997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14998 as_echo='print -r --'
14999 as_echo_n='print -rn --'
15000 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15001 as_echo='printf %s\n'
15002 as_echo_n='printf %s'
15003 else
15004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15006 as_echo_n='/usr/ucb/echo -n'
15007 else
15008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15009 as_echo_n_body='eval
15010 arg=$1;
15011 case $arg in #(
15012 *"$as_nl"*)
15013 expr "X$arg" : "X\\(.*\\)$as_nl";
15014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15015 esac;
15016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15018 export as_echo_n_body
15019 as_echo_n='sh -c $as_echo_n_body as_echo'
15021 export as_echo_body
15022 as_echo='sh -c $as_echo_body as_echo'
15025 # The user is always right.
15026 if test "${PATH_SEPARATOR+set}" != set; then
15027 PATH_SEPARATOR=:
15028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15030 PATH_SEPARATOR=';'
15035 # IFS
15036 # We need space, tab and new line, in precisely that order. Quoting is
15037 # there to prevent editors from complaining about space-tab.
15038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15039 # splitting by setting IFS to empty value.)
15040 IFS=" "" $as_nl"
15042 # Find who we are. Look in the path if we contain no directory separator.
15043 as_myself=
15044 case $0 in #((
15045 *[\\/]* ) as_myself=$0 ;;
15046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15047 for as_dir in $PATH
15049 IFS=$as_save_IFS
15050 test -z "$as_dir" && as_dir=.
15051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15052 done
15053 IFS=$as_save_IFS
15056 esac
15057 # We did not find ourselves, most probably we were run as `sh COMMAND'
15058 # in which case we are not to be found in the path.
15059 if test "x$as_myself" = x; then
15060 as_myself=$0
15062 if test ! -f "$as_myself"; then
15063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15064 exit 1
15067 # Unset variables that we do not need and which cause bugs (e.g. in
15068 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15069 # suppresses any "Segmentation fault" message there. '((' could
15070 # trigger a bug in pdksh 5.2.14.
15071 for as_var in BASH_ENV ENV MAIL MAILPATH
15072 do eval test x\${$as_var+set} = xset \
15073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15074 done
15075 PS1='$ '
15076 PS2='> '
15077 PS4='+ '
15079 # NLS nuisances.
15080 LC_ALL=C
15081 export LC_ALL
15082 LANGUAGE=C
15083 export LANGUAGE
15085 # CDPATH.
15086 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15089 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15090 # ----------------------------------------
15091 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15092 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15093 # script with STATUS, using 1 if that was 0.
15094 as_fn_error ()
15096 as_status=$1; test $as_status -eq 0 && as_status=1
15097 if test "$4"; then
15098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15101 $as_echo "$as_me: error: $2" >&2
15102 as_fn_exit $as_status
15103 } # as_fn_error
15106 # as_fn_set_status STATUS
15107 # -----------------------
15108 # Set $? to STATUS, without forking.
15109 as_fn_set_status ()
15111 return $1
15112 } # as_fn_set_status
15114 # as_fn_exit STATUS
15115 # -----------------
15116 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15117 as_fn_exit ()
15119 set +e
15120 as_fn_set_status $1
15121 exit $1
15122 } # as_fn_exit
15124 # as_fn_unset VAR
15125 # ---------------
15126 # Portably unset VAR.
15127 as_fn_unset ()
15129 { eval $1=; unset $1;}
15131 as_unset=as_fn_unset
15132 # as_fn_append VAR VALUE
15133 # ----------------------
15134 # Append the text in VALUE to the end of the definition contained in VAR. Take
15135 # advantage of any shell optimizations that allow amortized linear growth over
15136 # repeated appends, instead of the typical quadratic growth present in naive
15137 # implementations.
15138 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15139 eval 'as_fn_append ()
15141 eval $1+=\$2
15143 else
15144 as_fn_append ()
15146 eval $1=\$$1\$2
15148 fi # as_fn_append
15150 # as_fn_arith ARG...
15151 # ------------------
15152 # Perform arithmetic evaluation on the ARGs, and store the result in the
15153 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15154 # must be portable across $(()) and expr.
15155 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15156 eval 'as_fn_arith ()
15158 as_val=$(( $* ))
15160 else
15161 as_fn_arith ()
15163 as_val=`expr "$@" || test $? -eq 1`
15165 fi # as_fn_arith
15168 if expr a : '\(a\)' >/dev/null 2>&1 &&
15169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15170 as_expr=expr
15171 else
15172 as_expr=false
15175 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15176 as_basename=basename
15177 else
15178 as_basename=false
15181 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15182 as_dirname=dirname
15183 else
15184 as_dirname=false
15187 as_me=`$as_basename -- "$0" ||
15188 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15189 X"$0" : 'X\(//\)$' \| \
15190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15191 $as_echo X/"$0" |
15192 sed '/^.*\/\([^/][^/]*\)\/*$/{
15193 s//\1/
15196 /^X\/\(\/\/\)$/{
15197 s//\1/
15200 /^X\/\(\/\).*/{
15201 s//\1/
15204 s/.*/./; q'`
15206 # Avoid depending upon Character Ranges.
15207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15210 as_cr_digits='0123456789'
15211 as_cr_alnum=$as_cr_Letters$as_cr_digits
15213 ECHO_C= ECHO_N= ECHO_T=
15214 case `echo -n x` in #(((((
15215 -n*)
15216 case `echo 'xy\c'` in
15217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15218 xy) ECHO_C='\c';;
15219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15220 ECHO_T=' ';;
15221 esac;;
15223 ECHO_N='-n';;
15224 esac
15226 rm -f conf$$ conf$$.exe conf$$.file
15227 if test -d conf$$.dir; then
15228 rm -f conf$$.dir/conf$$.file
15229 else
15230 rm -f conf$$.dir
15231 mkdir conf$$.dir 2>/dev/null
15233 if (echo >conf$$.file) 2>/dev/null; then
15234 if ln -s conf$$.file conf$$ 2>/dev/null; then
15235 as_ln_s='ln -s'
15236 # ... but there are two gotchas:
15237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15239 # In both cases, we have to default to `cp -pR'.
15240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15241 as_ln_s='cp -pR'
15242 elif ln conf$$.file conf$$ 2>/dev/null; then
15243 as_ln_s=ln
15244 else
15245 as_ln_s='cp -pR'
15247 else
15248 as_ln_s='cp -pR'
15250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15251 rmdir conf$$.dir 2>/dev/null
15254 # as_fn_mkdir_p
15255 # -------------
15256 # Create "$as_dir" as a directory, including parents if necessary.
15257 as_fn_mkdir_p ()
15260 case $as_dir in #(
15261 -*) as_dir=./$as_dir;;
15262 esac
15263 test -d "$as_dir" || eval $as_mkdir_p || {
15264 as_dirs=
15265 while :; do
15266 case $as_dir in #(
15267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15268 *) as_qdir=$as_dir;;
15269 esac
15270 as_dirs="'$as_qdir' $as_dirs"
15271 as_dir=`$as_dirname -- "$as_dir" ||
15272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15273 X"$as_dir" : 'X\(//\)[^/]' \| \
15274 X"$as_dir" : 'X\(//\)$' \| \
15275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15276 $as_echo X"$as_dir" |
15277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15278 s//\1/
15281 /^X\(\/\/\)[^/].*/{
15282 s//\1/
15285 /^X\(\/\/\)$/{
15286 s//\1/
15289 /^X\(\/\).*/{
15290 s//\1/
15293 s/.*/./; q'`
15294 test -d "$as_dir" && break
15295 done
15296 test -z "$as_dirs" || eval "mkdir $as_dirs"
15297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15300 } # as_fn_mkdir_p
15301 if mkdir -p . 2>/dev/null; then
15302 as_mkdir_p='mkdir -p "$as_dir"'
15303 else
15304 test -d ./-p && rmdir ./-p
15305 as_mkdir_p=false
15309 # as_fn_executable_p FILE
15310 # -----------------------
15311 # Test if FILE is an executable regular file.
15312 as_fn_executable_p ()
15314 test -f "$1" && test -x "$1"
15315 } # as_fn_executable_p
15316 as_test_x='test -x'
15317 as_executable_p=as_fn_executable_p
15319 # Sed expression to map a string onto a valid CPP name.
15320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15322 # Sed expression to map a string onto a valid variable name.
15323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15326 exec 6>&1
15327 ## ----------------------------------- ##
15328 ## Main body of $CONFIG_STATUS script. ##
15329 ## ----------------------------------- ##
15330 _ASEOF
15331 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15334 # Save the log message, to keep $0 and so on meaningful, and to
15335 # report actual input values of CONFIG_FILES etc. instead of their
15336 # values after options handling.
15337 ac_log="
15338 This file was extended by $as_me, which was
15339 generated by GNU Autoconf 2.69. Invocation command line was
15341 CONFIG_FILES = $CONFIG_FILES
15342 CONFIG_HEADERS = $CONFIG_HEADERS
15343 CONFIG_LINKS = $CONFIG_LINKS
15344 CONFIG_COMMANDS = $CONFIG_COMMANDS
15345 $ $0 $@
15347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15350 _ACEOF
15352 case $ac_config_files in *"
15353 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15354 esac
15356 case $ac_config_headers in *"
15357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15358 esac
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15362 # Files that config.status was made for.
15363 config_files="$ac_config_files"
15364 config_headers="$ac_config_headers"
15365 config_commands="$ac_config_commands"
15367 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370 ac_cs_usage="\
15371 \`$as_me' instantiates files and other configuration actions
15372 from templates according to the current configuration. Unless the files
15373 and actions are specified as TAGs, all are instantiated by default.
15375 Usage: $0 [OPTION]... [TAG]...
15377 -h, --help print this help, then exit
15378 -V, --version print version number and configuration settings, then exit
15379 --config print configuration, then exit
15380 -q, --quiet, --silent
15381 do not print progress messages
15382 -d, --debug don't remove temporary files
15383 --recheck update $as_me by reconfiguring in the same conditions
15384 --file=FILE[:TEMPLATE]
15385 instantiate the configuration file FILE
15386 --header=FILE[:TEMPLATE]
15387 instantiate the configuration header FILE
15389 Configuration files:
15390 $config_files
15392 Configuration headers:
15393 $config_headers
15395 Configuration commands:
15396 $config_commands
15398 Report bugs to the package provider."
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15403 ac_cs_version="\\
15404 config.status
15405 configured by $0, generated by GNU Autoconf 2.69,
15406 with options \\"\$ac_cs_config\\"
15408 Copyright (C) 2012 Free Software Foundation, Inc.
15409 This config.status script is free software; the Free Software Foundation
15410 gives unlimited permission to copy, distribute and modify it."
15412 ac_pwd='$ac_pwd'
15413 srcdir='$srcdir'
15414 test -n "\$AWK" || AWK=awk
15415 _ACEOF
15417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15418 # The default lists apply if the user does not specify any file.
15419 ac_need_defaults=:
15420 while test $# != 0
15422 case $1 in
15423 --*=?*)
15424 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15425 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15426 ac_shift=:
15428 --*=)
15429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15430 ac_optarg=
15431 ac_shift=:
15434 ac_option=$1
15435 ac_optarg=$2
15436 ac_shift=shift
15438 esac
15440 case $ac_option in
15441 # Handling of the options.
15442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15443 ac_cs_recheck=: ;;
15444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15445 $as_echo "$ac_cs_version"; exit ;;
15446 --config | --confi | --conf | --con | --co | --c )
15447 $as_echo "$ac_cs_config"; exit ;;
15448 --debug | --debu | --deb | --de | --d | -d )
15449 debug=: ;;
15450 --file | --fil | --fi | --f )
15451 $ac_shift
15452 case $ac_optarg in
15453 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15454 '') as_fn_error $? "missing file argument" ;;
15455 esac
15456 as_fn_append CONFIG_FILES " '$ac_optarg'"
15457 ac_need_defaults=false;;
15458 --header | --heade | --head | --hea )
15459 $ac_shift
15460 case $ac_optarg in
15461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15462 esac
15463 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15464 ac_need_defaults=false;;
15465 --he | --h)
15466 # Conflict between --help and --header
15467 as_fn_error $? "ambiguous option: \`$1'
15468 Try \`$0 --help' for more information.";;
15469 --help | --hel | -h )
15470 $as_echo "$ac_cs_usage"; exit ;;
15471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15473 ac_cs_silent=: ;;
15475 # This is an error.
15476 -*) as_fn_error $? "unrecognized option: \`$1'
15477 Try \`$0 --help' for more information." ;;
15479 *) as_fn_append ac_config_targets " $1"
15480 ac_need_defaults=false ;;
15482 esac
15483 shift
15484 done
15486 ac_configure_extra_args=
15488 if $ac_cs_silent; then
15489 exec 6>/dev/null
15490 ac_configure_extra_args="$ac_configure_extra_args --silent"
15493 _ACEOF
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 if \$ac_cs_recheck; then
15496 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15497 shift
15498 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15499 CONFIG_SHELL='$SHELL'
15500 export CONFIG_SHELL
15501 exec "\$@"
15504 _ACEOF
15505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506 exec 5>>config.log
15508 echo
15509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15510 ## Running $as_me. ##
15511 _ASBOX
15512 $as_echo "$ac_log"
15513 } >&5
15515 _ACEOF
15516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15518 # INIT-COMMANDS
15520 aros_tools_dir=${aros_tools_dir}
15523 aros_host_exe_suffix=${aros_host_exe_suffix}
15524 aros_tools_dir=${aros_tools_dir}
15525 aros_target_cpu=${aros_target_cpu}
15526 aros_target_arch=${aros_target_arch}
15527 aros_target_suffix=${aros_target_suffix}
15528 orig_target_nm=${orig_target_nm}
15529 orig_target_as=${orig_target_as}
15530 orig_target_ar=${orig_target_ar}
15531 orig_target_ranlib=${orig_target_ranlib}
15532 orig_target_objdump=${orig_target_objdump}
15533 orig_target_objcopy=${orig_target_objcopy}
15534 orig_target_strip=${orig_target_strip}
15535 aros_kernel_ld=${aros_kernel_ld}
15539 aros_host_exe_suffix=${aros_host_exe_suffix}
15540 aros_tools_dir=${aros_tools_dir}
15541 aros_target_cpu=${aros_target_cpu}
15542 aros_target_arch=${aros_target_arch}
15543 aros_target_suffix=${aros_target_suffix}
15544 aros_kernel_ld=${aros_kernel_ld}
15548 aros_host_exe_suffix=${aros_host_exe_suffix}
15549 aros_tools_dir=${aros_tools_dir}
15550 aros_target_cpu=${aros_target_cpu}
15551 aros_target_arch=${aros_target_arch}
15552 aros_target_suffix=${aros_target_suffix}
15556 _ACEOF
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 # Handling of arguments.
15561 for ac_config_target in $ac_config_targets
15563 case $ac_config_target in
15564 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15565 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15567 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15568 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15569 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15570 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15571 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15572 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15573 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15574 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15575 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15576 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15577 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15578 "${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" ;;
15579 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15580 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15581 "${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" ;;
15582 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15583 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15584 "${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" ;;
15585 "${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" ;;
15586 "${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" ;;
15587 "${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" ;;
15588 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15590 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15591 esac
15592 done
15595 # If the user did not use the arguments to specify the items to instantiate,
15596 # then the envvar interface is used. Set only those that are not.
15597 # We use the long form for the default assignment because of an extremely
15598 # bizarre bug on SunOS 4.1.3.
15599 if $ac_need_defaults; then
15600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15601 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15605 # Have a temporary directory for convenience. Make it in the build tree
15606 # simply because there is no reason against having it here, and in addition,
15607 # creating and moving files from /tmp can sometimes cause problems.
15608 # Hook for its removal unless debugging.
15609 # Note that there is a small window in which the directory will not be cleaned:
15610 # after its creation but before its name has been assigned to `$tmp'.
15611 $debug ||
15613 tmp= ac_tmp=
15614 trap 'exit_status=$?
15615 : "${ac_tmp:=$tmp}"
15616 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15618 trap 'as_fn_exit 1' 1 2 13 15
15620 # Create a (secure) tmp directory for tmp files.
15623 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15624 test -d "$tmp"
15625 } ||
15627 tmp=./conf$$-$RANDOM
15628 (umask 077 && mkdir "$tmp")
15629 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15630 ac_tmp=$tmp
15632 # Set up the scripts for CONFIG_FILES section.
15633 # No need to generate them if there are no CONFIG_FILES.
15634 # This happens for instance with `./config.status config.h'.
15635 if test -n "$CONFIG_FILES"; then
15638 ac_cr=`echo X | tr X '\015'`
15639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15640 # But we know of no other shell where ac_cr would be empty at this
15641 # point, so we can use a bashism as a fallback.
15642 if test "x$ac_cr" = x; then
15643 eval ac_cr=\$\'\\r\'
15645 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15647 ac_cs_awk_cr='\\r'
15648 else
15649 ac_cs_awk_cr=$ac_cr
15652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15653 _ACEOF
15657 echo "cat >conf$$subs.awk <<_ACEOF" &&
15658 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15659 echo "_ACEOF"
15660 } >conf$$subs.sh ||
15661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15662 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15663 ac_delim='%!_!# '
15664 for ac_last_try in false false false false false :; do
15665 . ./conf$$subs.sh ||
15666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15668 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15669 if test $ac_delim_n = $ac_delim_num; then
15670 break
15671 elif $ac_last_try; then
15672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15673 else
15674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15676 done
15677 rm -f conf$$subs.sh
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15681 _ACEOF
15682 sed -n '
15684 s/^/S["/; s/!.*/"]=/
15687 s/^[^!]*!//
15688 :repl
15689 t repl
15690 s/'"$ac_delim"'$//
15691 t delim
15694 s/\(.\{148\}\)..*/\1/
15695 t more1
15696 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15699 b repl
15700 :more1
15701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15704 s/.\{148\}//
15705 t nl
15706 :delim
15708 s/\(.\{148\}\)..*/\1/
15709 t more2
15710 s/["\\]/\\&/g; s/^/"/; s/$/"/
15713 :more2
15714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15717 s/.\{148\}//
15718 t delim
15719 ' <conf$$subs.awk | sed '
15720 /^[^""]/{
15722 s/\n//
15724 ' >>$CONFIG_STATUS || ac_write_fail=1
15725 rm -f conf$$subs.awk
15726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15727 _ACAWK
15728 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15729 for (key in S) S_is_set[key] = 1
15730 FS = "\a"
15734 line = $ 0
15735 nfields = split(line, field, "@")
15736 substed = 0
15737 len = length(field[1])
15738 for (i = 2; i < nfields; i++) {
15739 key = field[i]
15740 keylen = length(key)
15741 if (S_is_set[key]) {
15742 value = S[key]
15743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15744 len += length(value) + length(field[++i])
15745 substed = 1
15746 } else
15747 len += 1 + keylen
15750 print line
15753 _ACAWK
15754 _ACEOF
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15757 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15758 else
15760 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15761 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15762 _ACEOF
15764 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15765 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15766 # trailing colons and then remove the whole line if VPATH becomes empty
15767 # (actually we leave an empty line to preserve line numbers).
15768 if test "x$srcdir" = x.; then
15769 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15771 s///
15772 s/^/:/
15773 s/[ ]*$/:/
15774 s/:\$(srcdir):/:/g
15775 s/:\${srcdir}:/:/g
15776 s/:@srcdir@:/:/g
15777 s/^:*//
15778 s/:*$//
15780 s/\(=[ ]*\).*/\1/
15782 s/\n//
15783 s/^[^=]*=[ ]*$//
15787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15788 fi # test -n "$CONFIG_FILES"
15790 # Set up the scripts for CONFIG_HEADERS section.
15791 # No need to generate them if there are no CONFIG_HEADERS.
15792 # This happens for instance with `./config.status Makefile'.
15793 if test -n "$CONFIG_HEADERS"; then
15794 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15795 BEGIN {
15796 _ACEOF
15798 # Transform confdefs.h into an awk script `defines.awk', embedded as
15799 # here-document in config.status, that substitutes the proper values into
15800 # config.h.in to produce config.h.
15802 # Create a delimiter string that does not exist in confdefs.h, to ease
15803 # handling of long lines.
15804 ac_delim='%!_!# '
15805 for ac_last_try in false false :; do
15806 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15807 if test -z "$ac_tt"; then
15808 break
15809 elif $ac_last_try; then
15810 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15811 else
15812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15814 done
15816 # For the awk script, D is an array of macro values keyed by name,
15817 # likewise P contains macro parameters if any. Preserve backslash
15818 # newline sequences.
15820 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15821 sed -n '
15822 s/.\{148\}/&'"$ac_delim"'/g
15823 t rset
15824 :rset
15825 s/^[ ]*#[ ]*define[ ][ ]*/ /
15826 t def
15828 :def
15829 s/\\$//
15830 t bsnl
15831 s/["\\]/\\&/g
15832 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15833 D["\1"]=" \3"/p
15834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15836 :bsnl
15837 s/["\\]/\\&/g
15838 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15839 D["\1"]=" \3\\\\\\n"\\/p
15840 t cont
15841 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15842 t cont
15844 :cont
15846 s/.\{148\}/&'"$ac_delim"'/g
15847 t clear
15848 :clear
15849 s/\\$//
15850 t bsnlc
15851 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15853 :bsnlc
15854 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15855 b cont
15856 ' <confdefs.h | sed '
15857 s/'"$ac_delim"'/"\\\
15858 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 for (key in D) D_is_set[key] = 1
15862 FS = "\a"
15864 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15865 line = \$ 0
15866 split(line, arg, " ")
15867 if (arg[1] == "#") {
15868 defundef = arg[2]
15869 mac1 = arg[3]
15870 } else {
15871 defundef = substr(arg[1], 2)
15872 mac1 = arg[2]
15874 split(mac1, mac2, "(") #)
15875 macro = mac2[1]
15876 prefix = substr(line, 1, index(line, defundef) - 1)
15877 if (D_is_set[macro]) {
15878 # Preserve the white space surrounding the "#".
15879 print prefix "define", macro P[macro] D[macro]
15880 next
15881 } else {
15882 # Replace #undef with comments. This is necessary, for example,
15883 # in the case of _POSIX_SOURCE, which is predefined and required
15884 # on some systems where configure will not decide to define it.
15885 if (defundef == "undef") {
15886 print "/*", prefix defundef, macro, "*/"
15887 next
15891 { print }
15892 _ACAWK
15893 _ACEOF
15894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15895 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15896 fi # test -n "$CONFIG_HEADERS"
15899 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15900 shift
15901 for ac_tag
15903 case $ac_tag in
15904 :[FHLC]) ac_mode=$ac_tag; continue;;
15905 esac
15906 case $ac_mode$ac_tag in
15907 :[FHL]*:*);;
15908 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15909 :[FH]-) ac_tag=-:-;;
15910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15911 esac
15912 ac_save_IFS=$IFS
15913 IFS=:
15914 set x $ac_tag
15915 IFS=$ac_save_IFS
15916 shift
15917 ac_file=$1
15918 shift
15920 case $ac_mode in
15921 :L) ac_source=$1;;
15922 :[FH])
15923 ac_file_inputs=
15924 for ac_f
15926 case $ac_f in
15927 -) ac_f="$ac_tmp/stdin";;
15928 *) # Look for the file first in the build tree, then in the source tree
15929 # (if the path is not absolute). The absolute path cannot be DOS-style,
15930 # because $ac_f cannot contain `:'.
15931 test -f "$ac_f" ||
15932 case $ac_f in
15933 [\\/$]*) false;;
15934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15935 esac ||
15936 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15937 esac
15938 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15939 as_fn_append ac_file_inputs " '$ac_f'"
15940 done
15942 # Let's still pretend it is `configure' which instantiates (i.e., don't
15943 # use $as_me), people would be surprised to read:
15944 # /* config.h. Generated by config.status. */
15945 configure_input='Generated from '`
15946 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15947 `' by configure.'
15948 if test x"$ac_file" != x-; then
15949 configure_input="$ac_file. $configure_input"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15951 $as_echo "$as_me: creating $ac_file" >&6;}
15953 # Neutralize special characters interpreted by sed in replacement strings.
15954 case $configure_input in #(
15955 *\&* | *\|* | *\\* )
15956 ac_sed_conf_input=`$as_echo "$configure_input" |
15957 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15958 *) ac_sed_conf_input=$configure_input;;
15959 esac
15961 case $ac_tag in
15962 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15964 esac
15966 esac
15968 ac_dir=`$as_dirname -- "$ac_file" ||
15969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15970 X"$ac_file" : 'X\(//\)[^/]' \| \
15971 X"$ac_file" : 'X\(//\)$' \| \
15972 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15973 $as_echo X"$ac_file" |
15974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15975 s//\1/
15978 /^X\(\/\/\)[^/].*/{
15979 s//\1/
15982 /^X\(\/\/\)$/{
15983 s//\1/
15986 /^X\(\/\).*/{
15987 s//\1/
15990 s/.*/./; q'`
15991 as_dir="$ac_dir"; as_fn_mkdir_p
15992 ac_builddir=.
15994 case "$ac_dir" in
15995 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15997 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15998 # A ".." for each directory in $ac_dir_suffix.
15999 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16000 case $ac_top_builddir_sub in
16001 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16002 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16003 esac ;;
16004 esac
16005 ac_abs_top_builddir=$ac_pwd
16006 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16007 # for backward compatibility:
16008 ac_top_builddir=$ac_top_build_prefix
16010 case $srcdir in
16011 .) # We are building in place.
16012 ac_srcdir=.
16013 ac_top_srcdir=$ac_top_builddir_sub
16014 ac_abs_top_srcdir=$ac_pwd ;;
16015 [\\/]* | ?:[\\/]* ) # Absolute name.
16016 ac_srcdir=$srcdir$ac_dir_suffix;
16017 ac_top_srcdir=$srcdir
16018 ac_abs_top_srcdir=$srcdir ;;
16019 *) # Relative name.
16020 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16021 ac_top_srcdir=$ac_top_build_prefix$srcdir
16022 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16023 esac
16024 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16027 case $ac_mode in
16030 # CONFIG_FILE
16033 _ACEOF
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 # If the template does not know about datarootdir, expand it.
16037 # FIXME: This hack should be removed a few years after 2.60.
16038 ac_datarootdir_hack=; ac_datarootdir_seen=
16039 ac_sed_dataroot='
16040 /datarootdir/ {
16044 /@datadir@/p
16045 /@docdir@/p
16046 /@infodir@/p
16047 /@localedir@/p
16048 /@mandir@/p'
16049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16050 *datarootdir*) ac_datarootdir_seen=yes;;
16051 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16053 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 ac_datarootdir_hack='
16057 s&@datadir@&$datadir&g
16058 s&@docdir@&$docdir&g
16059 s&@infodir@&$infodir&g
16060 s&@localedir@&$localedir&g
16061 s&@mandir@&$mandir&g
16062 s&\\\${datarootdir}&$datarootdir&g' ;;
16063 esac
16064 _ACEOF
16066 # Neutralize VPATH when `$srcdir' = `.'.
16067 # Shell code in configure.ac might set extrasub.
16068 # FIXME: do we really want to maintain this feature?
16069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 ac_sed_extra="$ac_vpsub
16071 $extrasub
16072 _ACEOF
16073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16076 s|@configure_input@|$ac_sed_conf_input|;t t
16077 s&@top_builddir@&$ac_top_builddir_sub&;t t
16078 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16079 s&@srcdir@&$ac_srcdir&;t t
16080 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16081 s&@top_srcdir@&$ac_top_srcdir&;t t
16082 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16083 s&@builddir@&$ac_builddir&;t t
16084 s&@abs_builddir@&$ac_abs_builddir&;t t
16085 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16086 $ac_datarootdir_hack
16088 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16089 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16091 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16092 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16093 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16094 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16096 which seems to be undefined. Please make sure it is defined" >&5
16097 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16098 which seems to be undefined. Please make sure it is defined" >&2;}
16100 rm -f "$ac_tmp/stdin"
16101 case $ac_file in
16102 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16103 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16104 esac \
16105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16109 # CONFIG_HEADER
16111 if test x"$ac_file" != x-; then
16113 $as_echo "/* $configure_input */" \
16114 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16115 } >"$ac_tmp/config.h" \
16116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16117 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16119 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16120 else
16121 rm -f "$ac_file"
16122 mv "$ac_tmp/config.h" "$ac_file" \
16123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16125 else
16126 $as_echo "/* $configure_input */" \
16127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16128 || as_fn_error $? "could not create -" "$LINENO" 5
16132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16133 $as_echo "$as_me: executing $ac_file commands" >&6;}
16135 esac
16138 case $ac_file$ac_mode in
16139 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16140 "binutils-support":C)
16141 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16142 mkdir -p $prefix
16143 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16145 chmod a+x ${prefix2}-ld
16147 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16148 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16149 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16150 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16151 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16152 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16153 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16155 "elf-compiler-support":C)
16156 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16157 mkdir -p $prefix
16158 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16160 chmod a+x ${prefix2}-gcc
16162 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16164 "host-compiler-wrapper-support":C)
16165 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16166 mkdir -p $prefix
16167 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16169 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16172 esac
16173 done # for ac_tag
16176 as_fn_exit 0
16177 _ACEOF
16178 ac_clean_files=$ac_clean_files_save
16180 test $ac_write_fail = 0 ||
16181 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16184 # configure is writing to config.log, and then calls config.status.
16185 # config.status does its own redirection, appending to config.log.
16186 # Unfortunately, on DOS this fails, as config.log is still kept open
16187 # by configure, so config.status won't be able to write to it; its
16188 # output is simply discarded. So we exec the FD to /dev/null,
16189 # effectively closing config.log, so it can be properly (re)opened and
16190 # appended to by config.status. When coming back to configure, we
16191 # need to make the FD available again.
16192 if test "$no_create" != yes; then
16193 ac_cs_success=:
16194 ac_config_status_args=
16195 test "$silent" = yes &&
16196 ac_config_status_args="$ac_config_status_args --quiet"
16197 exec 5>/dev/null
16198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16199 exec 5>>config.log
16200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16201 # would make configure fail if this is the last instruction.
16202 $ac_cs_success || as_fn_exit 1
16204 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16206 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16211 #XXX compatability...
16212 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16214 if test -n "$aros_shared_cflags" ; then
16215 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16216 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg