hpet.resource: Runtime detection of acpica.library
[AROS.git] / configure
bloba929bd220dcc5be32c2c7a145d510cdc2630b652
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_antapk
639 aros_android_level
640 gcc_default_float_abi
641 gcc_default_fpu
642 gcc_default_cpu_tune
643 gcc_default_cpu
644 aros_ios_sdk
645 aros_ios_version
646 aros_ios_platform
647 aros_enable_mmu
648 aros_nesting_supervisor
649 aros_palm_debug_hack
650 aros_serial_debug
651 aros_host_sdl_libs
652 aros_host_sdl_cflags
653 aros_host_x11_libdirs
654 aros_host_x11_includes
655 DO_VIDMODE_SUPPORT
656 DO_XSHM_SUPPORT
657 aros_default_wbdepth
658 aros_default_wbheight
659 aros_default_wbwidth
660 oss_library_target
661 pci_hidd_target
662 sdl_hidd_target
663 unixgfx_hidd_target
664 aros_cflags_format_security
665 aros_cflags_strict_overflow
666 aros_cflags_enum_compare
667 aros_cflags_array_bounds
668 aros_cflags_unused_but_set_variable
669 crosstools_cxx_target
670 crosstools_target
671 aros_target_strip_flags
672 aros_target_genmap
673 aros_debug_ldflags
674 aros_debug_aflags
675 aros_debug_cflags
676 aros_target_cflags
677 aros_kernel_ldflags
678 aros_kernel_objcflags
679 aros_kernel_includes
680 aros_kernel_cflags
681 aros_shared_ldflags
682 aros_shared_aflags
683 aros_shared_cflags
684 aros_config_ldflags
685 aros_config_aflags
686 aros_config_cflags
687 aros_arch_libs
688 aros_compiler_libs
689 aros_object_format
690 aros_shared_ld
691 aros_shared_default
692 aros_target_nm
693 aros_target_strip
694 aros_target_objcopy
695 aros_target_objdump
696 aros_target_cc_path
697 aros_target_cc_includes
698 aros_target_ld
699 aros_target_as
700 aros_target_cpp
701 aros_target_cxx
702 aros_target_cc
703 aros_plain_ar
704 aros_plain_nm
705 aros_target_ranlib
706 aros_target_ar
707 aros_target_suffix
708 aros_target_variant
709 aros_target_cpu
710 aros_target_family
711 aros_target_arch
712 aros_target_bootloader
713 aros_target_iconset
714 aros_target_guitheme
715 aros_tools_dir
716 aros_host_lib_suffix
717 aros_host_exe_suffix
718 aros_host_mkargs
719 aros_host_mkdep
720 aros_host_debug
721 aros_host_ldflags
722 gnu89_inline
723 aros_host_cxxflags
724 aros_host_cflags
725 aros_host_make
726 aros_host_cxx
727 aros_host_cc
728 aros_host_cpp
729 aros_host_cpu
730 aros_host_arch
731 aros_cc_pre
732 aros_amigaos_compliance
733 AROS_PORTSSRCDIR
734 AROS_CROSSTOOLSDIR
735 SRCDIR
736 AROS_BUILDDIR_UNIX
737 AROS_BUILDDIR
738 aros_target_toolchain
739 aros_flavour_uc
740 aros_flavour
741 aros_cpu
742 aros_arch
743 SDL_LIBS
744 SDL_CFLAGS
745 SDL_CONFIG
746 XMKMF
747 aros_cflags_iquote_end
748 aros_cflags_iquote
749 kernel_cflags_iquote_end
750 kernel_cflags_iquote
751 host_cflags_iquote_end
752 host_cflags_iquote
753 aros_target_nostdlib_ldflags
754 aros_target_detach_ldflags
755 aros_target_nix_ldflags
756 aros_target_nostartup_ldflags
757 aros_target_nostdinc_cflags
758 aros_kernel_rescomp
759 orig_target_objdump
760 orig_target_objcopy
761 orig_target_strip
762 orig_target_nm
763 orig_target_ranlib
764 orig_target_ar
765 orig_target_as
766 orig_target_ld
767 orig_target_cxx
768 orig_target_cc
769 orig_target_cpp
770 aros_kernel_objdump
771 aros_kernel_objcopy
772 aros_kernel_strip
773 aros_kernel_nm
774 aros_kernel_ranlib
775 aros_kernel_ar
776 aros_kernel_as
777 aros_kernel_ld
778 aros_kernel_cxx
779 aros_kernel_cc
780 aros_kernel_cpp
782 android_tool
783 CCACHE
784 DISTCC
785 LIBOBJS
786 EGREP
787 GREP
789 TEST
792 pkgpyexecdir
793 pyexecdir
794 pkgpythondir
795 pythondir
796 PYTHON_PLATFORM
797 PYTHON_EXEC_PREFIX
798 PYTHON_PREFIX
799 PYTHON_VERSION
800 PYTHON
801 PATCH
802 CHMOD
804 PPMTOILBM
805 PNGTOPNM
806 FLEX
807 BISON
810 UNIQ
811 SORT
812 TOUCH
813 MKDIR
814 ECHO
818 aros_host_strip
819 aros_host_ranlib
820 aros_host_ar
821 aros_host_automake
822 aros_host_autoheader
823 aros_host_autoconf
824 aros_host_aclocal
825 aros_host_ld
826 MMAKE
829 ac_ct_CC
830 CFLAGS
832 OBJEXT
833 EXEEXT
834 ac_ct_CXX
835 CPPFLAGS
836 LDFLAGS
837 CXXFLAGS
839 host_os
840 host_vendor
841 host_cpu
842 host
843 build_os
844 build_vendor
845 build_cpu
846 build
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_build_type
889 enable_debug
890 enable_distcc
891 enable_ccache
892 with_kernel_gcc_version
893 with_gcc_version
894 with_optimization
895 with_paranoia
896 enable_target_variant
897 with_xcode
898 with_sdk_version
899 with_sdk
900 with_ndk
901 with_ndk_version
902 with_apk_version
903 enable_amigaos_compliance
904 with_kernel_toolchain_prefix
905 with_elf_toolchain_prefix
906 with_aros_toolchain
907 enable_crosstools
908 with_aros_toolchain_install
909 enable_objc
910 with_cpu
911 with_fpu
912 with_float
913 with_portssources
914 with_bootloader
915 with_iconset
916 with_theme
917 enable_includes
918 with_resolution
919 with_serial_debug
920 enable_palm_debug_hack
921 enable_usb30_code
922 enable_nesting_supervisor
923 enable_mmu
924 enable_x11_hidd
925 with_x
926 enable_x11_shm
927 enable_x11_vidmode
928 enable_sdl_hidd
929 with_sdl_prefix
930 with_sdl_exec_prefix
931 enable_sdltest
932 enable_dbus
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CXXFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
944 CFLAGS
946 PYTHON
947 XMKMF'
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1009 case $ac_option in
1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *=) ac_optarg= ;;
1012 *) ac_optarg=yes ;;
1013 esac
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1019 ac_dashdash=yes ;;
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355 esac
1356 done
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 X features:
1546 --x-includes=DIR X include files are in DIR
1547 --x-libraries=DIR X library files are in DIR
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-build-type=TYPE
1564 Select the build type. Available types are:
1565 personal, nightly, snapshot, milestone, release. Do
1566 NOT use this option unless you know what you are
1567 doing! (default=personal)
1568 --enable-debug=list Enable different types of debug. Commas or
1569 whitespaces can be used to separate the items in the
1570 list. Available types of debug are: all, none,
1571 messages, stack, mungwall, modules, symbols. If no
1572 list is provided then "all" is assumed.
1573 (default=none)
1574 --enable-distcc Use distcc as a front end to the compiler
1575 (default=no).
1576 --enable-ccache Use ccache as a front end to the compiler
1577 (default=no).
1578 --enable-target-variant=NAME
1579 Enable a specific target variant(default=none)
1580 --enable-amigaos-compliance=VERSION
1581 Enforce userspace AmigaOS compliance to a specific
1582 KickStart version (default=none).
1583 --disable-crosstools Do not build cross-compiler toolchain
1584 --disable-objc Build without Objectve-C support
1585 --enable-includes=dir Alternative system include directory
1586 --enable-palm-debug-hack
1587 Enable palm debug output hack in palm native
1588 (default=no)
1589 --enable-usb30-code Enable usb3.0 code (default=no)
1590 --enable-nesting-supervisor
1591 Enable nesting supervisor support in unix
1592 (default=no)
1593 --disable-mmu Disable MMU support (default=enabled)
1594 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1595 --enable-x11-shm use X11 shared memory (default=auto)
1596 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1597 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1598 --disable-sdltest Do not try to compile and run a test SDL program
1599 --enable-dbus Enable DBUS support via dbus.library (default=no)
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-kernel-gcc-version=VERSION
1605 Use gcc-VERSION for building bootstrap
1606 --with-gcc-version=VERSION
1607 Use gcc-VERSION for building AROS
1608 --with-optimization=FLAGS
1609 Use optimization flags FLAGS (default=-O2).
1610 --with-paranoia=FLAGS CC flags to enable paranoia
1611 --with-xcode=PATH Specify XCode path for iOS targets
1612 (default=/Developer).
1613 --with-sdk-version=VERSION
1614 Use iOS SDK version VERSION (default=4.1).
1615 --with-sdk=PATH Specify Android SDK path
1616 (default=$default_android_sdk).
1617 --with-ndk=PATH Specify Android NDK path (default=none).
1618 --with-sdk-version=LEVEL
1619 Use Android SDK for API LEVEL (default=12).
1620 --with-ndk-version=LEVEL
1621 Use Android NDK for API LEVEL (default=9).
1622 --with-apk-version=(release|debug)
1623 Which version of AROSBootstrap.apk to compile.
1624 Release version needs key for signing, debug version
1625 will only run in emulator. (default=release)
1626 --with-kernel-toolchain-prefix=...
1627 Specify crosscompile toolchain prefix for kernel
1628 objects
1629 --with-elf-toolchain-prefix=...
1630 Specify crosscompile toolchain prefix to wrap for
1631 AROS objects
1632 --with-aros-toolchain=PREFIX
1633 Specify prebuilt AROS toolchain
1634 --with-aros-toolchain-install=DIR
1635 Where to install or search for cross tools binaries
1636 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1637 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1638 --with-float=<spec> Specify floating point ABI
1639 (default=$gcc_default_float_abi).
1640 --with-portssources=DIR Where to download sourcecode for external ports
1641 --with-bootloader=NAME Use a specific bootloader
1642 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1643 --with-theme=NAME Use a specific GUI Theme
1644 --with-resolution=XRESxYRESxDEPTH
1645 Default resolution of the initial WorkbenchScreen
1646 --with-serial-debug Enable serial debug output in native (default=no)
1647 --with-x use the X Window System
1648 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1649 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1651 Some influential environment variables:
1652 CXX C++ compiler command
1653 CXXFLAGS C++ compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 CPP C preprocessor
1662 PYTHON the Python interpreter
1663 XMKMF Path to xmkmf, Makefile generator for X Window System
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1668 Report bugs to the package provider.
1669 _ACEOF
1670 ac_status=$?
1673 if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678 continue
1679 ac_builddir=.
1681 case "$ac_dir" in
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 esac ;;
1691 esac
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1697 case $srcdir in
1698 .) # We are building in place.
1699 ac_srcdir=.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1706 *) # Relative name.
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1710 esac
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1716 echo &&
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1719 echo &&
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1721 else
1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1723 fi || ac_status=$?
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1725 done
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1730 cat <<\_ACEOF
1731 configure
1732 generated by GNU Autoconf 2.69
1734 Copyright (C) 2012 Free Software Foundation, Inc.
1735 This configure script is free software; the Free Software Foundation
1736 gives unlimited permission to copy, distribute and modify it.
1737 _ACEOF
1738 exit
1741 ## ------------------------ ##
1742 ## Autoconf initialization. ##
1743 ## ------------------------ ##
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.$ac_objext; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_compile
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } > conftest.i && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_cpp
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 test -x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_link
1904 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1907 # the include files in INCLUDES and setting the cache variable VAR
1908 # accordingly.
1909 ac_fn_c_check_header_mongrel ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if eval \${$3+:} false; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 else
1922 # Is the header compilable?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1924 $as_echo_n "checking $2 usability... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_header_compiler=yes
1932 else
1933 ac_header_compiler=no
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1937 $as_echo "$ac_header_compiler" >&6; }
1939 # Is the header present?
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1941 $as_echo_n "checking $2 presence... " >&6; }
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_cpp "$LINENO"; then :
1947 ac_header_preproc=yes
1948 else
1949 ac_header_preproc=no
1951 rm -f conftest.err conftest.i conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1953 $as_echo "$ac_header_preproc" >&6; }
1955 # So? What about this header?
1956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 yes:no: )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1959 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 no:yes:* )
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1965 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1967 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1969 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1971 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 esac
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 eval "$3=\$ac_header_compiler"
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_header_mongrel
1991 # ac_fn_c_try_run LINENO
1992 # ----------------------
1993 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1994 # that executables *can* be run.
1995 ac_fn_c_try_run ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { { ac_try="$ac_link"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_link") 2>&5
2006 ac_status=$?
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2009 { { case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_try") 2>&5
2016 ac_status=$?
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; }; }; then :
2019 ac_retval=0
2020 else
2021 $as_echo "$as_me: program exited with status $ac_status" >&5
2022 $as_echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2025 ac_retval=$ac_status
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_c_try_run
2033 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2034 # -------------------------------------------------------
2035 # Tests whether HEADER exists and can be compiled using the include files in
2036 # INCLUDES, setting the cache variable VAR accordingly.
2037 ac_fn_c_check_header_compile ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2048 #include <$2>
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 eval "$3=yes"
2052 else
2053 eval "$3=no"
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 } # ac_fn_c_check_header_compile
2064 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2065 # ----------------------------------------------------
2066 # Tries to find if the field MEMBER exists in type AGGR, after including
2067 # INCLUDES, setting cache variable VAR accordingly.
2068 ac_fn_c_check_member ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2072 $as_echo_n "checking for $2.$3... " >&6; }
2073 if eval \${$4+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static $2 ac_aggr;
2083 if (ac_aggr.$3)
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$4=yes"
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static $2 ac_aggr;
2099 if (sizeof ac_aggr.$3)
2100 return 0;
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$4=yes"
2107 else
2108 eval "$4=no"
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 eval ac_res=\$$4
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_c_check_member
2121 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122 # ---------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly.
2125 ac_fn_c_check_decl ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 #ifndef $as_decl_name
2142 #ifdef __cplusplus
2143 (void) $as_decl_use;
2144 #else
2145 (void) $as_decl_name;
2146 #endif
2147 #endif
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_decl
2167 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168 # -------------------------------------------
2169 # Tests whether TYPE exists after having included INCLUDES, setting cache
2170 # variable VAR accordingly.
2171 ac_fn_c_check_type ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 eval "$3=no"
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2184 main ()
2186 if (sizeof ($2))
2187 return 0;
2189 return 0;
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2197 main ()
2199 if (sizeof (($2)))
2200 return 0;
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2207 else
2208 eval "$3=yes"
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 } # ac_fn_c_check_type
2221 # ac_fn_c_check_func LINENO FUNC VAR
2222 # ----------------------------------
2223 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2224 ac_fn_c_check_func ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2236 #define $2 innocuous_$2
2238 /* System header to define __stub macros and hopefully few prototypes,
2239 which can conflict with char $2 (); below.
2240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2241 <limits.h> exists even on freestanding compilers. */
2243 #ifdef __STDC__
2244 # include <limits.h>
2245 #else
2246 # include <assert.h>
2247 #endif
2249 #undef $2
2251 /* Override any GCC internal prototype to avoid an error.
2252 Use char because int might match the return type of a GCC
2253 builtin and then its argument prototype would still apply. */
2254 #ifdef __cplusplus
2255 extern "C"
2256 #endif
2257 char $2 ();
2258 /* The GNU C library defines this for functions which it implements
2259 to always fail with ENOSYS. Some functions are actually named
2260 something starting with __ and the normal name is an alias. */
2261 #if defined __stub_$2 || defined __stub___$2
2262 choke me
2263 #endif
2266 main ()
2268 return $2 ();
2270 return 0;
2272 _ACEOF
2273 if ac_fn_c_try_link "$LINENO"; then :
2274 eval "$3=yes"
2275 else
2276 eval "$3=no"
2278 rm -f core conftest.err conftest.$ac_objext \
2279 conftest$ac_exeext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_func
2287 cat >config.log <<_ACEOF
2288 This file contains any messages produced by compilers while
2289 running configure, to aid debugging if configure makes a mistake.
2291 It was created by $as_me, which was
2292 generated by GNU Autoconf 2.69. Invocation command line was
2294 $ $0 $@
2296 _ACEOF
2297 exec 5>>config.log
2299 cat <<_ASUNAME
2300 ## --------- ##
2301 ## Platform. ##
2302 ## --------- ##
2304 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2310 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2313 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2314 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2315 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2317 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2318 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2319 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2321 _ASUNAME
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 $as_echo "PATH: $as_dir"
2329 done
2330 IFS=$as_save_IFS
2332 } >&5
2334 cat >&5 <<_ACEOF
2337 ## ----------- ##
2338 ## Core tests. ##
2339 ## ----------- ##
2341 _ACEOF
2344 # Keep a trace of the command line.
2345 # Strip out --no-create and --no-recursion so they do not pile up.
2346 # Strip out --silent because we don't want to record it for future runs.
2347 # Also quote any args containing shell meta-characters.
2348 # Make two passes to allow for proper duplicate-argument suppression.
2349 ac_configure_args=
2350 ac_configure_args0=
2351 ac_configure_args1=
2352 ac_must_keep_next=false
2353 for ac_pass in 1 2
2355 for ac_arg
2357 case $ac_arg in
2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360 | -silent | --silent | --silen | --sile | --sil)
2361 continue ;;
2362 *\'*)
2363 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364 esac
2365 case $ac_pass in
2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2368 as_fn_append ac_configure_args1 " '$ac_arg'"
2369 if test $ac_must_keep_next = true; then
2370 ac_must_keep_next=false # Got value, back to normal.
2371 else
2372 case $ac_arg in
2373 *=* | --config-cache | -C | -disable-* | --disable-* \
2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376 | -with-* | --with-* | -without-* | --without-* | --x)
2377 case "$ac_configure_args0 " in
2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379 esac
2381 -* ) ac_must_keep_next=true ;;
2382 esac
2384 as_fn_append ac_configure_args " '$ac_arg'"
2386 esac
2387 done
2388 done
2389 { ac_configure_args0=; unset ac_configure_args0;}
2390 { ac_configure_args1=; unset ac_configure_args1;}
2392 # When interrupted or exit'd, cleanup temporary files, and complete
2393 # config.log. We remove comments because anyway the quotes in there
2394 # would cause problems or look ugly.
2395 # WARNING: Use '\'' to represent an apostrophe within the trap.
2396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397 trap 'exit_status=$?
2398 # Save into config.log some information that might help in debugging.
2400 echo
2402 $as_echo "## ---------------- ##
2403 ## Cache variables. ##
2404 ## ---------------- ##"
2405 echo
2406 # The following way of writing the cache mishandles newlines in values,
2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409 eval ac_val=\$$ac_var
2410 case $ac_val in #(
2411 *${as_nl}*)
2412 case $ac_var in #(
2413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415 esac
2416 case $ac_var in #(
2417 _ | IFS | as_nl) ;; #(
2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419 *) { eval $ac_var=; unset $ac_var;} ;;
2420 esac ;;
2421 esac
2422 done
2423 (set) 2>&1 |
2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425 *${as_nl}ac_space=\ *)
2426 sed -n \
2427 "s/'\''/'\''\\\\'\'''\''/g;
2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429 ;; #(
2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 esac |
2434 sort
2436 echo
2438 $as_echo "## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##"
2441 echo
2442 for ac_var in $ac_subst_vars
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2452 if test -n "$ac_subst_files"; then
2453 $as_echo "## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##"
2456 echo
2457 for ac_var in $ac_subst_files
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2468 if test -s confdefs.h; then
2469 $as_echo "## ----------- ##
2470 ## confdefs.h. ##
2471 ## ----------- ##"
2472 echo
2473 cat confdefs.h
2474 echo
2476 test "$ac_signal" != 0 &&
2477 $as_echo "$as_me: caught signal $ac_signal"
2478 $as_echo "$as_me: exit $exit_status"
2479 } >&5
2480 rm -f core *.core core.conftest.* &&
2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482 exit $exit_status
2484 for ac_signal in 1 2 13 15; do
2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2486 done
2487 ac_signal=0
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2492 $as_echo "/* confdefs.h */" > confdefs.h
2494 # Predefined preprocessor variables.
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2498 _ACEOF
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2502 _ACEOF
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2506 _ACEOF
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2510 _ACEOF
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2518 _ACEOF
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2523 ac_site_file1=NONE
2524 ac_site_file2=NONE
2525 if test -n "$CONFIG_SITE"; then
2526 # We do not want a PATH search for config.site.
2527 case $CONFIG_SITE in #((
2528 -*) ac_site_file1=./$CONFIG_SITE;;
2529 */*) ac_site_file1=$CONFIG_SITE;;
2530 *) ac_site_file1=./$CONFIG_SITE;;
2531 esac
2532 elif test "x$prefix" != xNONE; then
2533 ac_site_file1=$prefix/share/config.site
2534 ac_site_file2=$prefix/etc/config.site
2535 else
2536 ac_site_file1=$ac_default_prefix/share/config.site
2537 ac_site_file2=$ac_default_prefix/etc/config.site
2539 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541 test "x$ac_site_file" = xNONE && continue
2542 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545 sed 's/^/| /' "$ac_site_file" >&5
2546 . "$ac_site_file" \
2547 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $? "failed to load site script $ac_site_file
2550 See \`config.log' for more details" "$LINENO" 5; }
2552 done
2554 if test -r "$cache_file"; then
2555 # Some versions of bash will fail to source /dev/null (special files
2556 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2557 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2559 $as_echo "$as_me: loading cache $cache_file" >&6;}
2560 case $cache_file in
2561 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562 *) . "./$cache_file";;
2563 esac
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2567 $as_echo "$as_me: creating cache $cache_file" >&6;}
2568 >$cache_file
2571 as_fn_append ac_header_list " stdlib.h"
2572 as_fn_append ac_header_list " unistd.h"
2573 as_fn_append ac_header_list " sys/param.h"
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w=`echo x $ac_old_val`
2596 ac_new_val_w=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted=:
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\$ac_old_val
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2610 fi;;
2611 esac
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2614 case $ac_new_val in
2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg=$ac_var=$ac_new_val ;;
2617 esac
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 esac
2623 done
2624 if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 ac_aux_dir=
2644 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2645 if test -f "$ac_dir/install-sh"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/install-sh -c"
2648 break
2649 elif test -f "$ac_dir/install.sh"; then
2650 ac_aux_dir=$ac_dir
2651 ac_install_sh="$ac_aux_dir/install.sh -c"
2652 break
2653 elif test -f "$ac_dir/shtool"; then
2654 ac_aux_dir=$ac_dir
2655 ac_install_sh="$ac_aux_dir/shtool install -c"
2656 break
2658 done
2659 if test -z "$ac_aux_dir"; then
2660 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2663 # These three variables are undocumented and unsupported,
2664 # and are intended to be withdrawn in a future Autoconf release.
2665 # They can cause serious problems if a builder's source tree is in a directory
2666 # whose full name contains unusual characters.
2667 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2668 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2669 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2673 # Check what host we are running on.
2674 # If a target is not suggested, we use this one.
2675 # Note that what we call a target, Autoconf calls a host.
2676 # Make sure we can run config.sub.
2677 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2678 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2681 $as_echo_n "checking build system type... " >&6; }
2682 if ${ac_cv_build+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 ac_build_alias=$build_alias
2686 test "x$ac_build_alias" = x &&
2687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2688 test "x$ac_build_alias" = x &&
2689 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2690 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2691 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2695 $as_echo "$ac_cv_build" >&6; }
2696 case $ac_cv_build in
2697 *-*-*) ;;
2698 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2699 esac
2700 build=$ac_cv_build
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_build
2703 shift
2704 build_cpu=$1
2705 build_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 build_os=$*
2710 IFS=$ac_save_IFS
2711 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2715 $as_echo_n "checking host system type... " >&6; }
2716 if ${ac_cv_host+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test "x$host_alias" = x; then
2720 ac_cv_host=$ac_cv_build
2721 else
2722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2728 $as_echo "$ac_cv_host" >&6; }
2729 case $ac_cv_host in
2730 *-*-*) ;;
2731 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2732 esac
2733 host=$ac_cv_host
2734 ac_save_IFS=$IFS; IFS='-'
2735 set x $ac_cv_host
2736 shift
2737 host_cpu=$1
2738 host_vendor=$2
2739 shift; shift
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2742 host_os=$*
2743 IFS=$ac_save_IFS
2744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 # The AROS target is slightly different to the normal GNU style
2749 # format. We don't have the middle part, and we reverse the order
2750 # of the $(CPU) and $(OS) bits.
2752 # Don't strip the version of the target yet, it might be
2753 # useful on some systems.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2756 $as_echo_n "checking for AROS style target... " >&6; }
2758 if test "$target" = "NONE" ; then
2759 target=$host_os-$host_cpu
2760 else
2761 if test "$target" = "" ; then
2762 target=$host_os-$host_cpu
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2766 $as_echo "$target" >&6; }
2768 if test "$host_os" = "mingw32" ; then
2769 PWDCMD="pwd -W"
2772 # Don't know where else to put this...
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2774 $as_echo_n "checking building AROS in... " >&6; }
2775 AROS_BUILDDIR=`${PWDCMD-pwd}`
2776 AROS_BUILDDIR_UNIX=${PWD}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2778 $as_echo "$AROS_BUILDDIR" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2781 $as_echo_n "checking AROS source in... " >&6; }
2782 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2783 SRCDIR=${srcpwd}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2785 $as_echo "$SRCDIR" >&6; }
2787 # Parse the target field into something useful.
2789 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2790 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2793 # Some debug output, to be removed again.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2795 $as_echo_n "checking for target system (debug output)... " >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2797 $as_echo "$target_os" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2799 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2801 $as_echo "$target_cpu" >&6; }
2803 aros_default_wbwidth=800
2804 aros_default_wbheight=600
2805 aros_default_wbdepth=4
2808 # The first step is to find the host binaries.
2809 # Check for a compiler.
2810 # Due to a bug in autoconf check for c++ compiler first.
2811 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2812 ac_ext=cpp
2813 ac_cpp='$CXXCPP $CPPFLAGS'
2814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2817 if test -z "$CXX"; then
2818 if test -n "$CCC"; then
2819 CXX=$CCC
2820 else
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CXX+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$CXX"; then
2832 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2847 IFS=$as_save_IFS
2851 CXX=$ac_cv_prog_CXX
2852 if test -n "$CXX"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2854 $as_echo "$CXX" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2861 test -n "$CXX" && break
2862 done
2864 if test -z "$CXX"; then
2865 ac_ct_CXX=$CXX
2866 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$ac_ct_CXX"; then
2876 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CXX="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2896 if test -n "$ac_ct_CXX"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2898 $as_echo "$ac_ct_CXX" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$ac_ct_CXX" && break
2906 done
2908 if test "x$ac_ct_CXX" = x; then
2909 CXX="g++"
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917 CXX=$ac_ct_CXX
2923 # Provide some information about the compiler.
2924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2925 set X $ac_compile
2926 ac_compiler=$2
2927 for ac_option in --version -v -V -qversion; do
2928 { { ac_try="$ac_compiler $ac_option >&5"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934 $as_echo "$ac_try_echo"; } >&5
2935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2936 ac_status=$?
2937 if test -s conftest.err; then
2938 sed '10a\
2939 ... rest of stderr output deleted ...
2940 10q' conftest.err >conftest.er1
2941 cat conftest.er1 >&5
2943 rm -f conftest.er1 conftest.err
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }
2946 done
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2952 main ()
2956 return 0;
2958 _ACEOF
2959 ac_clean_files_save=$ac_clean_files
2960 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2961 # Try to create an executable without -o first, disregard a.out.
2962 # It will help us diagnose broken compilers, and finding out an intuition
2963 # of exeext.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2965 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2966 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2968 # The possible output files:
2969 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2971 ac_rmfiles=
2972 for ac_file in $ac_files
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977 esac
2978 done
2979 rm -f $ac_rmfiles
2981 if { { ac_try="$ac_link_default"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987 $as_echo "$ac_try_echo"; } >&5
2988 (eval "$ac_link_default") 2>&5
2989 ac_status=$?
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }; then :
2992 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2993 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2994 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2995 # so that the user can short-circuit this test for compilers unknown to
2996 # Autoconf.
2997 for ac_file in $ac_files ''
2999 test -f "$ac_file" || continue
3000 case $ac_file in
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3003 [ab].out )
3004 # We found the default executable, but exeext='' is most
3005 # certainly right.
3006 break;;
3007 *.* )
3008 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3009 then :; else
3010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 # We set ac_cv_exeext here because the later test for it is not
3013 # safe: cross compilers may not add the suffix if given an `-o'
3014 # argument, so we may need to know it at that point already.
3015 # Even if this section looks crufty: it has the advantage of
3016 # actually working.
3017 break;;
3019 break;;
3020 esac
3021 done
3022 test "$ac_cv_exeext" = no && ac_cv_exeext=
3024 else
3025 ac_file=''
3027 if test -z "$ac_file"; then :
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error 77 "C++ compiler cannot create executables
3036 See \`config.log' for more details" "$LINENO" 5; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3042 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3044 $as_echo "$ac_file" >&6; }
3045 ac_exeext=$ac_cv_exeext
3047 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3048 ac_clean_files=$ac_clean_files_save
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3050 $as_echo_n "checking for suffix of executables... " >&6; }
3051 if { { ac_try="$ac_link"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; then :
3062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3064 # work properly (i.e., refer to `conftest.exe'), while it won't with
3065 # `rm'.
3066 for ac_file in conftest.exe conftest conftest.*; do
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 break;;
3072 * ) break;;
3073 esac
3074 done
3075 else
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details" "$LINENO" 5; }
3081 rm -f conftest conftest$ac_cv_exeext
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3083 $as_echo "$ac_cv_exeext" >&6; }
3085 rm -f conftest.$ac_ext
3086 EXEEXT=$ac_cv_exeext
3087 ac_exeext=$EXEEXT
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3090 #include <stdio.h>
3092 main ()
3094 FILE *f = fopen ("conftest.out", "w");
3095 return ferror (f) || fclose (f) != 0;
3098 return 0;
3100 _ACEOF
3101 ac_clean_files="$ac_clean_files conftest.out"
3102 # Check that the compiler produces executables we can run. If not, either
3103 # the compiler is broken, or we cross compile.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3105 $as_echo_n "checking whether we are cross compiling... " >&6; }
3106 if test "$cross_compiling" != yes; then
3107 { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }
3118 if { ac_try='./conftest$ac_cv_exeext'
3119 { { case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_try") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; }; then
3129 cross_compiling=no
3130 else
3131 if test "$cross_compiling" = maybe; then
3132 cross_compiling=yes
3133 else
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error $? "cannot run C++ compiled programs.
3137 If you meant to cross compile, use \`--host'.
3138 See \`config.log' for more details" "$LINENO" 5; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3143 $as_echo "$cross_compiling" >&6; }
3145 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3146 ac_clean_files=$ac_clean_files_save
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3148 $as_echo_n "checking for suffix of object files... " >&6; }
3149 if ${ac_cv_objext+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3156 main ()
3160 return 0;
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { { ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compile") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182 done
3183 else
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3195 $as_echo "$ac_cv_objext" >&6; }
3196 OBJEXT=$ac_cv_objext
3197 ac_objext=$OBJEXT
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3199 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3200 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3207 main ()
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3214 return 0;
3216 _ACEOF
3217 if ac_fn_cxx_try_compile "$LINENO"; then :
3218 ac_compiler_gnu=yes
3219 else
3220 ac_compiler_gnu=no
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3227 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3228 if test $ac_compiler_gnu = yes; then
3229 GXX=yes
3230 else
3231 GXX=
3233 ac_test_CXXFLAGS=${CXXFLAGS+set}
3234 ac_save_CXXFLAGS=$CXXFLAGS
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3236 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3237 if ${ac_cv_prog_cxx_g+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3241 ac_cxx_werror_flag=yes
3242 ac_cv_prog_cxx_g=no
3243 CXXFLAGS="-g"
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 if ac_fn_cxx_try_compile "$LINENO"; then :
3256 ac_cv_prog_cxx_g=yes
3257 else
3258 CXXFLAGS=""
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 if ac_fn_cxx_try_compile "$LINENO"; then :
3272 else
3273 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3274 CXXFLAGS="-g"
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 if ac_fn_cxx_try_compile "$LINENO"; then :
3287 ac_cv_prog_cxx_g=yes
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3297 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3298 if test "$ac_test_CXXFLAGS" = set; then
3299 CXXFLAGS=$ac_save_CXXFLAGS
3300 elif test $ac_cv_prog_cxx_g = yes; then
3301 if test "$GXX" = yes; then
3302 CXXFLAGS="-g -O2"
3303 else
3304 CXXFLAGS="-g"
3306 else
3307 if test "$GXX" = yes; then
3308 CXXFLAGS="-O2"
3309 else
3310 CXXFLAGS=
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3348 IFS=$as_save_IFS
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3363 if test -z "$ac_cv_prog_CC"; then
3364 ac_ct_CC=$CC
3365 # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_CC="gcc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3388 IFS=$as_save_IFS
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3401 if test "x$ac_ct_CC" = x; then
3402 CC=""
3403 else
3404 case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410 CC=$ac_ct_CC
3412 else
3413 CC="$ac_cv_prog_CC"
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC="${ac_tool_prefix}cc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3457 if test -z "$CC"; then
3458 # Extract the first word of "cc", so it can be a program name with args.
3459 set dummy cc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 ac_prog_rejected=no
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3477 ac_prog_rejected=yes
3478 continue
3480 ac_cv_prog_CC="cc"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3484 done
3485 done
3486 IFS=$as_save_IFS
3488 if test $ac_prog_rejected = yes; then
3489 # We found a bogon in the path, so make sure we never use it.
3490 set dummy $ac_cv_prog_CC
3491 shift
3492 if test $# != 0; then
3493 # We chose a different compiler from the bogus one.
3494 # However, it has the same basename, so the bogon will be chosen
3495 # first if we set CC to just the basename; use the full file name.
3496 shift
3497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 for ac_prog in cl.exe
3517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3538 done
3539 done
3540 IFS=$as_save_IFS
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3554 test -n "$CC" && break
3555 done
3557 if test -z "$CC"; then
3558 ac_ct_CC=$CC
3559 for ac_prog in cl.exe
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$ac_ct_CC"; then
3569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_CC="$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3584 IFS=$as_save_IFS
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 $as_echo "$ac_ct_CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$ac_ct_CC" && break
3599 done
3601 if test "x$ac_ct_CC" = x; then
3602 CC=""
3603 else
3604 case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610 CC=$ac_ct_CC
3617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details" "$LINENO" 5; }
3622 # Provide some information about the compiler.
3623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3624 set X $ac_compile
3625 ac_compiler=$2
3626 for ac_option in --version -v -V -qversion; do
3627 { { ac_try="$ac_compiler $ac_option >&5"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3635 ac_status=$?
3636 if test -s conftest.err; then
3637 sed '10a\
3638 ... rest of stderr output deleted ...
3639 10q' conftest.err >conftest.er1
3640 cat conftest.er1 >&5
3642 rm -f conftest.er1 conftest.err
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }
3645 done
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if ${ac_cv_c_compiler_gnu+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 main ()
3658 #ifndef __GNUC__
3659 choke me
3660 #endif
3663 return 0;
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_compiler_gnu=yes
3668 else
3669 ac_compiler_gnu=no
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if ${ac_cv_prog_cc_g+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706 else
3707 CFLAGS=""
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3712 main ()
3716 return 0;
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3721 else
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3755 else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if ${ac_cv_prog_cc_c89+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 struct stat;
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3781 return p[i];
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3814 main ()
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 return 0;
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 CC="$ac_save_CC $ac_arg"
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_c89=$ac_arg
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c89" in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3840 xno)
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3844 CC="$CC $ac_cv_prog_cc_c89"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 case $ac_cv_prog_cc_stdc in #(
3859 no) :
3860 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3861 *) :
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3863 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3864 if ${ac_cv_prog_cc_c99+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 ac_cv_prog_cc_c99=no
3868 ac_save_CC=$CC
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871 #include <stdarg.h>
3872 #include <stdbool.h>
3873 #include <stdlib.h>
3874 #include <wchar.h>
3875 #include <stdio.h>
3877 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3878 #define debug(...) fprintf (stderr, __VA_ARGS__)
3879 #define showlist(...) puts (#__VA_ARGS__)
3880 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3881 static void
3882 test_varargs_macros (void)
3884 int x = 1234;
3885 int y = 5678;
3886 debug ("Flag");
3887 debug ("X = %d\n", x);
3888 showlist (The first, second, and third items.);
3889 report (x>y, "x is %d but y is %d", x, y);
3892 // Check long long types.
3893 #define BIG64 18446744073709551615ull
3894 #define BIG32 4294967295ul
3895 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3896 #if !BIG_OK
3897 your preprocessor is broken;
3898 #endif
3899 #if BIG_OK
3900 #else
3901 your preprocessor is broken;
3902 #endif
3903 static long long int bignum = -9223372036854775807LL;
3904 static unsigned long long int ubignum = BIG64;
3906 struct incomplete_array
3908 int datasize;
3909 double data[];
3912 struct named_init {
3913 int number;
3914 const wchar_t *name;
3915 double average;
3918 typedef const char *ccp;
3920 static inline int
3921 test_restrict (ccp restrict text)
3923 // See if C++-style comments work.
3924 // Iterate through items via the restricted pointer.
3925 // Also check for declarations in for loops.
3926 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3927 continue;
3928 return 0;
3931 // Check varargs and va_copy.
3932 static void
3933 test_varargs (const char *format, ...)
3935 va_list args;
3936 va_start (args, format);
3937 va_list args_copy;
3938 va_copy (args_copy, args);
3940 const char *str;
3941 int number;
3942 float fnumber;
3944 while (*format)
3946 switch (*format++)
3948 case 's': // string
3949 str = va_arg (args_copy, const char *);
3950 break;
3951 case 'd': // int
3952 number = va_arg (args_copy, int);
3953 break;
3954 case 'f': // float
3955 fnumber = va_arg (args_copy, double);
3956 break;
3957 default:
3958 break;
3961 va_end (args_copy);
3962 va_end (args);
3966 main ()
3969 // Check bool.
3970 _Bool success = false;
3972 // Check restrict.
3973 if (test_restrict ("String literal") == 0)
3974 success = true;
3975 char *restrict newvar = "Another string";
3977 // Check varargs.
3978 test_varargs ("s, d' f .", "string", 65, 34.234);
3979 test_varargs_macros ();
3981 // Check flexible array members.
3982 struct incomplete_array *ia =
3983 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3984 ia->datasize = 10;
3985 for (int i = 0; i < ia->datasize; ++i)
3986 ia->data[i] = i * 1.234;
3988 // Check named initializers.
3989 struct named_init ni = {
3990 .number = 34,
3991 .name = L"Test wide string",
3992 .average = 543.34343,
3995 ni.number = 58;
3997 int dynamic_array[ni.number];
3998 dynamic_array[ni.number - 1] = 543;
4000 // work around unused variable warnings
4001 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4002 || dynamic_array[ni.number - 1] != 543);
4005 return 0;
4007 _ACEOF
4008 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4010 CC="$ac_save_CC $ac_arg"
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_cv_prog_cc_c99=$ac_arg
4014 rm -f core conftest.err conftest.$ac_objext
4015 test "x$ac_cv_prog_cc_c99" != "xno" && break
4016 done
4017 rm -f conftest.$ac_ext
4018 CC=$ac_save_CC
4021 # AC_CACHE_VAL
4022 case "x$ac_cv_prog_cc_c99" in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025 $as_echo "none needed" >&6; } ;;
4026 xno)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028 $as_echo "unsupported" >&6; } ;;
4030 CC="$CC $ac_cv_prog_cc_c99"
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4032 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4033 esac
4034 if test "x$ac_cv_prog_cc_c99" != xno; then :
4035 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4038 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4039 if ${ac_cv_prog_cc_c89+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_cv_prog_cc_c89=no
4043 ac_save_CC=$CC
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <stdarg.h>
4047 #include <stdio.h>
4048 struct stat;
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4053 char **p;
4054 int i;
4056 return p[i];
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4060 char *s;
4061 va_list v;
4062 va_start (v,p);
4063 s = g (p, va_arg (v,int));
4064 va_end (v);
4065 return s;
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069 function prototypes and stuff, but not '\xHH' hex character constants.
4070 These don't provoke an error unfortunately, instead are silently treated
4071 as 'x'. The following induces an error, until -std is added to get
4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073 array size at least. It's necessary to write '\x00'==0 to get something
4074 that's true only with -std. */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078 inside strings and character constants. */
4079 #define FOO(x) 'x'
4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4082 int test (int i, double x);
4083 struct s1 {int (*f) (int a);};
4084 struct s2 {int (*f) (double a);};
4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086 int argc;
4087 char **argv;
4089 main ()
4091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4093 return 0;
4095 _ACEOF
4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_c89=$ac_arg
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c89" in
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4115 xno)
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4122 esac
4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
4124 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4125 else
4126 ac_cv_prog_cc_stdc=no
4131 esac
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4133 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4134 if ${ac_cv_prog_cc_stdc+:} false; then :
4135 $as_echo_n "(cached) " >&6
4138 case $ac_cv_prog_cc_stdc in #(
4139 no) :
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141 $as_echo "unsupported" >&6; } ;; #(
4142 '') :
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;; #(
4145 *) :
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4147 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4148 esac
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4159 CPP=
4161 if test -z "$CPP"; then
4162 if ${ac_cv_prog_CPP+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 # Double quotes because CPP needs to be expanded
4166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4168 ac_preproc_ok=false
4169 for ac_c_preproc_warn_flag in '' yes
4171 # Use a header file that comes with gcc, so configuring glibc
4172 # with a fresh cross-compiler works.
4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174 # <limits.h> exists even on freestanding compilers.
4175 # On the NeXT, cc -E runs the code through the compiler's parser,
4176 # not just through cpp. "Syntax error" is here to catch this case.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184 Syntax error
4185 _ACEOF
4186 if ac_fn_c_try_cpp "$LINENO"; then :
4188 else
4189 # Broken: fails on valid input.
4190 continue
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4194 # OK, works on sane cases. Now check whether nonexistent headers
4195 # can be detected and how.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if ac_fn_c_try_cpp "$LINENO"; then :
4201 # Broken: success on invalid input.
4202 continue
4203 else
4204 # Passes both tests.
4205 ac_preproc_ok=:
4206 break
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.i conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4214 break
4217 done
4218 ac_cv_prog_CPP=$CPP
4221 CPP=$ac_cv_prog_CPP
4222 else
4223 ac_cv_prog_CPP=$CPP
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4226 $as_echo "$CPP" >&6; }
4227 ac_preproc_ok=false
4228 for ac_c_preproc_warn_flag in '' yes
4230 # Use a header file that comes with gcc, so configuring glibc
4231 # with a fresh cross-compiler works.
4232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233 # <limits.h> exists even on freestanding compilers.
4234 # On the NeXT, cc -E runs the code through the compiler's parser,
4235 # not just through cpp. "Syntax error" is here to catch this case.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243 Syntax error
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4247 else
4248 # Broken: fails on valid input.
4249 continue
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <ac_nonexistent.h>
4258 _ACEOF
4259 if ac_fn_c_try_cpp "$LINENO"; then :
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 # Passes both tests.
4264 ac_preproc_ok=:
4265 break
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4269 done
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4274 else
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4278 See \`config.log' for more details" "$LINENO" 5; }
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 # Check for a compatible awk
4289 for ac_prog in gawk nawk
4291 # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if ${ac_cv_prog_AWK+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$AWK"; then
4299 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_AWK="$ac_prog"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4314 IFS=$as_save_IFS
4318 AWK=$ac_cv_prog_AWK
4319 if test -n "$AWK"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4321 $as_echo "$AWK" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 test -n "$AWK" && break
4329 done
4331 if test "$AWK" = ""; then
4332 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4334 # Extract the first word of "mmake", so it can be a program name with args.
4335 set dummy mmake; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_MMAKE+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$MMAKE"; then
4342 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_MMAKE="mmake "
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 MMAKE=$ac_cv_prog_MMAKE
4362 if test -n "$MMAKE"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4364 $as_echo "$MMAKE" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4372 # Perform some default variable assignments. Note all of these will be
4373 # Regenerated from the script, so there is no need to cache them.
4375 aros_host_cpp="$CPP"
4376 aros_host_cc="$CC"
4377 aros_host_cxx="$CXX"
4378 if test "$GCC" = "yes"; then
4379 aros_gcc_ld=`$CC -print-prog-name=ld`
4380 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4381 set dummy `basename $aros_gcc_ld`; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_path_aros_host_ld+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 case $aros_host_ld in
4388 [\\/]* | ?:[\\/]*)
4389 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in `dirname $aros_gcc_ld`
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4408 esac
4410 aros_host_ld=$ac_cv_path_aros_host_ld
4411 if test -n "$aros_host_ld"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4413 $as_echo "$aros_host_ld" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4421 if test "$aros_host_ld" = ""; then
4422 # Extract the first word of "ld", so it can be a program name with args.
4423 set dummy ld; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_path_aros_host_ld+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 case $aros_host_ld in
4430 [\\/]* | ?:[\\/]*)
4431 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4447 IFS=$as_save_IFS
4450 esac
4452 aros_host_ld=$ac_cv_path_aros_host_ld
4453 if test -n "$aros_host_ld"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4455 $as_echo "$aros_host_ld" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4463 if test "$aros_host_ld" = ""; then
4464 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4466 aros_host_make="make"
4467 aros_host_cflags="$CFLAGS"
4468 aros_host_cxxflags="$CXXFLAGS"
4469 aros_host_ldflags="$LDFLAGS"
4470 aros_host_debug="-g -O0"
4471 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4472 aros_host_mkargs="--no-print-directory"
4473 aros_host_exe_suffix="$EXEEXT"
4474 aros_host_lib_suffix=""
4476 # Ignore all compliance, AROS ROMs = 0
4477 # KickStart v1.0 = 30
4478 # KickStart v1.3 = 34
4479 # KickStart v2.0 = 37
4480 # KickStart v3.0 = 39
4481 # KickStart v3.1 = 40
4482 # AmigaOS v3.5 = 44
4483 aros_amigaos_compliance=0
4485 for ac_prog in aclocal aclocal19 aclocal-1.9
4487 # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -n "$aros_host_aclocal"; then
4495 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_aros_host_aclocal="$ac_prog"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4508 done
4509 done
4510 IFS=$as_save_IFS
4514 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4515 if test -n "$aros_host_aclocal"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4517 $as_echo "$aros_host_aclocal" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4524 test -n "$aros_host_aclocal" && break
4525 done
4527 for ac_prog in autoconf autoconf259 autoconf253
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$aros_host_autoconf"; then
4537 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_aros_host_autoconf="$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4556 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4557 if test -n "$aros_host_autoconf"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4559 $as_echo "$aros_host_autoconf" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4566 test -n "$aros_host_autoconf" && break
4567 done
4569 for ac_prog in autoheader autoheader259 autoheader253
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$aros_host_autoheader"; then
4579 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_aros_host_autoheader="$ac_prog"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4592 done
4593 done
4594 IFS=$as_save_IFS
4598 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4599 if test -n "$aros_host_autoheader"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4601 $as_echo "$aros_host_autoheader" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4608 test -n "$aros_host_autoheader" && break
4609 done
4611 for ac_prog in automake automake19 automake-1.9
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_aros_host_automake+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$aros_host_automake"; then
4621 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_aros_host_automake="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 aros_host_automake=$ac_cv_prog_aros_host_automake
4641 if test -n "$aros_host_automake"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4643 $as_echo "$aros_host_automake" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$aros_host_automake" && break
4651 done
4654 if test "$aros_host_aclocal" = ""; then
4655 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4657 if test "$aros_host_automake" = ""; then
4658 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4661 case "$aros_host_cc" in
4662 *gcc*)
4663 aros_host_cc_pipe="-pipe"
4665 icc)
4666 aros_host_cc_pipe=""
4669 aros_host_cc_pipe=""
4671 esac
4673 aros_kernel_cc_includes=""
4674 aros_target_cc_includes=""
4675 host_cc_elf=yes
4677 # ----------------------------------------------------------------------------------------
4678 # Host-specific defaults
4680 # This is the main host configuration section. It is where the host
4681 # can change the values of any variables it needs to change. We do
4682 # not look at anything that compiles to the target yet, we'll get
4683 # to that later.
4685 case "$host_os" in
4686 aros*)
4687 aros_host_arch="aros"
4688 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4689 case "$host_cpu" in
4690 *i?86*)
4691 aros_host_cpu="i386"
4693 *x86_64*)
4694 aros_host_cpu="x86_64"
4696 *powerpc*)
4697 aros_host_cpu="ppc"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4701 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4702 aros_host_cpu="$host_cpu"
4704 esac
4707 linux*)
4708 aros_host_arch="linux"
4709 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4710 android_build_os="linux-x86"
4711 android_tool="android"
4712 default_android_sdk="/opt/android-sdk-linux_x86"
4713 case "$host_cpu" in
4714 *i?86*)
4715 aros_host_cpu="i386"
4717 *x86_64*)
4718 aros_host_cpu="x86_64"
4720 *m68k*)
4721 aros_host_cpu="m68k"
4723 *powerpc*)
4724 aros_host_cpu="ppc"
4726 *arm*)
4727 aros_host_cpu="arm"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4731 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4732 aros_host_cpu="$host_cpu"
4734 esac
4737 freebsd*)
4738 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4739 aros_host_make="gmake"
4740 aros_host_arch="freebsd"
4741 aros_host_cpu="i386"
4743 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4745 case $host_os in
4746 freebsd[234]*)
4747 aros_object_format="elf_i386"
4751 aros_object_format="elf_i386_fbsd"
4753 esac
4757 darwin*)
4758 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4759 aros_host_arch="darwin"
4760 host_cc_elf=no
4761 android_build_os="darwin-x86"
4762 android_tool="android"
4763 default_android_sdk="/android-sdk-mac_x86"
4764 case "$host_cpu" in
4765 *i?86*)
4766 aros_host_cpu="i386"
4768 *x86_64*)
4769 aros_host_cpu="x86_64"
4771 *powerpc*)
4772 aros_host_cpu="ppc"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4776 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4777 aros_host_cpu="$host_cpu"
4779 esac
4781 aros_host_ldflags="$aros_host_ldflags -liconv"
4785 dragonfly*)
4786 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4787 aros_host_make="gmake"
4788 aros_host_arch="dragonfly"
4789 case $host_cpu in
4790 *i?86*)
4791 aros_host_cpu="i386"
4793 *amd64*)
4794 aros_host_cpu="x86_64"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4798 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4799 aros_host_cpu="$host_cpu"
4801 esac
4804 netbsd*)
4805 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4806 aros_host_make="gmake"
4807 aros_host_arch="netbsd"
4808 case "$host_cpu" in
4809 *i?86*)
4810 aros_host_cpu="i386"
4812 *m68k*)
4813 aros_host_cpu="m68k"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4817 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4818 aros_host_cpu="$host_cpu"
4820 esac
4821 aros_host_lib_suffix=".0.0"
4824 openbsd*)
4825 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4826 aros_host_make="gmake"
4827 aros_host_arch="openbsd"
4828 case "$host_cpu" in
4829 *i?86*)
4830 aros_host_cpu="i386"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4834 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4835 aros_host_cpu="$host_cpu"
4837 esac
4840 solaris*)
4841 aros_host_arch="solaris"
4842 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4843 case "$host_cpu" in
4844 *i?86*)
4845 aros_host_cpu="i386"
4847 *sparc*)
4848 aros_host_cpu="sparc"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 morphos*)
4859 aros_host_arch="morphos"
4860 aros_host_cpu="ppc"
4861 host_cc_elf=no
4864 amiga*)
4865 aros_host_arch="amiga"
4866 host_cc_elf=no
4867 SORT="/gg/bin/sort"
4868 TEST="/gg/bin/test"
4869 UNIQ="/gg/bin/uniq"
4870 FOR="for"
4871 TOUCH="/gg/bin/touch"
4872 case "$host_cpu" in
4873 *m68k*)
4874 aros_host_cpu="m68k"
4876 *powerpc*)
4877 aros_host_cpu="ppc"
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 cygwin*)
4888 aros_host_arch="cygwin"
4889 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4890 host_cc_elf=no
4891 android_build_os="windows"
4892 android_tool="android.bat"
4893 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4895 case "$host_cpu" in
4896 *i?86*)
4897 aros_host_cpu="i386"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4901 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4902 aros_host_cpu="$host_cpu"
4904 esac
4907 mingw32*)
4908 aros_host_arch="mingw32"
4909 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4910 host_cc_elf=no
4911 android_build_os="windows"
4912 android_tool="android.bat"
4913 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4915 case "$host_cpu" in
4916 *i?86*)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4919 $as_echo_n "checking for Windows native gcc target... " >&6; }
4920 host_cpu=`gcc -dumpmachine`
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4922 $as_echo "$host_cpu" >&6; }
4925 esac
4927 case "$host_cpu" in
4928 *i?86*)
4929 aros_host_cpu="i386"
4932 mingw32*)
4933 aros_host_cpu="i386"
4936 *x86_64*)
4937 aros_host_cpu="x86_64"
4938 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4943 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4944 aros_host_cpu="$host_cpu"
4946 esac
4949 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4951 esac
4953 # Extract the first word of "ar", so it can be a program name with args.
4954 set dummy ar; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_prog_aros_host_ar+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$aros_host_ar"; then
4961 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_aros_host_ar="ar cr"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 aros_host_ar=$ac_cv_prog_aros_host_ar
4981 if test -n "$aros_host_ar"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4983 $as_echo "$aros_host_ar" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 if test "$aros_host_ar" = ""; then
4991 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4993 # Extract the first word of "ranlib", so it can be a program name with args.
4994 set dummy ranlib; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$aros_host_ranlib"; then
5001 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_aros_host_ranlib="ranlib "
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5014 done
5015 done
5016 IFS=$as_save_IFS
5020 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5021 if test -n "$aros_host_ranlib"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5023 $as_echo "$aros_host_ranlib" >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 if test "$aros_host_ranlib" = ""; then
5031 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5033 # Extract the first word of "strip", so it can be a program name with args.
5034 set dummy strip; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_aros_host_strip+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$aros_host_strip"; then
5041 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_aros_host_strip="strip "
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 aros_host_strip=$ac_cv_prog_aros_host_strip
5061 if test -n "$aros_host_strip"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5063 $as_echo "$aros_host_strip" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 if test "$aros_host_strip" = ""; then
5071 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5074 # Extract the first word of "rm", so it can be a program name with args.
5075 set dummy rm; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_RM+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$RM"; then
5082 ac_cv_prog_RM="$RM" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_RM="rm -rf"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 RM=$ac_cv_prog_RM
5102 if test -n "$RM"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5104 $as_echo "$RM" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 if test "$RM" = ""; then
5112 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5114 # Extract the first word of "cp", so it can be a program name with args.
5115 set dummy cp; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_CP+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$CP"; then
5122 ac_cv_prog_CP="$CP" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_CP="cp "
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 CP=$ac_cv_prog_CP
5142 if test -n "$CP"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5144 $as_echo "$CP" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5151 if test "$CP" = ""; then
5152 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5154 # Extract the first word of "mv", so it can be a program name with args.
5155 set dummy mv; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_MV+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$MV"; then
5162 ac_cv_prog_MV="$MV" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_MV="mv "
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 MV=$ac_cv_prog_MV
5182 if test -n "$MV"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5184 $as_echo "$MV" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 if test "$MV" = ""; then
5192 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5194 # Extract the first word of "echo", so it can be a program name with args.
5195 set dummy echo; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_ECHO+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$ECHO"; then
5202 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ECHO="echo "
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5215 done
5216 done
5217 IFS=$as_save_IFS
5221 ECHO=$ac_cv_prog_ECHO
5222 if test -n "$ECHO"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5224 $as_echo "$ECHO" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5231 if test "$ECHO" = ""; then
5232 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5234 # Extract the first word of "mkdir", so it can be a program name with args.
5235 set dummy mkdir; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_MKDIR+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$MKDIR"; then
5242 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_MKDIR="mkdir -p"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5255 done
5256 done
5257 IFS=$as_save_IFS
5261 MKDIR=$ac_cv_prog_MKDIR
5262 if test -n "$MKDIR"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5264 $as_echo "$MKDIR" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 if test "$MKDIR" = ""; then
5272 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5274 # Extract the first word of "touch", so it can be a program name with args.
5275 set dummy touch; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_TOUCH+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$TOUCH"; then
5282 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_TOUCH="touch "
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 TOUCH=$ac_cv_prog_TOUCH
5302 if test -n "$TOUCH"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5304 $as_echo "$TOUCH" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5311 if test "$TOUCH" = ""; then
5312 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5314 # Extract the first word of "sort", so it can be a program name with args.
5315 set dummy sort; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_SORT+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$SORT"; then
5322 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_SORT="sort "
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5341 SORT=$ac_cv_prog_SORT
5342 if test -n "$SORT"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5344 $as_echo "$SORT" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5351 if test "$SORT" = ""; then
5352 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5354 # Extract the first word of "uniq", so it can be a program name with args.
5355 set dummy uniq; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_UNIQ+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$UNIQ"; then
5362 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_UNIQ="uniq "
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 UNIQ=$ac_cv_prog_UNIQ
5382 if test -n "$UNIQ"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5384 $as_echo "$UNIQ" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5391 if test "$UNIQ" = ""; then
5392 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5394 # Extract the first word of "true", so it can be a program name with args.
5395 set dummy true; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_NOP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$NOP"; then
5402 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_NOP="true "
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 NOP=$ac_cv_prog_NOP
5422 if test -n "$NOP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5424 $as_echo "$NOP" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 if test "$NOP" = ""; then
5432 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5434 # Extract the first word of "cat", so it can be a program name with args.
5435 set dummy cat; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_CAT+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$CAT"; then
5442 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_CAT="cat "
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5457 IFS=$as_save_IFS
5461 CAT=$ac_cv_prog_CAT
5462 if test -n "$CAT"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5464 $as_echo "$CAT" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5471 if test "$CAT" = ""; then
5472 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5474 # Extract the first word of "bison", so it can be a program name with args.
5475 set dummy bison; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_BISON+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$BISON"; then
5482 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_BISON="bison "
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 done
5497 IFS=$as_save_IFS
5501 BISON=$ac_cv_prog_BISON
5502 if test -n "$BISON"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5504 $as_echo "$BISON" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 if test "$BISON" = ""; then
5512 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5514 # Extract the first word of "flex", so it can be a program name with args.
5515 set dummy flex; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_FLEX+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$FLEX"; then
5522 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_FLEX="flex "
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5535 done
5536 done
5537 IFS=$as_save_IFS
5541 FLEX=$ac_cv_prog_FLEX
5542 if test -n "$FLEX"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5544 $as_echo "$FLEX" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5551 if test "$FLEX" = ""; then
5552 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5554 # Extract the first word of "pngtopnm", so it can be a program name with args.
5555 set dummy pngtopnm; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$PNGTOPNM"; then
5562 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_PNGTOPNM="pngtopnm "
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5582 if test -n "$PNGTOPNM"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5584 $as_echo "$PNGTOPNM" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5591 if test "$PNGTOPNM" = ""; then
5592 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5594 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5595 set dummy ppmtoilbm; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$PPMTOILBM"; then
5602 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5617 IFS=$as_save_IFS
5621 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5622 if test -n "$PPMTOILBM"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5624 $as_echo "$PPMTOILBM" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5631 if test "$PPMTOILBM" = ""; then
5632 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5634 # Extract the first word of "sed", so it can be a program name with args.
5635 set dummy sed; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_SED+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$SED"; then
5642 ac_cv_prog_SED="$SED" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_SED="sed "
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5657 IFS=$as_save_IFS
5661 SED=$ac_cv_prog_SED
5662 if test -n "$SED"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5664 $as_echo "$SED" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5671 if test "$SED" = ""; then
5672 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5674 # Extract the first word of "chmod", so it can be a program name with args.
5675 set dummy chmod; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_CHMOD+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$CHMOD"; then
5682 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_CHMOD="chmod "
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5701 CHMOD=$ac_cv_prog_CHMOD
5702 if test -n "$CHMOD"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5704 $as_echo "$CHMOD" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5711 if test "$CHMOD" = ""; then
5712 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5714 # Extract the first word of "patch", so it can be a program name with args.
5715 set dummy patch; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_PATCH+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$PATCH"; then
5722 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_PATCH="patch "
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5735 done
5736 done
5737 IFS=$as_save_IFS
5741 PATCH=$ac_cv_prog_PATCH
5742 if test -n "$PATCH"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5744 $as_echo "$PATCH" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5751 if test "$PATCH" = ""; then
5752 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5761 if test -n "$PYTHON"; then
5762 # If the user set $PYTHON, use it and don't search something else.
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5764 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5765 prog="import sys
5766 # split strings by '.' and convert to numeric. Append some zeros
5767 # because we need at least 4 digits for the hex conversion.
5768 # map returns an iterator in Python 3.0 and a list in 2.x
5769 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5770 minverhex = 0
5771 # xrange is not present in Python 3.0 and range returns an iterator
5772 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5773 sys.exit(sys.hexversion < minverhex)"
5774 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5775 ($PYTHON -c "$prog") >&5 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; then :
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780 $as_echo "yes" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5786 am_display_PYTHON=$PYTHON
5787 else
5788 # Otherwise, try each interpreter until we find one that satisfies
5789 # VERSION.
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5791 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5792 if ${am_cv_pathless_PYTHON+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5796 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
5797 test "$am_cv_pathless_PYTHON" = none && break
5798 prog="import sys
5799 # split strings by '.' and convert to numeric. Append some zeros
5800 # because we need at least 4 digits for the hex conversion.
5801 # map returns an iterator in Python 3.0 and a list in 2.x
5802 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5803 minverhex = 0
5804 # xrange is not present in Python 3.0 and range returns an iterator
5805 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5806 sys.exit(sys.hexversion < minverhex)"
5807 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5808 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then :
5812 break
5814 done
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5817 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5818 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5819 if test "$am_cv_pathless_PYTHON" = none; then
5820 PYTHON=:
5821 else
5822 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5823 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_path_PYTHON+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 case $PYTHON in
5830 [\\/]* | ?:[\\/]*)
5831 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5845 done
5846 done
5847 IFS=$as_save_IFS
5850 esac
5852 PYTHON=$ac_cv_path_PYTHON
5853 if test -n "$PYTHON"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5855 $as_echo "$PYTHON" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5863 am_display_PYTHON=$am_cv_pathless_PYTHON
5867 if test "$PYTHON" = :; then
5868 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5869 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5873 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5874 if ${am_cv_python_version+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5880 $as_echo "$am_cv_python_version" >&6; }
5881 PYTHON_VERSION=$am_cv_python_version
5885 PYTHON_PREFIX='${prefix}'
5887 PYTHON_EXEC_PREFIX='${exec_prefix}'
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5892 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5893 if ${am_cv_python_platform+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5899 $as_echo "$am_cv_python_platform" >&6; }
5900 PYTHON_PLATFORM=$am_cv_python_platform
5903 # Just factor out some code duplication.
5904 am_python_setup_sysconfig="\
5905 import sys
5906 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5907 # with python 3.x. See automake bug#10227.
5908 try:
5909 import sysconfig
5910 except ImportError:
5911 can_use_sysconfig = 0
5912 else:
5913 can_use_sysconfig = 1
5914 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5915 # <https://github.com/pypa/virtualenv/issues/118>
5916 try:
5917 from platform import python_implementation
5918 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5919 can_use_sysconfig = 0
5920 except ImportError:
5921 pass"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5925 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5926 if ${am_cv_python_pythondir+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test "x$prefix" = xNONE
5930 then
5931 am_py_prefix=$ac_default_prefix
5932 else
5933 am_py_prefix=$prefix
5935 am_cv_python_pythondir=`$PYTHON -c "
5936 $am_python_setup_sysconfig
5937 if can_use_sysconfig:
5938 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5939 else:
5940 from distutils import sysconfig
5941 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5942 sys.stdout.write(sitedir)"`
5943 case $am_cv_python_pythondir in
5944 $am_py_prefix*)
5945 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5946 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5949 case $am_py_prefix in
5950 /usr|/System*) ;;
5952 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5954 esac
5956 esac
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5960 $as_echo "$am_cv_python_pythondir" >&6; }
5961 pythondir=$am_cv_python_pythondir
5965 pkgpythondir=\${pythondir}/$PACKAGE
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5969 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5970 if ${am_cv_python_pyexecdir+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 if test "x$exec_prefix" = xNONE
5974 then
5975 am_py_exec_prefix=$am_py_prefix
5976 else
5977 am_py_exec_prefix=$exec_prefix
5979 am_cv_python_pyexecdir=`$PYTHON -c "
5980 $am_python_setup_sysconfig
5981 if can_use_sysconfig:
5982 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5983 else:
5984 from distutils import sysconfig
5985 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5986 sys.stdout.write(sitedir)"`
5987 case $am_cv_python_pyexecdir in
5988 $am_py_exec_prefix*)
5989 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5990 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5993 case $am_py_exec_prefix in
5994 /usr|/System*) ;;
5996 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5998 esac
6000 esac
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6004 $as_echo "$am_cv_python_pyexecdir" >&6; }
6005 pyexecdir=$am_cv_python_pyexecdir
6009 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6019 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6020 if ${ac_cv_lib_png_png_read_png+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 ac_check_lib_save_LIBS=$LIBS
6024 LIBS="-lpng $LIBS"
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6028 /* Override any GCC internal prototype to avoid an error.
6029 Use char because int might match the return type of a GCC
6030 builtin and then its argument prototype would still apply. */
6031 #ifdef __cplusplus
6032 extern "C"
6033 #endif
6034 char png_read_png ();
6036 main ()
6038 return png_read_png ();
6040 return 0;
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 ac_cv_lib_png_png_read_png=yes
6045 else
6046 ac_cv_lib_png_png_read_png=no
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 LIBS=$ac_check_lib_save_LIBS
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6053 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6054 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6055 cat >>confdefs.h <<_ACEOF
6056 #define HAVE_LIBPNG 1
6057 _ACEOF
6059 LIBS="-lpng $LIBS"
6063 if test "$ac_cv_lib_png_png_read_png" = ""; then
6064 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6067 FOR=for
6069 IF=if
6071 TEST=test
6073 CMP=cmp
6077 # Check for some includes for the X11 HIDD and the kernel
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6081 if ${ac_cv_path_GREP+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -z "$GREP"; then
6085 ac_path_GREP_found=false
6086 # Loop through the user's path and test for each of PROGNAME-LIST
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_prog in grep ggrep; do
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6095 as_fn_executable_p "$ac_path_GREP" || continue
6096 # Check for GNU ac_path_GREP and select it if it is found.
6097 # Check for GNU $ac_path_GREP
6098 case `"$ac_path_GREP" --version 2>&1` in
6099 *GNU*)
6100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6102 ac_count=0
6103 $as_echo_n 0123456789 >"conftest.in"
6104 while :
6106 cat "conftest.in" "conftest.in" >"conftest.tmp"
6107 mv "conftest.tmp" "conftest.in"
6108 cp "conftest.in" "conftest.nl"
6109 $as_echo 'GREP' >> "conftest.nl"
6110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6112 as_fn_arith $ac_count + 1 && ac_count=$as_val
6113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6114 # Best one so far, save it but keep looking for a better one
6115 ac_cv_path_GREP="$ac_path_GREP"
6116 ac_path_GREP_max=$ac_count
6118 # 10*(2^10) chars as input seems more than enough
6119 test $ac_count -gt 10 && break
6120 done
6121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6122 esac
6124 $ac_path_GREP_found && break 3
6125 done
6126 done
6127 done
6128 IFS=$as_save_IFS
6129 if test -z "$ac_cv_path_GREP"; then
6130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6132 else
6133 ac_cv_path_GREP=$GREP
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6138 $as_echo "$ac_cv_path_GREP" >&6; }
6139 GREP="$ac_cv_path_GREP"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6143 $as_echo_n "checking for egrep... " >&6; }
6144 if ${ac_cv_path_EGREP+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6148 then ac_cv_path_EGREP="$GREP -E"
6149 else
6150 if test -z "$EGREP"; then
6151 ac_path_EGREP_found=false
6152 # Loop through the user's path and test for each of PROGNAME-LIST
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_prog in egrep; do
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6161 as_fn_executable_p "$ac_path_EGREP" || continue
6162 # Check for GNU ac_path_EGREP and select it if it is found.
6163 # Check for GNU $ac_path_EGREP
6164 case `"$ac_path_EGREP" --version 2>&1` in
6165 *GNU*)
6166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6168 ac_count=0
6169 $as_echo_n 0123456789 >"conftest.in"
6170 while :
6172 cat "conftest.in" "conftest.in" >"conftest.tmp"
6173 mv "conftest.tmp" "conftest.in"
6174 cp "conftest.in" "conftest.nl"
6175 $as_echo 'EGREP' >> "conftest.nl"
6176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6178 as_fn_arith $ac_count + 1 && ac_count=$as_val
6179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6180 # Best one so far, save it but keep looking for a better one
6181 ac_cv_path_EGREP="$ac_path_EGREP"
6182 ac_path_EGREP_max=$ac_count
6184 # 10*(2^10) chars as input seems more than enough
6185 test $ac_count -gt 10 && break
6186 done
6187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6188 esac
6190 $ac_path_EGREP_found && break 3
6191 done
6192 done
6193 done
6194 IFS=$as_save_IFS
6195 if test -z "$ac_cv_path_EGREP"; then
6196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6198 else
6199 ac_cv_path_EGREP=$EGREP
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6205 $as_echo "$ac_cv_path_EGREP" >&6; }
6206 EGREP="$ac_cv_path_EGREP"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6210 $as_echo_n "checking for ANSI C header files... " >&6; }
6211 if ${ac_cv_header_stdc+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <stdlib.h>
6217 #include <stdarg.h>
6218 #include <string.h>
6219 #include <float.h>
6222 main ()
6226 return 0;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 ac_cv_header_stdc=yes
6231 else
6232 ac_cv_header_stdc=no
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 if test $ac_cv_header_stdc = yes; then
6237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <string.h>
6242 _ACEOF
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "memchr" >/dev/null 2>&1; then :
6246 else
6247 ac_cv_header_stdc=no
6249 rm -f conftest*
6253 if test $ac_cv_header_stdc = yes; then
6254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <stdlib.h>
6259 _ACEOF
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 $EGREP "free" >/dev/null 2>&1; then :
6263 else
6264 ac_cv_header_stdc=no
6266 rm -f conftest*
6270 if test $ac_cv_header_stdc = yes; then
6271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6272 if test "$cross_compiling" = yes; then :
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <ctype.h>
6278 #include <stdlib.h>
6279 #if ((' ' & 0x0FF) == 0x020)
6280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6282 #else
6283 # define ISLOWER(c) \
6284 (('a' <= (c) && (c) <= 'i') \
6285 || ('j' <= (c) && (c) <= 'r') \
6286 || ('s' <= (c) && (c) <= 'z'))
6287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6288 #endif
6290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6292 main ()
6294 int i;
6295 for (i = 0; i < 256; i++)
6296 if (XOR (islower (i), ISLOWER (i))
6297 || toupper (i) != TOUPPER (i))
6298 return 2;
6299 return 0;
6301 _ACEOF
6302 if ac_fn_c_try_run "$LINENO"; then :
6304 else
6305 ac_cv_header_stdc=no
6307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6308 conftest.$ac_objext conftest.beam conftest.$ac_ext
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6314 $as_echo "$ac_cv_header_stdc" >&6; }
6315 if test $ac_cv_header_stdc = yes; then
6317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6323 inttypes.h stdint.h unistd.h
6324 do :
6325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6326 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6329 cat >>confdefs.h <<_ACEOF
6330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6331 _ACEOF
6335 done
6338 for ac_header in sys/ipc.h sys/shm.h \
6339 sys/mmap.h sys/mman.h sysexits.h \
6340 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6342 do :
6343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6346 cat >>confdefs.h <<_ACEOF
6347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6348 _ACEOF
6352 done
6355 for ac_header in sys/mount.h
6356 do :
6357 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6359 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6360 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_SYS_MOUNT_H 1
6362 _ACEOF
6366 done
6369 ac_header_dirent=no
6370 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6371 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6373 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6374 if eval \${$as_ac_Header+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6380 #include <$ac_hdr>
6383 main ()
6385 if ((DIR *) 0)
6386 return 0;
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 eval "$as_ac_Header=yes"
6393 else
6394 eval "$as_ac_Header=no"
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 eval ac_res=\$$as_ac_Header
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6400 $as_echo "$ac_res" >&6; }
6401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6402 cat >>confdefs.h <<_ACEOF
6403 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6404 _ACEOF
6406 ac_header_dirent=$ac_hdr; break
6409 done
6410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6411 if test $ac_header_dirent = dirent.h; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6413 $as_echo_n "checking for library containing opendir... " >&6; }
6414 if ${ac_cv_search_opendir+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 ac_func_search_save_LIBS=$LIBS
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6421 /* Override any GCC internal prototype to avoid an error.
6422 Use char because int might match the return type of a GCC
6423 builtin and then its argument prototype would still apply. */
6424 #ifdef __cplusplus
6425 extern "C"
6426 #endif
6427 char opendir ();
6429 main ()
6431 return opendir ();
6433 return 0;
6435 _ACEOF
6436 for ac_lib in '' dir; do
6437 if test -z "$ac_lib"; then
6438 ac_res="none required"
6439 else
6440 ac_res=-l$ac_lib
6441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6443 if ac_fn_c_try_link "$LINENO"; then :
6444 ac_cv_search_opendir=$ac_res
6446 rm -f core conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext
6448 if ${ac_cv_search_opendir+:} false; then :
6449 break
6451 done
6452 if ${ac_cv_search_opendir+:} false; then :
6454 else
6455 ac_cv_search_opendir=no
6457 rm conftest.$ac_ext
6458 LIBS=$ac_func_search_save_LIBS
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6461 $as_echo "$ac_cv_search_opendir" >&6; }
6462 ac_res=$ac_cv_search_opendir
6463 if test "$ac_res" != no; then :
6464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6470 $as_echo_n "checking for library containing opendir... " >&6; }
6471 if ${ac_cv_search_opendir+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 ac_func_search_save_LIBS=$LIBS
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 /* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply. */
6481 #ifdef __cplusplus
6482 extern "C"
6483 #endif
6484 char opendir ();
6486 main ()
6488 return opendir ();
6490 return 0;
6492 _ACEOF
6493 for ac_lib in '' x; do
6494 if test -z "$ac_lib"; then
6495 ac_res="none required"
6496 else
6497 ac_res=-l$ac_lib
6498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6500 if ac_fn_c_try_link "$LINENO"; then :
6501 ac_cv_search_opendir=$ac_res
6503 rm -f core conftest.err conftest.$ac_objext \
6504 conftest$ac_exeext
6505 if ${ac_cv_search_opendir+:} false; then :
6506 break
6508 done
6509 if ${ac_cv_search_opendir+:} false; then :
6511 else
6512 ac_cv_search_opendir=no
6514 rm conftest.$ac_ext
6515 LIBS=$ac_func_search_save_LIBS
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6518 $as_echo "$ac_cv_search_opendir" >&6; }
6519 ac_res=$ac_cv_search_opendir
6520 if test "$ac_res" != no; then :
6521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6528 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6529 if ${ac_cv_header_stat_broken+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #include <sys/types.h>
6535 #include <sys/stat.h>
6537 #if defined S_ISBLK && defined S_IFDIR
6538 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6539 #endif
6541 #if defined S_ISBLK && defined S_IFCHR
6542 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6543 #endif
6545 #if defined S_ISLNK && defined S_IFREG
6546 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6547 #endif
6549 #if defined S_ISSOCK && defined S_IFREG
6550 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6551 #endif
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_header_stat_broken=no
6556 else
6557 ac_cv_header_stat_broken=yes
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6562 $as_echo "$ac_cv_header_stat_broken" >&6; }
6563 if test $ac_cv_header_stat_broken = yes; then
6565 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6570 $as_echo_n "checking for ANSI C header files... " >&6; }
6571 if ${ac_cv_header_stdc+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <stdlib.h>
6577 #include <stdarg.h>
6578 #include <string.h>
6579 #include <float.h>
6582 main ()
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 ac_cv_header_stdc=yes
6591 else
6592 ac_cv_header_stdc=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 if test $ac_cv_header_stdc = yes; then
6597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #include <string.h>
6602 _ACEOF
6603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6604 $EGREP "memchr" >/dev/null 2>&1; then :
6606 else
6607 ac_cv_header_stdc=no
6609 rm -f conftest*
6613 if test $ac_cv_header_stdc = yes; then
6614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #include <stdlib.h>
6619 _ACEOF
6620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "free" >/dev/null 2>&1; then :
6623 else
6624 ac_cv_header_stdc=no
6626 rm -f conftest*
6630 if test $ac_cv_header_stdc = yes; then
6631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632 if test "$cross_compiling" = yes; then :
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <ctype.h>
6638 #include <stdlib.h>
6639 #if ((' ' & 0x0FF) == 0x020)
6640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6642 #else
6643 # define ISLOWER(c) \
6644 (('a' <= (c) && (c) <= 'i') \
6645 || ('j' <= (c) && (c) <= 'r') \
6646 || ('s' <= (c) && (c) <= 'z'))
6647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6648 #endif
6650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6652 main ()
6654 int i;
6655 for (i = 0; i < 256; i++)
6656 if (XOR (islower (i), ISLOWER (i))
6657 || toupper (i) != TOUPPER (i))
6658 return 2;
6659 return 0;
6661 _ACEOF
6662 if ac_fn_c_try_run "$LINENO"; then :
6664 else
6665 ac_cv_header_stdc=no
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668 conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6674 $as_echo "$ac_cv_header_stdc" >&6; }
6675 if test $ac_cv_header_stdc = yes; then
6677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6682 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6683 if ${ac_cv_header_sys_wait_h+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <sys/types.h>
6689 #include <sys/wait.h>
6690 #ifndef WEXITSTATUS
6691 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6692 #endif
6693 #ifndef WIFEXITED
6694 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6695 #endif
6698 main ()
6700 int s;
6701 wait (&s);
6702 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6704 return 0;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_header_sys_wait_h=yes
6709 else
6710 ac_cv_header_sys_wait_h=no
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6715 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6716 if test $ac_cv_header_sys_wait_h = yes; then
6718 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6723 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6724 if ${ac_cv_header_time+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #include <sys/types.h>
6730 #include <sys/time.h>
6731 #include <time.h>
6734 main ()
6736 if ((struct tm *) 0)
6737 return 0;
6739 return 0;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 ac_cv_header_time=yes
6744 else
6745 ac_cv_header_time=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6750 $as_echo "$ac_cv_header_time" >&6; }
6751 if test $ac_cv_header_time = yes; then
6753 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6757 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6758 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6760 cat >>confdefs.h <<_ACEOF
6761 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6762 _ACEOF
6765 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6770 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6771 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6775 _ACEOF
6778 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6780 else
6781 case " $LIBOBJS " in
6782 *" fileblocks.$ac_objext "* ) ;;
6783 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6785 esac
6790 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6791 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_STRUCT_STAT_ST_RDEV 1
6795 _ACEOF
6798 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6804 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6805 if ${ac_cv_struct_tm+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <sys/types.h>
6811 #include <time.h>
6814 main ()
6816 struct tm tm;
6817 int *p = &tm.tm_sec;
6818 return !p;
6820 return 0;
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 ac_cv_struct_tm=time.h
6825 else
6826 ac_cv_struct_tm=sys/time.h
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6831 $as_echo "$ac_cv_struct_tm" >&6; }
6832 if test $ac_cv_struct_tm = sys/time.h; then
6834 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6838 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6839 #include <$ac_cv_struct_tm>
6842 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_STRUCT_TM_TM_ZONE 1
6846 _ACEOF
6851 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6853 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6855 else
6856 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6858 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6859 ac_have_decl=1
6860 else
6861 ac_have_decl=0
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_DECL_TZNAME $ac_have_decl
6866 _ACEOF
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6869 $as_echo_n "checking for tzname... " >&6; }
6870 if ${ac_cv_var_tzname+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 #include <time.h>
6876 #if !HAVE_DECL_TZNAME
6877 extern char *tzname[];
6878 #endif
6881 main ()
6883 return tzname[0][0];
6885 return 0;
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 ac_cv_var_tzname=yes
6890 else
6891 ac_cv_var_tzname=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6897 $as_echo "$ac_cv_var_tzname" >&6; }
6898 if test $ac_cv_var_tzname = yes; then
6900 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6905 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6906 if test "x$ac_cv_type_off_t" = xyes; then :
6908 else
6910 cat >>confdefs.h <<_ACEOF
6911 #define off_t long int
6912 _ACEOF
6916 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6917 if test "x$ac_cv_type_pid_t" = xyes; then :
6919 else
6921 cat >>confdefs.h <<_ACEOF
6922 #define pid_t int
6923 _ACEOF
6927 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6928 if test "x$ac_cv_type_size_t" = xyes; then :
6930 else
6932 cat >>confdefs.h <<_ACEOF
6933 #define size_t unsigned int
6934 _ACEOF
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6939 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6940 if ${ac_cv_type_uid_t+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6947 _ACEOF
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "uid_t" >/dev/null 2>&1; then :
6950 ac_cv_type_uid_t=yes
6951 else
6952 ac_cv_type_uid_t=no
6954 rm -f conftest*
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6958 $as_echo "$ac_cv_type_uid_t" >&6; }
6959 if test $ac_cv_type_uid_t = no; then
6961 $as_echo "#define uid_t int" >>confdefs.h
6964 $as_echo "#define gid_t int" >>confdefs.h
6969 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6970 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6972 cat >>confdefs.h <<_ACEOF
6973 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6974 _ACEOF
6980 # Look for some functions
6981 for ac_func in getpagesize kqueue statfs statvfs \
6982 clone kse_create rfork_thread thr_create sa_register \
6983 getcontext makecontext setcontext sigaltstack swapcontext
6984 do :
6985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6987 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6988 cat >>confdefs.h <<_ACEOF
6989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6990 _ACEOF
6993 done
6999 for ac_header in $ac_header_list
7000 do :
7001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7005 cat >>confdefs.h <<_ACEOF
7006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 _ACEOF
7011 done
7020 for ac_func in getpagesize
7021 do :
7022 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7023 if test "x$ac_cv_func_getpagesize" = xyes; then :
7024 cat >>confdefs.h <<_ACEOF
7025 #define HAVE_GETPAGESIZE 1
7026 _ACEOF
7029 done
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7032 $as_echo_n "checking for working mmap... " >&6; }
7033 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test "$cross_compiling" = yes; then :
7037 ac_cv_func_mmap_fixed_mapped=no
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 $ac_includes_default
7042 /* malloc might have been renamed as rpl_malloc. */
7043 #undef malloc
7045 /* Thanks to Mike Haertel and Jim Avera for this test.
7046 Here is a matrix of mmap possibilities:
7047 mmap private not fixed
7048 mmap private fixed at somewhere currently unmapped
7049 mmap private fixed at somewhere already mapped
7050 mmap shared not fixed
7051 mmap shared fixed at somewhere currently unmapped
7052 mmap shared fixed at somewhere already mapped
7053 For private mappings, we should verify that changes cannot be read()
7054 back from the file, nor mmap's back from the file at a different
7055 address. (There have been systems where private was not correctly
7056 implemented like the infamous i386 svr4.0, and systems where the
7057 VM page cache was not coherent with the file system buffer cache
7058 like early versions of FreeBSD and possibly contemporary NetBSD.)
7059 For shared mappings, we should conversely verify that changes get
7060 propagated back to all the places they're supposed to be.
7062 Grep wants private fixed already mapped.
7063 The main things grep needs to know about mmap are:
7064 * does it exist and is it safe to write into the mmap'd area
7065 * how to use it (BSD variants) */
7067 #include <fcntl.h>
7068 #include <sys/mman.h>
7070 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7071 char *malloc ();
7072 #endif
7074 /* This mess was copied from the GNU getpagesize.h. */
7075 #ifndef HAVE_GETPAGESIZE
7076 # ifdef _SC_PAGESIZE
7077 # define getpagesize() sysconf(_SC_PAGESIZE)
7078 # else /* no _SC_PAGESIZE */
7079 # ifdef HAVE_SYS_PARAM_H
7080 # include <sys/param.h>
7081 # ifdef EXEC_PAGESIZE
7082 # define getpagesize() EXEC_PAGESIZE
7083 # else /* no EXEC_PAGESIZE */
7084 # ifdef NBPG
7085 # define getpagesize() NBPG * CLSIZE
7086 # ifndef CLSIZE
7087 # define CLSIZE 1
7088 # endif /* no CLSIZE */
7089 # else /* no NBPG */
7090 # ifdef NBPC
7091 # define getpagesize() NBPC
7092 # else /* no NBPC */
7093 # ifdef PAGESIZE
7094 # define getpagesize() PAGESIZE
7095 # endif /* PAGESIZE */
7096 # endif /* no NBPC */
7097 # endif /* no NBPG */
7098 # endif /* no EXEC_PAGESIZE */
7099 # else /* no HAVE_SYS_PARAM_H */
7100 # define getpagesize() 8192 /* punt totally */
7101 # endif /* no HAVE_SYS_PARAM_H */
7102 # endif /* no _SC_PAGESIZE */
7104 #endif /* no HAVE_GETPAGESIZE */
7107 main ()
7109 char *data, *data2, *data3;
7110 const char *cdata2;
7111 int i, pagesize;
7112 int fd, fd2;
7114 pagesize = getpagesize ();
7116 /* First, make a file with some known garbage in it. */
7117 data = (char *) malloc (pagesize);
7118 if (!data)
7119 return 1;
7120 for (i = 0; i < pagesize; ++i)
7121 *(data + i) = rand ();
7122 umask (0);
7123 fd = creat ("conftest.mmap", 0600);
7124 if (fd < 0)
7125 return 2;
7126 if (write (fd, data, pagesize) != pagesize)
7127 return 3;
7128 close (fd);
7130 /* Next, check that the tail of a page is zero-filled. File must have
7131 non-zero length, otherwise we risk SIGBUS for entire page. */
7132 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7133 if (fd2 < 0)
7134 return 4;
7135 cdata2 = "";
7136 if (write (fd2, cdata2, 1) != 1)
7137 return 5;
7138 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7139 if (data2 == MAP_FAILED)
7140 return 6;
7141 for (i = 0; i < pagesize; ++i)
7142 if (*(data2 + i))
7143 return 7;
7144 close (fd2);
7145 if (munmap (data2, pagesize))
7146 return 8;
7148 /* Next, try to mmap the file at a fixed address which already has
7149 something else allocated at it. If we can, also make sure that
7150 we see the same garbage. */
7151 fd = open ("conftest.mmap", O_RDWR);
7152 if (fd < 0)
7153 return 9;
7154 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7155 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7156 return 10;
7157 for (i = 0; i < pagesize; ++i)
7158 if (*(data + i) != *(data2 + i))
7159 return 11;
7161 /* Finally, make sure that changes to the mapped area do not
7162 percolate back to the file as seen by read(). (This is a bug on
7163 some variants of i386 svr4.0.) */
7164 for (i = 0; i < pagesize; ++i)
7165 *(data2 + i) = *(data2 + i) + 1;
7166 data3 = (char *) malloc (pagesize);
7167 if (!data3)
7168 return 12;
7169 if (read (fd, data3, pagesize) != pagesize)
7170 return 13;
7171 for (i = 0; i < pagesize; ++i)
7172 if (*(data + i) != *(data3 + i))
7173 return 14;
7174 close (fd);
7175 return 0;
7177 _ACEOF
7178 if ac_fn_c_try_run "$LINENO"; then :
7179 ac_cv_func_mmap_fixed_mapped=yes
7180 else
7181 ac_cv_func_mmap_fixed_mapped=no
7183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7184 conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7189 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7190 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7192 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7195 rm -f conftest.mmap conftest.txt
7200 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7201 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7202 aros_config_ldflags=""
7204 aros_shared_default=yes
7206 aros_shared_cflags="-fPIC"
7207 aros_shared_aflags=""
7208 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7209 aros_kernel_ldflags="-Wl,-rpath,./lib"
7211 aros_kernel_ar_flags="cr"
7212 aros_target_ar_flags="cr"
7213 aros_target_nm_flags="-C -ul"
7214 aros_target_strip_flags="--strip-unneeded -R.comment"
7216 aros_compiler_libs=
7217 aros_arch_libs=
7219 aros_target_genmap="-Wl,-Map -Xlinker"
7221 # Native flavour stuff
7222 aros_serial_debug="0"
7224 # Palm native flavour stuff
7225 aros_palm_debug_hack="0"
7227 # Unix flavour stuff
7228 aros_nesting_supervisor="0"
7230 # Collect-aros stuff: "-ius" to ignore undefined symbols
7231 ignore_undefined_symbols=""
7233 # Check for X11 by default
7234 need_x11="auto"
7236 #-----------------------------------------------------------------------------
7239 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7240 # it switched on by default, and we use the host compiler, so it compiles AROS
7241 # code with this enabled resulting in link failures as we don't have support
7242 # for it.
7244 # We use two methods to disable it. For the host compiler (used to compile
7245 # some hosted modules), we test to see if the compiler supports stack
7246 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7247 # work on all platforms.
7249 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7250 # (this is done unconditionally, as it should have no effect on compilers
7251 # without the stack protection feature). This may be specific to the way that
7252 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7253 # strong enough to disable it in a generic way though, so we'll live with it
7254 # until another vendor ships GCC with it enabled in a different way, and deal
7255 # with it then.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7259 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7260 save_cflags="$CFLAGS"
7261 CFLAGS="$CFLAGS -fno-stack-protector"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7266 main ()
7270 return 0;
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 use_no_stack_protector="yes"
7275 else
7276 use_no_stack_protector="no"
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7280 $as_echo "$use_no_stack_protector" >&6; }
7281 if test "x-$use_no_stack_protector" = "x-yes" ; then
7282 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7284 CFLAGS="$save_cflags"
7286 #-----------------------------------------------------------------------------
7288 # Disable pointer-signedness warnings if the compiler recognises the option
7289 # (this only works for the host compiler at the moment)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7292 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7293 save_cflags="$CFLAGS"
7294 CFLAGS="$CFLAGS -Wno-pointer-sign"
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_sign_warning="yes"
7308 else
7309 use_no_sign_warning="no"
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7313 $as_echo "$use_no_sign_warning" >&6; }
7314 if test "x-$use_no_sign_warning" = "x-yes" ; then
7315 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7317 CFLAGS="$save_cflags"
7319 #-----------------------------------------------------------------------------
7321 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7324 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7325 save_cflags="$CFLAGS"
7326 CFLAGS="$CFLAGS -fgnu89-inline"
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7331 main ()
7335 return 0;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 use_gnu89_inline="yes"
7340 else
7341 use_gnu89_inline="no"
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7345 $as_echo "$use_gnu89_inline" >&6; }
7346 if test "x-$use_gnu89_inline" = "x-yes" ; then
7347 gnu89_inline="-fgnu89-inline"
7349 CFLAGS="$save_cflags"
7351 #-----------------------------------------------------------------------------
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7354 $as_echo_n "checking for type of build... " >&6; }
7355 # Check whether --enable-build_type was given.
7356 if test "${enable_build_type+set}" = set; then :
7357 enableval=$enable_build_type; build_type=$enableval
7358 else
7359 build_type="personal"
7363 if test "$build_type" = "nightly"; then
7364 build_type_string="NIGHTLY"
7365 elif test "$build_type" = "snapshot"; then
7366 build_type_string="SNAPSHOT"
7367 elif test "$build_type" = "milestone"; then
7368 build_type_string="MILESTONE"
7369 elif test "$build_type" = "release"; then
7370 build_type_string="RELEASE"
7371 else
7372 build_type_string="PERSONAL"
7373 build_type="personal"
7376 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7379 $as_echo "$build_type" >&6; }
7381 #-----------------------------------------------------------------------------
7382 all_debug_types="messages stack modules mungwall symbols"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7385 $as_echo_n "checking which debug types to enable... " >&6; }
7386 # Check whether --enable-debug was given.
7387 if test "${enable_debug+set}" = set; then :
7388 enableval=$enable_debug; debug="$enableval"
7389 else
7390 debug=""
7394 if test "$debug" = "" -o "$debug" = "no"; then
7395 debug="none"
7396 elif test "$debug" = "yes"; then
7397 debug="all"
7400 if test "$debug" = "all" ; then
7401 debug="messages stack modules symbols"
7402 for d in $all_debug_types; do
7403 export aros_${d}_debug="1"
7404 done
7405 else
7406 for d in $all_debug_types; do
7407 export aros_${d}_debug="0"
7408 done
7411 if test "$debug" != "none"; then
7412 debug=`echo $debug | sed s/,/\ /g`
7413 for d in $debug; do
7414 found="0"
7415 for d2 in $all_debug_types; do
7416 if test "$d2" = "$d"; then
7417 found="1"
7418 break
7420 done
7421 if test "$found" = "0"; then
7422 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7424 export aros_${d}_debug="1"
7425 done
7426 aros_debug="yes"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7429 $as_echo "$debug" >&6; }
7431 if test "$aros_messages_debug" = "1"; then
7432 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7433 else
7434 aros_messages_debug=""
7436 if test "$aros_symbols_debug" = "1"; then
7437 aros_symbols_debug="-g"
7438 else
7439 aros_symbols_debug=""
7442 # These are the flags to pass when compiling debugged programs
7443 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7444 aros_debug_aflags=""
7445 aros_debug_ldflags="$aros_symbols_debug"
7447 #-----------------------------------------------------------------------------
7448 # Checking for distcc and ccache.
7450 # Always apply the transforms in this particular order. Basically you should
7451 # always run 'ccache distcc compiler' in that order for the best performance.
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7454 $as_echo_n "checking whether to enable distcc... " >&6; }
7455 # Check whether --enable-distcc was given.
7456 if test "${enable_distcc+set}" = set; then :
7457 enableval=$enable_distcc; distcc="$enableval"
7458 else
7459 distcc="no"
7462 if test "$distcc" != "" -a "$distcc" != "no"; then
7463 # AC_CHECK_PROG will print out the result in this case
7464 # Extract the first word of "distcc", so it can be a program name with args.
7465 set dummy distcc; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_path_DISTCC+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 case $DISTCC in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7491 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7493 esac
7495 DISTCC=$ac_cv_path_DISTCC
7496 if test -n "$DISTCC"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7498 $as_echo "$DISTCC" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7511 $as_echo_n "checking whether to enable ccache... " >&6; }
7512 # Check whether --enable-ccache was given.
7513 if test "${enable_ccache+set}" = set; then :
7514 enableval=$enable_ccache; ccache="$enableval"
7515 else
7516 ccache="no"
7519 if test "$ccache" != "" -a "$ccache" != "no"; then
7520 # AC_CHECK_PROG will print out the result in this case
7521 # Extract the first word of "ccache", so it can be a program name with args.
7522 set dummy ccache; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_CCACHE+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$CCACHE"; then
7529 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_CCACHE="ccache"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7544 IFS=$as_save_IFS
7548 CCACHE=$ac_cv_prog_CCACHE
7549 if test -n "$CCACHE"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7551 $as_echo "$CCACHE" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7563 #-----------------------------------------------------------------------------
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7565 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7567 # Check whether --with-kernel-gcc-version was given.
7568 if test "${with_kernel_gcc_version+set}" = set; then :
7569 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7570 else
7571 kernel_tool_version=""
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7575 $as_echo "$kernel_tool_version" >&6; }
7577 #-----------------------------------------------------------------------------
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7579 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7581 # Check whether --with-gcc-version was given.
7582 if test "${with_gcc_version+set}" = set; then :
7583 withval=$with_gcc_version; target_tool_version="$withval"
7584 else
7585 target_tool_version=""
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7589 $as_echo "$target_tool_version" >&6; }
7591 #-----------------------------------------------------------------------------
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7593 $as_echo_n "checking what optimization flags to use... " >&6; }
7595 # Check whether --with-optimization was given.
7596 if test "${with_optimization+set}" = set; then :
7597 withval=$with_optimization; optimization="$withval"
7598 else
7599 optimization="unknown"
7602 if test "$optimization" = "unknown"; then
7603 if test "$debug" != "none"; then
7604 optimization="-O0"
7605 else
7606 optimization="-O2"
7609 aros_config_cflags="$aros_config_cflags $optimization"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7611 $as_echo "$optimization" >&6; }
7613 #-----------------------------------------------------------------------------
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7615 $as_echo_n "checking what paranoia flags to use... " >&6; }
7617 # Check whether --with-paranoia was given.
7618 if test "${with_paranoia+set}" = set; then :
7619 withval=$with_paranoia; paranoia_flags="$withval"
7620 else
7621 paranoia_flags="default"
7624 if test "$paranoia_flags" = "default"; then
7625 paranoia_flags=""
7626 else if test "$paranoia_flags" = "yes"; then
7627 paranoia_flags="-Wall -Werror"
7628 fi fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7630 $as_echo "$paranoia_flags" >&6; }
7631 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7633 #-----------------------------------------------------------------------------
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7635 $as_echo_n "checking what target variant to enable... " >&6; }
7636 # Check whether --enable-target_variant was given.
7637 if test "${enable_target_variant+set}" = set; then :
7638 enableval=$enable_target_variant; target_variant=$enableval
7639 else
7640 target_variant=""
7643 if test "$target_variant" = ""; then
7644 aros_target_variant=""
7645 aros_target_suffix=""
7646 enableval="none"
7647 else
7648 aros_target_variant="$target_variant"
7649 aros_target_suffix="-$target_variant"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7652 $as_echo "$enableval" >&6; }
7654 #-----------------------------------------------------------------------------
7655 # Target-specific defaults. You can override then on a per-target basis.
7657 # Bootloader name. Currently used by PC target.
7658 target_bootloader="none"
7660 #-----------------------------------------------------------------------------
7661 # Additional options for some specific targets
7663 case "$aros_target_variant" in
7664 ios)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7666 $as_echo_n "checking XCode path... " >&6; }
7668 # Check whether --with-xcode was given.
7669 if test "${with_xcode+set}" = set; then :
7670 withval=$with_xcode; aros_xcode_path="$withval"
7671 else
7672 aros_xcode_path="/Developer"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7676 $as_echo "$aros_xcode_path" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7679 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7681 # Check whether --with-sdk-version was given.
7682 if test "${with_sdk_version+set}" = set; then :
7683 withval=$with_sdk_version; aros_sdk_version="$withval"
7684 else
7685 aros_sdk_version="4.1"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7689 $as_echo "$aros_sdk_version" >&6; }
7693 "android")
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7695 $as_echo_n "checking Android SDK path... " >&6; }
7697 # Check whether --with-sdk was given.
7698 if test "${with_sdk+set}" = set; then :
7699 withval=$with_sdk; aros_android_sdk="$withval"
7700 else
7701 aros_android_sdk=$default_android_sdk
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7705 $as_echo "$aros_android_sdk" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7708 $as_echo_n "checking Android NDK path... " >&6; }
7710 # Check whether --with-ndk was given.
7711 if test "${with_ndk+set}" = set; then :
7712 withval=$with_ndk; aros_android_ndk="$withval"
7713 else
7714 aros_android_ndk="none"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7718 $as_echo "$aros_android_ndk" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7721 $as_echo_n "checking what Android SDK version to use... " >&6; }
7723 # Check whether --with-sdk-version was given.
7724 if test "${with_sdk_version+set}" = set; then :
7725 withval=$with_sdk_version; aros_sdk_version="$withval"
7726 else
7727 aros_sdk_version="12"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7731 $as_echo "$aros_sdk_version" >&6; }
7733 if test "$aros_android_ndk" != "none"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7735 $as_echo_n "checking what Android NDK version to use... " >&6; }
7737 # Check whether --with-ndk-version was given.
7738 if test "${with_ndk_version+set}" = set; then :
7739 withval=$with_ndk_version; aros_ndk_version="$withval"
7740 else
7741 aros_ndk_version="9"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7745 $as_echo "$aros_ndk_version" >&6; }
7748 export PATH="$aros_android_sdk/tools:$PATH"
7749 # Extract the first word of "$android_tool", so it can be a program name with args.
7750 set dummy $android_tool; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_path_android_tool+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 case $android_tool in
7757 [\\/]* | ?:[\\/]*)
7758 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7772 done
7773 done
7774 IFS=$as_save_IFS
7777 esac
7779 android_tool=$ac_cv_path_android_tool
7780 if test -n "$android_tool"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7782 $as_echo "$android_tool" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7789 if test "$android_tool" = ""; then
7790 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7793 aros_android_level=android-$aros_sdk_version
7794 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7795 echo "Platform $aros_android_level is not installed in your SDK"
7796 echo "Use --with-sdk-version=<API level number> to select another platform version"
7797 echo "You can check what plaform versions are installed in your SDK"
7798 echo "by examining contents of $aros_android_sdk/platforms directory"
7799 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7802 # Extract the first word of "ant", so it can be a program name with args.
7803 set dummy ant; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_path_ant+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 case $ant in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7830 esac
7832 ant=$ac_cv_path_ant
7833 if test -n "$ant"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7835 $as_echo "$ant" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7842 if test "$ant" = ""; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7844 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7848 $as_echo_n "checking Build debug or release apk... " >&6; }
7850 # Check whether --with-apk-version was given.
7851 if test "${with_apk_version+set}" = set; then :
7852 withval=$with_apk_version; aros_android_antapk=$withval
7853 else
7854 aros_android_antapk=release
7857 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7858 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7861 $as_echo "$aros_android_antapk" >&6; }
7863 if test "$host_os" = "mingw32"; then
7864 android_tool="cmd //c $android_tool"
7868 esac
7870 #-----------------------------------------------------------------------------
7871 # External toolchains
7872 kernel_tool_prefix="none"
7873 aros_tool_prefix="none"
7874 elf_tool_prefix="${target_cpu}-elf-"
7876 # This is the target configuration switch.
7877 case "$target_os" in
7878 linux*)
7879 aros_target_arch="linux"
7880 aros_target_family="unix"
7881 case "$target_cpu" in
7882 *m68k*)
7883 aros_target_cpu="m68k"
7884 aros_object_format="m68kelf"
7885 aros_flavour="emulcompat"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7887 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7888 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7889 gcc_target_cpu="mc68000"
7891 *i?86*)
7892 aros_target_cpu="i386"
7893 aros_object_format="elf_i386"
7894 aros_flavour="emulation"
7895 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7896 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7897 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7898 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7899 aros_config_ldflags="-m32 -march=i486"
7900 aros_kernel_ldflags="-Wl,-melf_i386"
7901 aros_default_wbdepth=8
7902 gcc_target_cpu="i386"
7903 pci_hidd_target="hidd-pci-linux"
7904 android_tool_dir_prefix="x86"
7905 android_tool_prefix="i686-android-linux"
7906 android_ndk_arch="x86"
7908 *x86_64*)
7909 aros_target_cpu="x86_64"
7910 aros_object_format="elf_x86_64"
7911 aros_flavour="emulation"
7912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7913 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7914 aros_default_wbdepth=8
7915 pci_hidd_target="hidd-pci-linux"
7917 *powerpc*)
7918 aros_target_cpu="ppc"
7919 aros_object_format="elf32ppc"
7920 aros_flavour="emulation"
7921 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7922 aros_default_wbdepth=8
7923 gcc_target_cpu="ppc"
7925 # TODO
7926 # Same as powerpc, but I need this for the nightly build to work again.
7927 # Actually, the nightly should be made working with powerpc target.
7928 # That just was too much work for the moment, another week or two.
7929 *ppc*)
7930 aros_target_cpu="ppc"
7931 aros_object_format="elf32ppc"
7932 aros_flavour="emulation"
7933 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7934 aros_default_wbdepth=8
7935 gcc_target_cpu="ppc"
7937 *armhf*)
7938 aros_target_cpu="arm"
7939 target_cpu="arm"
7940 aros_object_format="armelf_aros"
7941 aros_flavour="emulation"
7942 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7943 gcc_target_cpu="arm"
7944 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7945 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7946 aros_arch_libs="-laeabi"
7947 gcc_default_float_abi="hard"
7948 android_tool_dir_prefix="arm-linux-androideabi"
7949 android_tool_prefix="arm-linux-androideabi"
7950 android_ndk_arch="arm"
7951 kernel_tool_prefix="arm-linux-gnueabihf-"
7953 *arm*)
7954 aros_target_cpu="arm"
7955 aros_object_format="armelf_aros"
7956 aros_flavour="emulation"
7957 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7958 gcc_target_cpu="arm"
7959 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7960 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7961 aros_arch_libs="-laeabi"
7962 android_tool_dir_prefix="arm-linux-androideabi"
7963 android_tool_prefix="arm-linux-androideabi"
7964 android_ndk_arch="arm"
7965 kernel_tool_prefix="arm-linux-gnueabi-"
7968 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7970 esac
7971 case "$aros_target_variant" in
7972 android)
7974 if test "$android_ndk_arch" = ""; then
7975 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7978 aros_default_wbwidth=320
7979 aros_default_wbheight=480
7980 if test "$aros_android_ndk" = "none"; then
7981 aros_kernel_cflags="-mandroid"
7982 aros_kernel_ldflags="-mandroid"
7983 CFLAGS="-mandroid"
7984 else
7985 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7986 kernel_tool_version=""
7987 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7988 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7989 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7990 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7991 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7993 need_x11=no
7994 unixgfx_hidd_target=kernel-hidd-androidgfx
7995 # Disable implicit PIC mode
7996 aros_target_cflags="$aros_target_cflags -fno-pic"
7997 kernel_tool_prefix="$android_tool_prefix-"
7999 esac
8003 aros_target_arch="pc"
8004 aros_shared_default="no"
8005 target_bootloader="grub2"
8006 case "$target_cpu" in
8007 *i?86*)
8008 aros_target_cpu="i386"
8011 if test "$aros_object_format" = "" ; then
8012 aros_object_format="elf_i386"
8014 aros_flavour="standalone"
8015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8016 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8017 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8018 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8019 aros_config_ldflags="-m32 -march=i486"
8020 aros_kernel_ldflags="-Wl,-melf_i386"
8021 aros_default_wbwidth=640
8022 aros_default_wbheight=480
8023 gcc_target_cpu="i386"
8025 *x86_64*)
8026 aros_target_cpu="x86_64"
8027 aros_serial_debug=1
8028 if test "$aros_object_format" = "" ; then
8029 aros_object_format="elf_x86_64"
8031 aros_flavour="standalone"
8032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8033 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8034 aros_kernel_ldflags=""
8035 aros_default_wbwidth=640
8036 aros_default_wbheight=480
8039 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8041 esac
8044 prep)
8045 aros_target_arch="prep"
8046 aros_shared_default="no"
8047 aros_target_cpu="ppc"
8048 aros_object_format="elf32ppc"
8049 aros_flavour="ppcnative"
8050 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8051 aros_kernel_ldflags=""
8052 aros_default_wbwidth=640
8053 aros_default_wbheight=480
8054 gcc_target_cpu="ppc"
8057 freebsd*)
8058 aros_target_arch="freebsd"
8059 aros_target_family="unix"
8060 aros_target_cpu="i386"
8061 aros_flavour="emulation"
8062 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8063 gcc_target_cpu="i386"
8065 aros_target_strip_flags="-x"
8068 darwin*)
8069 aros_target_arch="darwin"
8070 aros_target_family="unix"
8071 aros_flavour="emulation"
8072 case "$target_cpu" in
8073 *i?86*)
8074 aros_ios_platform="iPhoneSimulator"
8075 aros_target_cpu="i386"
8076 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8077 aros_kernel_ldflags=""
8078 aros_macosx_version="10.4"
8079 aros_default_wbdepth=8
8080 gcc_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_kernel_ar_flags="-cr"
8083 aros_target_strip_flags="-x"
8084 kernel_tool_flags="-m32"
8086 *x86_64*)
8087 aros_target_cpu="x86_64"
8088 aros_object_format="elf_x86_64"
8089 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8090 aros_macosx_version="10.6"
8091 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8092 aros_kernel_cflags="-m64"
8093 aros_kernel_ldflags="-m64"
8094 aros_target_cflags="-mcmodel=large"
8095 aros_default_wbdepth=8
8096 aros_kernel_ar="ar"
8097 aros_kernel_ar_flags="-cr"
8098 aros_kernel_ld="ld"
8099 aros_kernel_as="as"
8100 aros_kernel_ranlib="ranlib"
8101 aros_kernel_nm="nm"
8102 aros_kernel_strip="strip"
8103 kernel_tool_prefix="i686-apple-darwin10-"
8105 *ppc*)
8106 aros_target_cpu="ppc"
8107 aros_object_format="elf32ppc"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8109 aros_kernel_ldflags=""
8110 aros_macosx_version="10.0"
8111 aros_default_wbdepth=8
8112 gcc_target_cpu="ppc"
8113 aros_kernel_ar="ar"
8114 aros_kernel_ar_flags="-cr"
8115 aros_kernel_ld="ld -arch ppc"
8116 aros_kernel_as="as -arch ppc"
8117 aros_kernel_ranlib="ranlib -arch ppc"
8118 aros_kernel_nm="nm -arch ppc"
8119 aros_kernel_strip="strip -arch ppc"
8120 kernel_tool_prefix="powerpc-apple-darwin10-"
8122 *arm*)
8123 aros_ios_platform="iPhoneOS"
8124 aros_target_cpu="arm"
8125 aros_object_format="armelf_aros"
8126 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8127 aros_arch_libs="-laeabi"
8128 aros_default_wbdepth=8
8129 gcc_target_cpu="arm"
8130 aros_kernel_ar="ar"
8131 aros_kernel_ar_flags="-cr"
8132 aros_kernel_ld="ld -arch arm"
8133 aros_kernel_ranlib="ranlib -arch arm"
8134 kernel_tool_prefix="arm-apple-darwin10-"
8135 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8138 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8140 esac
8141 case "$aros_target_variant" in
8142 ios)
8143 aros_ios_version="3.0"
8144 aros_default_wbwidth=320
8145 aros_default_wbheight=480
8146 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8147 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8148 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8149 need_x11=no
8150 # This is here because it may depend on iOS or SDK version
8151 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8152 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8153 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8156 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8157 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8159 esac
8162 dragonfly*)
8163 aros_target_arch="dragonfly"
8164 aros_target_family="unix"
8165 aros_flavour="emulation"
8166 case "$target_cpu" in
8167 *i?86*)
8168 aros_target_cpu="i386"
8169 aros_object_format="elf_i386"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8172 *x86_64*)
8173 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8174 aros_target_cpu="x86_64"
8175 aros_object_format="elf_x86_64"
8176 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8179 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8181 esac
8184 netbsd*)
8185 aros_target_arch="netbsd"
8186 aros_target_family="unix"
8187 case "$target_cpu" in
8188 *m68k*)
8189 aros_target_cpu="m68k"
8190 aros_object_format="m68kelf"
8191 aros_flavour="emulcompat"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8193 gcc_target_cpu="mc68000"
8195 *i?86*)
8196 aros_target_cpu="i386"
8197 aros_object_format="elf_i386"
8198 aros_flavour="emulation"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8200 aros_default_wbdepth=8
8201 gcc_target_cpu="i386"
8204 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8206 esac
8207 aros_target_genmap="-Wl,-M -Xlinker >"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8212 openbsd*)
8213 aros_target_arch="openbsd"
8214 aros_target_family="unix"
8215 case "$target_cpu" in
8216 *i?86*)
8217 aros_target_cpu="i386"
8218 aros_object_format="elf_i386"
8219 aros_flavour="emulation"
8220 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8221 gcc_target_cpu="i386"
8224 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8226 esac
8227 aros_target_genmap="-Wl,-M -Xlinker >"
8228 aros_target_nm_flags="-u"
8229 aros_flavour="emulation"
8232 solaris*)
8233 aros_target_arch="solaris"
8234 aros_target_family="unix"
8235 case "$target_cpu" in
8236 *i?86*)
8237 aros_target_cpu="i386"
8238 aros_object_format="elf_i386"
8239 aros_flavour="emulation"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8241 aros_default_wbdepth=8
8242 gcc_target_cpu="i386"
8244 *sparc*)
8245 aros_target_cpu="sparc"
8246 aros_object_format="elf_sparc"
8247 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8248 gcc_target_cpu="sparc"
8251 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8253 esac
8254 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8255 aros_flavour="emulation"
8258 morphos*)
8259 aros_target_arch="morphos"
8260 aros_shared_default="no"
8261 aros_target_cpu="ppc"
8262 aros_object_format="elf_ppc"
8263 aros_flavour="nativecompat"
8264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8265 gcc_target_cpu="ppc"
8268 sam440)
8269 aros_target_arch="sam440"
8270 aros_shared_default="no"
8271 aros_target_cpu="ppc"
8272 aros_object_format="elf32ppc"
8273 aros_flavour="ppcnative"
8274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8275 aros_kernel_ldflags=""
8276 aros_default_wbwidth=1024
8277 aros_default_wbheight=768
8278 aros_default_wbdepth=24
8279 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8280 gcc_target_cpu="powerpc"
8283 efika)
8284 aros_target_arch="efika"
8285 aros_shared_default="no"
8286 aros_target_cpu="arm"
8287 aros_object_format="armelf_aros"
8288 aros_flavour="standalone"
8289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8290 aros_kernel_ldflags=""
8291 aros_default_wbwidth=1024
8292 aros_default_wbheight=600
8293 aros_arch_libs="-laeabi"
8294 gcc_default_cpu="armv7-a"
8295 gcc_default_fpu="vfpv3"
8296 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8297 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8298 case "$target_cpu" in
8299 *armhf*)
8300 gcc_default_float_abi="hard"
8301 target_cpu=arm
8302 aros_target_cpu=arm
8304 *arm*)
8305 gcc_default_float_abi="softfp"
8308 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8310 esac
8313 chrp)
8314 aros_target_arch="chrp"
8315 aros_shared_default="no"
8316 aros_target_cpu="ppc"
8317 aros_object_format="elf32ppc"
8318 aros_flavour="ppcnative"
8319 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8320 aros_kernel_ldflags=""
8321 aros_default_wbwidth=640
8322 aros_default_wbheight=480
8323 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8324 gcc_target_cpu="powerpc"
8325 case "$aros_target_variant" in
8326 efika)
8327 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8329 esac
8332 r*pi)
8333 aros_flavour="standalone"
8334 aros_target_arch="raspi"
8335 aros_target_cpu="arm"
8336 aros_object_format="armelf_aros"
8337 aros_shared_default="no"
8338 aros_arch_libs="-laeabi"
8340 gcc_default_cpu="armv6"
8341 gcc_default_cpu_tune="arm1176jzf-s"
8342 case "$target_cpu" in
8343 *armhf*)
8344 gcc_default_float_abi="hard"
8346 *arm*)
8347 gcc_default_float_abi="softfp"
8350 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8352 esac
8354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8355 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8356 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8357 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8358 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8361 amiga*)
8362 aros_target_arch="amiga"
8363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8364 aros_shared_default="no"
8366 case "$target_cpu" in
8367 *m68k*)
8368 # Check whether --enable-amigaos_compliance was given.
8369 if test "${enable_amigaos_compliance+set}" = set; then :
8370 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8373 aros_enable_mmu=no
8374 aros_target_cpu="m68k"
8375 aros_object_format="m68kelf"
8376 aros_flavour="standcompat"
8377 gcc_target_cpu="m68000"
8378 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8379 aros_config_aflags="$aros_config_aflags"
8380 aros_target_strip_flags="-R.comment --strip-debug"
8381 aros_default_wbwidth=640
8382 aros_default_wbheight=256
8383 aros_default_wbdepth=2
8385 *ppc*)
8386 aros_cpu="ppc"
8387 aros_flavour="native"
8388 gcc_target_cpu="ppc"
8391 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8393 esac
8396 mingw*)
8397 aros_target_arch="mingw32"
8398 aros_shared_default="no"
8399 aros_flavour="emulation"
8400 aros_shared_cflags=""
8401 need_crosstools="yes"
8402 need_dlopen="no"
8403 rescomp="windres"
8404 case "$target_cpu" in
8405 *i?86*)
8406 aros_target_cpu="i386"
8407 aros_object_format="elf_i386"
8408 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8409 aros_default_wbdepth=8
8410 gcc_target_cpu="i386"
8412 kernel_tool_prefix="i386-mingw32-"
8414 *x86_64*)
8415 aros_target_cpu="x86_64"
8416 aros_object_format="elf_x86_64"
8417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8418 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8419 aros_default_wbdepth=8
8420 kernel_tool_prefix="x86_64-w64-mingw32-"
8422 *arm*)
8423 aros_target_cpu="arm"
8424 aros_object_format="armelf_aros"
8425 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8426 aros_arch_libs="-laeabi"
8427 aros_default_wbdepth=8
8428 gcc_target_cpu="arm"
8429 gcc_default_float_abi="soft"
8430 kernel_tool_prefix="arm-mingw32ce-"
8431 aros_default_wbwidth=160
8432 aros_default_wbheight=160
8435 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8437 esac
8438 if test $host_os = "cygwin"; then
8439 aros_kernel_cflags="-mno-cygwin"
8442 pp*)
8443 aros_target_arch="pp"
8444 aros_shared_default="no"
8445 case "$target_cpu" in
8446 *m68k*)
8447 aros_target_cpu="m68k"
8448 aros_object_format="m68kelf"
8449 aros_flavour="palmnative"
8450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8451 aros_default_wbwidth=160
8452 aros_default_wbheight=160
8453 aros_default_wbdepth=1
8454 aros_target_ar_flags="cru"
8455 aros_compiler_libs="-lgcc1"
8456 aros_shared_default=no
8457 aros_shared_cflags="-fpic"
8458 aros_shared_aflags=""
8459 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8460 aros_kernel_ldflags="-Wl,-rpath,./lib"
8461 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8462 aros_debug_aflags=""
8463 aros_debug_ldflags="$aros_symbols_debug"
8464 aros_mungwall_debug="0"
8465 aros_modules_debug="0"
8466 gcc_target_cpu="mc68000"
8467 ignore_undefined_symbols="-ius"
8470 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8472 esac
8475 mac*)
8476 aros_target_arch="mac"
8477 aros_shared_default="no"
8478 case "$target_cpu" in
8479 *m68k*)
8480 aros_target_cpu="m68k"
8481 aros_object_format="m68kelf"
8482 aros_flavour="mac68knative"
8483 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8484 aros_default_wbwidth=512
8485 aros_default_wbheight=384
8486 aros_default_wbdepth=8
8487 aros_target_ar_flags="cru"
8488 aros_compiler_libs="-lgcc1"
8489 aros_shared_default=no
8490 aros_shared_cflags="-fpic"
8491 aros_shared_aflags=""
8492 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8493 aros_kernel_ldflags="-Wl,-rpath,./lib"
8494 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8495 aros_debug_aflags=""
8496 aros_debug_ldflags="$aros_symbols_debug"
8497 aros_mungwall_debug="0"
8498 aros_modules_debug="0"
8499 gcc_target_cpu="mc68000"
8500 ignore_undefined_symbols="-ius"
8503 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8505 esac
8509 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8511 esac
8513 #-----------------------------------------------------------------------------
8514 crosstools_guess=yes
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8517 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8519 # Check whether --with-kernel-toolchain-prefix was given.
8520 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8521 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8525 $as_echo "$kernel_tool_prefix" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8528 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8530 # Check whether --with-elf-toolchain-prefix was given.
8531 if test "${with_elf_toolchain_prefix+set}" = set; then :
8532 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8533 crosstools_guess=no
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8537 $as_echo "$elf_tool_prefix" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8540 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8542 # Check whether --with-aros-toolchain was given.
8543 if test "${with_aros_toolchain+set}" = set; then :
8544 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8545 crosstools_guess=no
8548 if test "$aros_tool_prefix" = "yes" ; then
8549 aros_tool_prefix=$aros_target_cpu-aros-
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8552 $as_echo "$aros_tool_prefix" >&6; }
8554 #-----------------------------------------------------------------------------
8555 # Checking if we should build crosstools..
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8557 $as_echo_n "checking whether to build crosstools... " >&6; }
8558 # Check whether --enable-crosstools was given.
8559 if test "${enable_crosstools+set}" = set; then :
8560 enableval=$enable_crosstools; crosstools="$enableval"
8561 else
8562 crosstools="$crosstools_guess"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8566 $as_echo "$crosstools" >&6; }
8568 if test "${crosstools}" = "yes"; then
8569 if test "${crosstools_guess}" = "no"; then
8570 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8575 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8577 # Check whether --with-aros-toolchain-install was given.
8578 if test "${with_aros_toolchain_install+set}" = set; then :
8579 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8582 if test "x$aros_toolchain_install" = "x"; then
8583 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8584 else
8585 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8586 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8589 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8592 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8593 # Check whether --enable-objc was given.
8594 if test "${enable_objc+set}" = set; then :
8595 enableval=$enable_objc; objc="$enableval"
8596 else
8597 objc="yes"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8601 $as_echo "$objc" >&6; }
8602 if test "x$objc" = "xyes"; then
8603 objc_target="objc"
8604 else
8605 objc_target="no-objc"
8608 # Now process extra architecture-specific options.
8609 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8610 # as well as floating-point ABI.
8611 case "$aros_target_cpu" in
8612 arm)
8613 if test "$gcc_default_cpu" = ""; then
8614 gcc_default_cpu="armv6"
8616 if test "$gcc_default_fpu" = ""; then
8617 gcc_default_fpu="vfp"
8619 if test "$gcc_default_float_abi" = ""; then
8620 gcc_default_float_abi="softfp"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8624 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8626 # Check whether --with-cpu was given.
8627 if test "${with_cpu+set}" = set; then :
8628 withval=$with_cpu; aros_gcc_cpu="$withval"
8629 else
8630 aros_gcc_cpu=$gcc_default_cpu
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8634 $as_echo "$aros_gcc_cpu" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8637 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8639 # Check whether --with-fpu was given.
8640 if test "${with_fpu+set}" = set; then :
8641 withval=$with_fpu; aros_gcc_fpu="$withval"
8642 else
8643 aros_gcc_fpu=$gcc_default_fpu
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8647 $as_echo "$aros_gcc_fpu" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8650 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8652 # Check whether --with-float was given.
8653 if test "${with_float+set}" = set; then :
8654 withval=$with_float; aros_gcc_float_abi="$withval"
8655 else
8656 aros_gcc_float_abi=$gcc_default_float_abi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8660 $as_echo "$aros_gcc_float_abi" >&6; }
8662 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8663 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8665 esac
8667 # Some formats need custom ELF specs.
8668 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8669 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8670 elf_specs_in=config/${aros_object_format}-specs.in
8671 else
8672 elf_specs_in=config/elf-specs.in
8675 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8676 # Since we override specs, we may need to put these defines there
8677 if test "$gcc_target_cpu" != ""; then
8678 gcc_target_cpu="-D__${gcc_target_cpu}__"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8682 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8684 # Check whether --with-portssources was given.
8685 if test "${with_portssources+set}" = set; then :
8686 withval=$with_portssources; with_portssrcdir=$withval
8687 else
8688 with_portssrcdir="default"
8691 if test "$with_portssrcdir" = "default"; then
8692 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8693 else
8694 AROS_PORTSSRCDIR="$with_portssrcdir"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8697 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8700 $as_echo_n "checking which bootloader to use... " >&6; }
8702 # Check whether --with-bootloader was given.
8703 if test "${with_bootloader+set}" = set; then :
8704 withval=$with_bootloader; target_bootloader=$withval
8705 else
8706 target_bootloader=$target_bootloader
8709 if test "$target_bootloader" = "none"; then
8710 aros_target_bootloader=""
8711 else
8712 aros_target_bootloader="$target_bootloader"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8715 $as_echo "$target_bootloader" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8718 $as_echo_n "checking which icon-set to use... " >&6; }
8720 # Check whether --with-iconset was given.
8721 if test "${with_iconset+set}" = set; then :
8722 withval=$with_iconset; target_iconset=$withval
8723 else
8724 target_iconset="default"
8727 if test "$target_iconset" = "default"; then
8728 aros_target_iconset="Gorilla"
8729 target_iconset="default (Gorilla)"
8730 else
8731 aros_target_iconset="$target_iconset"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8734 $as_echo "$target_iconset" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8737 $as_echo_n "checking which GUI Theme to use... " >&6; }
8739 # Check whether --with-theme was given.
8740 if test "${with_theme+set}" = set; then :
8741 withval=$with_theme; target_guitheme=$withval
8742 else
8743 target_guitheme="default"
8746 if test "$target_guitheme" = "default"; then
8747 aros_target_guitheme="Ice"
8748 else
8749 aros_target_guitheme="$target_guitheme"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8752 $as_echo "$aros_target_guitheme" >&6; }
8754 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8755 # for target code)
8756 cross_compiling=no
8758 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8759 cross_compiling=yes
8762 if test "$aros_host_cpu" == "x86_64" ; then
8763 if test "$aros_target_cpu" == "i386" ; then
8764 cross_compiling=no
8768 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8769 if test "$aros_host_arch" != "$aros_target_arch" ; then
8770 cross_compiling=yes
8772 else
8773 if test "$host_cc_elf" = "no" ; then
8774 cross_compiling=yes
8778 if test "$cross_compiling" = "no" ; then
8779 kernel_tool_prefix=""
8780 if test "$host_cc_elf" = "yes" ; then
8781 elf_tool_prefix=""
8785 if test "$kernel_tool_version" != ""; then
8786 kernel_tool_version="-$kernel_tool_version"
8788 if test "$target_tool_version" != ""; then
8789 target_tool_version="-$target_tool_version"
8792 #######################################################################
8793 ## Compute what toolchains to use, and their paths ##
8794 #######################################################################
8796 # This takes, as input:
8797 # crosstools {yes,no}
8798 # kernel_tool_version {"",[version]}
8799 # target_tool_version {"",[version]}
8800 # kernel_tool_prefix {none,[some-arch-os-]}
8801 # target_tool_prefix ${aros_target_cpu}-aros-
8802 # aros_tool_prefix ${aros_target_cpu}-aros-
8804 # The output is
8805 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8806 # Where the 'kernel' binaries are located
8807 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8808 # Where the 'target' binaries are located
8809 # (not the symlink farm - that is aros_target_*!)
8811 # The rules are:
8812 # if crosstools then
8813 # if kernel_tools_prefix = "no-kernel-prefix-"
8814 # aros_kernel_* = crosstools cc paths
8815 # aros_kernel_cc = elf cc wrapper around crosstools cc
8816 # else
8817 # VALIDATE(${kernel_tools_prefix}*)
8818 # aros_kernel_* = ${kernel_tools_prefix}*
8819 # if ${kernel_tools_prefix}cc is an AROS gcc
8820 # aros_kernel_cc = ${kernel_tools_prefix}cc
8821 # else
8822 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8823 # fi
8824 # fi
8826 # orig_target_* = aros built crosstools
8827 # orig_target_cc = elf cc wrapper around crosstools cc
8828 # else
8829 # VALIDATE(${kernel_tools_prefix}*)
8831 # orig_target_* = aros_kernel_*
8832 # if aros_kernel_cc is an AROS gcc
8833 # orig_target_cc = aros_kernel_cc
8834 # else
8835 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8836 # fi
8837 # fi
8839 target_tool_prefix="${aros_target_cpu}-aros-"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8842 $as_echo_n "checking which kernel tools... " >&6; }
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8844 $as_echo "$kernel_tool_prefix" >&6; };
8846 if test "$kernel_tool_prefix" = "none" ; then
8847 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8848 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8850 else
8851 # Kernel tools required - find them
8852 # Note that 'normally', aros_kernel_* overrides will be
8853 # empty, unless specified in the per-arch sections above.
8854 if test "x$aros_kernel_cpp" = "x"; then
8855 aros_kernel_cpp=${kernel_tool_prefix}cpp
8858 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8859 if test "$cross_compiling" = "yes" ; then
8860 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8861 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 case $aros_kernel_cpp in
8868 [\\/]* | ?:[\\/]*)
8869 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8888 esac
8890 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8891 if test -n "$aros_kernel_cpp"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8893 $as_echo "$aros_kernel_cpp" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8900 else
8901 if test "$GCC" = "yes"; then
8902 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8903 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8904 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 case $aros_kernel_cpp in
8911 [\\/]* | ?:[\\/]*)
8912 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in `dirname $aros_gcc_cpp`
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8922 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8926 done
8927 done
8928 IFS=$as_save_IFS
8931 esac
8933 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8934 if test -n "$aros_kernel_cpp"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8936 $as_echo "$aros_kernel_cpp" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8944 if test "$aros_kernel_cpp" = ""; then
8945 # Extract the first word of "cpp", so it can be a program name with args.
8946 set dummy cpp; ac_word=$2
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 $as_echo_n "checking for $ac_word... " >&6; }
8949 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 case $aros_kernel_cpp in
8953 [\\/]* | ?:[\\/]*)
8954 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8968 done
8969 done
8970 IFS=$as_save_IFS
8973 esac
8975 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8976 if test -n "$aros_kernel_cpp"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8978 $as_echo "$aros_kernel_cpp" >&6; }
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981 $as_echo "no" >&6; }
8987 else
8988 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8989 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 case $aros_kernel_cpp in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9016 esac
9018 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9019 if test -n "$aros_kernel_cpp"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9021 $as_echo "$aros_kernel_cpp" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9030 if test "$aros_kernel_cpp" = ""; then
9031 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9033 if test "x$aros_kernel_cc" = "x"; then
9034 aros_kernel_cc=${kernel_tool_prefix}gcc
9037 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9038 if test "$cross_compiling" = "yes" ; then
9039 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9040 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 case $aros_kernel_cc in
9047 [\\/]* | ?:[\\/]*)
9048 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9062 done
9063 done
9064 IFS=$as_save_IFS
9067 esac
9069 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9070 if test -n "$aros_kernel_cc"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9072 $as_echo "$aros_kernel_cc" >&6; }
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9079 else
9080 if test "$GCC" = "yes"; then
9081 aros_gcc_cc=`$CC -print-prog-name=cc`
9082 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9083 set dummy `basename $aros_gcc_cc`; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 case $aros_kernel_cc in
9090 [\\/]* | ?:[\\/]*)
9091 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in `dirname $aros_gcc_cc`
9097 IFS=$as_save_IFS
9098 test -z "$as_dir" && as_dir=.
9099 for ac_exec_ext in '' $ac_executable_extensions; do
9100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9101 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 break 2
9105 done
9106 done
9107 IFS=$as_save_IFS
9110 esac
9112 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9113 if test -n "$aros_kernel_cc"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9115 $as_echo "$aros_kernel_cc" >&6; }
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9123 if test "$aros_kernel_cc" = ""; then
9124 # Extract the first word of "cc", so it can be a program name with args.
9125 set dummy cc; ac_word=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 case $aros_kernel_cc in
9132 [\\/]* | ?:[\\/]*)
9133 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9147 done
9148 done
9149 IFS=$as_save_IFS
9152 esac
9154 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9155 if test -n "$aros_kernel_cc"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9157 $as_echo "$aros_kernel_cc" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9166 else
9167 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9168 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 case $aros_kernel_cc in
9175 [\\/]* | ?:[\\/]*)
9176 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9190 done
9191 done
9192 IFS=$as_save_IFS
9195 esac
9197 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9198 if test -n "$aros_kernel_cc"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9200 $as_echo "$aros_kernel_cc" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9209 if test "$aros_kernel_cc" = ""; then
9210 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9212 if test "x$aros_kernel_cxx" = "x"; then
9213 aros_kernel_cxx=${kernel_tool_prefix}g++
9216 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9217 if test "$cross_compiling" = "yes" ; then
9218 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9219 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 case $aros_kernel_cxx in
9226 [\\/]* | ?:[\\/]*)
9227 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9241 done
9242 done
9243 IFS=$as_save_IFS
9246 esac
9248 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9249 if test -n "$aros_kernel_cxx"; then
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9251 $as_echo "$aros_kernel_cxx" >&6; }
9252 else
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9258 else
9259 if test "$GCC" = "yes"; then
9260 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9261 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9262 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 case $aros_kernel_cxx in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in `dirname $aros_gcc_cxx`
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9289 esac
9291 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9292 if test -n "$aros_kernel_cxx"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9294 $as_echo "$aros_kernel_cxx" >&6; }
9295 else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9302 if test "$aros_kernel_cxx" = ""; then
9303 # Extract the first word of "cxx", so it can be a program name with args.
9304 set dummy cxx; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 case $aros_kernel_cxx in
9311 [\\/]* | ?:[\\/]*)
9312 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9331 esac
9333 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9334 if test -n "$aros_kernel_cxx"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9336 $as_echo "$aros_kernel_cxx" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9345 else
9346 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9347 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 case $aros_kernel_cxx in
9354 [\\/]* | ?:[\\/]*)
9355 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9369 done
9370 done
9371 IFS=$as_save_IFS
9374 esac
9376 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9377 if test -n "$aros_kernel_cxx"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9379 $as_echo "$aros_kernel_cxx" >&6; }
9380 else
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 $as_echo "no" >&6; }
9388 # If it's set, make sure it's really there
9389 if test "x$aros_kernel_cxx" != "x" ; then
9390 if test "$aros_kernel_cxx" = ""; then
9391 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9395 if test "$aros_kernel_ld" = ""; then
9396 if test "$cross_compiling" = "yes" ; then
9397 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9398 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 case $aros_kernel_ld in
9405 [\\/]* | ?:[\\/]*)
9406 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in $PATH
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9416 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 break 2
9420 done
9421 done
9422 IFS=$as_save_IFS
9425 esac
9427 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9428 if test -n "$aros_kernel_ld"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9430 $as_echo "$aros_kernel_ld" >&6; }
9431 else
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9437 else
9438 if test "$GCC" = "yes"; then
9439 aros_gcc_ld=`$CC -print-prog-name=ld`
9440 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9441 set dummy `basename $aros_gcc_ld`; ac_word=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 case $aros_kernel_ld in
9448 [\\/]* | ?:[\\/]*)
9449 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in `dirname $aros_gcc_ld`
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9465 IFS=$as_save_IFS
9468 esac
9470 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9471 if test -n "$aros_kernel_ld"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9473 $as_echo "$aros_kernel_ld" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9481 if test "$aros_kernel_ld" = ""; then
9482 # Extract the first word of "ld", so it can be a program name with args.
9483 set dummy ld; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 case $aros_kernel_ld in
9490 [\\/]* | ?:[\\/]*)
9491 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9505 done
9506 done
9507 IFS=$as_save_IFS
9510 esac
9512 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9513 if test -n "$aros_kernel_ld"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9515 $as_echo "$aros_kernel_ld" >&6; }
9516 else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9524 else
9525 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9526 set dummy $aros_kernel_ld; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 case $aros_kernel_ld in
9533 [\\/]* | ?:[\\/]*)
9534 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9553 esac
9555 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9556 if test -n "$aros_kernel_ld"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9558 $as_echo "$aros_kernel_ld" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9567 if test "$aros_kernel_ld" = ""; then
9568 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9571 if test "$aros_kernel_as" = ""; then
9572 if test "$cross_compiling" = "yes" ; then
9573 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9574 set dummy ${kernel_tool_prefix}as; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_path_aros_kernel_as+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 case $aros_kernel_as in
9581 [\\/]* | ?:[\\/]*)
9582 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9588 IFS=$as_save_IFS
9589 test -z "$as_dir" && as_dir=.
9590 for ac_exec_ext in '' $ac_executable_extensions; do
9591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 break 2
9596 done
9597 done
9598 IFS=$as_save_IFS
9601 esac
9603 aros_kernel_as=$ac_cv_path_aros_kernel_as
9604 if test -n "$aros_kernel_as"; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9606 $as_echo "$aros_kernel_as" >&6; }
9607 else
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9613 else
9614 if test "$GCC" = "yes"; then
9615 aros_gcc_as=`$CC -print-prog-name=as`
9616 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9617 set dummy `basename $aros_gcc_as`; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_aros_kernel_as+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 case $aros_kernel_as in
9624 [\\/]* | ?:[\\/]*)
9625 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in `dirname $aros_gcc_as`
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9639 done
9640 done
9641 IFS=$as_save_IFS
9644 esac
9646 aros_kernel_as=$ac_cv_path_aros_kernel_as
9647 if test -n "$aros_kernel_as"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9649 $as_echo "$aros_kernel_as" >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652 $as_echo "no" >&6; }
9657 if test "$aros_kernel_as" = ""; then
9658 # Extract the first word of "as", so it can be a program name with args.
9659 set dummy as; ac_word=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if ${ac_cv_path_aros_kernel_as+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 case $aros_kernel_as in
9666 [\\/]* | ?:[\\/]*)
9667 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9677 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9681 done
9682 done
9683 IFS=$as_save_IFS
9686 esac
9688 aros_kernel_as=$ac_cv_path_aros_kernel_as
9689 if test -n "$aros_kernel_as"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9691 $as_echo "$aros_kernel_as" >&6; }
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9700 else
9701 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9702 set dummy $aros_kernel_as; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_path_aros_kernel_as+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 case $aros_kernel_as in
9709 [\\/]* | ?:[\\/]*)
9710 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9726 IFS=$as_save_IFS
9729 esac
9731 aros_kernel_as=$ac_cv_path_aros_kernel_as
9732 if test -n "$aros_kernel_as"; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9734 $as_echo "$aros_kernel_as" >&6; }
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9743 if test "$aros_kernel_as" = ""; then
9744 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9747 if test "$aros_kernel_ar" = ""; then
9748 if test "$cross_compiling" = "yes" ; then
9749 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9750 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 case $aros_kernel_ar in
9757 [\\/]* | ?:[\\/]*)
9758 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9772 done
9773 done
9774 IFS=$as_save_IFS
9777 esac
9779 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9780 if test -n "$aros_kernel_ar"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9782 $as_echo "$aros_kernel_ar" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9789 else
9790 if test "$GCC" = "yes"; then
9791 aros_gcc_ar=`$CC -print-prog-name=ar`
9792 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9793 set dummy `basename $aros_gcc_ar`; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 case $aros_kernel_ar in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in `dirname $aros_gcc_ar`
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9823 if test -n "$aros_kernel_ar"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9825 $as_echo "$aros_kernel_ar" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 if test "$aros_kernel_ar" = ""; then
9834 # Extract the first word of "ar", so it can be a program name with args.
9835 set dummy ar; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 case $aros_kernel_ar in
9842 [\\/]* | ?:[\\/]*)
9843 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9862 esac
9864 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9865 if test -n "$aros_kernel_ar"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9867 $as_echo "$aros_kernel_ar" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9876 else
9877 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9878 set dummy $aros_kernel_ar; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 case $aros_kernel_ar in
9885 [\\/]* | ?:[\\/]*)
9886 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9896 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9905 esac
9907 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9908 if test -n "$aros_kernel_ar"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9910 $as_echo "$aros_kernel_ar" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9919 if test "$aros_kernel_ar" = ""; then
9920 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9923 if test "$aros_kernel_ranlib" = ""; then
9924 if test "$cross_compiling" = "yes" ; then
9925 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9926 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 case $aros_kernel_ranlib in
9933 [\\/]* | ?:[\\/]*)
9934 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9944 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9948 done
9949 done
9950 IFS=$as_save_IFS
9953 esac
9955 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9956 if test -n "$aros_kernel_ranlib"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9958 $as_echo "$aros_kernel_ranlib" >&6; }
9959 else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9965 else
9966 if test "$GCC" = "yes"; then
9967 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9968 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9969 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 case $aros_kernel_ranlib in
9976 [\\/]* | ?:[\\/]*)
9977 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in `dirname $aros_gcc_ranlib`
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9991 done
9992 done
9993 IFS=$as_save_IFS
9996 esac
9998 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9999 if test -n "$aros_kernel_ranlib"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10001 $as_echo "$aros_kernel_ranlib" >&6; }
10002 else
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10009 if test "$aros_kernel_ranlib" = ""; then
10010 # Extract the first word of "ranlib", so it can be a program name with args.
10011 set dummy ranlib; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 case $aros_kernel_ranlib in
10018 [\\/]* | ?:[\\/]*)
10019 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023 for as_dir in $PATH
10025 IFS=$as_save_IFS
10026 test -z "$as_dir" && as_dir=.
10027 for ac_exec_ext in '' $ac_executable_extensions; do
10028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10029 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 break 2
10033 done
10034 done
10035 IFS=$as_save_IFS
10038 esac
10040 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10041 if test -n "$aros_kernel_ranlib"; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10043 $as_echo "$aros_kernel_ranlib" >&6; }
10044 else
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10052 else
10053 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10054 set dummy $aros_kernel_ranlib; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 case $aros_kernel_ranlib in
10061 [\\/]* | ?:[\\/]*)
10062 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10076 done
10077 done
10078 IFS=$as_save_IFS
10081 esac
10083 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10084 if test -n "$aros_kernel_ranlib"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10086 $as_echo "$aros_kernel_ranlib" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10095 if test "$aros_kernel_ranlib" = ""; then
10096 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10099 if test "$aros_kernel_nm" = ""; then
10100 if test "$cross_compiling" = "yes" ; then
10101 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10102 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 case $aros_kernel_nm in
10109 [\\/]* | ?:[\\/]*)
10110 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10126 IFS=$as_save_IFS
10129 esac
10131 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10132 if test -n "$aros_kernel_nm"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10134 $as_echo "$aros_kernel_nm" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10141 else
10142 if test "$GCC" = "yes"; then
10143 aros_gcc_nm=`$CC -print-prog-name=nm`
10144 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10145 set dummy `basename $aros_gcc_nm`; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $aros_kernel_nm in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in `dirname $aros_gcc_nm`
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10167 done
10168 done
10169 IFS=$as_save_IFS
10172 esac
10174 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10175 if test -n "$aros_kernel_nm"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10177 $as_echo "$aros_kernel_nm" >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10185 if test "$aros_kernel_nm" = ""; then
10186 # Extract the first word of "nm", so it can be a program name with args.
10187 set dummy nm; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 case $aros_kernel_nm in
10194 [\\/]* | ?:[\\/]*)
10195 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10209 done
10210 done
10211 IFS=$as_save_IFS
10214 esac
10216 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10217 if test -n "$aros_kernel_nm"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10219 $as_echo "$aros_kernel_nm" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10228 else
10229 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10230 set dummy $aros_kernel_nm; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $aros_kernel_nm in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10257 esac
10259 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10260 if test -n "$aros_kernel_nm"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10262 $as_echo "$aros_kernel_nm" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10271 if test "$aros_kernel_nm" = ""; then
10272 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10275 if test "$aros_kernel_strip" = ""; then
10276 if test "$cross_compiling" = "yes" ; then
10277 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10278 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 case $aros_kernel_strip in
10285 [\\/]* | ?:[\\/]*)
10286 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10292 IFS=$as_save_IFS
10293 test -z "$as_dir" && as_dir=.
10294 for ac_exec_ext in '' $ac_executable_extensions; do
10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298 break 2
10300 done
10301 done
10302 IFS=$as_save_IFS
10305 esac
10307 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10308 if test -n "$aros_kernel_strip"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10310 $as_echo "$aros_kernel_strip" >&6; }
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10317 else
10318 if test "$GCC" = "yes"; then
10319 aros_gcc_strip=`$CC -print-prog-name=strip`
10320 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10321 set dummy `basename $aros_gcc_strip`; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 case $aros_kernel_strip in
10328 [\\/]* | ?:[\\/]*)
10329 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in `dirname $aros_gcc_strip`
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10343 done
10344 done
10345 IFS=$as_save_IFS
10348 esac
10350 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10351 if test -n "$aros_kernel_strip"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10353 $as_echo "$aros_kernel_strip" >&6; }
10354 else
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10361 if test "$aros_kernel_strip" = ""; then
10362 # Extract the first word of "strip", so it can be a program name with args.
10363 set dummy strip; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 case $aros_kernel_strip in
10370 [\\/]* | ?:[\\/]*)
10371 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10385 done
10386 done
10387 IFS=$as_save_IFS
10390 esac
10392 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10393 if test -n "$aros_kernel_strip"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10395 $as_echo "$aros_kernel_strip" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10404 else
10405 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10406 set dummy $aros_kernel_strip; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 $as_echo_n "checking for $ac_word... " >&6; }
10409 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 case $aros_kernel_strip in
10413 [\\/]* | ?:[\\/]*)
10414 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10428 done
10429 done
10430 IFS=$as_save_IFS
10433 esac
10435 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10436 if test -n "$aros_kernel_strip"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10438 $as_echo "$aros_kernel_strip" >&6; }
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10447 if test "$aros_kernel_strip" = ""; then
10448 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10451 # Objcopy and objdump are not required for the kernel
10452 # toolchain on many architectures.
10453 # So we'll look for them, but not make them strictly required.
10455 if test "$aros_kernel_objcopy" = ""; then
10456 if test "$cross_compiling" = "yes" ; then
10457 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10458 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 case $aros_kernel_objcopy in
10465 [\\/]* | ?:[\\/]*)
10466 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10480 done
10481 done
10482 IFS=$as_save_IFS
10485 esac
10487 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10488 if test -n "$aros_kernel_objcopy"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10490 $as_echo "$aros_kernel_objcopy" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10497 else
10498 if test "$GCC" = "yes"; then
10499 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10500 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10501 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 case $aros_kernel_objcopy in
10508 [\\/]* | ?:[\\/]*)
10509 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in `dirname $aros_gcc_objcopy`
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10523 done
10524 done
10525 IFS=$as_save_IFS
10528 esac
10530 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10531 if test -n "$aros_kernel_objcopy"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10533 $as_echo "$aros_kernel_objcopy" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10541 if test "$aros_kernel_objcopy" = ""; then
10542 # Extract the first word of "objcopy", so it can be a program name with args.
10543 set dummy objcopy; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 case $aros_kernel_objcopy in
10550 [\\/]* | ?:[\\/]*)
10551 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10565 done
10566 done
10567 IFS=$as_save_IFS
10570 esac
10572 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10573 if test -n "$aros_kernel_objcopy"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10575 $as_echo "$aros_kernel_objcopy" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10584 else
10585 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10586 set dummy $aros_kernel_objcopy; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 case $aros_kernel_objcopy in
10593 [\\/]* | ?:[\\/]*)
10594 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10608 done
10609 done
10610 IFS=$as_save_IFS
10613 esac
10615 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10616 if test -n "$aros_kernel_objcopy"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10618 $as_echo "$aros_kernel_objcopy" >&6; }
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10628 if test "$aros_kernel_objdump" = ""; then
10629 if test "$cross_compiling" = "yes" ; then
10630 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10631 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 case $aros_kernel_objdump in
10638 [\\/]* | ?:[\\/]*)
10639 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10653 done
10654 done
10655 IFS=$as_save_IFS
10658 esac
10660 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10661 if test -n "$aros_kernel_objdump"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10663 $as_echo "$aros_kernel_objdump" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10670 else
10671 if test "$GCC" = "yes"; then
10672 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10673 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10674 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 case $aros_kernel_objdump in
10681 [\\/]* | ?:[\\/]*)
10682 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in `dirname $aros_gcc_objdump`
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10696 done
10697 done
10698 IFS=$as_save_IFS
10701 esac
10703 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10704 if test -n "$aros_kernel_objdump"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10706 $as_echo "$aros_kernel_objdump" >&6; }
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10714 if test "$aros_kernel_objdump" = ""; then
10715 # Extract the first word of "objdump", so it can be a program name with args.
10716 set dummy objdump; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 case $aros_kernel_objdump in
10723 [\\/]* | ?:[\\/]*)
10724 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10743 esac
10745 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10746 if test -n "$aros_kernel_objdump"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10748 $as_echo "$aros_kernel_objdump" >&6; }
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10757 else
10758 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10759 set dummy $aros_kernel_objdump; ac_word=$2
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10761 $as_echo_n "checking for $ac_word... " >&6; }
10762 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 case $aros_kernel_objdump in
10766 [\\/]* | ?:[\\/]*)
10767 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10781 done
10782 done
10783 IFS=$as_save_IFS
10786 esac
10788 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10789 if test -n "$aros_kernel_objdump"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10791 $as_echo "$aros_kernel_objdump" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10800 if test "x${crosstools}" != "xyes" ; then
10801 if test "$aros_kernel_objcopy" = ""; then
10802 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10804 if test "$aros_kernel_objdump" = ""; then
10805 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10811 $as_echo_n "checking which target tools to use... " >&6; }
10812 if test "$crosstools" = "yes"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10814 $as_echo "$target_tool_prefix" >&6; }
10815 # We are are building AROS crosstools
10816 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10817 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10818 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10819 orig_target_cpp="${tmp_tool_prefix}cpp"
10820 orig_target_ld="${tmp_tool_prefix}ld"
10821 orig_target_as="${tmp_tool_prefix}as"
10822 orig_target_ar="${tmp_tool_prefix}ar"
10823 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10824 orig_target_nm="${tmp_tool_prefix}nm"
10825 orig_target_strip="${tmp_tool_prefix}strip"
10826 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10827 orig_target_objdump="${tmp_tool_prefix}objdump"
10828 else
10829 # Determine whether AROS or ELF tools should be used
10830 if test "$aros_tool_prefix" = "none"; then
10831 aros_tool_prefix="${elf_tool_prefix}"
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10835 $as_echo "$aros_tool_prefix" >&6; }
10836 # We are *not* building AROS crosstools - use the AROS or ELF tools
10838 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10839 if test "$cross_compiling" = "yes" ; then
10840 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10841 set dummy ${target_tool_prefix}cpp; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if ${ac_cv_path_orig_target_cpp+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 case $orig_target_cpp in
10848 [\\/]* | ?:[\\/]*)
10849 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10865 IFS=$as_save_IFS
10868 esac
10870 orig_target_cpp=$ac_cv_path_orig_target_cpp
10871 if test -n "$orig_target_cpp"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10873 $as_echo "$orig_target_cpp" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10880 else
10881 if test "$GCC" = "yes"; then
10882 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10883 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10884 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_path_orig_target_cpp+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 case $orig_target_cpp in
10891 [\\/]* | ?:[\\/]*)
10892 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in `dirname $aros_gcc_cpp`
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 break 2
10906 done
10907 done
10908 IFS=$as_save_IFS
10911 esac
10913 orig_target_cpp=$ac_cv_path_orig_target_cpp
10914 if test -n "$orig_target_cpp"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10916 $as_echo "$orig_target_cpp" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10924 if test "$orig_target_cpp" = ""; then
10925 # Extract the first word of "cpp", so it can be a program name with args.
10926 set dummy cpp; ac_word=$2
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928 $as_echo_n "checking for $ac_word... " >&6; }
10929 if ${ac_cv_path_orig_target_cpp+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 case $orig_target_cpp in
10933 [\\/]* | ?:[\\/]*)
10934 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10940 IFS=$as_save_IFS
10941 test -z "$as_dir" && as_dir=.
10942 for ac_exec_ext in '' $ac_executable_extensions; do
10943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10944 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10946 break 2
10948 done
10949 done
10950 IFS=$as_save_IFS
10953 esac
10955 orig_target_cpp=$ac_cv_path_orig_target_cpp
10956 if test -n "$orig_target_cpp"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10958 $as_echo "$orig_target_cpp" >&6; }
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10967 else
10968 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
10969 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_orig_target_cpp+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 case $orig_target_cpp in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10996 esac
10998 orig_target_cpp=$ac_cv_path_orig_target_cpp
10999 if test -n "$orig_target_cpp"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11001 $as_echo "$orig_target_cpp" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11010 if test "$orig_target_cpp" = ""; then
11011 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11014 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11015 if test "$cross_compiling" = "yes" ; then
11016 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11017 set dummy ${target_tool_prefix}gcc; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_path_orig_target_cc+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 case $orig_target_cc in
11024 [\\/]* | ?:[\\/]*)
11025 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11039 done
11040 done
11041 IFS=$as_save_IFS
11044 esac
11046 orig_target_cc=$ac_cv_path_orig_target_cc
11047 if test -n "$orig_target_cc"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11049 $as_echo "$orig_target_cc" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11056 else
11057 if test "$GCC" = "yes"; then
11058 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11059 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11060 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if ${ac_cv_path_orig_target_cc+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 case $orig_target_cc in
11067 [\\/]* | ?:[\\/]*)
11068 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in `dirname $aros_gcc_gcc`
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11082 done
11083 done
11084 IFS=$as_save_IFS
11087 esac
11089 orig_target_cc=$ac_cv_path_orig_target_cc
11090 if test -n "$orig_target_cc"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11092 $as_echo "$orig_target_cc" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11100 if test "$orig_target_cc" = ""; then
11101 # Extract the first word of "gcc", so it can be a program name with args.
11102 set dummy gcc; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_orig_target_cc+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 case $orig_target_cc in
11109 [\\/]* | ?:[\\/]*)
11110 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11124 done
11125 done
11126 IFS=$as_save_IFS
11129 esac
11131 orig_target_cc=$ac_cv_path_orig_target_cc
11132 if test -n "$orig_target_cc"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11134 $as_echo "$orig_target_cc" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11143 else
11144 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11145 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if ${ac_cv_path_orig_target_cc+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 case $orig_target_cc in
11152 [\\/]* | ?:[\\/]*)
11153 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11167 done
11168 done
11169 IFS=$as_save_IFS
11172 esac
11174 orig_target_cc=$ac_cv_path_orig_target_cc
11175 if test -n "$orig_target_cc"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11177 $as_echo "$orig_target_cc" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11186 if test "$orig_target_cc" = ""; then
11187 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11190 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11191 if test "$cross_compiling" = "yes" ; then
11192 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11193 set dummy ${target_tool_prefix}g++; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_path_orig_target_cxx+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 case $orig_target_cxx in
11200 [\\/]* | ?:[\\/]*)
11201 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11211 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11215 done
11216 done
11217 IFS=$as_save_IFS
11220 esac
11222 orig_target_cxx=$ac_cv_path_orig_target_cxx
11223 if test -n "$orig_target_cxx"; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11225 $as_echo "$orig_target_cxx" >&6; }
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11232 else
11233 if test "$GCC" = "yes"; then
11234 aros_gcc_g++=`$CC -print-prog-name=g++`
11235 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11236 set dummy `basename $aros_gcc_g++`; ac_word=$2
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 $as_echo_n "checking for $ac_word... " >&6; }
11239 if ${ac_cv_path_orig_target_cxx+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 case $orig_target_cxx in
11243 [\\/]* | ?:[\\/]*)
11244 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in `dirname $aros_gcc_g++`
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11254 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11258 done
11259 done
11260 IFS=$as_save_IFS
11263 esac
11265 orig_target_cxx=$ac_cv_path_orig_target_cxx
11266 if test -n "$orig_target_cxx"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11268 $as_echo "$orig_target_cxx" >&6; }
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11276 if test "$orig_target_cxx" = ""; then
11277 # Extract the first word of "g++", so it can be a program name with args.
11278 set dummy g++; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if ${ac_cv_path_orig_target_cxx+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $orig_target_cxx in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11302 IFS=$as_save_IFS
11305 esac
11307 orig_target_cxx=$ac_cv_path_orig_target_cxx
11308 if test -n "$orig_target_cxx"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11310 $as_echo "$orig_target_cxx" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11319 else
11320 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11321 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_orig_target_cxx+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 case $orig_target_cxx in
11328 [\\/]* | ?:[\\/]*)
11329 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11348 esac
11350 orig_target_cxx=$ac_cv_path_orig_target_cxx
11351 if test -n "$orig_target_cxx"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11353 $as_echo "$orig_target_cxx" >&6; }
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11362 if test "$orig_target_cxx" = ""; then
11363 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11366 if test "${aros_tool_prefix}ld" = ""; then
11367 if test "$cross_compiling" = "yes" ; then
11368 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11369 set dummy ${target_tool_prefix}gcc; ac_word=$2
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371 $as_echo_n "checking for $ac_word... " >&6; }
11372 if ${ac_cv_path_orig_target_ld+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 case $orig_target_ld in
11376 [\\/]* | ?:[\\/]*)
11377 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11391 done
11392 done
11393 IFS=$as_save_IFS
11396 esac
11398 orig_target_ld=$ac_cv_path_orig_target_ld
11399 if test -n "$orig_target_ld"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11401 $as_echo "$orig_target_ld" >&6; }
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11408 else
11409 if test "$GCC" = "yes"; then
11410 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11411 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11412 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_path_orig_target_ld+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 case $orig_target_ld in
11419 [\\/]* | ?:[\\/]*)
11420 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in `dirname $aros_gcc_gcc`
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11434 done
11435 done
11436 IFS=$as_save_IFS
11439 esac
11441 orig_target_ld=$ac_cv_path_orig_target_ld
11442 if test -n "$orig_target_ld"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11444 $as_echo "$orig_target_ld" >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11452 if test "$orig_target_ld" = ""; then
11453 # Extract the first word of "gcc", so it can be a program name with args.
11454 set dummy gcc; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_path_orig_target_ld+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 case $orig_target_ld in
11461 [\\/]* | ?:[\\/]*)
11462 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11476 done
11477 done
11478 IFS=$as_save_IFS
11481 esac
11483 orig_target_ld=$ac_cv_path_orig_target_ld
11484 if test -n "$orig_target_ld"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11486 $as_echo "$orig_target_ld" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11495 else
11496 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11497 set dummy ${aros_tool_prefix}ld; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_orig_target_ld+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $orig_target_ld in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11524 esac
11526 orig_target_ld=$ac_cv_path_orig_target_ld
11527 if test -n "$orig_target_ld"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11529 $as_echo "$orig_target_ld" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11538 if test "$orig_target_ld" = ""; then
11539 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11542 if test "${aros_tool_prefix}as" = ""; then
11543 if test "$cross_compiling" = "yes" ; then
11544 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11545 set dummy ${target_tool_prefix}as; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_path_orig_target_as+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 case $orig_target_as in
11552 [\\/]* | ?:[\\/]*)
11553 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11567 done
11568 done
11569 IFS=$as_save_IFS
11572 esac
11574 orig_target_as=$ac_cv_path_orig_target_as
11575 if test -n "$orig_target_as"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11577 $as_echo "$orig_target_as" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11584 else
11585 if test "$GCC" = "yes"; then
11586 aros_gcc_as=`$CC -print-prog-name=as`
11587 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11588 set dummy `basename $aros_gcc_as`; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_orig_target_as+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $orig_target_as in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in `dirname $aros_gcc_as`
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11610 done
11611 done
11612 IFS=$as_save_IFS
11615 esac
11617 orig_target_as=$ac_cv_path_orig_target_as
11618 if test -n "$orig_target_as"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11620 $as_echo "$orig_target_as" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11628 if test "$orig_target_as" = ""; then
11629 # Extract the first word of "as", so it can be a program name with args.
11630 set dummy as; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_path_orig_target_as+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 case $orig_target_as in
11637 [\\/]* | ?:[\\/]*)
11638 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 break 2
11652 done
11653 done
11654 IFS=$as_save_IFS
11657 esac
11659 orig_target_as=$ac_cv_path_orig_target_as
11660 if test -n "$orig_target_as"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11662 $as_echo "$orig_target_as" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11671 else
11672 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11673 set dummy ${aros_tool_prefix}as; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_orig_target_as+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 case $orig_target_as in
11680 [\\/]* | ?:[\\/]*)
11681 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11695 done
11696 done
11697 IFS=$as_save_IFS
11700 esac
11702 orig_target_as=$ac_cv_path_orig_target_as
11703 if test -n "$orig_target_as"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11705 $as_echo "$orig_target_as" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11714 if test "$orig_target_as" = ""; then
11715 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11718 if test "${aros_tool_prefix}ar" = ""; then
11719 if test "$cross_compiling" = "yes" ; then
11720 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11721 set dummy ${target_tool_prefix}ar; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_path_orig_target_ar+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 case $orig_target_ar in
11728 [\\/]* | ?:[\\/]*)
11729 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11743 done
11744 done
11745 IFS=$as_save_IFS
11748 esac
11750 orig_target_ar=$ac_cv_path_orig_target_ar
11751 if test -n "$orig_target_ar"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11753 $as_echo "$orig_target_ar" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11760 else
11761 if test "$GCC" = "yes"; then
11762 aros_gcc_ar=`$CC -print-prog-name=ar`
11763 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11764 set dummy `basename $aros_gcc_ar`; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_orig_target_ar+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 case $orig_target_ar in
11771 [\\/]* | ?:[\\/]*)
11772 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in `dirname $aros_gcc_ar`
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11786 done
11787 done
11788 IFS=$as_save_IFS
11791 esac
11793 orig_target_ar=$ac_cv_path_orig_target_ar
11794 if test -n "$orig_target_ar"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11796 $as_echo "$orig_target_ar" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11804 if test "$orig_target_ar" = ""; then
11805 # Extract the first word of "ar", so it can be a program name with args.
11806 set dummy ar; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_path_orig_target_ar+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 case $orig_target_ar in
11813 [\\/]* | ?:[\\/]*)
11814 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11828 done
11829 done
11830 IFS=$as_save_IFS
11833 esac
11835 orig_target_ar=$ac_cv_path_orig_target_ar
11836 if test -n "$orig_target_ar"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11838 $as_echo "$orig_target_ar" >&6; }
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11847 else
11848 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11849 set dummy ${aros_tool_prefix}ar; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_orig_target_ar+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 case $orig_target_ar in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11871 done
11872 done
11873 IFS=$as_save_IFS
11876 esac
11878 orig_target_ar=$ac_cv_path_orig_target_ar
11879 if test -n "$orig_target_ar"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11881 $as_echo "$orig_target_ar" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11890 if test "$orig_target_ar" = ""; then
11891 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11894 if test "${aros_tool_prefix}ranlib" = ""; then
11895 if test "$cross_compiling" = "yes" ; then
11896 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11897 set dummy ${target_tool_prefix}ar; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 case $orig_target_ranlib in
11904 [\\/]* | ?:[\\/]*)
11905 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11919 done
11920 done
11921 IFS=$as_save_IFS
11924 esac
11926 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11927 if test -n "$orig_target_ranlib"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11929 $as_echo "$orig_target_ranlib" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11936 else
11937 if test "$GCC" = "yes"; then
11938 aros_gcc_ar=`$CC -print-prog-name=ar`
11939 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11940 set dummy `basename $aros_gcc_ar`; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 case $orig_target_ranlib in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in `dirname $aros_gcc_ar`
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11967 esac
11969 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11970 if test -n "$orig_target_ranlib"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11972 $as_echo "$orig_target_ranlib" >&6; }
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11980 if test "$orig_target_ranlib" = ""; then
11981 # Extract the first word of "ar", so it can be a program name with args.
11982 set dummy ar; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 case $orig_target_ranlib in
11989 [\\/]* | ?:[\\/]*)
11990 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12000 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12004 done
12005 done
12006 IFS=$as_save_IFS
12009 esac
12011 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12012 if test -n "$orig_target_ranlib"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12014 $as_echo "$orig_target_ranlib" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12023 else
12024 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12025 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027 $as_echo_n "checking for $ac_word... " >&6; }
12028 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 case $orig_target_ranlib in
12032 [\\/]* | ?:[\\/]*)
12033 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12047 done
12048 done
12049 IFS=$as_save_IFS
12052 esac
12054 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12055 if test -n "$orig_target_ranlib"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12057 $as_echo "$orig_target_ranlib" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12066 if test "$orig_target_ranlib" = ""; then
12067 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12070 if test "${aros_tool_prefix}nm" = ""; then
12071 if test "$cross_compiling" = "yes" ; then
12072 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12073 set dummy ${target_tool_prefix}nm; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_path_orig_target_nm+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 case $orig_target_nm in
12080 [\\/]* | ?:[\\/]*)
12081 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12095 done
12096 done
12097 IFS=$as_save_IFS
12100 esac
12102 orig_target_nm=$ac_cv_path_orig_target_nm
12103 if test -n "$orig_target_nm"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12105 $as_echo "$orig_target_nm" >&6; }
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12112 else
12113 if test "$GCC" = "yes"; then
12114 aros_gcc_nm=`$CC -print-prog-name=nm`
12115 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12116 set dummy `basename $aros_gcc_nm`; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_orig_target_nm+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 case $orig_target_nm in
12123 [\\/]* | ?:[\\/]*)
12124 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in `dirname $aros_gcc_nm`
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12138 done
12139 done
12140 IFS=$as_save_IFS
12143 esac
12145 orig_target_nm=$ac_cv_path_orig_target_nm
12146 if test -n "$orig_target_nm"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12148 $as_echo "$orig_target_nm" >&6; }
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12156 if test "$orig_target_nm" = ""; then
12157 # Extract the first word of "nm", so it can be a program name with args.
12158 set dummy nm; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_path_orig_target_nm+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 case $orig_target_nm in
12165 [\\/]* | ?:[\\/]*)
12166 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12180 done
12181 done
12182 IFS=$as_save_IFS
12185 esac
12187 orig_target_nm=$ac_cv_path_orig_target_nm
12188 if test -n "$orig_target_nm"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12190 $as_echo "$orig_target_nm" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12199 else
12200 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12201 set dummy ${aros_tool_prefix}nm; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_path_orig_target_nm+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $orig_target_nm in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 orig_target_nm=$ac_cv_path_orig_target_nm
12231 if test -n "$orig_target_nm"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12233 $as_echo "$orig_target_nm" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12242 if test "$orig_target_nm" = ""; then
12243 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12246 if test "${aros_tool_prefix}strip" = ""; then
12247 if test "$cross_compiling" = "yes" ; then
12248 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12249 set dummy ${target_tool_prefix}strip; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if ${ac_cv_path_orig_target_strip+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 case $orig_target_strip in
12256 [\\/]* | ?:[\\/]*)
12257 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12271 done
12272 done
12273 IFS=$as_save_IFS
12276 esac
12278 orig_target_strip=$ac_cv_path_orig_target_strip
12279 if test -n "$orig_target_strip"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12281 $as_echo "$orig_target_strip" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12288 else
12289 if test "$GCC" = "yes"; then
12290 aros_gcc_strip=`$CC -print-prog-name=strip`
12291 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12292 set dummy `basename $aros_gcc_strip`; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_path_orig_target_strip+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 case $orig_target_strip in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in `dirname $aros_gcc_strip`
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12314 done
12315 done
12316 IFS=$as_save_IFS
12319 esac
12321 orig_target_strip=$ac_cv_path_orig_target_strip
12322 if test -n "$orig_target_strip"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12324 $as_echo "$orig_target_strip" >&6; }
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12332 if test "$orig_target_strip" = ""; then
12333 # Extract the first word of "strip", so it can be a program name with args.
12334 set dummy strip; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if ${ac_cv_path_orig_target_strip+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 case $orig_target_strip in
12341 [\\/]* | ?:[\\/]*)
12342 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 break 2
12356 done
12357 done
12358 IFS=$as_save_IFS
12361 esac
12363 orig_target_strip=$ac_cv_path_orig_target_strip
12364 if test -n "$orig_target_strip"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12366 $as_echo "$orig_target_strip" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12375 else
12376 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12377 set dummy ${aros_tool_prefix}strip; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_path_orig_target_strip+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 case $orig_target_strip in
12384 [\\/]* | ?:[\\/]*)
12385 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12395 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12399 done
12400 done
12401 IFS=$as_save_IFS
12404 esac
12406 orig_target_strip=$ac_cv_path_orig_target_strip
12407 if test -n "$orig_target_strip"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12409 $as_echo "$orig_target_strip" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12418 if test "$orig_target_strip" = ""; then
12419 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12422 if test "${aros_tool_prefix}objcopy" = ""; then
12423 if test "$cross_compiling" = "yes" ; then
12424 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12425 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 case $orig_target_objcopy in
12432 [\\/]* | ?:[\\/]*)
12433 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12447 done
12448 done
12449 IFS=$as_save_IFS
12452 esac
12454 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12455 if test -n "$orig_target_objcopy"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12457 $as_echo "$orig_target_objcopy" >&6; }
12458 else
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12464 else
12465 if test "$GCC" = "yes"; then
12466 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12467 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12468 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 case $orig_target_objcopy in
12475 [\\/]* | ?:[\\/]*)
12476 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in `dirname $aros_gcc_objcopy`
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12490 done
12491 done
12492 IFS=$as_save_IFS
12495 esac
12497 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12498 if test -n "$orig_target_objcopy"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12500 $as_echo "$orig_target_objcopy" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12508 if test "$orig_target_objcopy" = ""; then
12509 # Extract the first word of "objcopy", so it can be a program name with args.
12510 set dummy objcopy; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 case $orig_target_objcopy in
12517 [\\/]* | ?:[\\/]*)
12518 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12532 done
12533 done
12534 IFS=$as_save_IFS
12537 esac
12539 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12540 if test -n "$orig_target_objcopy"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12542 $as_echo "$orig_target_objcopy" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12551 else
12552 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12553 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $orig_target_objcopy in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12571 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12580 esac
12582 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12583 if test -n "$orig_target_objcopy"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12585 $as_echo "$orig_target_objcopy" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12594 if test "$orig_target_objcopy" = ""; then
12595 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12598 if test "${aros_tool_prefix}objdump" = ""; then
12599 if test "$cross_compiling" = "yes" ; then
12600 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12601 set dummy ${target_tool_prefix}objdump; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_orig_target_objdump+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 case $orig_target_objdump in
12608 [\\/]* | ?:[\\/]*)
12609 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12623 done
12624 done
12625 IFS=$as_save_IFS
12628 esac
12630 orig_target_objdump=$ac_cv_path_orig_target_objdump
12631 if test -n "$orig_target_objdump"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12633 $as_echo "$orig_target_objdump" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12640 else
12641 if test "$GCC" = "yes"; then
12642 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12643 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12644 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_objdump+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_objdump in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in `dirname $aros_gcc_objdump`
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 orig_target_objdump=$ac_cv_path_orig_target_objdump
12674 if test -n "$orig_target_objdump"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12676 $as_echo "$orig_target_objdump" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12684 if test "$orig_target_objdump" = ""; then
12685 # Extract the first word of "objdump", so it can be a program name with args.
12686 set dummy objdump; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_path_orig_target_objdump+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 case $orig_target_objdump in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12713 esac
12715 orig_target_objdump=$ac_cv_path_orig_target_objdump
12716 if test -n "$orig_target_objdump"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12718 $as_echo "$orig_target_objdump" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12727 else
12728 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12729 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_path_orig_target_objdump+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 case $orig_target_objdump in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12747 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12751 done
12752 done
12753 IFS=$as_save_IFS
12756 esac
12758 orig_target_objdump=$ac_cv_path_orig_target_objdump
12759 if test -n "$orig_target_objdump"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12761 $as_echo "$orig_target_objdump" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12770 if test "$orig_target_objdump" = ""; then
12771 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12775 if test "$kernel_tool_prefix" = "none" ; then
12776 # No kernel tools specified
12777 # Assume target tools == kernel tools with ELF wrapper
12778 aros_kernel_cc=$orig_target_cc
12779 aros_kernel_cxx=$orig_target_cxx
12780 aros_kernel_cpp=$orig_target_cpp
12781 aros_kernel_ld=$orig_target_ld
12782 aros_kernel_as=$orig_target_as
12783 aros_kernel_ar=$orig_target_ar
12784 aros_kernel_ranlib=$orig_target_ranlib
12785 aros_kernel_nm=$orig_target_nm
12786 aros_kernel_strip=$orig_target_strip
12787 aros_kernel_objcopy=$orig_target_objcopy
12788 aros_kernel_objdump=$orig_target_objdump
12789 use_kernel_cc_wrapper=yes
12792 # At this point, all aros_kernel_* and aros_target_*
12793 # tools should be set up correctly
12795 CC="$aros_kernel_cc $kernel_tool_flags"
12796 CPP="$aros_kernel_cpp"
12798 #-----------------------------------------------------------------------------
12800 # Disable pointer-signedness warnings if the compiler recognises the option
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12803 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12804 save_cflags="$CFLAGS"
12805 if test "$crosstools" != "yes" ; then
12806 CFLAGS="$CFLAGS -Wno-pointer-sign"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12811 main ()
12815 return 0;
12817 _ACEOF
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819 use_no_sign_warning="yes"
12820 else
12821 use_no_sign_warning="no"
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 else
12825 # we do know it is supported for the smallest version of gcc we are going to build
12826 # we assume it's also supported by later versions
12827 use_no_sign_warning=yes
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12830 $as_echo "$use_no_sign_warning" >&6; }
12831 if test "x-$use_no_sign_warning" = "x-yes" ; then
12832 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12834 CFLAGS="$save_cflags"
12836 #-----------------------------------------------------------------------------
12838 # Find all the tools we need to compile. This could be cross-compiling
12839 # though! If that is the case we use the GNU form of the target and
12840 # simply add this to the front of the binary name. This is rather simple,
12841 # but it should work under most circumstances.
12843 # The default tools are to use the same as the host, but only if the
12844 # host and target CPU are the same. With GCC this is normally enough.
12847 aros_cc_pre=""
12848 aros_shared_ld="$aros_host_ld"
12850 aros_target_mkdep="$aros_host_mkdep"
12852 # The default tools executables to be linked to.
12853 if test "$rescomp" != ""; then
12854 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12855 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 case $aros_kernel_rescomp in
12862 [\\/]* | ?:[\\/]*)
12863 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12877 done
12878 done
12879 IFS=$as_save_IFS
12882 esac
12884 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12885 if test -n "$aros_kernel_rescomp"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12887 $as_echo "$aros_kernel_rescomp" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12894 if test "$aros_kernel_rescomp" = ""; then
12895 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12899 # Set up the sources for the symlink farm
12900 if test "$crosstools" = "yes"; then
12901 crosstools_target=tools-crosstools
12904 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12905 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12908 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12909 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12910 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12911 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12912 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12913 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12914 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12916 # aros_cc_pre is a variable that is added to the front of the compiler name
12917 # in the generated aros-gcc shell script. We need this to enable the cache
12918 # to work across cleaned builds. Also, support DISTCC using the correct
12919 # environment variable.
12922 if test "x${DISTCC}" != "x" ; then
12923 if test "x${CCACHE}" != "x" ; then
12924 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12925 else
12926 aros_cc_pre="${DISTCC} "
12928 else
12929 if test "x${CCACHE}" != "x" ; then
12930 aros_cc_pre="${CCACHE} "
12934 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12936 aros_target_nostdinc_cflags=-nostdinc
12938 aros_target_nostartup_ldflags=-nostartfiles
12940 aros_target_nix_ldflags=-nix
12942 aros_target_detach_ldflags=-detach
12944 aros_target_nostdlib_ldflags=-nostdlib
12947 # Target tools
12948 if test "$crosstools" != "yes"; then
12949 if test "$GCC" = "yes"; then
12950 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12952 else
12953 # We do not know which gcc version we are going to build and what we need to know
12954 # here is different for different versions so this will be set later during the
12955 # build of crosstools.
12956 aros_target_cc_path=@aros_target_cc_path@
12958 aros_target_cpp="${prefix}cpp"
12959 aros_target_cc="${prefix}gcc"
12960 aros_target_cxx="${prefix}g++"
12961 aros_target_as="${prefix}as"
12962 aros_target_ld="${prefix}ld"
12963 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12964 aros_target_objcopy="${prefix}objcopy"
12965 aros_target_objdump="${prefix}objdump"
12966 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12967 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12968 aros_target_strip="${prefix}strip"
12969 aros_plain_nm="${prefix}nm"
12970 aros_plain_ar="${prefix}ar"
12972 # Check whether --enable-includes was given.
12973 if test "${enable_includes+set}" = set; then :
12974 enableval=$enable_includes; aros_target_incl=$enable_includes
12975 else
12976 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12980 if test "$aros_kernel_includes" = ""; then
12981 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12982 aros_kernel_includes="-isystem $aros_target_incl"
12986 if test "$aros_kernel_includes" != "" ; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12988 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12989 if test "$aros_kernel_cc_includes" = "" ; then
12990 # Try to guess where the directory is.
12991 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12992 if test -d $aros_kernel_cc_includes; then
12993 # Check if there is also an include-fixed directory and add it
12994 # to kernel compiler's include path as it may contain some of
12995 # the headers we need.
12996 if test -d "$aros_kernel_cc_includes"-fixed; then
12997 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12999 # Check for specific includes directory. Neede for Ubuntu 11.10
13000 if test -d "/usr/include/i386-linux-gnu"; then
13001 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13003 else
13004 # The directory doesn't exist, we need to do some more work.
13005 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13007 # These are the headers we're looking for.
13008 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13009 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13010 zutil.h stdint.h"
13012 dirs=
13013 for h in $headers; do
13014 # Which other headers are needed by each of the above?
13015 deps=$(echo "#include <$h>" | \
13016 $aros_kernel_cc -E -M - 2>/dev/null | \
13017 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13019 # Copy all the needed headers to a directory beneath gendir.
13020 for d in $deps; do
13021 h=$(basename $d)
13022 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13023 sed -n "s,^.*/include\(/.*\),\1,p")
13024 ! test -d $dir && mkdir -p $dir
13025 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13026 done
13027 done
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13031 $as_echo "$aros_kernel_cc_includes" >&6; }
13032 # Adding -nostdinc to kernel includes as they are always used together.
13033 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13036 if test "$crosstools" != "yes"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13038 $as_echo_n "checking for the target compiler's include path... " >&6; }
13039 if test "$aros_target_cc_includes" = "" ; then
13040 #try to guess where the directory is
13041 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13042 if ! test -d $aros_target_cc_includes; then
13043 #the directory doesn't exist, we need to do some more work
13044 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13046 #these are the headers we're looking for
13047 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13048 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13049 zutil.h"
13051 dirs=
13052 for h in $headers; do
13053 #which other headers each of the above headers needs?
13054 deps=$(echo "#include <$h>" | \
13055 $orig_target_cc -E -M - 2>/dev/null | \
13056 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13058 #copy all the needed headers to a directory beneath gendir
13059 for d in $deps; do
13060 h=$(basename $d)
13061 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13062 sed -n "s,^.*/include\(/.*\),\1,p")
13063 ! test -d $dir && mkdir -p $dir
13064 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13065 done
13066 done
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13070 $as_echo "$aros_target_cc_includes" >&6; }
13071 else
13072 # We do not know which gcc version we are going to build and what we need to know
13073 # here is different for different versions so this will be set later during the
13074 # build of crosstools.
13075 aros_target_cc_includes=@aros_target_cc_includes@
13079 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13080 # On GCC >= 4.0 -iquote should be used
13083 save_cc="$CC"
13084 save_cflags="$CFLAGS"
13085 CFLAGS="-iquote."
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13087 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13088 if test "x-$crosstools" != "x-yes"; then
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13093 main ()
13097 return 0;
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"; then :
13101 has_iquote="yes"
13102 else
13103 has_iquote="no"
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 else
13107 # we do know it is supported for the smallest version of gcc we are going to build
13108 # we assume it's also supported by later versions
13109 has_iquote=yes
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13112 $as_echo "$has_iquote" >&6; }
13113 if test "x-$has_iquote" = "x-yes" ; then
13114 host_cflags_iquote=-iquote
13115 host_cflags_iquote_end=
13116 else
13117 host_cflags_iquote=-I
13118 host_cflags_iquote_end=-I-
13120 kernel_cflags_iquote=$host_cflags_iquote
13121 kernel_cflags_iquote_end=$host_cflags_iquote_end
13122 if test "x-$cross_compiling" = "x-yes"; then
13123 CC="$aros_kernel_cc"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13125 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13126 if test "x-$crosstools" != "x-yes"; then
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13131 main ()
13135 return 0;
13137 _ACEOF
13138 if ac_fn_c_try_compile "$LINENO"; then :
13139 use_no_stack_protector="yes"
13140 else
13141 use_no_stack_protector="no"
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 else
13145 # we do know it is supported for the smallest version of gcc we are going to build
13146 # we assume it's also supported by later versions
13147 use_no_stack_protector=yes
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13150 $as_echo "$use_no_stack_protector" >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13152 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13153 if test "x-$crosstools" != "x-yes"; then
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13158 main ()
13162 return 0;
13164 _ACEOF
13165 if ac_fn_c_try_compile "$LINENO"; then :
13166 has_iquote="yes"
13167 else
13168 has_iquote="no"
13170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 else
13172 # we do know it is supported for the smallest version of gcc we are going to build
13173 # we assume it's also supported by later versions
13174 has_iquote=yes
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13177 $as_echo "$has_iquote" >&6; }
13178 if test "x-$has_iquote" = "x-yes" ; then
13179 kernel_cflags_iquote=-iquote
13180 kernel_cflags_iquote_end=
13181 else
13182 kernel_cflags_iquote=-I
13183 kernel_cflags_iquote_end=-I-
13186 aros_cflags_iquote=$kernel_cflags_iquote
13187 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13188 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13189 CC="$orig_target_cc"
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13191 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13192 if test "x-$crosstools" != "x-yes"; then
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13197 main ()
13201 return 0;
13203 _ACEOF
13204 if ac_fn_c_try_compile "$LINENO"; then :
13205 has_iquote="yes"
13206 else
13207 has_iquote="no"
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 else
13211 # we do know it is supported for the smallest version of gcc we are going to build
13212 # we assume it's also supported by later versions
13213 has_iquote=yes
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13216 $as_echo "$has_iquote" >&6; }
13217 if test "x-$has_iquote" = "x-yes" ; then
13218 aros_cflags_iquote=-iquote
13219 aros_cflags_iquote_end=
13220 else
13221 aros_cflags_iquote=-I
13222 aros_cflags_iquote_end=-I-
13225 if test "x-$use_no_stack_protector" = "x-yes" ; then
13226 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13230 #-----------------------------------------------------------------------------
13232 # Check if the target compiler supports some options used for delinting:
13233 # -Wunused-but-set-variable
13234 # -Warray-bounds
13235 # -Wenum-compare
13236 # -Wstrict-overflow
13237 # -Wformat-security
13239 if test "x-$crosstools" != "x-yes"; then
13240 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13241 CC="$orig_target_cc"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13244 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13245 CFLAGS=-Wunused-but-set-variable
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13250 main ()
13254 return 0;
13256 _ACEOF
13257 if ac_fn_c_try_compile "$LINENO"; then :
13258 aros_unused_but_set_variable="yes"
13259 else
13260 aros_unused_but_set_variable="no"
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13264 $as_echo "$aros_unused_but_set_variable" >&6; }
13265 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13266 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13270 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13271 CFLAGS=-Warray-bounds
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13276 main ()
13280 return 0;
13282 _ACEOF
13283 if ac_fn_c_try_compile "$LINENO"; then :
13284 aros_array_bounds="yes"
13285 else
13286 aros_array_bounds="no"
13288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13290 $as_echo "$aros_array_bounds" >&6; }
13291 if test "x-$aros_array_bounds" = "x-yes" ; then
13292 aros_cflags_array_bounds=-Wno-array-bounds
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13296 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13297 CFLAGS=-Wenum-compare
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13302 main ()
13306 return 0;
13308 _ACEOF
13309 if ac_fn_c_try_compile "$LINENO"; then :
13310 aros_enum_compare="yes"
13311 else
13312 aros_enum_compare="no"
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13316 $as_echo "$aros_enum_compare" >&6; }
13317 if test "x-$aros_enum_compare" = "x-yes" ; then
13318 aros_cflags_enum_compare=-Wno-enum-compare
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13322 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13323 CFLAGS=-Wstrict-overflow
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13328 main ()
13332 return 0;
13334 _ACEOF
13335 if ac_fn_c_try_compile "$LINENO"; then :
13336 aros_strict_overflow="yes"
13337 else
13338 aros_strict_overflow="no"
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13342 $as_echo "$aros_strict_overflow" >&6; }
13343 if test "x-$aros_strict_overflow" = "x-yes" ; then
13344 aros_cflags_strict_overflow=-Wno-strict-overflow
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13348 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13349 CFLAGS=-Wformat-security
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13354 main ()
13358 return 0;
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 aros_format_security="yes"
13363 else
13364 aros_format_security="no"
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13368 $as_echo "$aros_format_security" >&6; }
13369 if test "x-$aros_format_security" = "x-yes" ; then
13370 aros_cflags_format_security=-Wno-format-security
13372 else
13373 # We do not know which gcc version we are going to build and what we need to know
13374 # here is different for different versions so this will be set later during the
13375 # build of crosstools.
13376 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13377 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13378 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13379 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13380 aros_cflags_format_security=@aros_cflags_format_security@
13383 #-----------------------------------------------------------------------------
13385 # Check if we can explicitly choose older version of symbol hashing
13387 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13388 CC="$aros_kernel_cc"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13390 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13395 main ()
13399 return 0;
13401 _ACEOF
13402 if ac_fn_c_try_link "$LINENO"; then :
13403 use_hash_style="yes"
13404 else
13405 use_hash_style="no"
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13410 $as_echo "$use_hash_style" >&6; }
13411 if test "x-$use_hash_style" = "x-yes" ; then
13412 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13414 CC="$save_cc"
13415 CFLAGS="$save_cflags"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13426 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13428 # Check whether --with-resolution was given.
13429 if test "${with_resolution+set}" = set; then :
13430 withval=$with_resolution; resolution=$withval
13431 else
13432 resolution=none
13435 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13436 if test "$resolution" = "yes" ; then
13437 resolution="none"
13439 if test "$resolution" = "no" ; then
13440 resolution="none"
13442 if test "$resolution" != "none" ; then
13443 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13444 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13445 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13448 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13449 aros_cv_default_wbwidth=$aros_default_wbwidth
13450 aros_cv_default_wbheight=$aros_default_wbheight
13451 aros_cv_default_wbdepth=$aros_default_wbdepth
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13454 $as_echo_n "checking if serial debug is enabled... " >&6; }
13456 # Check whether --with-serial-debug was given.
13457 if test "${with_serial_debug+set}" = set; then :
13458 withval=$with_serial_debug; serial_debug=$withval
13459 else
13460 serial_debug=none
13463 if test "$aros_serial_debug" = 0 ; then
13464 serial_debug_forced=""
13465 if test "$serial_debug" = "yes" ; then
13466 serial_debug="1"
13468 if test "$serial_debug" = "no" ; then
13469 serial_debug="none"
13471 else
13472 serial_debug_forced="(forced)"
13473 serial_debug=$aros_serial_debug
13475 if test "$serial_debug" != "none" ; then
13476 aros_serial_debug=$serial_debug
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13478 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13485 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13486 # Check whether --enable-palm_debug_hack was given.
13487 if test "${enable_palm_debug_hack+set}" = set; then :
13488 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13489 else
13490 palm_debug_hack="no"
13493 if test "$palm_debug_hack" = "yes" ; then
13494 aros_palm_debug_hack="1"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13497 $as_echo "$palm_debug_hack" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13500 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13501 # Check whether --enable-usb30_code was given.
13502 if test "${enable_usb30_code+set}" = set; then :
13503 enableval=$enable_usb30_code; usb30_code="yes"
13504 else
13505 usb30_code="no"
13508 if test "$usb30_code" = "yes" ; then
13509 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13510 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13513 $as_echo "$usb30_code" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13516 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13517 # Check whether --enable-nesting_supervisor was given.
13518 if test "${enable_nesting_supervisor+set}" = set; then :
13519 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13520 else
13521 nesting_supervisor="no"
13524 if test "$nesting_supervisor" = "yes" ; then
13525 aros_nesting_supervisor="1"
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13528 $as_echo "$nesting_supervisor" >&6; }
13530 if test "$aros_enable_mmu" = "" ; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13532 $as_echo_n "checking if MMU support is enabled... " >&6; }
13533 # Check whether --enable-mmu was given.
13534 if test "${enable_mmu+set}" = set; then :
13535 enableval=$enable_mmu; aros_enable_mmu=$enableval
13536 else
13537 aros_enable_mmu="yes"
13540 if test "$aros_enable_mmu" = "" ; then
13541 aros_enable_mmu="yes"
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13544 $as_echo "$aros_enable_mmu" >&6; }
13546 if test "$aros_enable_mmu" = "no" ; then
13547 aros_enable_mmu="0"
13548 else
13549 aros_enable_mmu="1"
13553 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13555 if test "x-$need_dlopen" != "x-no" ; then
13556 save_libs="$LIBS"
13557 LIBS=""
13558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13559 if test "x$ac_cv_func_dlopen" = xyes; then :
13560 have_dl="yes"
13561 else
13562 have_dl="no"
13565 if test "x-$have_dl" = "x-no" ; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13568 if ${ac_cv_lib_dl_dlopen+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 ac_check_lib_save_LIBS=$LIBS
13572 LIBS="-ldl $LIBS"
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 /* Override any GCC internal prototype to avoid an error.
13577 Use char because int might match the return type of a GCC
13578 builtin and then its argument prototype would still apply. */
13579 #ifdef __cplusplus
13580 extern "C"
13581 #endif
13582 char dlopen ();
13584 main ()
13586 return dlopen ();
13588 return 0;
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 ac_cv_lib_dl_dlopen=yes
13593 else
13594 ac_cv_lib_dl_dlopen=no
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13603 have_dl="yes"
13604 aros_host_ldflags="$aros_host_ldflags -ldl"
13605 else
13606 have_dl="no"
13610 if test "x-$have_dl" = "x-no" ; then
13611 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13613 LIBS="$save_libs"
13617 # Check whether --enable-x11_hidd was given.
13618 if test "${enable_x11_hidd+set}" = set; then :
13619 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13620 else
13621 x11_hidd="$need_x11"
13624 case "x-$x11_hidd" in
13625 x-yes|x-no|x-auto) ;;
13626 *) x11_hidd="$need_x11" ;;
13627 esac
13629 ENABLE_X11=0
13631 if test "x-$x11_hidd" != "x-no" ; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13634 $as_echo_n "checking for X... " >&6; }
13637 # Check whether --with-x was given.
13638 if test "${with_x+set}" = set; then :
13639 withval=$with_x;
13642 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13643 if test "x$with_x" = xno; then
13644 # The user explicitly disabled X.
13645 have_x=disabled
13646 else
13647 case $x_includes,$x_libraries in #(
13648 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13649 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 # One or both of the vars are not set, and there is no cached value.
13653 ac_x_includes=no ac_x_libraries=no
13654 rm -f -r conftest.dir
13655 if mkdir conftest.dir; then
13656 cd conftest.dir
13657 cat >Imakefile <<'_ACEOF'
13658 incroot:
13659 @echo incroot='${INCROOT}'
13660 usrlibdir:
13661 @echo usrlibdir='${USRLIBDIR}'
13662 libdir:
13663 @echo libdir='${LIBDIR}'
13664 _ACEOF
13665 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13667 for ac_var in incroot usrlibdir libdir; do
13668 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13669 done
13670 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13671 for ac_extension in a so sl dylib la dll; do
13672 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13673 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13674 ac_im_usrlibdir=$ac_im_libdir; break
13676 done
13677 # Screen out bogus values from the imake configuration. They are
13678 # bogus both because they are the default anyway, and because
13679 # using them would break gcc on systems where it needs fixed includes.
13680 case $ac_im_incroot in
13681 /usr/include) ac_x_includes= ;;
13682 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13683 esac
13684 case $ac_im_usrlibdir in
13685 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13686 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13687 esac
13689 cd ..
13690 rm -f -r conftest.dir
13693 # Standard set of common directories for X headers.
13694 # Check X11 before X11Rn because it is often a symlink to the current release.
13695 ac_x_header_dirs='
13696 /usr/X11/include
13697 /usr/X11R7/include
13698 /usr/X11R6/include
13699 /usr/X11R5/include
13700 /usr/X11R4/include
13702 /usr/include/X11
13703 /usr/include/X11R7
13704 /usr/include/X11R6
13705 /usr/include/X11R5
13706 /usr/include/X11R4
13708 /usr/local/X11/include
13709 /usr/local/X11R7/include
13710 /usr/local/X11R6/include
13711 /usr/local/X11R5/include
13712 /usr/local/X11R4/include
13714 /usr/local/include/X11
13715 /usr/local/include/X11R7
13716 /usr/local/include/X11R6
13717 /usr/local/include/X11R5
13718 /usr/local/include/X11R4
13720 /usr/X386/include
13721 /usr/x386/include
13722 /usr/XFree86/include/X11
13724 /usr/include
13725 /usr/local/include
13726 /usr/unsupported/include
13727 /usr/athena/include
13728 /usr/local/x11r5/include
13729 /usr/lpp/Xamples/include
13731 /usr/openwin/include
13732 /usr/openwin/share/include'
13734 if test "$ac_x_includes" = no; then
13735 # Guess where to find include files, by looking for Xlib.h.
13736 # First, try using that file with no special directory specified.
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <X11/Xlib.h>
13740 _ACEOF
13741 if ac_fn_c_try_cpp "$LINENO"; then :
13742 # We can compile using X headers with no special include directory.
13743 ac_x_includes=
13744 else
13745 for ac_dir in $ac_x_header_dirs; do
13746 if test -r "$ac_dir/X11/Xlib.h"; then
13747 ac_x_includes=$ac_dir
13748 break
13750 done
13752 rm -f conftest.err conftest.i conftest.$ac_ext
13753 fi # $ac_x_includes = no
13755 if test "$ac_x_libraries" = no; then
13756 # Check for the libraries.
13757 # See if we find them without any special options.
13758 # Don't add to $LIBS permanently.
13759 ac_save_LIBS=$LIBS
13760 LIBS="-lX11 $LIBS"
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 #include <X11/Xlib.h>
13765 main ()
13767 XrmInitialize ()
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 LIBS=$ac_save_LIBS
13774 # We can link X programs with no special library path.
13775 ac_x_libraries=
13776 else
13777 LIBS=$ac_save_LIBS
13778 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13780 # Don't even attempt the hair of trying to link an X program!
13781 for ac_extension in a so sl dylib la dll; do
13782 if test -r "$ac_dir/libX11.$ac_extension"; then
13783 ac_x_libraries=$ac_dir
13784 break 2
13786 done
13787 done
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 fi # $ac_x_libraries = no
13793 case $ac_x_includes,$ac_x_libraries in #(
13794 no,* | *,no | *\'*)
13795 # Didn't find X, or a directory has "'" in its name.
13796 ac_cv_have_x="have_x=no";; #(
13798 # Record where we found X for the cache.
13799 ac_cv_have_x="have_x=yes\
13800 ac_x_includes='$ac_x_includes'\
13801 ac_x_libraries='$ac_x_libraries'"
13802 esac
13804 ;; #(
13805 *) have_x=yes;;
13806 esac
13807 eval "$ac_cv_have_x"
13808 fi # $with_x != no
13810 if test "$have_x" != yes; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13812 $as_echo "$have_x" >&6; }
13813 no_x=yes
13814 else
13815 # If each of the values was on the command line, it overrides each guess.
13816 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13817 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13818 # Update the cache value to reflect the command line values.
13819 ac_cv_have_x="have_x=yes\
13820 ac_x_includes='$x_includes'\
13821 ac_x_libraries='$x_libraries'"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13823 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13827 x_cflags=
13828 for path in $x_libraries
13830 x_cflags="$x_cflags -L$path"
13831 done
13833 for path in $x_includes
13835 x_cflags="$x_cflags -I$path"
13836 done
13838 if test "x-$no_x" = "x-yes" ; then
13840 if test "x-$x11_hidd" != "x-auto" ; then
13841 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13844 else
13845 unixgfx_hidd_target=kernel-x11gfx
13846 ENABLE_X11=1
13848 # Check whether --enable-x11_shm was given.
13849 if test "${enable_x11_shm+set}" = set; then :
13850 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13851 else
13852 x11_hidd_shm="auto"
13855 case "x-$x11_hidd_shm" in
13856 x-yes|x-no|x-auto) ;;
13857 *) x11_hidd_shm="auto" ;;
13858 esac
13860 have_xshm=no
13862 if test "x-$x11_hidd_shm" != "x-no" ; then
13864 for ac_header in sys/ipc.h
13865 do :
13866 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13867 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_SYS_IPC_H 1
13870 _ACEOF
13874 done
13876 for ac_header in sys/shm.h
13877 do :
13878 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_SYS_SHM_H 1
13882 _ACEOF
13886 done
13889 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13891 save_cflags="$CFLAGS"
13892 CFLAGS="$CFLAGS $x_cflags"
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13894 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13895 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-lXext $LIBS"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13903 /* Override any GCC internal prototype to avoid an error.
13904 Use char because int might match the return type of a GCC
13905 builtin and then its argument prototype would still apply. */
13906 #ifdef __cplusplus
13907 extern "C"
13908 #endif
13909 char XShmQueryExtension ();
13911 main ()
13913 return XShmQueryExtension ();
13915 return 0;
13917 _ACEOF
13918 if ac_fn_c_try_link "$LINENO"; then :
13919 ac_cv_lib_Xext_XShmQueryExtension=yes
13920 else
13921 ac_cv_lib_Xext_XShmQueryExtension=no
13923 rm -f core conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13925 LIBS=$ac_check_lib_save_LIBS
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13928 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13929 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13930 have_xshm=yes
13933 CFLAGS="$save_cflags"
13937 if test "x-$have_xshm" = "x-yes" ; then
13938 DO_XSHM_SUPPORT="1"
13939 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13940 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13941 else
13942 DO_XSHM_SUPPORT="0"
13946 # Check whether --enable-x11_vidmode was given.
13947 if test "${enable_x11_vidmode+set}" = set; then :
13948 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13949 else
13950 x11_hidd_vidmode="auto"
13953 case "x-$x11_hidd_vidmode" in
13954 x-yes|x-no|x-auto) ;;
13955 *) x11_hidd_vidmode="auto" ;;
13956 esac
13958 have_vidmode=no
13960 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13962 save_cflags="$CFLAGS"
13963 CFLAGS="$CFLAGS $x_cflags"
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13965 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13966 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 ac_check_lib_save_LIBS=$LIBS
13970 LIBS="-lXxf86vm $LIBS"
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char XF86VidModeQueryExtension ();
13982 main ()
13984 return XF86VidModeQueryExtension ();
13986 return 0;
13988 _ACEOF
13989 if ac_fn_c_try_link "$LINENO"; then :
13990 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13991 else
13992 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13999 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14000 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14001 have_vidmode=yes
14004 CFLAGS="$save_cflags"
14007 if test "x-$have_vidmode" = "x-yes" ; then
14008 DO_VIDMODE_SUPPORT="1"
14009 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14010 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14011 else
14012 DO_VIDMODE_SUPPORT="0"
14016 aros_host_x11_includes=$x_includes
14017 aros_host_x11_libdirs=$x_libraries
14021 # Check whether --enable-sdl_hidd was given.
14022 if test "${enable_sdl_hidd+set}" = set; then :
14023 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14024 else
14025 sdl_hidd="auto"
14028 case "x-$sdl_hidd" in
14029 x-yes|x-no|x-auto) ;;
14030 *) sdl_hidd="auto" ;;
14031 esac
14033 if test "x-$sdl_hidd" != "x-no" ; then
14036 # Check whether --with-sdl-prefix was given.
14037 if test "${with_sdl_prefix+set}" = set; then :
14038 withval=$with_sdl_prefix; sdl_prefix="$withval"
14039 else
14040 sdl_prefix=""
14044 # Check whether --with-sdl-exec-prefix was given.
14045 if test "${with_sdl_exec_prefix+set}" = set; then :
14046 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14047 else
14048 sdl_exec_prefix=""
14051 # Check whether --enable-sdltest was given.
14052 if test "${enable_sdltest+set}" = set; then :
14053 enableval=$enable_sdltest;
14054 else
14055 enable_sdltest=yes
14059 if test x$sdl_exec_prefix != x ; then
14060 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14061 if test x${SDL_CONFIG+set} != xset ; then
14062 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14065 if test x$sdl_prefix != x ; then
14066 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14067 if test x${SDL_CONFIG+set} != xset ; then
14068 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14072 as_save_PATH="$PATH"
14073 if test "x$prefix" != xNONE; then
14074 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14076 # Extract the first word of "sdl-config", so it can be a program name with args.
14077 set dummy sdl-config; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 case $SDL_CONFIG in
14084 [\\/]* | ?:[\\/]*)
14085 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14099 done
14100 done
14101 IFS=$as_save_IFS
14103 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14105 esac
14107 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14108 if test -n "$SDL_CONFIG"; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14110 $as_echo "$SDL_CONFIG" >&6; }
14111 else
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14117 PATH="$as_save_PATH"
14118 min_sdl_version=1.2.10
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14120 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14121 no_sdl=""
14122 if test "$SDL_CONFIG" = "no" ; then
14123 no_sdl=yes
14124 else
14125 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14126 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14128 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14130 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14132 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14134 if test "x$enable_sdltest" = "xyes" ; then
14135 ac_save_CFLAGS="$CFLAGS"
14136 ac_save_CXXFLAGS="$CXXFLAGS"
14137 ac_save_LIBS="$LIBS"
14138 CFLAGS="$CFLAGS $SDL_CFLAGS"
14139 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14140 LIBS="$LIBS $SDL_LIBS"
14141 rm -f conf.sdltest
14142 if test "$cross_compiling" = yes; then :
14143 echo $ac_n "cross compiling; assumed OK... $ac_c"
14144 else
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 #include <stdio.h>
14149 #include <stdlib.h>
14150 #include <string.h>
14151 #include "SDL.h"
14153 char*
14154 my_strdup (char *str)
14156 char *new_str;
14158 if (str)
14160 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14161 strcpy (new_str, str);
14163 else
14164 new_str = NULL;
14166 return new_str;
14169 int main (int argc, char *argv[])
14171 int major, minor, micro;
14172 char *tmp_version;
14174 /* This hangs on some systems (?)
14175 system ("touch conf.sdltest");
14177 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14179 /* HP/UX 9 (%@#!) writes to sscanf strings */
14180 tmp_version = my_strdup("$min_sdl_version");
14181 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14182 printf("%s, bad version string\n", "$min_sdl_version");
14183 exit(1);
14186 if (($sdl_major_version > major) ||
14187 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14188 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14190 return 0;
14192 else
14194 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14195 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14196 printf("*** best to upgrade to the required version.\n");
14197 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14198 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14199 printf("*** config.cache before re-running configure\n");
14200 return 1;
14205 _ACEOF
14206 if ac_fn_c_try_run "$LINENO"; then :
14208 else
14209 no_sdl=yes
14211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14212 conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 CFLAGS="$ac_save_CFLAGS"
14216 CXXFLAGS="$ac_save_CXXFLAGS"
14217 LIBS="$ac_save_LIBS"
14220 if test "x$no_sdl" = x ; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14222 $as_echo "yes" >&6; }
14223 have_sdl="yes"
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 if test "$SDL_CONFIG" = "no" ; then
14228 echo "*** The sdl-config script installed by SDL could not be found"
14229 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14230 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14231 echo "*** full path to sdl-config."
14232 else
14233 if test -f conf.sdltest ; then
14235 else
14236 echo "*** Could not run SDL test program, checking why..."
14237 CFLAGS="$CFLAGS $SDL_CFLAGS"
14238 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14239 LIBS="$LIBS $SDL_LIBS"
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14243 #include <stdio.h>
14244 #include "SDL.h"
14246 int main(int argc, char *argv[])
14247 { return 0; }
14248 #undef main
14249 #define main K_and_R_C_main
14252 main ()
14254 return 0;
14256 return 0;
14258 _ACEOF
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 echo "*** The test program compiled, but did not run. This usually means"
14261 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14262 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14263 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14264 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14265 echo "*** is required on your system"
14266 echo "***"
14267 echo "*** If you have an old version installed, it is best to remove it, although"
14268 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14269 else
14270 echo "*** The test program failed to compile or link. See the file config.log for the"
14271 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14272 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14273 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277 CFLAGS="$ac_save_CFLAGS"
14278 CXXFLAGS="$ac_save_CXXFLAGS"
14279 LIBS="$ac_save_LIBS"
14282 SDL_CFLAGS=""
14283 SDL_LIBS=""
14284 have_sdl="no"
14288 rm -f conf.sdltest
14291 if test "x-$have_sdl" != "x-yes" ; then
14293 if test "x-$sdl_hidd" != "x-auto" ; then
14294 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14297 else
14298 sdl_hidd_target=kernel-hidd-sdl
14299 aros_host_sdl_cflags=SDL_CFLAGS
14300 aros_host_sdl_libs=SDL_LIBS
14304 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14305 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14310 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14311 oss_library_target=workbench-libs-oss-unix
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14317 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14318 # Check whether --enable-dbus was given.
14319 if test "${enable_dbus+set}" = set; then :
14320 enableval=$enable_dbus; dbus="yes"
14321 else
14322 dbus="no"
14325 if test "$dbus" = "yes" ; then
14326 ENABLE_DBUS=1
14327 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14328 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14329 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14330 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14331 else
14332 ENABLE_DBUS=0
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14335 $as_echo "$dbus" >&6; }
14337 if test "$use_kernel_cc_wrapper" = "yes" ; then
14338 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14341 if test "${crosstools}" != "yes" ; then
14342 aros_target_toolchain=no
14343 else
14344 aros_target_toolchain=yes
14348 # Generic
14360 # Compatability with other Amiga-like operation systems
14363 # Host related
14391 # Target Related
14455 # Delinting target compiler flags
14462 # Graphics Related
14479 # Native version related
14482 # Palm native version related
14485 # Unix/Hosted version related
14488 # MMU related
14491 # Apple iOS related
14496 # ARM default GCC target related
14502 # Android related
14507 # DBUS related
14514 #X11 related
14517 # Debug related
14523 # Collect-aros stuff: "-ius" to ignore undefined symbols
14526 # C compiler related
14529 #ObjC compiler related
14532 # USB3.0 code
14535 case "$aros_flavour" in
14536 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14537 aros_flavour="emulation" ;;
14538 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14539 aros_flavour="emulation" ;;
14540 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14541 aros_flavour="standalone";;
14542 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14543 aros_flavour="standalone";;
14544 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14545 aros_flavour="native" ;;
14546 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14547 aros_flavour="native" ;;
14548 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14549 aros_flavour="linklib" ;;
14550 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14551 aros_flavour="palmnative" ;;
14552 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14553 aros_flavour="mac68knative" ;;
14554 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14555 aros_flavour="ppcnative" ;;
14556 esac
14558 if test ! -d ${aros_inc_dir} ; then
14559 ${MKDIR} ${aros_inc_dir}
14561 if test ! -d ${aros_geninc_dir} ; then
14562 ${MKDIR} ${aros_geninc_dir}
14564 if test ! -d ${aros_hostcfg_dir} ; then
14565 ${MKDIR} ${aros_hostcfg_dir}
14567 if test ! -d ${aros_targetcfg_dir} ; then
14568 ${MKDIR} ${aros_targetcfg_dir}
14570 if test ! -d ${aros_tools_dir} ; then
14571 ${MKDIR} ${aros_tools_dir}
14573 if test ! -d ${aros_scripts_dir} ; then
14574 ${MKDIR} ${aros_scripts_dir}
14577 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14580 ac_config_commands="$ac_config_commands compiler_executable"
14582 ac_config_commands="$ac_config_commands genmf_executable"
14585 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14588 cat >confcache <<\_ACEOF
14589 # This file is a shell script that caches the results of configure
14590 # tests run on this system so they can be shared between configure
14591 # scripts and configure runs, see configure's option --config-cache.
14592 # It is not useful on other systems. If it contains results you don't
14593 # want to keep, you may remove or edit it.
14595 # config.status only pays attention to the cache file if you give it
14596 # the --recheck option to rerun configure.
14598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14600 # following values.
14602 _ACEOF
14604 # The following way of writing the cache mishandles newlines in values,
14605 # but we know of no workaround that is simple, portable, and efficient.
14606 # So, we kill variables containing newlines.
14607 # Ultrix sh set writes to stderr and can't be redirected directly,
14608 # and sets the high bit in the cache file unless we assign to the vars.
14610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14611 eval ac_val=\$$ac_var
14612 case $ac_val in #(
14613 *${as_nl}*)
14614 case $ac_var in #(
14615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14617 esac
14618 case $ac_var in #(
14619 _ | IFS | as_nl) ;; #(
14620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14621 *) { eval $ac_var=; unset $ac_var;} ;;
14622 esac ;;
14623 esac
14624 done
14626 (set) 2>&1 |
14627 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14628 *${as_nl}ac_space=\ *)
14629 # `set' does not quote correctly, so add quotes: double-quote
14630 # substitution turns \\\\ into \\, and sed turns \\ into \.
14631 sed -n \
14632 "s/'/'\\\\''/g;
14633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14634 ;; #(
14636 # `set' quotes correctly as required by POSIX, so do not add quotes.
14637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14639 esac |
14640 sort
14642 sed '
14643 /^ac_cv_env_/b end
14644 t clear
14645 :clear
14646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14647 t end
14648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14649 :end' >>confcache
14650 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14651 if test -w "$cache_file"; then
14652 if test "x$cache_file" != "x/dev/null"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14654 $as_echo "$as_me: updating cache $cache_file" >&6;}
14655 if test ! -f "$cache_file" || test -h "$cache_file"; then
14656 cat confcache >"$cache_file"
14657 else
14658 case $cache_file in #(
14659 */* | ?:*)
14660 mv -f confcache "$cache_file"$$ &&
14661 mv -f "$cache_file"$$ "$cache_file" ;; #(
14663 mv -f confcache "$cache_file" ;;
14664 esac
14667 else
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14669 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14672 rm -f confcache
14674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14675 # Let make expand exec_prefix.
14676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14678 DEFS=-DHAVE_CONFIG_H
14680 ac_libobjs=
14681 ac_ltlibobjs=
14683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14684 # 1. Remove the extension, and $U if already installed.
14685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14688 # will be set to the directory where LIBOBJS objects are built.
14689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14691 done
14692 LIBOBJS=$ac_libobjs
14694 LTLIBOBJS=$ac_ltlibobjs
14698 : "${CONFIG_STATUS=./config.status}"
14699 ac_write_fail=0
14700 ac_clean_files_save=$ac_clean_files
14701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14703 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14704 as_write_fail=0
14705 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14706 #! $SHELL
14707 # Generated by $as_me.
14708 # Run this file to recreate the current configuration.
14709 # Compiler output produced by configure, useful for debugging
14710 # configure, is in config.log if it exists.
14712 debug=false
14713 ac_cs_recheck=false
14714 ac_cs_silent=false
14716 SHELL=\${CONFIG_SHELL-$SHELL}
14717 export SHELL
14718 _ASEOF
14719 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14720 ## -------------------- ##
14721 ## M4sh Initialization. ##
14722 ## -------------------- ##
14724 # Be more Bourne compatible
14725 DUALCASE=1; export DUALCASE # for MKS sh
14726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14727 emulate sh
14728 NULLCMD=:
14729 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14730 # is contrary to our usage. Disable this feature.
14731 alias -g '${1+"$@"}'='"$@"'
14732 setopt NO_GLOB_SUBST
14733 else
14734 case `(set -o) 2>/dev/null` in #(
14735 *posix*) :
14736 set -o posix ;; #(
14737 *) :
14739 esac
14743 as_nl='
14745 export as_nl
14746 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14747 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14750 # Prefer a ksh shell builtin over an external printf program on Solaris,
14751 # but without wasting forks for bash or zsh.
14752 if test -z "$BASH_VERSION$ZSH_VERSION" \
14753 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14754 as_echo='print -r --'
14755 as_echo_n='print -rn --'
14756 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14757 as_echo='printf %s\n'
14758 as_echo_n='printf %s'
14759 else
14760 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14761 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14762 as_echo_n='/usr/ucb/echo -n'
14763 else
14764 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14765 as_echo_n_body='eval
14766 arg=$1;
14767 case $arg in #(
14768 *"$as_nl"*)
14769 expr "X$arg" : "X\\(.*\\)$as_nl";
14770 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14771 esac;
14772 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14774 export as_echo_n_body
14775 as_echo_n='sh -c $as_echo_n_body as_echo'
14777 export as_echo_body
14778 as_echo='sh -c $as_echo_body as_echo'
14781 # The user is always right.
14782 if test "${PATH_SEPARATOR+set}" != set; then
14783 PATH_SEPARATOR=:
14784 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14785 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14786 PATH_SEPARATOR=';'
14791 # IFS
14792 # We need space, tab and new line, in precisely that order. Quoting is
14793 # there to prevent editors from complaining about space-tab.
14794 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14795 # splitting by setting IFS to empty value.)
14796 IFS=" "" $as_nl"
14798 # Find who we are. Look in the path if we contain no directory separator.
14799 as_myself=
14800 case $0 in #((
14801 *[\\/]* ) as_myself=$0 ;;
14802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14803 for as_dir in $PATH
14805 IFS=$as_save_IFS
14806 test -z "$as_dir" && as_dir=.
14807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14808 done
14809 IFS=$as_save_IFS
14812 esac
14813 # We did not find ourselves, most probably we were run as `sh COMMAND'
14814 # in which case we are not to be found in the path.
14815 if test "x$as_myself" = x; then
14816 as_myself=$0
14818 if test ! -f "$as_myself"; then
14819 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14820 exit 1
14823 # Unset variables that we do not need and which cause bugs (e.g. in
14824 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14825 # suppresses any "Segmentation fault" message there. '((' could
14826 # trigger a bug in pdksh 5.2.14.
14827 for as_var in BASH_ENV ENV MAIL MAILPATH
14828 do eval test x\${$as_var+set} = xset \
14829 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14830 done
14831 PS1='$ '
14832 PS2='> '
14833 PS4='+ '
14835 # NLS nuisances.
14836 LC_ALL=C
14837 export LC_ALL
14838 LANGUAGE=C
14839 export LANGUAGE
14841 # CDPATH.
14842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14845 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14846 # ----------------------------------------
14847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14849 # script with STATUS, using 1 if that was 0.
14850 as_fn_error ()
14852 as_status=$1; test $as_status -eq 0 && as_status=1
14853 if test "$4"; then
14854 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14855 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14857 $as_echo "$as_me: error: $2" >&2
14858 as_fn_exit $as_status
14859 } # as_fn_error
14862 # as_fn_set_status STATUS
14863 # -----------------------
14864 # Set $? to STATUS, without forking.
14865 as_fn_set_status ()
14867 return $1
14868 } # as_fn_set_status
14870 # as_fn_exit STATUS
14871 # -----------------
14872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14873 as_fn_exit ()
14875 set +e
14876 as_fn_set_status $1
14877 exit $1
14878 } # as_fn_exit
14880 # as_fn_unset VAR
14881 # ---------------
14882 # Portably unset VAR.
14883 as_fn_unset ()
14885 { eval $1=; unset $1;}
14887 as_unset=as_fn_unset
14888 # as_fn_append VAR VALUE
14889 # ----------------------
14890 # Append the text in VALUE to the end of the definition contained in VAR. Take
14891 # advantage of any shell optimizations that allow amortized linear growth over
14892 # repeated appends, instead of the typical quadratic growth present in naive
14893 # implementations.
14894 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14895 eval 'as_fn_append ()
14897 eval $1+=\$2
14899 else
14900 as_fn_append ()
14902 eval $1=\$$1\$2
14904 fi # as_fn_append
14906 # as_fn_arith ARG...
14907 # ------------------
14908 # Perform arithmetic evaluation on the ARGs, and store the result in the
14909 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14910 # must be portable across $(()) and expr.
14911 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14912 eval 'as_fn_arith ()
14914 as_val=$(( $* ))
14916 else
14917 as_fn_arith ()
14919 as_val=`expr "$@" || test $? -eq 1`
14921 fi # as_fn_arith
14924 if expr a : '\(a\)' >/dev/null 2>&1 &&
14925 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14926 as_expr=expr
14927 else
14928 as_expr=false
14931 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14932 as_basename=basename
14933 else
14934 as_basename=false
14937 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14938 as_dirname=dirname
14939 else
14940 as_dirname=false
14943 as_me=`$as_basename -- "$0" ||
14944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14945 X"$0" : 'X\(//\)$' \| \
14946 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14947 $as_echo X/"$0" |
14948 sed '/^.*\/\([^/][^/]*\)\/*$/{
14949 s//\1/
14952 /^X\/\(\/\/\)$/{
14953 s//\1/
14956 /^X\/\(\/\).*/{
14957 s//\1/
14960 s/.*/./; q'`
14962 # Avoid depending upon Character Ranges.
14963 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14964 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14965 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14966 as_cr_digits='0123456789'
14967 as_cr_alnum=$as_cr_Letters$as_cr_digits
14969 ECHO_C= ECHO_N= ECHO_T=
14970 case `echo -n x` in #(((((
14971 -n*)
14972 case `echo 'xy\c'` in
14973 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14974 xy) ECHO_C='\c';;
14975 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14976 ECHO_T=' ';;
14977 esac;;
14979 ECHO_N='-n';;
14980 esac
14982 rm -f conf$$ conf$$.exe conf$$.file
14983 if test -d conf$$.dir; then
14984 rm -f conf$$.dir/conf$$.file
14985 else
14986 rm -f conf$$.dir
14987 mkdir conf$$.dir 2>/dev/null
14989 if (echo >conf$$.file) 2>/dev/null; then
14990 if ln -s conf$$.file conf$$ 2>/dev/null; then
14991 as_ln_s='ln -s'
14992 # ... but there are two gotchas:
14993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14995 # In both cases, we have to default to `cp -pR'.
14996 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14997 as_ln_s='cp -pR'
14998 elif ln conf$$.file conf$$ 2>/dev/null; then
14999 as_ln_s=ln
15000 else
15001 as_ln_s='cp -pR'
15003 else
15004 as_ln_s='cp -pR'
15006 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15007 rmdir conf$$.dir 2>/dev/null
15010 # as_fn_mkdir_p
15011 # -------------
15012 # Create "$as_dir" as a directory, including parents if necessary.
15013 as_fn_mkdir_p ()
15016 case $as_dir in #(
15017 -*) as_dir=./$as_dir;;
15018 esac
15019 test -d "$as_dir" || eval $as_mkdir_p || {
15020 as_dirs=
15021 while :; do
15022 case $as_dir in #(
15023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15024 *) as_qdir=$as_dir;;
15025 esac
15026 as_dirs="'$as_qdir' $as_dirs"
15027 as_dir=`$as_dirname -- "$as_dir" ||
15028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15029 X"$as_dir" : 'X\(//\)[^/]' \| \
15030 X"$as_dir" : 'X\(//\)$' \| \
15031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15032 $as_echo X"$as_dir" |
15033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15034 s//\1/
15037 /^X\(\/\/\)[^/].*/{
15038 s//\1/
15041 /^X\(\/\/\)$/{
15042 s//\1/
15045 /^X\(\/\).*/{
15046 s//\1/
15049 s/.*/./; q'`
15050 test -d "$as_dir" && break
15051 done
15052 test -z "$as_dirs" || eval "mkdir $as_dirs"
15053 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15056 } # as_fn_mkdir_p
15057 if mkdir -p . 2>/dev/null; then
15058 as_mkdir_p='mkdir -p "$as_dir"'
15059 else
15060 test -d ./-p && rmdir ./-p
15061 as_mkdir_p=false
15065 # as_fn_executable_p FILE
15066 # -----------------------
15067 # Test if FILE is an executable regular file.
15068 as_fn_executable_p ()
15070 test -f "$1" && test -x "$1"
15071 } # as_fn_executable_p
15072 as_test_x='test -x'
15073 as_executable_p=as_fn_executable_p
15075 # Sed expression to map a string onto a valid CPP name.
15076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15078 # Sed expression to map a string onto a valid variable name.
15079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15082 exec 6>&1
15083 ## ----------------------------------- ##
15084 ## Main body of $CONFIG_STATUS script. ##
15085 ## ----------------------------------- ##
15086 _ASEOF
15087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 # Save the log message, to keep $0 and so on meaningful, and to
15091 # report actual input values of CONFIG_FILES etc. instead of their
15092 # values after options handling.
15093 ac_log="
15094 This file was extended by $as_me, which was
15095 generated by GNU Autoconf 2.69. Invocation command line was
15097 CONFIG_FILES = $CONFIG_FILES
15098 CONFIG_HEADERS = $CONFIG_HEADERS
15099 CONFIG_LINKS = $CONFIG_LINKS
15100 CONFIG_COMMANDS = $CONFIG_COMMANDS
15101 $ $0 $@
15103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15106 _ACEOF
15108 case $ac_config_files in *"
15109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15110 esac
15112 case $ac_config_headers in *"
15113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15114 esac
15117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 # Files that config.status was made for.
15119 config_files="$ac_config_files"
15120 config_headers="$ac_config_headers"
15121 config_commands="$ac_config_commands"
15123 _ACEOF
15125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15126 ac_cs_usage="\
15127 \`$as_me' instantiates files and other configuration actions
15128 from templates according to the current configuration. Unless the files
15129 and actions are specified as TAGs, all are instantiated by default.
15131 Usage: $0 [OPTION]... [TAG]...
15133 -h, --help print this help, then exit
15134 -V, --version print version number and configuration settings, then exit
15135 --config print configuration, then exit
15136 -q, --quiet, --silent
15137 do not print progress messages
15138 -d, --debug don't remove temporary files
15139 --recheck update $as_me by reconfiguring in the same conditions
15140 --file=FILE[:TEMPLATE]
15141 instantiate the configuration file FILE
15142 --header=FILE[:TEMPLATE]
15143 instantiate the configuration header FILE
15145 Configuration files:
15146 $config_files
15148 Configuration headers:
15149 $config_headers
15151 Configuration commands:
15152 $config_commands
15154 Report bugs to the package provider."
15156 _ACEOF
15157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15158 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15159 ac_cs_version="\\
15160 config.status
15161 configured by $0, generated by GNU Autoconf 2.69,
15162 with options \\"\$ac_cs_config\\"
15164 Copyright (C) 2012 Free Software Foundation, Inc.
15165 This config.status script is free software; the Free Software Foundation
15166 gives unlimited permission to copy, distribute and modify it."
15168 ac_pwd='$ac_pwd'
15169 srcdir='$srcdir'
15170 test -n "\$AWK" || AWK=awk
15171 _ACEOF
15173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 # The default lists apply if the user does not specify any file.
15175 ac_need_defaults=:
15176 while test $# != 0
15178 case $1 in
15179 --*=?*)
15180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15182 ac_shift=:
15184 --*=)
15185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15186 ac_optarg=
15187 ac_shift=:
15190 ac_option=$1
15191 ac_optarg=$2
15192 ac_shift=shift
15194 esac
15196 case $ac_option in
15197 # Handling of the options.
15198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15199 ac_cs_recheck=: ;;
15200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15201 $as_echo "$ac_cs_version"; exit ;;
15202 --config | --confi | --conf | --con | --co | --c )
15203 $as_echo "$ac_cs_config"; exit ;;
15204 --debug | --debu | --deb | --de | --d | -d )
15205 debug=: ;;
15206 --file | --fil | --fi | --f )
15207 $ac_shift
15208 case $ac_optarg in
15209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15210 '') as_fn_error $? "missing file argument" ;;
15211 esac
15212 as_fn_append CONFIG_FILES " '$ac_optarg'"
15213 ac_need_defaults=false;;
15214 --header | --heade | --head | --hea )
15215 $ac_shift
15216 case $ac_optarg in
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 esac
15219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15220 ac_need_defaults=false;;
15221 --he | --h)
15222 # Conflict between --help and --header
15223 as_fn_error $? "ambiguous option: \`$1'
15224 Try \`$0 --help' for more information.";;
15225 --help | --hel | -h )
15226 $as_echo "$ac_cs_usage"; exit ;;
15227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15228 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15229 ac_cs_silent=: ;;
15231 # This is an error.
15232 -*) as_fn_error $? "unrecognized option: \`$1'
15233 Try \`$0 --help' for more information." ;;
15235 *) as_fn_append ac_config_targets " $1"
15236 ac_need_defaults=false ;;
15238 esac
15239 shift
15240 done
15242 ac_configure_extra_args=
15244 if $ac_cs_silent; then
15245 exec 6>/dev/null
15246 ac_configure_extra_args="$ac_configure_extra_args --silent"
15249 _ACEOF
15250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15251 if \$ac_cs_recheck; then
15252 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15253 shift
15254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15255 CONFIG_SHELL='$SHELL'
15256 export CONFIG_SHELL
15257 exec "\$@"
15260 _ACEOF
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 exec 5>>config.log
15264 echo
15265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15266 ## Running $as_me. ##
15267 _ASBOX
15268 $as_echo "$ac_log"
15269 } >&5
15271 _ACEOF
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 # INIT-COMMANDS
15277 aros_host_exe_suffix=${aros_host_exe_suffix}
15278 aros_tools_dir=${aros_tools_dir}
15279 aros_target_cpu=${aros_target_cpu}
15280 aros_target_arch=${aros_target_arch}
15281 aros_target_suffix=${aros_target_suffix}
15282 orig_target_nm=${orig_target_nm}
15283 orig_target_as=${orig_target_as}
15284 orig_target_ar=${orig_target_ar}
15285 orig_target_ranlib=${orig_target_ranlib}
15286 orig_target_objdump=${orig_target_objdump}
15287 orig_target_objcopy=${orig_target_objcopy}
15288 orig_target_strip=${orig_target_strip}
15289 aros_kernel_ld=${aros_kernel_ld}
15292 aros_tools_dir=${aros_tools_dir}
15295 _ACEOF
15297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 # Handling of arguments.
15300 for ac_config_target in $ac_config_targets
15302 case $ac_config_target in
15303 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15304 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15305 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15307 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15308 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15309 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15310 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15311 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15312 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15313 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15314 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15315 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15316 "${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" ;;
15317 "${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" ;;
15318 "${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" ;;
15319 "${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" ;;
15320 "${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" ;;
15321 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15322 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15323 "${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" ;;
15325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15326 esac
15327 done
15330 # If the user did not use the arguments to specify the items to instantiate,
15331 # then the envvar interface is used. Set only those that are not.
15332 # We use the long form for the default assignment because of an extremely
15333 # bizarre bug on SunOS 4.1.3.
15334 if $ac_need_defaults; then
15335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15340 # Have a temporary directory for convenience. Make it in the build tree
15341 # simply because there is no reason against having it here, and in addition,
15342 # creating and moving files from /tmp can sometimes cause problems.
15343 # Hook for its removal unless debugging.
15344 # Note that there is a small window in which the directory will not be cleaned:
15345 # after its creation but before its name has been assigned to `$tmp'.
15346 $debug ||
15348 tmp= ac_tmp=
15349 trap 'exit_status=$?
15350 : "${ac_tmp:=$tmp}"
15351 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15353 trap 'as_fn_exit 1' 1 2 13 15
15355 # Create a (secure) tmp directory for tmp files.
15358 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15359 test -d "$tmp"
15360 } ||
15362 tmp=./conf$$-$RANDOM
15363 (umask 077 && mkdir "$tmp")
15364 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15365 ac_tmp=$tmp
15367 # Set up the scripts for CONFIG_FILES section.
15368 # No need to generate them if there are no CONFIG_FILES.
15369 # This happens for instance with `./config.status config.h'.
15370 if test -n "$CONFIG_FILES"; then
15373 ac_cr=`echo X | tr X '\015'`
15374 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15375 # But we know of no other shell where ac_cr would be empty at this
15376 # point, so we can use a bashism as a fallback.
15377 if test "x$ac_cr" = x; then
15378 eval ac_cr=\$\'\\r\'
15380 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15381 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15382 ac_cs_awk_cr='\\r'
15383 else
15384 ac_cs_awk_cr=$ac_cr
15387 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15388 _ACEOF
15392 echo "cat >conf$$subs.awk <<_ACEOF" &&
15393 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15394 echo "_ACEOF"
15395 } >conf$$subs.sh ||
15396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15397 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15398 ac_delim='%!_!# '
15399 for ac_last_try in false false false false false :; do
15400 . ./conf$$subs.sh ||
15401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15403 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15404 if test $ac_delim_n = $ac_delim_num; then
15405 break
15406 elif $ac_last_try; then
15407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15408 else
15409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15411 done
15412 rm -f conf$$subs.sh
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15416 _ACEOF
15417 sed -n '
15419 s/^/S["/; s/!.*/"]=/
15422 s/^[^!]*!//
15423 :repl
15424 t repl
15425 s/'"$ac_delim"'$//
15426 t delim
15429 s/\(.\{148\}\)..*/\1/
15430 t more1
15431 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15434 b repl
15435 :more1
15436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15439 s/.\{148\}//
15440 t nl
15441 :delim
15443 s/\(.\{148\}\)..*/\1/
15444 t more2
15445 s/["\\]/\\&/g; s/^/"/; s/$/"/
15448 :more2
15449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15452 s/.\{148\}//
15453 t delim
15454 ' <conf$$subs.awk | sed '
15455 /^[^""]/{
15457 s/\n//
15459 ' >>$CONFIG_STATUS || ac_write_fail=1
15460 rm -f conf$$subs.awk
15461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462 _ACAWK
15463 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15464 for (key in S) S_is_set[key] = 1
15465 FS = "\a"
15469 line = $ 0
15470 nfields = split(line, field, "@")
15471 substed = 0
15472 len = length(field[1])
15473 for (i = 2; i < nfields; i++) {
15474 key = field[i]
15475 keylen = length(key)
15476 if (S_is_set[key]) {
15477 value = S[key]
15478 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15479 len += length(value) + length(field[++i])
15480 substed = 1
15481 } else
15482 len += 1 + keylen
15485 print line
15488 _ACAWK
15489 _ACEOF
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15492 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15493 else
15495 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15496 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15497 _ACEOF
15499 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15500 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15501 # trailing colons and then remove the whole line if VPATH becomes empty
15502 # (actually we leave an empty line to preserve line numbers).
15503 if test "x$srcdir" = x.; then
15504 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15506 s///
15507 s/^/:/
15508 s/[ ]*$/:/
15509 s/:\$(srcdir):/:/g
15510 s/:\${srcdir}:/:/g
15511 s/:@srcdir@:/:/g
15512 s/^:*//
15513 s/:*$//
15515 s/\(=[ ]*\).*/\1/
15517 s/\n//
15518 s/^[^=]*=[ ]*$//
15522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 fi # test -n "$CONFIG_FILES"
15525 # Set up the scripts for CONFIG_HEADERS section.
15526 # No need to generate them if there are no CONFIG_HEADERS.
15527 # This happens for instance with `./config.status Makefile'.
15528 if test -n "$CONFIG_HEADERS"; then
15529 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15530 BEGIN {
15531 _ACEOF
15533 # Transform confdefs.h into an awk script `defines.awk', embedded as
15534 # here-document in config.status, that substitutes the proper values into
15535 # config.h.in to produce config.h.
15537 # Create a delimiter string that does not exist in confdefs.h, to ease
15538 # handling of long lines.
15539 ac_delim='%!_!# '
15540 for ac_last_try in false false :; do
15541 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15542 if test -z "$ac_tt"; then
15543 break
15544 elif $ac_last_try; then
15545 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15546 else
15547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15549 done
15551 # For the awk script, D is an array of macro values keyed by name,
15552 # likewise P contains macro parameters if any. Preserve backslash
15553 # newline sequences.
15555 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15556 sed -n '
15557 s/.\{148\}/&'"$ac_delim"'/g
15558 t rset
15559 :rset
15560 s/^[ ]*#[ ]*define[ ][ ]*/ /
15561 t def
15563 :def
15564 s/\\$//
15565 t bsnl
15566 s/["\\]/\\&/g
15567 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15568 D["\1"]=" \3"/p
15569 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15571 :bsnl
15572 s/["\\]/\\&/g
15573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15574 D["\1"]=" \3\\\\\\n"\\/p
15575 t cont
15576 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15577 t cont
15579 :cont
15581 s/.\{148\}/&'"$ac_delim"'/g
15582 t clear
15583 :clear
15584 s/\\$//
15585 t bsnlc
15586 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15588 :bsnlc
15589 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15590 b cont
15591 ' <confdefs.h | sed '
15592 s/'"$ac_delim"'/"\\\
15593 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 for (key in D) D_is_set[key] = 1
15597 FS = "\a"
15599 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15600 line = \$ 0
15601 split(line, arg, " ")
15602 if (arg[1] == "#") {
15603 defundef = arg[2]
15604 mac1 = arg[3]
15605 } else {
15606 defundef = substr(arg[1], 2)
15607 mac1 = arg[2]
15609 split(mac1, mac2, "(") #)
15610 macro = mac2[1]
15611 prefix = substr(line, 1, index(line, defundef) - 1)
15612 if (D_is_set[macro]) {
15613 # Preserve the white space surrounding the "#".
15614 print prefix "define", macro P[macro] D[macro]
15615 next
15616 } else {
15617 # Replace #undef with comments. This is necessary, for example,
15618 # in the case of _POSIX_SOURCE, which is predefined and required
15619 # on some systems where configure will not decide to define it.
15620 if (defundef == "undef") {
15621 print "/*", prefix defundef, macro, "*/"
15622 next
15626 { print }
15627 _ACAWK
15628 _ACEOF
15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15631 fi # test -n "$CONFIG_HEADERS"
15634 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15635 shift
15636 for ac_tag
15638 case $ac_tag in
15639 :[FHLC]) ac_mode=$ac_tag; continue;;
15640 esac
15641 case $ac_mode$ac_tag in
15642 :[FHL]*:*);;
15643 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15644 :[FH]-) ac_tag=-:-;;
15645 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15646 esac
15647 ac_save_IFS=$IFS
15648 IFS=:
15649 set x $ac_tag
15650 IFS=$ac_save_IFS
15651 shift
15652 ac_file=$1
15653 shift
15655 case $ac_mode in
15656 :L) ac_source=$1;;
15657 :[FH])
15658 ac_file_inputs=
15659 for ac_f
15661 case $ac_f in
15662 -) ac_f="$ac_tmp/stdin";;
15663 *) # Look for the file first in the build tree, then in the source tree
15664 # (if the path is not absolute). The absolute path cannot be DOS-style,
15665 # because $ac_f cannot contain `:'.
15666 test -f "$ac_f" ||
15667 case $ac_f in
15668 [\\/$]*) false;;
15669 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15670 esac ||
15671 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15672 esac
15673 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15674 as_fn_append ac_file_inputs " '$ac_f'"
15675 done
15677 # Let's still pretend it is `configure' which instantiates (i.e., don't
15678 # use $as_me), people would be surprised to read:
15679 # /* config.h. Generated by config.status. */
15680 configure_input='Generated from '`
15681 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15682 `' by configure.'
15683 if test x"$ac_file" != x-; then
15684 configure_input="$ac_file. $configure_input"
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15686 $as_echo "$as_me: creating $ac_file" >&6;}
15688 # Neutralize special characters interpreted by sed in replacement strings.
15689 case $configure_input in #(
15690 *\&* | *\|* | *\\* )
15691 ac_sed_conf_input=`$as_echo "$configure_input" |
15692 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15693 *) ac_sed_conf_input=$configure_input;;
15694 esac
15696 case $ac_tag in
15697 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15699 esac
15701 esac
15703 ac_dir=`$as_dirname -- "$ac_file" ||
15704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15705 X"$ac_file" : 'X\(//\)[^/]' \| \
15706 X"$ac_file" : 'X\(//\)$' \| \
15707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15708 $as_echo X"$ac_file" |
15709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15710 s//\1/
15713 /^X\(\/\/\)[^/].*/{
15714 s//\1/
15717 /^X\(\/\/\)$/{
15718 s//\1/
15721 /^X\(\/\).*/{
15722 s//\1/
15725 s/.*/./; q'`
15726 as_dir="$ac_dir"; as_fn_mkdir_p
15727 ac_builddir=.
15729 case "$ac_dir" in
15730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15733 # A ".." for each directory in $ac_dir_suffix.
15734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15735 case $ac_top_builddir_sub in
15736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15738 esac ;;
15739 esac
15740 ac_abs_top_builddir=$ac_pwd
15741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15742 # for backward compatibility:
15743 ac_top_builddir=$ac_top_build_prefix
15745 case $srcdir in
15746 .) # We are building in place.
15747 ac_srcdir=.
15748 ac_top_srcdir=$ac_top_builddir_sub
15749 ac_abs_top_srcdir=$ac_pwd ;;
15750 [\\/]* | ?:[\\/]* ) # Absolute name.
15751 ac_srcdir=$srcdir$ac_dir_suffix;
15752 ac_top_srcdir=$srcdir
15753 ac_abs_top_srcdir=$srcdir ;;
15754 *) # Relative name.
15755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15756 ac_top_srcdir=$ac_top_build_prefix$srcdir
15757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15758 esac
15759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15762 case $ac_mode in
15765 # CONFIG_FILE
15768 _ACEOF
15770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15771 # If the template does not know about datarootdir, expand it.
15772 # FIXME: This hack should be removed a few years after 2.60.
15773 ac_datarootdir_hack=; ac_datarootdir_seen=
15774 ac_sed_dataroot='
15775 /datarootdir/ {
15779 /@datadir@/p
15780 /@docdir@/p
15781 /@infodir@/p
15782 /@localedir@/p
15783 /@mandir@/p'
15784 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15785 *datarootdir*) ac_datarootdir_seen=yes;;
15786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15788 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15791 ac_datarootdir_hack='
15792 s&@datadir@&$datadir&g
15793 s&@docdir@&$docdir&g
15794 s&@infodir@&$infodir&g
15795 s&@localedir@&$localedir&g
15796 s&@mandir@&$mandir&g
15797 s&\\\${datarootdir}&$datarootdir&g' ;;
15798 esac
15799 _ACEOF
15801 # Neutralize VPATH when `$srcdir' = `.'.
15802 # Shell code in configure.ac might set extrasub.
15803 # FIXME: do we really want to maintain this feature?
15804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15805 ac_sed_extra="$ac_vpsub
15806 $extrasub
15807 _ACEOF
15808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15811 s|@configure_input@|$ac_sed_conf_input|;t t
15812 s&@top_builddir@&$ac_top_builddir_sub&;t t
15813 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15814 s&@srcdir@&$ac_srcdir&;t t
15815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15816 s&@top_srcdir@&$ac_top_srcdir&;t t
15817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15818 s&@builddir@&$ac_builddir&;t t
15819 s&@abs_builddir@&$ac_abs_builddir&;t t
15820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15821 $ac_datarootdir_hack
15823 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15824 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15827 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15829 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15831 which seems to be undefined. Please make sure it is defined" >&5
15832 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15833 which seems to be undefined. Please make sure it is defined" >&2;}
15835 rm -f "$ac_tmp/stdin"
15836 case $ac_file in
15837 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15838 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15839 esac \
15840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15844 # CONFIG_HEADER
15846 if test x"$ac_file" != x-; then
15848 $as_echo "/* $configure_input */" \
15849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15850 } >"$ac_tmp/config.h" \
15851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15852 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15854 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15855 else
15856 rm -f "$ac_file"
15857 mv "$ac_tmp/config.h" "$ac_file" \
15858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15860 else
15861 $as_echo "/* $configure_input */" \
15862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15863 || as_fn_error $? "could not create -" "$LINENO" 5
15867 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15868 $as_echo "$as_me: executing $ac_file commands" >&6;}
15870 esac
15873 case $ac_file$ac_mode in
15874 "compiler_executable":C)
15875 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15876 mkdir -p $prefix
15877 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15878 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15880 echo ${prefix2}
15881 echo ${prefix3}
15882 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15884 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15885 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15886 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15887 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15888 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15889 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15890 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15892 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15894 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15896 esac
15897 done # for ac_tag
15900 as_fn_exit 0
15901 _ACEOF
15902 ac_clean_files=$ac_clean_files_save
15904 test $ac_write_fail = 0 ||
15905 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15908 # configure is writing to config.log, and then calls config.status.
15909 # config.status does its own redirection, appending to config.log.
15910 # Unfortunately, on DOS this fails, as config.log is still kept open
15911 # by configure, so config.status won't be able to write to it; its
15912 # output is simply discarded. So we exec the FD to /dev/null,
15913 # effectively closing config.log, so it can be properly (re)opened and
15914 # appended to by config.status. When coming back to configure, we
15915 # need to make the FD available again.
15916 if test "$no_create" != yes; then
15917 ac_cs_success=:
15918 ac_config_status_args=
15919 test "$silent" = yes &&
15920 ac_config_status_args="$ac_config_status_args --quiet"
15921 exec 5>/dev/null
15922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15923 exec 5>>config.log
15924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15925 # would make configure fail if this is the last instruction.
15926 $ac_cs_success || as_fn_exit 1
15928 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15930 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15935 #XXX compatability...
15936 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15938 if test -n "$aros_shared_cflags" ; then
15939 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15940 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg