m68k-amiga: Add mssing dependency
[AROS.git] / configure
blob76be4ab3547b29abe6aeda7fd8e0a7d4774a8450
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 >= 2.5" >&5
5764 $as_echo_n "checking whether $PYTHON version >= 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_fn_error $? "too old" "$LINENO" 5
5784 am_display_PYTHON=$PYTHON
5785 else
5786 # Otherwise, try each interpreter until we find one that satisfies
5787 # VERSION.
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5789 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5790 if ${am_cv_pathless_PYTHON+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5794 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5795 test "$am_cv_pathless_PYTHON" = none && break
5796 prog="import sys
5797 # split strings by '.' and convert to numeric. Append some zeros
5798 # because we need at least 4 digits for the hex conversion.
5799 # map returns an iterator in Python 3.0 and a list in 2.x
5800 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5801 minverhex = 0
5802 # xrange is not present in Python 3.0 and range returns an iterator
5803 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5804 sys.exit(sys.hexversion < minverhex)"
5805 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5806 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; then :
5810 break
5812 done
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5815 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5816 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5817 if test "$am_cv_pathless_PYTHON" = none; then
5818 PYTHON=:
5819 else
5820 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5821 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if ${ac_cv_path_PYTHON+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 case $PYTHON in
5828 [\\/]* | ?:[\\/]*)
5829 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5845 IFS=$as_save_IFS
5848 esac
5850 PYTHON=$ac_cv_path_PYTHON
5851 if test -n "$PYTHON"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5853 $as_echo "$PYTHON" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5861 am_display_PYTHON=$am_cv_pathless_PYTHON
5865 if test "$PYTHON" = :; then
5866 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5867 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5871 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5872 if ${am_cv_python_version+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5878 $as_echo "$am_cv_python_version" >&6; }
5879 PYTHON_VERSION=$am_cv_python_version
5883 PYTHON_PREFIX='${prefix}'
5885 PYTHON_EXEC_PREFIX='${exec_prefix}'
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5890 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5891 if ${am_cv_python_platform+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5897 $as_echo "$am_cv_python_platform" >&6; }
5898 PYTHON_PLATFORM=$am_cv_python_platform
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5904 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5905 if ${am_cv_python_pythondir+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test "x$prefix" = xNONE
5909 then
5910 am_py_prefix=$ac_default_prefix
5911 else
5912 am_py_prefix=$prefix
5914 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5915 case $am_cv_python_pythondir in
5916 $am_py_prefix*)
5917 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5918 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5921 case $am_py_prefix in
5922 /usr|/System*) ;;
5924 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5926 esac
5928 esac
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5932 $as_echo "$am_cv_python_pythondir" >&6; }
5933 pythondir=$am_cv_python_pythondir
5937 pkgpythondir=\${pythondir}/$PACKAGE
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5941 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5942 if ${am_cv_python_pyexecdir+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test "x$exec_prefix" = xNONE
5946 then
5947 am_py_exec_prefix=$am_py_prefix
5948 else
5949 am_py_exec_prefix=$exec_prefix
5951 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5952 case $am_cv_python_pyexecdir in
5953 $am_py_exec_prefix*)
5954 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5955 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5958 case $am_py_exec_prefix in
5959 /usr|/System*) ;;
5961 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5963 esac
5965 esac
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5969 $as_echo "$am_cv_python_pyexecdir" >&6; }
5970 pyexecdir=$am_cv_python_pyexecdir
5974 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5984 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5985 if ${ac_cv_lib_png_png_read_png+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 ac_check_lib_save_LIBS=$LIBS
5989 LIBS="-lpng $LIBS"
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5993 /* Override any GCC internal prototype to avoid an error.
5994 Use char because int might match the return type of a GCC
5995 builtin and then its argument prototype would still apply. */
5996 #ifdef __cplusplus
5997 extern "C"
5998 #endif
5999 char png_read_png ();
6001 main ()
6003 return png_read_png ();
6005 return 0;
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 ac_cv_lib_png_png_read_png=yes
6010 else
6011 ac_cv_lib_png_png_read_png=no
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 LIBS=$ac_check_lib_save_LIBS
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6018 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6019 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6020 cat >>confdefs.h <<_ACEOF
6021 #define HAVE_LIBPNG 1
6022 _ACEOF
6024 LIBS="-lpng $LIBS"
6028 if test "$ac_cv_lib_png_png_read_png" = ""; then
6029 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6032 FOR=for
6034 IF=if
6036 TEST=test
6038 CMP=cmp
6042 # Check for some includes for the X11 HIDD and the kernel
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6046 if ${ac_cv_path_GREP+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -z "$GREP"; then
6050 ac_path_GREP_found=false
6051 # Loop through the user's path and test for each of PROGNAME-LIST
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_prog in grep ggrep; do
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6060 as_fn_executable_p "$ac_path_GREP" || continue
6061 # Check for GNU ac_path_GREP and select it if it is found.
6062 # Check for GNU $ac_path_GREP
6063 case `"$ac_path_GREP" --version 2>&1` in
6064 *GNU*)
6065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6067 ac_count=0
6068 $as_echo_n 0123456789 >"conftest.in"
6069 while :
6071 cat "conftest.in" "conftest.in" >"conftest.tmp"
6072 mv "conftest.tmp" "conftest.in"
6073 cp "conftest.in" "conftest.nl"
6074 $as_echo 'GREP' >> "conftest.nl"
6075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6077 as_fn_arith $ac_count + 1 && ac_count=$as_val
6078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6079 # Best one so far, save it but keep looking for a better one
6080 ac_cv_path_GREP="$ac_path_GREP"
6081 ac_path_GREP_max=$ac_count
6083 # 10*(2^10) chars as input seems more than enough
6084 test $ac_count -gt 10 && break
6085 done
6086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6087 esac
6089 $ac_path_GREP_found && break 3
6090 done
6091 done
6092 done
6093 IFS=$as_save_IFS
6094 if test -z "$ac_cv_path_GREP"; then
6095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6097 else
6098 ac_cv_path_GREP=$GREP
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6103 $as_echo "$ac_cv_path_GREP" >&6; }
6104 GREP="$ac_cv_path_GREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6108 $as_echo_n "checking for egrep... " >&6; }
6109 if ${ac_cv_path_EGREP+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6113 then ac_cv_path_EGREP="$GREP -E"
6114 else
6115 if test -z "$EGREP"; then
6116 ac_path_EGREP_found=false
6117 # Loop through the user's path and test for each of PROGNAME-LIST
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_prog in egrep; do
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6126 as_fn_executable_p "$ac_path_EGREP" || continue
6127 # Check for GNU ac_path_EGREP and select it if it is found.
6128 # Check for GNU $ac_path_EGREP
6129 case `"$ac_path_EGREP" --version 2>&1` in
6130 *GNU*)
6131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6133 ac_count=0
6134 $as_echo_n 0123456789 >"conftest.in"
6135 while :
6137 cat "conftest.in" "conftest.in" >"conftest.tmp"
6138 mv "conftest.tmp" "conftest.in"
6139 cp "conftest.in" "conftest.nl"
6140 $as_echo 'EGREP' >> "conftest.nl"
6141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6143 as_fn_arith $ac_count + 1 && ac_count=$as_val
6144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6145 # Best one so far, save it but keep looking for a better one
6146 ac_cv_path_EGREP="$ac_path_EGREP"
6147 ac_path_EGREP_max=$ac_count
6149 # 10*(2^10) chars as input seems more than enough
6150 test $ac_count -gt 10 && break
6151 done
6152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6153 esac
6155 $ac_path_EGREP_found && break 3
6156 done
6157 done
6158 done
6159 IFS=$as_save_IFS
6160 if test -z "$ac_cv_path_EGREP"; then
6161 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6163 else
6164 ac_cv_path_EGREP=$EGREP
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6170 $as_echo "$ac_cv_path_EGREP" >&6; }
6171 EGREP="$ac_cv_path_EGREP"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6175 $as_echo_n "checking for ANSI C header files... " >&6; }
6176 if ${ac_cv_header_stdc+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 #include <stdlib.h>
6182 #include <stdarg.h>
6183 #include <string.h>
6184 #include <float.h>
6187 main ()
6191 return 0;
6193 _ACEOF
6194 if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_cv_header_stdc=yes
6196 else
6197 ac_cv_header_stdc=no
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 if test $ac_cv_header_stdc = yes; then
6202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 #include <string.h>
6207 _ACEOF
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "memchr" >/dev/null 2>&1; then :
6211 else
6212 ac_cv_header_stdc=no
6214 rm -f conftest*
6218 if test $ac_cv_header_stdc = yes; then
6219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <stdlib.h>
6224 _ACEOF
6225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 $EGREP "free" >/dev/null 2>&1; then :
6228 else
6229 ac_cv_header_stdc=no
6231 rm -f conftest*
6235 if test $ac_cv_header_stdc = yes; then
6236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6237 if test "$cross_compiling" = yes; then :
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <ctype.h>
6243 #include <stdlib.h>
6244 #if ((' ' & 0x0FF) == 0x020)
6245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6247 #else
6248 # define ISLOWER(c) \
6249 (('a' <= (c) && (c) <= 'i') \
6250 || ('j' <= (c) && (c) <= 'r') \
6251 || ('s' <= (c) && (c) <= 'z'))
6252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6253 #endif
6255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6257 main ()
6259 int i;
6260 for (i = 0; i < 256; i++)
6261 if (XOR (islower (i), ISLOWER (i))
6262 || toupper (i) != TOUPPER (i))
6263 return 2;
6264 return 0;
6266 _ACEOF
6267 if ac_fn_c_try_run "$LINENO"; then :
6269 else
6270 ac_cv_header_stdc=no
6272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6273 conftest.$ac_objext conftest.beam conftest.$ac_ext
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6279 $as_echo "$ac_cv_header_stdc" >&6; }
6280 if test $ac_cv_header_stdc = yes; then
6282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6288 inttypes.h stdint.h unistd.h
6289 do :
6290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6294 cat >>confdefs.h <<_ACEOF
6295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6300 done
6303 for ac_header in sys/ipc.h sys/shm.h \
6304 sys/mmap.h sys/mman.h sysexits.h \
6305 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6307 do :
6308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6309 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6311 cat >>confdefs.h <<_ACEOF
6312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313 _ACEOF
6317 done
6320 for ac_header in sys/mount.h
6321 do :
6322 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6324 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6325 cat >>confdefs.h <<_ACEOF
6326 #define HAVE_SYS_MOUNT_H 1
6327 _ACEOF
6331 done
6334 ac_header_dirent=no
6335 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6336 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6338 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6339 if eval \${$as_ac_Header+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <sys/types.h>
6345 #include <$ac_hdr>
6348 main ()
6350 if ((DIR *) 0)
6351 return 0;
6353 return 0;
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 eval "$as_ac_Header=yes"
6358 else
6359 eval "$as_ac_Header=no"
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 eval ac_res=\$$as_ac_Header
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6365 $as_echo "$ac_res" >&6; }
6366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6367 cat >>confdefs.h <<_ACEOF
6368 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6369 _ACEOF
6371 ac_header_dirent=$ac_hdr; break
6374 done
6375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6376 if test $ac_header_dirent = dirent.h; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6378 $as_echo_n "checking for library containing opendir... " >&6; }
6379 if ${ac_cv_search_opendir+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 ac_func_search_save_LIBS=$LIBS
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6386 /* Override any GCC internal prototype to avoid an error.
6387 Use char because int might match the return type of a GCC
6388 builtin and then its argument prototype would still apply. */
6389 #ifdef __cplusplus
6390 extern "C"
6391 #endif
6392 char opendir ();
6394 main ()
6396 return opendir ();
6398 return 0;
6400 _ACEOF
6401 for ac_lib in '' dir; do
6402 if test -z "$ac_lib"; then
6403 ac_res="none required"
6404 else
6405 ac_res=-l$ac_lib
6406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6408 if ac_fn_c_try_link "$LINENO"; then :
6409 ac_cv_search_opendir=$ac_res
6411 rm -f core conftest.err conftest.$ac_objext \
6412 conftest$ac_exeext
6413 if ${ac_cv_search_opendir+:} false; then :
6414 break
6416 done
6417 if ${ac_cv_search_opendir+:} false; then :
6419 else
6420 ac_cv_search_opendir=no
6422 rm conftest.$ac_ext
6423 LIBS=$ac_func_search_save_LIBS
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6426 $as_echo "$ac_cv_search_opendir" >&6; }
6427 ac_res=$ac_cv_search_opendir
6428 if test "$ac_res" != no; then :
6429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6435 $as_echo_n "checking for library containing opendir... " >&6; }
6436 if ${ac_cv_search_opendir+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 ac_func_search_save_LIBS=$LIBS
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6443 /* Override any GCC internal prototype to avoid an error.
6444 Use char because int might match the return type of a GCC
6445 builtin and then its argument prototype would still apply. */
6446 #ifdef __cplusplus
6447 extern "C"
6448 #endif
6449 char opendir ();
6451 main ()
6453 return opendir ();
6455 return 0;
6457 _ACEOF
6458 for ac_lib in '' x; do
6459 if test -z "$ac_lib"; then
6460 ac_res="none required"
6461 else
6462 ac_res=-l$ac_lib
6463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 ac_cv_search_opendir=$ac_res
6468 rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext
6470 if ${ac_cv_search_opendir+:} false; then :
6471 break
6473 done
6474 if ${ac_cv_search_opendir+:} false; then :
6476 else
6477 ac_cv_search_opendir=no
6479 rm conftest.$ac_ext
6480 LIBS=$ac_func_search_save_LIBS
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6483 $as_echo "$ac_cv_search_opendir" >&6; }
6484 ac_res=$ac_cv_search_opendir
6485 if test "$ac_res" != no; then :
6486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6493 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6494 if ${ac_cv_header_stat_broken+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <sys/types.h>
6500 #include <sys/stat.h>
6502 #if defined S_ISBLK && defined S_IFDIR
6503 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6504 #endif
6506 #if defined S_ISBLK && defined S_IFCHR
6507 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6508 #endif
6510 #if defined S_ISLNK && defined S_IFREG
6511 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6512 #endif
6514 #if defined S_ISSOCK && defined S_IFREG
6515 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6516 #endif
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 ac_cv_header_stat_broken=no
6521 else
6522 ac_cv_header_stat_broken=yes
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6527 $as_echo "$ac_cv_header_stat_broken" >&6; }
6528 if test $ac_cv_header_stat_broken = yes; then
6530 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6535 $as_echo_n "checking for ANSI C header files... " >&6; }
6536 if ${ac_cv_header_stdc+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <stdlib.h>
6542 #include <stdarg.h>
6543 #include <string.h>
6544 #include <float.h>
6547 main ()
6551 return 0;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_header_stdc=yes
6556 else
6557 ac_cv_header_stdc=no
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 if test $ac_cv_header_stdc = yes; then
6562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 #include <string.h>
6567 _ACEOF
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then :
6571 else
6572 ac_cv_header_stdc=no
6574 rm -f conftest*
6578 if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <stdlib.h>
6584 _ACEOF
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 $EGREP "free" >/dev/null 2>&1; then :
6588 else
6589 ac_cv_header_stdc=no
6591 rm -f conftest*
6595 if test $ac_cv_header_stdc = yes; then
6596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6597 if test "$cross_compiling" = yes; then :
6599 else
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #include <ctype.h>
6603 #include <stdlib.h>
6604 #if ((' ' & 0x0FF) == 0x020)
6605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6607 #else
6608 # define ISLOWER(c) \
6609 (('a' <= (c) && (c) <= 'i') \
6610 || ('j' <= (c) && (c) <= 'r') \
6611 || ('s' <= (c) && (c) <= 'z'))
6612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6613 #endif
6615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6617 main ()
6619 int i;
6620 for (i = 0; i < 256; i++)
6621 if (XOR (islower (i), ISLOWER (i))
6622 || toupper (i) != TOUPPER (i))
6623 return 2;
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_run "$LINENO"; then :
6629 else
6630 ac_cv_header_stdc=no
6632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6633 conftest.$ac_objext conftest.beam conftest.$ac_ext
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6639 $as_echo "$ac_cv_header_stdc" >&6; }
6640 if test $ac_cv_header_stdc = yes; then
6642 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6647 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6648 if ${ac_cv_header_sys_wait_h+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <sys/wait.h>
6655 #ifndef WEXITSTATUS
6656 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6657 #endif
6658 #ifndef WIFEXITED
6659 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6660 #endif
6663 main ()
6665 int s;
6666 wait (&s);
6667 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6669 return 0;
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673 ac_cv_header_sys_wait_h=yes
6674 else
6675 ac_cv_header_sys_wait_h=no
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6680 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6681 if test $ac_cv_header_sys_wait_h = yes; then
6683 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6688 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6689 if ${ac_cv_header_time+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <sys/time.h>
6696 #include <time.h>
6699 main ()
6701 if ((struct tm *) 0)
6702 return 0;
6704 return 0;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_header_time=yes
6709 else
6710 ac_cv_header_time=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_time" >&5
6715 $as_echo "$ac_cv_header_time" >&6; }
6716 if test $ac_cv_header_time = yes; then
6718 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6722 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6723 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6727 _ACEOF
6730 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6735 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6736 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6740 _ACEOF
6743 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6745 else
6746 case " $LIBOBJS " in
6747 *" fileblocks.$ac_objext "* ) ;;
6748 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6750 esac
6755 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6756 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6758 cat >>confdefs.h <<_ACEOF
6759 #define HAVE_STRUCT_STAT_ST_RDEV 1
6760 _ACEOF
6763 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6769 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6770 if ${ac_cv_struct_tm+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 #include <sys/types.h>
6776 #include <time.h>
6779 main ()
6781 struct tm tm;
6782 int *p = &tm.tm_sec;
6783 return !p;
6785 return 0;
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 ac_cv_struct_tm=time.h
6790 else
6791 ac_cv_struct_tm=sys/time.h
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6796 $as_echo "$ac_cv_struct_tm" >&6; }
6797 if test $ac_cv_struct_tm = sys/time.h; then
6799 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6803 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6804 #include <$ac_cv_struct_tm>
6807 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_STRUCT_TM_TM_ZONE 1
6811 _ACEOF
6816 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6818 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6820 else
6821 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6823 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6824 ac_have_decl=1
6825 else
6826 ac_have_decl=0
6829 cat >>confdefs.h <<_ACEOF
6830 #define HAVE_DECL_TZNAME $ac_have_decl
6831 _ACEOF
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6834 $as_echo_n "checking for tzname... " >&6; }
6835 if ${ac_cv_var_tzname+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <time.h>
6841 #if !HAVE_DECL_TZNAME
6842 extern char *tzname[];
6843 #endif
6846 main ()
6848 return tzname[0][0];
6850 return 0;
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854 ac_cv_var_tzname=yes
6855 else
6856 ac_cv_var_tzname=no
6858 rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6862 $as_echo "$ac_cv_var_tzname" >&6; }
6863 if test $ac_cv_var_tzname = yes; then
6865 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6870 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6871 if test "x$ac_cv_type_off_t" = xyes; then :
6873 else
6875 cat >>confdefs.h <<_ACEOF
6876 #define off_t long int
6877 _ACEOF
6881 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_pid_t" = xyes; then :
6884 else
6886 cat >>confdefs.h <<_ACEOF
6887 #define pid_t int
6888 _ACEOF
6892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6893 if test "x$ac_cv_type_size_t" = xyes; then :
6895 else
6897 cat >>confdefs.h <<_ACEOF
6898 #define size_t unsigned int
6899 _ACEOF
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6904 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6905 if ${ac_cv_type_uid_t+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6910 #include <sys/types.h>
6912 _ACEOF
6913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "uid_t" >/dev/null 2>&1; then :
6915 ac_cv_type_uid_t=yes
6916 else
6917 ac_cv_type_uid_t=no
6919 rm -f conftest*
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6923 $as_echo "$ac_cv_type_uid_t" >&6; }
6924 if test $ac_cv_type_uid_t = no; then
6926 $as_echo "#define uid_t int" >>confdefs.h
6929 $as_echo "#define gid_t int" >>confdefs.h
6934 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6935 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6937 cat >>confdefs.h <<_ACEOF
6938 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6939 _ACEOF
6945 # Look for some functions
6946 for ac_func in getpagesize kqueue statfs statvfs \
6947 clone kse_create rfork_thread thr_create sa_register \
6948 getcontext makecontext setcontext sigaltstack swapcontext
6949 do :
6950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6953 cat >>confdefs.h <<_ACEOF
6954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6955 _ACEOF
6958 done
6964 for ac_header in $ac_header_list
6965 do :
6966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6970 cat >>confdefs.h <<_ACEOF
6971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6972 _ACEOF
6976 done
6985 for ac_func in getpagesize
6986 do :
6987 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6988 if test "x$ac_cv_func_getpagesize" = xyes; then :
6989 cat >>confdefs.h <<_ACEOF
6990 #define HAVE_GETPAGESIZE 1
6991 _ACEOF
6994 done
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6997 $as_echo_n "checking for working mmap... " >&6; }
6998 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test "$cross_compiling" = yes; then :
7002 ac_cv_func_mmap_fixed_mapped=no
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 $ac_includes_default
7007 /* malloc might have been renamed as rpl_malloc. */
7008 #undef malloc
7010 /* Thanks to Mike Haertel and Jim Avera for this test.
7011 Here is a matrix of mmap possibilities:
7012 mmap private not fixed
7013 mmap private fixed at somewhere currently unmapped
7014 mmap private fixed at somewhere already mapped
7015 mmap shared not fixed
7016 mmap shared fixed at somewhere currently unmapped
7017 mmap shared fixed at somewhere already mapped
7018 For private mappings, we should verify that changes cannot be read()
7019 back from the file, nor mmap's back from the file at a different
7020 address. (There have been systems where private was not correctly
7021 implemented like the infamous i386 svr4.0, and systems where the
7022 VM page cache was not coherent with the file system buffer cache
7023 like early versions of FreeBSD and possibly contemporary NetBSD.)
7024 For shared mappings, we should conversely verify that changes get
7025 propagated back to all the places they're supposed to be.
7027 Grep wants private fixed already mapped.
7028 The main things grep needs to know about mmap are:
7029 * does it exist and is it safe to write into the mmap'd area
7030 * how to use it (BSD variants) */
7032 #include <fcntl.h>
7033 #include <sys/mman.h>
7035 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7036 char *malloc ();
7037 #endif
7039 /* This mess was copied from the GNU getpagesize.h. */
7040 #ifndef HAVE_GETPAGESIZE
7041 # ifdef _SC_PAGESIZE
7042 # define getpagesize() sysconf(_SC_PAGESIZE)
7043 # else /* no _SC_PAGESIZE */
7044 # ifdef HAVE_SYS_PARAM_H
7045 # include <sys/param.h>
7046 # ifdef EXEC_PAGESIZE
7047 # define getpagesize() EXEC_PAGESIZE
7048 # else /* no EXEC_PAGESIZE */
7049 # ifdef NBPG
7050 # define getpagesize() NBPG * CLSIZE
7051 # ifndef CLSIZE
7052 # define CLSIZE 1
7053 # endif /* no CLSIZE */
7054 # else /* no NBPG */
7055 # ifdef NBPC
7056 # define getpagesize() NBPC
7057 # else /* no NBPC */
7058 # ifdef PAGESIZE
7059 # define getpagesize() PAGESIZE
7060 # endif /* PAGESIZE */
7061 # endif /* no NBPC */
7062 # endif /* no NBPG */
7063 # endif /* no EXEC_PAGESIZE */
7064 # else /* no HAVE_SYS_PARAM_H */
7065 # define getpagesize() 8192 /* punt totally */
7066 # endif /* no HAVE_SYS_PARAM_H */
7067 # endif /* no _SC_PAGESIZE */
7069 #endif /* no HAVE_GETPAGESIZE */
7072 main ()
7074 char *data, *data2, *data3;
7075 const char *cdata2;
7076 int i, pagesize;
7077 int fd, fd2;
7079 pagesize = getpagesize ();
7081 /* First, make a file with some known garbage in it. */
7082 data = (char *) malloc (pagesize);
7083 if (!data)
7084 return 1;
7085 for (i = 0; i < pagesize; ++i)
7086 *(data + i) = rand ();
7087 umask (0);
7088 fd = creat ("conftest.mmap", 0600);
7089 if (fd < 0)
7090 return 2;
7091 if (write (fd, data, pagesize) != pagesize)
7092 return 3;
7093 close (fd);
7095 /* Next, check that the tail of a page is zero-filled. File must have
7096 non-zero length, otherwise we risk SIGBUS for entire page. */
7097 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7098 if (fd2 < 0)
7099 return 4;
7100 cdata2 = "";
7101 if (write (fd2, cdata2, 1) != 1)
7102 return 5;
7103 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7104 if (data2 == MAP_FAILED)
7105 return 6;
7106 for (i = 0; i < pagesize; ++i)
7107 if (*(data2 + i))
7108 return 7;
7109 close (fd2);
7110 if (munmap (data2, pagesize))
7111 return 8;
7113 /* Next, try to mmap the file at a fixed address which already has
7114 something else allocated at it. If we can, also make sure that
7115 we see the same garbage. */
7116 fd = open ("conftest.mmap", O_RDWR);
7117 if (fd < 0)
7118 return 9;
7119 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7120 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7121 return 10;
7122 for (i = 0; i < pagesize; ++i)
7123 if (*(data + i) != *(data2 + i))
7124 return 11;
7126 /* Finally, make sure that changes to the mapped area do not
7127 percolate back to the file as seen by read(). (This is a bug on
7128 some variants of i386 svr4.0.) */
7129 for (i = 0; i < pagesize; ++i)
7130 *(data2 + i) = *(data2 + i) + 1;
7131 data3 = (char *) malloc (pagesize);
7132 if (!data3)
7133 return 12;
7134 if (read (fd, data3, pagesize) != pagesize)
7135 return 13;
7136 for (i = 0; i < pagesize; ++i)
7137 if (*(data + i) != *(data3 + i))
7138 return 14;
7139 close (fd);
7140 return 0;
7142 _ACEOF
7143 if ac_fn_c_try_run "$LINENO"; then :
7144 ac_cv_func_mmap_fixed_mapped=yes
7145 else
7146 ac_cv_func_mmap_fixed_mapped=no
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7154 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7157 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7160 rm -f conftest.mmap conftest.txt
7165 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7166 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7167 aros_config_ldflags=""
7169 aros_shared_default=yes
7171 aros_shared_cflags="-fPIC"
7172 aros_shared_aflags=""
7173 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7174 aros_kernel_ldflags="-Wl,-rpath,./lib"
7176 aros_kernel_ar_flags="cr"
7177 aros_target_ar_flags="cr"
7178 aros_target_nm_flags="-C -ul"
7179 aros_target_strip_flags="--strip-unneeded -R.comment"
7181 aros_compiler_libs=
7182 aros_arch_libs=
7184 aros_target_genmap="-Wl,-Map -Xlinker"
7186 # Native flavour stuff
7187 aros_serial_debug="0"
7189 # Palm native flavour stuff
7190 aros_palm_debug_hack="0"
7192 # Unix flavour stuff
7193 aros_nesting_supervisor="0"
7195 # Collect-aros stuff: "-ius" to ignore undefined symbols
7196 ignore_undefined_symbols=""
7198 # Check for X11 by default
7199 need_x11="auto"
7201 #-----------------------------------------------------------------------------
7204 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7205 # it switched on by default, and we use the host compiler, so it compiles AROS
7206 # code with this enabled resulting in link failures as we don't have support
7207 # for it.
7209 # We use two methods to disable it. For the host compiler (used to compile
7210 # some hosted modules), we test to see if the compiler supports stack
7211 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7212 # work on all platforms.
7214 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7215 # (this is done unconditionally, as it should have no effect on compilers
7216 # without the stack protection feature). This may be specific to the way that
7217 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7218 # strong enough to disable it in a generic way though, so we'll live with it
7219 # until another vendor ships GCC with it enabled in a different way, and deal
7220 # with it then.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7224 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7225 save_cflags="$CFLAGS"
7226 CFLAGS="$CFLAGS -fno-stack-protector"
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7231 main ()
7235 return 0;
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 use_no_stack_protector="yes"
7240 else
7241 use_no_stack_protector="no"
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7245 $as_echo "$use_no_stack_protector" >&6; }
7246 if test "x-$use_no_stack_protector" = "x-yes" ; then
7247 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7249 CFLAGS="$save_cflags"
7251 #-----------------------------------------------------------------------------
7253 # Disable pointer-signedness warnings if the compiler recognises the option
7254 # (this only works for the host compiler at the moment)
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7257 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7258 save_cflags="$CFLAGS"
7259 CFLAGS="$CFLAGS -Wno-pointer-sign"
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7264 main ()
7268 return 0;
7270 _ACEOF
7271 if ac_fn_c_try_compile "$LINENO"; then :
7272 use_no_sign_warning="yes"
7273 else
7274 use_no_sign_warning="no"
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7278 $as_echo "$use_no_sign_warning" >&6; }
7279 if test "x-$use_no_sign_warning" = "x-yes" ; then
7280 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7282 CFLAGS="$save_cflags"
7284 #-----------------------------------------------------------------------------
7286 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7289 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7290 save_cflags="$CFLAGS"
7291 CFLAGS="$CFLAGS -fgnu89-inline"
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7296 main ()
7300 return 0;
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 use_gnu89_inline="yes"
7305 else
7306 use_gnu89_inline="no"
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7310 $as_echo "$use_gnu89_inline" >&6; }
7311 if test "x-$use_gnu89_inline" = "x-yes" ; then
7312 gnu89_inline="-fgnu89-inline"
7314 CFLAGS="$save_cflags"
7316 #-----------------------------------------------------------------------------
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7319 $as_echo_n "checking for type of build... " >&6; }
7320 # Check whether --enable-build_type was given.
7321 if test "${enable_build_type+set}" = set; then :
7322 enableval=$enable_build_type; build_type=$enableval
7323 else
7324 build_type="personal"
7328 if test "$build_type" = "nightly"; then
7329 build_type_string="NIGHTLY"
7330 elif test "$build_type" = "snapshot"; then
7331 build_type_string="SNAPSHOT"
7332 elif test "$build_type" = "milestone"; then
7333 build_type_string="MILESTONE"
7334 elif test "$build_type" = "release"; then
7335 build_type_string="RELEASE"
7336 else
7337 build_type_string="PERSONAL"
7338 build_type="personal"
7341 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7344 $as_echo "$build_type" >&6; }
7346 #-----------------------------------------------------------------------------
7347 all_debug_types="messages stack modules mungwall symbols"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7350 $as_echo_n "checking which debug types to enable... " >&6; }
7351 # Check whether --enable-debug was given.
7352 if test "${enable_debug+set}" = set; then :
7353 enableval=$enable_debug; debug="$enableval"
7354 else
7355 debug=""
7359 if test "$debug" = "" -o "$debug" = "no"; then
7360 debug="none"
7361 elif test "$debug" = "yes"; then
7362 debug="all"
7365 if test "$debug" = "all" ; then
7366 debug="messages stack modules symbols"
7367 for d in $all_debug_types; do
7368 export aros_${d}_debug="1"
7369 done
7370 else
7371 for d in $all_debug_types; do
7372 export aros_${d}_debug="0"
7373 done
7376 if test "$debug" != "none"; then
7377 debug=`echo $debug | sed s/,/\ /g`
7378 for d in $debug; do
7379 found="0"
7380 for d2 in $all_debug_types; do
7381 if test "$d2" = "$d"; then
7382 found="1"
7383 break
7385 done
7386 if test "$found" = "0"; then
7387 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7389 export aros_${d}_debug="1"
7390 done
7391 aros_debug="yes"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7394 $as_echo "$debug" >&6; }
7396 if test "$aros_messages_debug" = "1"; then
7397 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7398 else
7399 aros_messages_debug=""
7401 if test "$aros_symbols_debug" = "1"; then
7402 aros_symbols_debug="-g"
7403 else
7404 aros_symbols_debug=""
7407 # These are the flags to pass when compiling debugged programs
7408 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7409 aros_debug_aflags=""
7410 aros_debug_ldflags="$aros_symbols_debug"
7412 #-----------------------------------------------------------------------------
7413 # Checking for distcc and ccache.
7415 # Always apply the transforms in this particular order. Basically you should
7416 # always run 'ccache distcc compiler' in that order for the best performance.
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7419 $as_echo_n "checking whether to enable distcc... " >&6; }
7420 # Check whether --enable-distcc was given.
7421 if test "${enable_distcc+set}" = set; then :
7422 enableval=$enable_distcc; distcc="$enableval"
7423 else
7424 distcc="no"
7427 if test "$distcc" != "" -a "$distcc" != "no"; then
7428 # AC_CHECK_PROG will print out the result in this case
7429 # Extract the first word of "distcc", so it can be a program name with args.
7430 set dummy distcc; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_path_DISTCC+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 case $DISTCC in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7452 done
7453 done
7454 IFS=$as_save_IFS
7456 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7458 esac
7460 DISTCC=$ac_cv_path_DISTCC
7461 if test -n "$DISTCC"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7463 $as_echo "$DISTCC" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7476 $as_echo_n "checking whether to enable ccache... " >&6; }
7477 # Check whether --enable-ccache was given.
7478 if test "${enable_ccache+set}" = set; then :
7479 enableval=$enable_ccache; ccache="$enableval"
7480 else
7481 ccache="no"
7484 if test "$ccache" != "" -a "$ccache" != "no"; then
7485 # AC_CHECK_PROG will print out the result in this case
7486 # Extract the first word of "ccache", so it can be a program name with args.
7487 set dummy ccache; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if ${ac_cv_prog_CCACHE+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 if test -n "$CCACHE"; then
7494 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_CCACHE="ccache"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7507 done
7508 done
7509 IFS=$as_save_IFS
7513 CCACHE=$ac_cv_prog_CCACHE
7514 if test -n "$CCACHE"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7516 $as_echo "$CCACHE" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7523 else
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7528 #-----------------------------------------------------------------------------
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7530 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7532 # Check whether --with-kernel-gcc-version was given.
7533 if test "${with_kernel_gcc_version+set}" = set; then :
7534 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7535 else
7536 kernel_tool_version=""
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7540 $as_echo "$kernel_tool_version" >&6; }
7542 #-----------------------------------------------------------------------------
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7544 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7546 # Check whether --with-gcc-version was given.
7547 if test "${with_gcc_version+set}" = set; then :
7548 withval=$with_gcc_version; target_tool_version="$withval"
7549 else
7550 target_tool_version=""
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7554 $as_echo "$target_tool_version" >&6; }
7556 #-----------------------------------------------------------------------------
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7558 $as_echo_n "checking what optimization flags to use... " >&6; }
7560 # Check whether --with-optimization was given.
7561 if test "${with_optimization+set}" = set; then :
7562 withval=$with_optimization; optimization="$withval"
7563 else
7564 optimization="unknown"
7567 if test "$optimization" = "unknown"; then
7568 if test "$debug" != "none"; then
7569 optimization="-O0"
7570 else
7571 optimization="-O2"
7574 aros_config_cflags="$aros_config_cflags $optimization"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7576 $as_echo "$optimization" >&6; }
7578 #-----------------------------------------------------------------------------
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7580 $as_echo_n "checking what paranoia flags to use... " >&6; }
7582 # Check whether --with-paranoia was given.
7583 if test "${with_paranoia+set}" = set; then :
7584 withval=$with_paranoia; paranoia_flags="$withval"
7585 else
7586 paranoia_flags="default"
7589 if test "$paranoia_flags" = "default"; then
7590 paranoia_flags=""
7591 else if test "$paranoia_flags" = "yes"; then
7592 paranoia_flags="-Wall -Werror"
7593 fi fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7595 $as_echo "$paranoia_flags" >&6; }
7596 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7598 #-----------------------------------------------------------------------------
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7600 $as_echo_n "checking what target variant to enable... " >&6; }
7601 # Check whether --enable-target_variant was given.
7602 if test "${enable_target_variant+set}" = set; then :
7603 enableval=$enable_target_variant; target_variant=$enableval
7604 else
7605 target_variant=""
7608 if test "$target_variant" = ""; then
7609 aros_target_variant=""
7610 aros_target_suffix=""
7611 enableval="none"
7612 else
7613 aros_target_variant="$target_variant"
7614 aros_target_suffix="-$target_variant"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7617 $as_echo "$enableval" >&6; }
7619 #-----------------------------------------------------------------------------
7620 # Target-specific defaults. You can override then on a per-target basis.
7622 # Bootloader name. Currently used by PC target.
7623 target_bootloader="none"
7625 #-----------------------------------------------------------------------------
7626 # Additional options for some specific targets
7628 case "$aros_target_variant" in
7629 ios)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7631 $as_echo_n "checking XCode path... " >&6; }
7633 # Check whether --with-xcode was given.
7634 if test "${with_xcode+set}" = set; then :
7635 withval=$with_xcode; aros_xcode_path="$withval"
7636 else
7637 aros_xcode_path="/Developer"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7641 $as_echo "$aros_xcode_path" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7644 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7646 # Check whether --with-sdk-version was given.
7647 if test "${with_sdk_version+set}" = set; then :
7648 withval=$with_sdk_version; aros_sdk_version="$withval"
7649 else
7650 aros_sdk_version="4.1"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7654 $as_echo "$aros_sdk_version" >&6; }
7658 "android")
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7660 $as_echo_n "checking Android SDK path... " >&6; }
7662 # Check whether --with-sdk was given.
7663 if test "${with_sdk+set}" = set; then :
7664 withval=$with_sdk; aros_android_sdk="$withval"
7665 else
7666 aros_android_sdk=$default_android_sdk
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7670 $as_echo "$aros_android_sdk" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7673 $as_echo_n "checking Android NDK path... " >&6; }
7675 # Check whether --with-ndk was given.
7676 if test "${with_ndk+set}" = set; then :
7677 withval=$with_ndk; aros_android_ndk="$withval"
7678 else
7679 aros_android_ndk="none"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7683 $as_echo "$aros_android_ndk" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7686 $as_echo_n "checking what Android SDK version to use... " >&6; }
7688 # Check whether --with-sdk-version was given.
7689 if test "${with_sdk_version+set}" = set; then :
7690 withval=$with_sdk_version; aros_sdk_version="$withval"
7691 else
7692 aros_sdk_version="12"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7696 $as_echo "$aros_sdk_version" >&6; }
7698 if test "$aros_android_ndk" != "none"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7700 $as_echo_n "checking what Android NDK version to use... " >&6; }
7702 # Check whether --with-ndk-version was given.
7703 if test "${with_ndk_version+set}" = set; then :
7704 withval=$with_ndk_version; aros_ndk_version="$withval"
7705 else
7706 aros_ndk_version="9"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7710 $as_echo "$aros_ndk_version" >&6; }
7713 export PATH="$aros_android_sdk/tools:$PATH"
7714 # Extract the first word of "$android_tool", so it can be a program name with args.
7715 set dummy $android_tool; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_path_android_tool+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 case $android_tool in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7742 esac
7744 android_tool=$ac_cv_path_android_tool
7745 if test -n "$android_tool"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7747 $as_echo "$android_tool" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 if test "$android_tool" = ""; then
7755 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7758 aros_android_level=android-$aros_sdk_version
7759 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7760 echo "Platform $aros_android_level is not installed in your SDK"
7761 echo "Use --with-sdk-version=<API level number> to select another platform version"
7762 echo "You can check what plaform versions are installed in your SDK"
7763 echo "by examining contents of $aros_android_sdk/platforms directory"
7764 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7767 # Extract the first word of "ant", so it can be a program name with args.
7768 set dummy ant; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_path_ant+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 case $ant in
7775 [\\/]* | ?:[\\/]*)
7776 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7790 done
7791 done
7792 IFS=$as_save_IFS
7795 esac
7797 ant=$ac_cv_path_ant
7798 if test -n "$ant"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7800 $as_echo "$ant" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 if test "$ant" = ""; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7809 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7813 $as_echo_n "checking Build debug or release apk... " >&6; }
7815 # Check whether --with-apk-version was given.
7816 if test "${with_apk_version+set}" = set; then :
7817 withval=$with_apk_version; aros_android_antapk=$withval
7818 else
7819 aros_android_antapk=release
7822 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7823 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7826 $as_echo "$aros_android_antapk" >&6; }
7828 if test "$host_os" = "mingw32"; then
7829 android_tool="cmd //c $android_tool"
7833 esac
7835 #-----------------------------------------------------------------------------
7836 # External toolchains
7837 kernel_tool_prefix="none"
7838 aros_tool_prefix="none"
7839 elf_tool_prefix="${target_cpu}-elf-"
7841 # This is the target configuration switch.
7842 case "$target_os" in
7843 linux*)
7844 aros_target_arch="linux"
7845 aros_target_family="unix"
7846 case "$target_cpu" in
7847 *m68k*)
7848 aros_target_cpu="m68k"
7849 aros_object_format="m68kelf"
7850 aros_flavour="emulcompat"
7851 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7852 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7853 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7854 gcc_target_cpu="mc68000"
7856 *i?86*)
7857 aros_target_cpu="i386"
7858 aros_object_format="elf_i386"
7859 aros_flavour="emulation"
7860 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7861 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7862 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7863 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7864 aros_config_ldflags="-m32 -march=i486"
7865 aros_kernel_ldflags="-Wl,-melf_i386"
7866 aros_default_wbdepth=8
7867 gcc_target_cpu="i386"
7868 pci_hidd_target="hidd-pci-linux"
7869 android_tool_dir_prefix="x86"
7870 android_tool_prefix="i686-android-linux"
7871 android_ndk_arch="x86"
7873 *x86_64*)
7874 aros_target_cpu="x86_64"
7875 aros_object_format="elf_x86_64"
7876 aros_flavour="emulation"
7877 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7878 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7879 aros_default_wbdepth=8
7880 pci_hidd_target="hidd-pci-linux"
7882 *powerpc*)
7883 aros_target_cpu="ppc"
7884 aros_object_format="elf32ppc"
7885 aros_flavour="emulation"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7887 aros_default_wbdepth=8
7888 gcc_target_cpu="ppc"
7890 # TODO
7891 # Same as powerpc, but I need this for the nightly build to work again.
7892 # Actually, the nightly should be made working with powerpc target.
7893 # That just was too much work for the moment, another week or two.
7894 *ppc*)
7895 aros_target_cpu="ppc"
7896 aros_object_format="elf32ppc"
7897 aros_flavour="emulation"
7898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7899 aros_default_wbdepth=8
7900 gcc_target_cpu="ppc"
7902 *armhf*)
7903 aros_target_cpu="arm"
7904 target_cpu="arm"
7905 aros_object_format="armelf_aros"
7906 aros_flavour="emulation"
7907 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7908 gcc_target_cpu="arm"
7909 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7910 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7911 aros_arch_libs="-laeabi"
7912 gcc_default_float_abi="hard"
7913 android_tool_dir_prefix="arm-linux-androideabi"
7914 android_tool_prefix="arm-linux-androideabi"
7915 android_ndk_arch="arm"
7916 kernel_tool_prefix="arm-linux-gnueabihf-"
7918 *arm*)
7919 aros_target_cpu="arm"
7920 aros_object_format="armelf_aros"
7921 aros_flavour="emulation"
7922 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7923 gcc_target_cpu="arm"
7924 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7925 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7926 aros_arch_libs="-laeabi"
7927 android_tool_dir_prefix="arm-linux-androideabi"
7928 android_tool_prefix="arm-linux-androideabi"
7929 android_ndk_arch="arm"
7930 kernel_tool_prefix="arm-linux-gnueabi-"
7933 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7935 esac
7936 case "$aros_target_variant" in
7937 android)
7939 if test "$android_ndk_arch" = ""; then
7940 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7943 aros_default_wbwidth=320
7944 aros_default_wbheight=480
7945 if test "$aros_android_ndk" = "none"; then
7946 aros_kernel_cflags="-mandroid"
7947 aros_kernel_ldflags="-mandroid"
7948 CFLAGS="-mandroid"
7949 else
7950 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7951 kernel_tool_version=""
7952 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7953 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7954 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7955 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7956 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7958 need_x11=no
7959 unixgfx_hidd_target=kernel-hidd-androidgfx
7960 # Disable implicit PIC mode
7961 aros_target_cflags="$aros_target_cflags -fno-pic"
7962 kernel_tool_prefix="$android_tool_prefix-"
7964 esac
7968 aros_target_arch="pc"
7969 aros_shared_default="no"
7970 target_bootloader="grub2"
7971 case "$target_cpu" in
7972 *i?86*)
7973 aros_target_cpu="i386"
7976 if test "$aros_object_format" = "" ; then
7977 aros_object_format="elf_i386"
7979 aros_flavour="standalone"
7980 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7981 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7982 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7983 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7984 aros_config_ldflags="-m32 -march=i486"
7985 aros_kernel_ldflags="-Wl,-melf_i386"
7986 aros_default_wbwidth=640
7987 aros_default_wbheight=480
7988 gcc_target_cpu="i386"
7990 *x86_64*)
7991 aros_target_cpu="x86_64"
7992 aros_serial_debug=1
7993 if test "$aros_object_format" = "" ; then
7994 aros_object_format="elf_x86_64"
7996 aros_flavour="standalone"
7997 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7998 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7999 aros_kernel_ldflags=""
8000 aros_default_wbwidth=640
8001 aros_default_wbheight=480
8004 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8006 esac
8009 prep)
8010 aros_target_arch="prep"
8011 aros_shared_default="no"
8012 aros_target_cpu="ppc"
8013 aros_object_format="elf32ppc"
8014 aros_flavour="ppcnative"
8015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8016 aros_kernel_ldflags=""
8017 aros_default_wbwidth=640
8018 aros_default_wbheight=480
8019 gcc_target_cpu="ppc"
8022 freebsd*)
8023 aros_target_arch="freebsd"
8024 aros_target_family="unix"
8025 aros_target_cpu="i386"
8026 aros_flavour="emulation"
8027 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8028 gcc_target_cpu="i386"
8030 aros_target_strip_flags="-x"
8033 darwin*)
8034 aros_target_arch="darwin"
8035 aros_target_family="unix"
8036 aros_flavour="emulation"
8037 case "$target_cpu" in
8038 *i?86*)
8039 aros_ios_platform="iPhoneSimulator"
8040 aros_target_cpu="i386"
8041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8042 aros_kernel_ldflags=""
8043 aros_macosx_version="10.4"
8044 aros_default_wbdepth=8
8045 gcc_target_cpu="i386"
8046 aros_object_format="elf_i386"
8047 aros_kernel_ar_flags="-cr"
8048 aros_target_strip_flags="-x"
8049 kernel_tool_flags="-m32"
8051 *x86_64*)
8052 aros_target_cpu="x86_64"
8053 aros_object_format="elf_x86_64"
8054 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8055 aros_macosx_version="10.6"
8056 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8057 aros_kernel_cflags="-m64"
8058 aros_kernel_ldflags="-m64"
8059 aros_target_cflags="-mcmodel=large"
8060 aros_default_wbdepth=8
8061 aros_kernel_ar="ar"
8062 aros_kernel_ar_flags="-cr"
8063 aros_kernel_ld="ld"
8064 aros_kernel_as="as"
8065 aros_kernel_ranlib="ranlib"
8066 aros_kernel_nm="nm"
8067 aros_kernel_strip="strip"
8068 kernel_tool_prefix="i686-apple-darwin10-"
8070 *ppc*)
8071 aros_target_cpu="ppc"
8072 aros_object_format="elf32ppc"
8073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8074 aros_kernel_ldflags=""
8075 aros_macosx_version="10.0"
8076 aros_default_wbdepth=8
8077 gcc_target_cpu="ppc"
8078 aros_kernel_ar="ar"
8079 aros_kernel_ar_flags="-cr"
8080 aros_kernel_ld="ld -arch ppc"
8081 aros_kernel_as="as -arch ppc"
8082 aros_kernel_ranlib="ranlib -arch ppc"
8083 aros_kernel_nm="nm -arch ppc"
8084 aros_kernel_strip="strip -arch ppc"
8085 kernel_tool_prefix="powerpc-apple-darwin10-"
8087 *arm*)
8088 aros_ios_platform="iPhoneOS"
8089 aros_target_cpu="arm"
8090 aros_object_format="armelf_aros"
8091 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8092 aros_arch_libs="-laeabi"
8093 aros_default_wbdepth=8
8094 gcc_target_cpu="arm"
8095 aros_kernel_ar="ar"
8096 aros_kernel_ar_flags="-cr"
8097 aros_kernel_ld="ld -arch arm"
8098 aros_kernel_ranlib="ranlib -arch arm"
8099 kernel_tool_prefix="arm-apple-darwin10-"
8100 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8103 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8105 esac
8106 case "$aros_target_variant" in
8107 ios)
8108 aros_ios_version="3.0"
8109 aros_default_wbwidth=320
8110 aros_default_wbheight=480
8111 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8112 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8113 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8114 need_x11=no
8115 # This is here because it may depend on iOS or SDK version
8116 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8117 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8118 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8121 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8122 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8124 esac
8127 dragonfly*)
8128 aros_target_arch="dragonfly"
8129 aros_target_family="unix"
8130 aros_flavour="emulation"
8131 case "$target_cpu" in
8132 *i?86*)
8133 aros_target_cpu="i386"
8134 aros_object_format="elf_i386"
8135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8137 *x86_64*)
8138 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8139 aros_target_cpu="x86_64"
8140 aros_object_format="elf_x86_64"
8141 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8144 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8146 esac
8149 netbsd*)
8150 aros_target_arch="netbsd"
8151 aros_target_family="unix"
8152 case "$target_cpu" in
8153 *m68k*)
8154 aros_target_cpu="m68k"
8155 aros_object_format="m68kelf"
8156 aros_flavour="emulcompat"
8157 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8158 gcc_target_cpu="mc68000"
8160 *i?86*)
8161 aros_target_cpu="i386"
8162 aros_object_format="elf_i386"
8163 aros_flavour="emulation"
8164 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8165 aros_default_wbdepth=8
8166 gcc_target_cpu="i386"
8169 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8171 esac
8172 aros_target_genmap="-Wl,-M -Xlinker >"
8173 aros_flavour="emulation"
8174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8177 openbsd*)
8178 aros_target_arch="openbsd"
8179 aros_target_family="unix"
8180 case "$target_cpu" in
8181 *i?86*)
8182 aros_target_cpu="i386"
8183 aros_object_format="elf_i386"
8184 aros_flavour="emulation"
8185 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8186 gcc_target_cpu="i386"
8189 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8191 esac
8192 aros_target_genmap="-Wl,-M -Xlinker >"
8193 aros_target_nm_flags="-u"
8194 aros_flavour="emulation"
8197 solaris*)
8198 aros_target_arch="solaris"
8199 aros_target_family="unix"
8200 case "$target_cpu" in
8201 *i?86*)
8202 aros_target_cpu="i386"
8203 aros_object_format="elf_i386"
8204 aros_flavour="emulation"
8205 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8206 aros_default_wbdepth=8
8207 gcc_target_cpu="i386"
8209 *sparc*)
8210 aros_target_cpu="sparc"
8211 aros_object_format="elf_sparc"
8212 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8213 gcc_target_cpu="sparc"
8216 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8218 esac
8219 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8220 aros_flavour="emulation"
8223 morphos*)
8224 aros_target_arch="morphos"
8225 aros_shared_default="no"
8226 aros_target_cpu="ppc"
8227 aros_object_format="elf_ppc"
8228 aros_flavour="nativecompat"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8230 gcc_target_cpu="ppc"
8233 sam440)
8234 aros_target_arch="sam440"
8235 aros_shared_default="no"
8236 aros_target_cpu="ppc"
8237 aros_object_format="elf32ppc"
8238 aros_flavour="ppcnative"
8239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8240 aros_kernel_ldflags=""
8241 aros_default_wbwidth=1024
8242 aros_default_wbheight=768
8243 aros_default_wbdepth=24
8244 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8245 gcc_target_cpu="powerpc"
8248 efika)
8249 aros_target_arch="efika"
8250 aros_shared_default="no"
8251 aros_target_cpu="arm"
8252 aros_object_format="armelf_aros"
8253 aros_flavour="standalone"
8254 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8255 aros_kernel_ldflags=""
8256 aros_default_wbwidth=1024
8257 aros_default_wbheight=600
8258 aros_arch_libs="-laeabi"
8259 gcc_default_cpu="armv7-a"
8260 gcc_default_fpu="vfpv3"
8261 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8262 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8263 case "$target_cpu" in
8264 *armhf*)
8265 gcc_default_float_abi="hard"
8266 target_cpu=arm
8267 aros_target_cpu=arm
8269 *arm*)
8270 gcc_default_float_abi="softfp"
8273 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8275 esac
8278 chrp)
8279 aros_target_arch="chrp"
8280 aros_shared_default="no"
8281 aros_target_cpu="ppc"
8282 aros_object_format="elf32ppc"
8283 aros_flavour="ppcnative"
8284 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8285 aros_kernel_ldflags=""
8286 aros_default_wbwidth=640
8287 aros_default_wbheight=480
8288 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8289 gcc_target_cpu="powerpc"
8290 case "$aros_target_variant" in
8291 efika)
8292 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8294 esac
8297 r*pi)
8298 aros_flavour="standalone"
8299 aros_target_arch="raspi"
8300 aros_target_cpu="arm"
8301 aros_object_format="armelf_aros"
8302 aros_shared_default="no"
8303 aros_arch_libs="-laeabi"
8305 gcc_default_cpu="armv6"
8306 gcc_default_cpu_tune="arm1176jzf-s"
8307 case "$target_cpu" in
8308 *armhf*)
8309 gcc_default_float_abi="hard"
8311 *arm*)
8312 gcc_default_float_abi="softfp"
8315 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8317 esac
8319 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8320 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8321 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8322 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8323 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8326 amiga*)
8327 aros_target_arch="amiga"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8329 aros_shared_default="no"
8331 case "$target_cpu" in
8332 *m68k*)
8333 # Check whether --enable-amigaos_compliance was given.
8334 if test "${enable_amigaos_compliance+set}" = set; then :
8335 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8338 aros_enable_mmu=no
8339 aros_target_cpu="m68k"
8340 aros_object_format="m68kelf"
8341 aros_flavour="standcompat"
8342 gcc_target_cpu="m68000"
8343 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8344 aros_config_aflags="$aros_config_aflags"
8345 aros_target_strip_flags="-R.comment --strip-debug"
8346 aros_default_wbwidth=640
8347 aros_default_wbheight=256
8348 aros_default_wbdepth=2
8350 *ppc*)
8351 aros_cpu="ppc"
8352 aros_flavour="native"
8353 gcc_target_cpu="ppc"
8356 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8358 esac
8361 mingw*)
8362 aros_target_arch="mingw32"
8363 aros_shared_default="no"
8364 aros_flavour="emulation"
8365 aros_shared_cflags=""
8366 need_crosstools="yes"
8367 need_dlopen="no"
8368 rescomp="windres"
8369 case "$target_cpu" in
8370 *i?86*)
8371 aros_target_cpu="i386"
8372 aros_object_format="elf_i386"
8373 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8374 aros_default_wbdepth=8
8375 gcc_target_cpu="i386"
8377 kernel_tool_prefix="i386-mingw32-"
8379 *x86_64*)
8380 aros_target_cpu="x86_64"
8381 aros_object_format="elf_x86_64"
8382 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8383 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8384 aros_default_wbdepth=8
8385 kernel_tool_prefix="x86_64-w64-mingw32-"
8387 *arm*)
8388 aros_target_cpu="arm"
8389 aros_object_format="armelf_aros"
8390 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8391 aros_arch_libs="-laeabi"
8392 aros_default_wbdepth=8
8393 gcc_target_cpu="arm"
8394 gcc_default_float_abi="soft"
8395 kernel_tool_prefix="arm-mingw32ce-"
8396 aros_default_wbwidth=160
8397 aros_default_wbheight=160
8400 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8402 esac
8403 if test $host_os = "cygwin"; then
8404 aros_kernel_cflags="-mno-cygwin"
8407 pp*)
8408 aros_target_arch="pp"
8409 aros_shared_default="no"
8410 case "$target_cpu" in
8411 *m68k*)
8412 aros_target_cpu="m68k"
8413 aros_object_format="m68kelf"
8414 aros_flavour="palmnative"
8415 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8416 aros_default_wbwidth=160
8417 aros_default_wbheight=160
8418 aros_default_wbdepth=1
8419 aros_target_ar_flags="cru"
8420 aros_compiler_libs="-lgcc1"
8421 aros_shared_default=no
8422 aros_shared_cflags="-fpic"
8423 aros_shared_aflags=""
8424 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8425 aros_kernel_ldflags="-Wl,-rpath,./lib"
8426 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8427 aros_debug_aflags=""
8428 aros_debug_ldflags="$aros_symbols_debug"
8429 aros_mungwall_debug="0"
8430 aros_modules_debug="0"
8431 gcc_target_cpu="mc68000"
8432 ignore_undefined_symbols="-ius"
8435 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8437 esac
8440 mac*)
8441 aros_target_arch="mac"
8442 aros_shared_default="no"
8443 case "$target_cpu" in
8444 *m68k*)
8445 aros_target_cpu="m68k"
8446 aros_object_format="m68kelf"
8447 aros_flavour="mac68knative"
8448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8449 aros_default_wbwidth=512
8450 aros_default_wbheight=384
8451 aros_default_wbdepth=8
8452 aros_target_ar_flags="cru"
8453 aros_compiler_libs="-lgcc1"
8454 aros_shared_default=no
8455 aros_shared_cflags="-fpic"
8456 aros_shared_aflags=""
8457 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8458 aros_kernel_ldflags="-Wl,-rpath,./lib"
8459 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8460 aros_debug_aflags=""
8461 aros_debug_ldflags="$aros_symbols_debug"
8462 aros_mungwall_debug="0"
8463 aros_modules_debug="0"
8464 gcc_target_cpu="mc68000"
8465 ignore_undefined_symbols="-ius"
8468 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8470 esac
8474 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8476 esac
8478 #-----------------------------------------------------------------------------
8479 crosstools_guess=yes
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8482 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8484 # Check whether --with-kernel-toolchain-prefix was given.
8485 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8486 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8490 $as_echo "$kernel_tool_prefix" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8493 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8495 # Check whether --with-elf-toolchain-prefix was given.
8496 if test "${with_elf_toolchain_prefix+set}" = set; then :
8497 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8498 crosstools_guess=no
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8502 $as_echo "$elf_tool_prefix" >&6; }
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8505 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8507 # Check whether --with-aros-toolchain was given.
8508 if test "${with_aros_toolchain+set}" = set; then :
8509 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8510 crosstools_guess=no
8513 if test "$aros_tool_prefix" = "yes" ; then
8514 aros_tool_prefix=$aros_target_cpu-aros-
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8517 $as_echo "$aros_tool_prefix" >&6; }
8519 #-----------------------------------------------------------------------------
8520 # Checking if we should build crosstools..
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8522 $as_echo_n "checking whether to build crosstools... " >&6; }
8523 # Check whether --enable-crosstools was given.
8524 if test "${enable_crosstools+set}" = set; then :
8525 enableval=$enable_crosstools; crosstools="$enableval"
8526 else
8527 crosstools="$crosstools_guess"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8531 $as_echo "$crosstools" >&6; }
8533 if test "${crosstools}" = "yes"; then
8534 if test "${crosstools_guess}" = "no"; then
8535 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8540 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8542 # Check whether --with-aros-toolchain-install was given.
8543 if test "${with_aros_toolchain_install+set}" = set; then :
8544 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8547 if test "x$aros_toolchain_install" = "x"; then
8548 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8549 else
8550 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8551 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8554 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8557 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8558 # Check whether --enable-objc was given.
8559 if test "${enable_objc+set}" = set; then :
8560 enableval=$enable_objc; objc="$enableval"
8561 else
8562 objc="yes"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8566 $as_echo "$objc" >&6; }
8567 if test "x$objc" = "xyes"; then
8568 objc_target="objc"
8569 else
8570 objc_target="no-objc"
8573 # Now process extra architecture-specific options.
8574 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8575 # as well as floating-point ABI.
8576 case "$aros_target_cpu" in
8577 arm)
8578 if test "$gcc_default_cpu" = ""; then
8579 gcc_default_cpu="armv6"
8581 if test "$gcc_default_fpu" = ""; then
8582 gcc_default_fpu="vfp"
8584 if test "$gcc_default_float_abi" = ""; then
8585 gcc_default_float_abi="softfp"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8589 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8591 # Check whether --with-cpu was given.
8592 if test "${with_cpu+set}" = set; then :
8593 withval=$with_cpu; aros_gcc_cpu="$withval"
8594 else
8595 aros_gcc_cpu=$gcc_default_cpu
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8599 $as_echo "$aros_gcc_cpu" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8602 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8604 # Check whether --with-fpu was given.
8605 if test "${with_fpu+set}" = set; then :
8606 withval=$with_fpu; aros_gcc_fpu="$withval"
8607 else
8608 aros_gcc_fpu=$gcc_default_fpu
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8612 $as_echo "$aros_gcc_fpu" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8615 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8617 # Check whether --with-float was given.
8618 if test "${with_float+set}" = set; then :
8619 withval=$with_float; aros_gcc_float_abi="$withval"
8620 else
8621 aros_gcc_float_abi=$gcc_default_float_abi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8625 $as_echo "$aros_gcc_float_abi" >&6; }
8627 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"
8628 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"
8630 esac
8632 # Some formats need custom ELF specs.
8633 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8634 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8635 elf_specs_in=config/${aros_object_format}-specs.in
8636 else
8637 elf_specs_in=config/elf-specs.in
8640 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8641 # Since we override specs, we may need to put these defines there
8642 if test "$gcc_target_cpu" != ""; then
8643 gcc_target_cpu="-D__${gcc_target_cpu}__"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8647 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8649 # Check whether --with-portssources was given.
8650 if test "${with_portssources+set}" = set; then :
8651 withval=$with_portssources; with_portssrcdir=$withval
8652 else
8653 with_portssrcdir="default"
8656 if test "$with_portssrcdir" = "default"; then
8657 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8658 else
8659 AROS_PORTSSRCDIR="$with_portssrcdir"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8662 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8665 $as_echo_n "checking which bootloader to use... " >&6; }
8667 # Check whether --with-bootloader was given.
8668 if test "${with_bootloader+set}" = set; then :
8669 withval=$with_bootloader; target_bootloader=$withval
8670 else
8671 target_bootloader=$target_bootloader
8674 if test "$target_bootloader" = "none"; then
8675 aros_target_bootloader=""
8676 else
8677 aros_target_bootloader="$target_bootloader"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8680 $as_echo "$target_bootloader" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8683 $as_echo_n "checking which icon-set to use... " >&6; }
8685 # Check whether --with-iconset was given.
8686 if test "${with_iconset+set}" = set; then :
8687 withval=$with_iconset; target_iconset=$withval
8688 else
8689 target_iconset="default"
8692 if test "$target_iconset" = "default"; then
8693 aros_target_iconset="Gorilla"
8694 target_iconset="default (Gorilla)"
8695 else
8696 aros_target_iconset="$target_iconset"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8699 $as_echo "$target_iconset" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8702 $as_echo_n "checking which GUI Theme to use... " >&6; }
8704 # Check whether --with-theme was given.
8705 if test "${with_theme+set}" = set; then :
8706 withval=$with_theme; target_guitheme=$withval
8707 else
8708 target_guitheme="default"
8711 if test "$target_guitheme" = "default"; then
8712 aros_target_guitheme="Ice"
8713 else
8714 aros_target_guitheme="$target_guitheme"
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8717 $as_echo "$aros_target_guitheme" >&6; }
8719 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8720 # for target code)
8721 cross_compiling=no
8723 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8724 cross_compiling=yes
8727 if test "$aros_host_cpu" == "x86_64" ; then
8728 if test "$aros_target_cpu" == "i386" ; then
8729 cross_compiling=no
8733 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8734 if test "$aros_host_arch" != "$aros_target_arch" ; then
8735 cross_compiling=yes
8737 else
8738 if test "$host_cc_elf" = "no" ; then
8739 cross_compiling=yes
8743 if test "$cross_compiling" = "no" ; then
8744 kernel_tool_prefix=""
8745 if test "$host_cc_elf" = "yes" ; then
8746 elf_tool_prefix=""
8750 if test "$kernel_tool_version" != ""; then
8751 kernel_tool_version="-$kernel_tool_version"
8753 if test "$target_tool_version" != ""; then
8754 target_tool_version="-$target_tool_version"
8757 #######################################################################
8758 ## Compute what toolchains to use, and their paths ##
8759 #######################################################################
8761 # This takes, as input:
8762 # crosstools {yes,no}
8763 # kernel_tool_version {"",[version]}
8764 # target_tool_version {"",[version]}
8765 # kernel_tool_prefix {none,[some-arch-os-]}
8766 # target_tool_prefix ${aros_target_cpu}-aros-
8767 # aros_tool_prefix ${aros_target_cpu}-aros-
8769 # The output is
8770 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8771 # Where the 'kernel' binaries are located
8772 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8773 # Where the 'target' binaries are located
8774 # (not the symlink farm - that is aros_target_*!)
8776 # The rules are:
8777 # if crosstools then
8778 # if kernel_tools_prefix = "no-kernel-prefix-"
8779 # aros_kernel_* = crosstools cc paths
8780 # aros_kernel_cc = elf cc wrapper around crosstools cc
8781 # else
8782 # VALIDATE(${kernel_tools_prefix}*)
8783 # aros_kernel_* = ${kernel_tools_prefix}*
8784 # if ${kernel_tools_prefix}cc is an AROS gcc
8785 # aros_kernel_cc = ${kernel_tools_prefix}cc
8786 # else
8787 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8788 # fi
8789 # fi
8791 # orig_target_* = aros built crosstools
8792 # orig_target_cc = elf cc wrapper around crosstools cc
8793 # else
8794 # VALIDATE(${kernel_tools_prefix}*)
8796 # orig_target_* = aros_kernel_*
8797 # if aros_kernel_cc is an AROS gcc
8798 # orig_target_cc = aros_kernel_cc
8799 # else
8800 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8801 # fi
8802 # fi
8804 target_tool_prefix="${aros_target_cpu}-aros-"
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8807 $as_echo_n "checking which kernel tools... " >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8809 $as_echo "$kernel_tool_prefix" >&6; };
8811 if test "$kernel_tool_prefix" = "none" ; then
8812 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8813 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8815 else
8816 # Kernel tools required - find them
8817 # Note that 'normally', aros_kernel_* overrides will be
8818 # empty, unless specified in the per-arch sections above.
8819 if test "x$aros_kernel_cpp" = "x"; then
8820 aros_kernel_cpp=${kernel_tool_prefix}cpp
8823 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8824 if test "$cross_compiling" = "yes" ; then
8825 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8826 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 case $aros_kernel_cpp in
8833 [\\/]* | ?:[\\/]*)
8834 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8848 done
8849 done
8850 IFS=$as_save_IFS
8853 esac
8855 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8856 if test -n "$aros_kernel_cpp"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8858 $as_echo "$aros_kernel_cpp" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8865 else
8866 if test "$GCC" = "yes"; then
8867 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8868 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8869 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 case $aros_kernel_cpp in
8876 [\\/]* | ?:[\\/]*)
8877 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in `dirname $aros_gcc_cpp`
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8896 esac
8898 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8899 if test -n "$aros_kernel_cpp"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8901 $as_echo "$aros_kernel_cpp" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test "$aros_kernel_cpp" = ""; then
8910 # Extract the first word of "cpp", so it can be a program name with args.
8911 set dummy cpp; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 case $aros_kernel_cpp in
8918 [\\/]* | ?:[\\/]*)
8919 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8929 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8933 done
8934 done
8935 IFS=$as_save_IFS
8938 esac
8940 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8941 if test -n "$aros_kernel_cpp"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8943 $as_echo "$aros_kernel_cpp" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8952 else
8953 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
8954 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 case $aros_kernel_cpp in
8961 [\\/]* | ?:[\\/]*)
8962 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8981 esac
8983 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8984 if test -n "$aros_kernel_cpp"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8986 $as_echo "$aros_kernel_cpp" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8995 if test "$aros_kernel_cpp" = ""; then
8996 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8998 if test "x$aros_kernel_cc" = "x"; then
8999 aros_kernel_cc=${kernel_tool_prefix}gcc
9002 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9003 if test "$cross_compiling" = "yes" ; then
9004 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9005 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 case $aros_kernel_cc in
9012 [\\/]* | ?:[\\/]*)
9013 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9027 done
9028 done
9029 IFS=$as_save_IFS
9032 esac
9034 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9035 if test -n "$aros_kernel_cc"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9037 $as_echo "$aros_kernel_cc" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9044 else
9045 if test "$GCC" = "yes"; then
9046 aros_gcc_cc=`$CC -print-prog-name=cc`
9047 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9048 set dummy `basename $aros_gcc_cc`; ac_word=$2
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050 $as_echo_n "checking for $ac_word... " >&6; }
9051 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 case $aros_kernel_cc in
9055 [\\/]* | ?:[\\/]*)
9056 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in `dirname $aros_gcc_cc`
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9066 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 break 2
9070 done
9071 done
9072 IFS=$as_save_IFS
9075 esac
9077 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9078 if test -n "$aros_kernel_cc"; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9080 $as_echo "$aros_kernel_cc" >&6; }
9081 else
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 $as_echo "no" >&6; }
9088 if test "$aros_kernel_cc" = ""; then
9089 # Extract the first word of "cc", so it can be a program name with args.
9090 set dummy cc; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 case $aros_kernel_cc in
9097 [\\/]* | ?:[\\/]*)
9098 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9112 done
9113 done
9114 IFS=$as_save_IFS
9117 esac
9119 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9120 if test -n "$aros_kernel_cc"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9122 $as_echo "$aros_kernel_cc" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9131 else
9132 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9133 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 case $aros_kernel_cc in
9140 [\\/]* | ?:[\\/]*)
9141 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9155 done
9156 done
9157 IFS=$as_save_IFS
9160 esac
9162 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9163 if test -n "$aros_kernel_cc"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9165 $as_echo "$aros_kernel_cc" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9174 if test "$aros_kernel_cc" = ""; then
9175 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9177 if test "x$aros_kernel_cxx" = "x"; then
9178 aros_kernel_cxx=${kernel_tool_prefix}g++
9181 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9182 if test "$cross_compiling" = "yes" ; then
9183 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9184 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 case $aros_kernel_cxx in
9191 [\\/]* | ?:[\\/]*)
9192 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9202 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9206 done
9207 done
9208 IFS=$as_save_IFS
9211 esac
9213 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9214 if test -n "$aros_kernel_cxx"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9216 $as_echo "$aros_kernel_cxx" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9223 else
9224 if test "$GCC" = "yes"; then
9225 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9226 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9227 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 case $aros_kernel_cxx in
9234 [\\/]* | ?:[\\/]*)
9235 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in `dirname $aros_gcc_cxx`
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9245 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 break 2
9249 done
9250 done
9251 IFS=$as_save_IFS
9254 esac
9256 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9257 if test -n "$aros_kernel_cxx"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9259 $as_echo "$aros_kernel_cxx" >&6; }
9260 else
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9267 if test "$aros_kernel_cxx" = ""; then
9268 # Extract the first word of "cxx", so it can be a program name with args.
9269 set dummy cxx; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 case $aros_kernel_cxx in
9276 [\\/]* | ?:[\\/]*)
9277 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9291 done
9292 done
9293 IFS=$as_save_IFS
9296 esac
9298 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9299 if test -n "$aros_kernel_cxx"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9301 $as_echo "$aros_kernel_cxx" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9310 else
9311 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9312 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 case $aros_kernel_cxx in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9339 esac
9341 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9342 if test -n "$aros_kernel_cxx"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9344 $as_echo "$aros_kernel_cxx" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9353 # If it's set, make sure it's really there
9354 if test "x$aros_kernel_cxx" != "x" ; then
9355 if test "$aros_kernel_cxx" = ""; then
9356 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9360 if test "$aros_kernel_ld" = ""; then
9361 if test "$cross_compiling" = "yes" ; then
9362 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9363 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 case $aros_kernel_ld in
9370 [\\/]* | ?:[\\/]*)
9371 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9381 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9385 done
9386 done
9387 IFS=$as_save_IFS
9390 esac
9392 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9393 if test -n "$aros_kernel_ld"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9395 $as_echo "$aros_kernel_ld" >&6; }
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9402 else
9403 if test "$GCC" = "yes"; then
9404 aros_gcc_ld=`$CC -print-prog-name=ld`
9405 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9406 set dummy `basename $aros_gcc_ld`; ac_word=$2
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9408 $as_echo_n "checking for $ac_word... " >&6; }
9409 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 case $aros_kernel_ld in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in `dirname $aros_gcc_ld`
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9428 done
9429 done
9430 IFS=$as_save_IFS
9433 esac
9435 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9436 if test -n "$aros_kernel_ld"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9438 $as_echo "$aros_kernel_ld" >&6; }
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9446 if test "$aros_kernel_ld" = ""; then
9447 # Extract the first word of "ld", so it can be a program name with args.
9448 set dummy ld; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 case $aros_kernel_ld in
9455 [\\/]* | ?:[\\/]*)
9456 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9470 done
9471 done
9472 IFS=$as_save_IFS
9475 esac
9477 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9478 if test -n "$aros_kernel_ld"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9480 $as_echo "$aros_kernel_ld" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9489 else
9490 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9491 set dummy $aros_kernel_ld; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 case $aros_kernel_ld in
9498 [\\/]* | ?:[\\/]*)
9499 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9509 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9513 done
9514 done
9515 IFS=$as_save_IFS
9518 esac
9520 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9521 if test -n "$aros_kernel_ld"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9523 $as_echo "$aros_kernel_ld" >&6; }
9524 else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9532 if test "$aros_kernel_ld" = ""; then
9533 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9536 if test "$aros_kernel_as" = ""; then
9537 if test "$cross_compiling" = "yes" ; then
9538 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9539 set dummy ${kernel_tool_prefix}as; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if ${ac_cv_path_aros_kernel_as+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 case $aros_kernel_as in
9546 [\\/]* | ?:[\\/]*)
9547 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9557 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9561 done
9562 done
9563 IFS=$as_save_IFS
9566 esac
9568 aros_kernel_as=$ac_cv_path_aros_kernel_as
9569 if test -n "$aros_kernel_as"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9571 $as_echo "$aros_kernel_as" >&6; }
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9578 else
9579 if test "$GCC" = "yes"; then
9580 aros_gcc_as=`$CC -print-prog-name=as`
9581 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9582 set dummy `basename $aros_gcc_as`; ac_word=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if ${ac_cv_path_aros_kernel_as+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 case $aros_kernel_as in
9589 [\\/]* | ?:[\\/]*)
9590 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in `dirname $aros_gcc_as`
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9604 done
9605 done
9606 IFS=$as_save_IFS
9609 esac
9611 aros_kernel_as=$ac_cv_path_aros_kernel_as
9612 if test -n "$aros_kernel_as"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9614 $as_echo "$aros_kernel_as" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9622 if test "$aros_kernel_as" = ""; then
9623 # Extract the first word of "as", so it can be a program name with args.
9624 set dummy as; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_path_aros_kernel_as+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 case $aros_kernel_as in
9631 [\\/]* | ?:[\\/]*)
9632 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9646 done
9647 done
9648 IFS=$as_save_IFS
9651 esac
9653 aros_kernel_as=$ac_cv_path_aros_kernel_as
9654 if test -n "$aros_kernel_as"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9656 $as_echo "$aros_kernel_as" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9665 else
9666 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9667 set dummy $aros_kernel_as; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_path_aros_kernel_as+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 case $aros_kernel_as in
9674 [\\/]* | ?:[\\/]*)
9675 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9694 esac
9696 aros_kernel_as=$ac_cv_path_aros_kernel_as
9697 if test -n "$aros_kernel_as"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9699 $as_echo "$aros_kernel_as" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9708 if test "$aros_kernel_as" = ""; then
9709 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9712 if test "$aros_kernel_ar" = ""; then
9713 if test "$cross_compiling" = "yes" ; then
9714 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9715 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 case $aros_kernel_ar in
9722 [\\/]* | ?:[\\/]*)
9723 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9739 IFS=$as_save_IFS
9742 esac
9744 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9745 if test -n "$aros_kernel_ar"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9747 $as_echo "$aros_kernel_ar" >&6; }
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9754 else
9755 if test "$GCC" = "yes"; then
9756 aros_gcc_ar=`$CC -print-prog-name=ar`
9757 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9758 set dummy `basename $aros_gcc_ar`; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 case $aros_kernel_ar in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in `dirname $aros_gcc_ar`
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9780 done
9781 done
9782 IFS=$as_save_IFS
9785 esac
9787 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9788 if test -n "$aros_kernel_ar"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9790 $as_echo "$aros_kernel_ar" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9798 if test "$aros_kernel_ar" = ""; then
9799 # Extract the first word of "ar", so it can be a program name with args.
9800 set dummy ar; ac_word=$2
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9802 $as_echo_n "checking for $ac_word... " >&6; }
9803 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 case $aros_kernel_ar in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9824 IFS=$as_save_IFS
9827 esac
9829 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9830 if test -n "$aros_kernel_ar"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9832 $as_echo "$aros_kernel_ar" >&6; }
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9841 else
9842 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9843 set dummy $aros_kernel_ar; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 case $aros_kernel_ar in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9870 esac
9872 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9873 if test -n "$aros_kernel_ar"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9875 $as_echo "$aros_kernel_ar" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9884 if test "$aros_kernel_ar" = ""; then
9885 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9888 if test "$aros_kernel_ranlib" = ""; then
9889 if test "$cross_compiling" = "yes" ; then
9890 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9891 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 case $aros_kernel_ranlib in
9898 [\\/]* | ?:[\\/]*)
9899 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9913 done
9914 done
9915 IFS=$as_save_IFS
9918 esac
9920 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9921 if test -n "$aros_kernel_ranlib"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9923 $as_echo "$aros_kernel_ranlib" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9930 else
9931 if test "$GCC" = "yes"; then
9932 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9933 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9934 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 case $aros_kernel_ranlib in
9941 [\\/]* | ?:[\\/]*)
9942 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in `dirname $aros_gcc_ranlib`
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9961 esac
9963 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9964 if test -n "$aros_kernel_ranlib"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9966 $as_echo "$aros_kernel_ranlib" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 if test "$aros_kernel_ranlib" = ""; then
9975 # Extract the first word of "ranlib", so it can be a program name with args.
9976 set dummy ranlib; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 case $aros_kernel_ranlib in
9983 [\\/]* | ?:[\\/]*)
9984 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10003 esac
10005 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10006 if test -n "$aros_kernel_ranlib"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10008 $as_echo "$aros_kernel_ranlib" >&6; }
10009 else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10017 else
10018 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10019 set dummy $aros_kernel_ranlib; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 case $aros_kernel_ranlib in
10026 [\\/]* | ?:[\\/]*)
10027 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10041 done
10042 done
10043 IFS=$as_save_IFS
10046 esac
10048 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10049 if test -n "$aros_kernel_ranlib"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10051 $as_echo "$aros_kernel_ranlib" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10060 if test "$aros_kernel_ranlib" = ""; then
10061 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10064 if test "$aros_kernel_nm" = ""; then
10065 if test "$cross_compiling" = "yes" ; then
10066 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10067 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069 $as_echo_n "checking for $ac_word... " >&6; }
10070 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10071 $as_echo_n "(cached) " >&6
10072 else
10073 case $aros_kernel_nm in
10074 [\\/]* | ?:[\\/]*)
10075 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10089 done
10090 done
10091 IFS=$as_save_IFS
10094 esac
10096 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10097 if test -n "$aros_kernel_nm"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10099 $as_echo "$aros_kernel_nm" >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10106 else
10107 if test "$GCC" = "yes"; then
10108 aros_gcc_nm=`$CC -print-prog-name=nm`
10109 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10110 set dummy `basename $aros_gcc_nm`; ac_word=$2
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112 $as_echo_n "checking for $ac_word... " >&6; }
10113 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 case $aros_kernel_nm in
10117 [\\/]* | ?:[\\/]*)
10118 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in `dirname $aros_gcc_nm`
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130 break 2
10132 done
10133 done
10134 IFS=$as_save_IFS
10137 esac
10139 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10140 if test -n "$aros_kernel_nm"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10142 $as_echo "$aros_kernel_nm" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10150 if test "$aros_kernel_nm" = ""; then
10151 # Extract the first word of "nm", so it can be a program name with args.
10152 set dummy nm; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 case $aros_kernel_nm in
10159 [\\/]* | ?:[\\/]*)
10160 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10174 done
10175 done
10176 IFS=$as_save_IFS
10179 esac
10181 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10182 if test -n "$aros_kernel_nm"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10184 $as_echo "$aros_kernel_nm" >&6; }
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10193 else
10194 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10195 set dummy $aros_kernel_nm; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 case $aros_kernel_nm in
10202 [\\/]* | ?:[\\/]*)
10203 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10213 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10217 done
10218 done
10219 IFS=$as_save_IFS
10222 esac
10224 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10225 if test -n "$aros_kernel_nm"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10227 $as_echo "$aros_kernel_nm" >&6; }
10228 else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10236 if test "$aros_kernel_nm" = ""; then
10237 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10240 if test "$aros_kernel_strip" = ""; then
10241 if test "$cross_compiling" = "yes" ; then
10242 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10243 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 case $aros_kernel_strip in
10250 [\\/]* | ?:[\\/]*)
10251 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10265 done
10266 done
10267 IFS=$as_save_IFS
10270 esac
10272 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10273 if test -n "$aros_kernel_strip"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10275 $as_echo "$aros_kernel_strip" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10282 else
10283 if test "$GCC" = "yes"; then
10284 aros_gcc_strip=`$CC -print-prog-name=strip`
10285 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10286 set dummy `basename $aros_gcc_strip`; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 case $aros_kernel_strip in
10293 [\\/]* | ?:[\\/]*)
10294 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in `dirname $aros_gcc_strip`
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10308 done
10309 done
10310 IFS=$as_save_IFS
10313 esac
10315 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10316 if test -n "$aros_kernel_strip"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10318 $as_echo "$aros_kernel_strip" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10326 if test "$aros_kernel_strip" = ""; then
10327 # Extract the first word of "strip", so it can be a program name with args.
10328 set dummy strip; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 case $aros_kernel_strip in
10335 [\\/]* | ?:[\\/]*)
10336 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10352 IFS=$as_save_IFS
10355 esac
10357 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10358 if test -n "$aros_kernel_strip"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10360 $as_echo "$aros_kernel_strip" >&6; }
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10369 else
10370 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10371 set dummy $aros_kernel_strip; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 case $aros_kernel_strip in
10378 [\\/]* | ?:[\\/]*)
10379 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10389 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10393 done
10394 done
10395 IFS=$as_save_IFS
10398 esac
10400 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10401 if test -n "$aros_kernel_strip"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10403 $as_echo "$aros_kernel_strip" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10412 if test "$aros_kernel_strip" = ""; then
10413 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10416 # Objcopy and objdump are not required for the kernel
10417 # toolchain on many architectures.
10418 # So we'll look for them, but not make them strictly required.
10420 if test "$aros_kernel_objcopy" = ""; then
10421 if test "$cross_compiling" = "yes" ; then
10422 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10423 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 case $aros_kernel_objcopy in
10430 [\\/]* | ?:[\\/]*)
10431 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10445 done
10446 done
10447 IFS=$as_save_IFS
10450 esac
10452 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10453 if test -n "$aros_kernel_objcopy"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10455 $as_echo "$aros_kernel_objcopy" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10462 else
10463 if test "$GCC" = "yes"; then
10464 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10465 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10466 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 case $aros_kernel_objcopy in
10473 [\\/]* | ?:[\\/]*)
10474 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in `dirname $aros_gcc_objcopy`
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10488 done
10489 done
10490 IFS=$as_save_IFS
10493 esac
10495 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10496 if test -n "$aros_kernel_objcopy"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10498 $as_echo "$aros_kernel_objcopy" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test "$aros_kernel_objcopy" = ""; then
10507 # Extract the first word of "objcopy", so it can be a program name with args.
10508 set dummy objcopy; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 case $aros_kernel_objcopy in
10515 [\\/]* | ?:[\\/]*)
10516 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10535 esac
10537 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10538 if test -n "$aros_kernel_objcopy"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10540 $as_echo "$aros_kernel_objcopy" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10549 else
10550 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10551 set dummy $aros_kernel_objcopy; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 case $aros_kernel_objcopy in
10558 [\\/]* | ?:[\\/]*)
10559 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10573 done
10574 done
10575 IFS=$as_save_IFS
10578 esac
10580 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10581 if test -n "$aros_kernel_objcopy"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10583 $as_echo "$aros_kernel_objcopy" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10593 if test "$aros_kernel_objdump" = ""; then
10594 if test "$cross_compiling" = "yes" ; then
10595 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10596 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 case $aros_kernel_objdump in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10618 done
10619 done
10620 IFS=$as_save_IFS
10623 esac
10625 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10626 if test -n "$aros_kernel_objdump"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10628 $as_echo "$aros_kernel_objdump" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10635 else
10636 if test "$GCC" = "yes"; then
10637 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10638 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10639 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 case $aros_kernel_objdump in
10646 [\\/]* | ?:[\\/]*)
10647 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in `dirname $aros_gcc_objdump`
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10661 done
10662 done
10663 IFS=$as_save_IFS
10666 esac
10668 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10669 if test -n "$aros_kernel_objdump"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10671 $as_echo "$aros_kernel_objdump" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10679 if test "$aros_kernel_objdump" = ""; then
10680 # Extract the first word of "objdump", so it can be a program name with args.
10681 set dummy objdump; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 case $aros_kernel_objdump in
10688 [\\/]* | ?:[\\/]*)
10689 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10703 done
10704 done
10705 IFS=$as_save_IFS
10708 esac
10710 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10711 if test -n "$aros_kernel_objdump"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10713 $as_echo "$aros_kernel_objdump" >&6; }
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10722 else
10723 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10724 set dummy $aros_kernel_objdump; ac_word=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 case $aros_kernel_objdump in
10731 [\\/]* | ?:[\\/]*)
10732 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10742 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10746 done
10747 done
10748 IFS=$as_save_IFS
10751 esac
10753 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10754 if test -n "$aros_kernel_objdump"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10756 $as_echo "$aros_kernel_objdump" >&6; }
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10765 if test "x${crosstools}" != "xyes" ; then
10766 if test "$aros_kernel_objcopy" = ""; then
10767 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10769 if test "$aros_kernel_objdump" = ""; then
10770 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10776 $as_echo_n "checking which target tools to use... " >&6; }
10777 if test "$crosstools" = "yes"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10779 $as_echo "$target_tool_prefix" >&6; }
10780 # We are are building AROS crosstools
10781 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10782 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10783 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10784 orig_target_cpp="${tmp_tool_prefix}cpp"
10785 orig_target_ld="${tmp_tool_prefix}ld"
10786 orig_target_as="${tmp_tool_prefix}as"
10787 orig_target_ar="${tmp_tool_prefix}ar"
10788 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10789 orig_target_nm="${tmp_tool_prefix}nm"
10790 orig_target_strip="${tmp_tool_prefix}strip"
10791 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10792 orig_target_objdump="${tmp_tool_prefix}objdump"
10793 else
10794 # Determine whether AROS or ELF tools should be used
10795 if test "$aros_tool_prefix" = "none"; then
10796 aros_tool_prefix="${elf_tool_prefix}"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10800 $as_echo "$aros_tool_prefix" >&6; }
10801 # We are *not* building AROS crosstools - use the AROS or ELF tools
10803 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10804 if test "$cross_compiling" = "yes" ; then
10805 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10806 set dummy ${target_tool_prefix}cpp; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if ${ac_cv_path_orig_target_cpp+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 case $orig_target_cpp in
10813 [\\/]* | ?:[\\/]*)
10814 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10833 esac
10835 orig_target_cpp=$ac_cv_path_orig_target_cpp
10836 if test -n "$orig_target_cpp"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10838 $as_echo "$orig_target_cpp" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10845 else
10846 if test "$GCC" = "yes"; then
10847 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10848 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10849 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 $as_echo_n "checking for $ac_word... " >&6; }
10852 if ${ac_cv_path_orig_target_cpp+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 case $orig_target_cpp in
10856 [\\/]* | ?:[\\/]*)
10857 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in `dirname $aros_gcc_cpp`
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10867 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10871 done
10872 done
10873 IFS=$as_save_IFS
10876 esac
10878 orig_target_cpp=$ac_cv_path_orig_target_cpp
10879 if test -n "$orig_target_cpp"; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10881 $as_echo "$orig_target_cpp" >&6; }
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10889 if test "$orig_target_cpp" = ""; then
10890 # Extract the first word of "cpp", so it can be a program name with args.
10891 set dummy cpp; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_path_orig_target_cpp+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 case $orig_target_cpp in
10898 [\\/]* | ?:[\\/]*)
10899 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10913 done
10914 done
10915 IFS=$as_save_IFS
10918 esac
10920 orig_target_cpp=$ac_cv_path_orig_target_cpp
10921 if test -n "$orig_target_cpp"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10923 $as_echo "$orig_target_cpp" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10932 else
10933 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
10934 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_path_orig_target_cpp+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 case $orig_target_cpp in
10941 [\\/]* | ?:[\\/]*)
10942 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10952 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10956 done
10957 done
10958 IFS=$as_save_IFS
10961 esac
10963 orig_target_cpp=$ac_cv_path_orig_target_cpp
10964 if test -n "$orig_target_cpp"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10966 $as_echo "$orig_target_cpp" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10975 if test "$orig_target_cpp" = ""; then
10976 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10979 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
10980 if test "$cross_compiling" = "yes" ; then
10981 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10982 set dummy ${target_tool_prefix}gcc; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if ${ac_cv_path_orig_target_cc+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 case $orig_target_cc in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11004 done
11005 done
11006 IFS=$as_save_IFS
11009 esac
11011 orig_target_cc=$ac_cv_path_orig_target_cc
11012 if test -n "$orig_target_cc"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11014 $as_echo "$orig_target_cc" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11021 else
11022 if test "$GCC" = "yes"; then
11023 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11024 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11025 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_path_orig_target_cc+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 case $orig_target_cc in
11032 [\\/]* | ?:[\\/]*)
11033 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in `dirname $aros_gcc_gcc`
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11047 done
11048 done
11049 IFS=$as_save_IFS
11052 esac
11054 orig_target_cc=$ac_cv_path_orig_target_cc
11055 if test -n "$orig_target_cc"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11057 $as_echo "$orig_target_cc" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11065 if test "$orig_target_cc" = ""; then
11066 # Extract the first word of "gcc", so it can be a program name with args.
11067 set dummy gcc; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_path_orig_target_cc+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 case $orig_target_cc in
11074 [\\/]* | ?:[\\/]*)
11075 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11089 done
11090 done
11091 IFS=$as_save_IFS
11094 esac
11096 orig_target_cc=$ac_cv_path_orig_target_cc
11097 if test -n "$orig_target_cc"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11099 $as_echo "$orig_target_cc" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11108 else
11109 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11110 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if ${ac_cv_path_orig_target_cc+:} false; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 case $orig_target_cc in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11132 done
11133 done
11134 IFS=$as_save_IFS
11137 esac
11139 orig_target_cc=$ac_cv_path_orig_target_cc
11140 if test -n "$orig_target_cc"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11142 $as_echo "$orig_target_cc" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11151 if test "$orig_target_cc" = ""; then
11152 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11155 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11156 if test "$cross_compiling" = "yes" ; then
11157 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11158 set dummy ${target_tool_prefix}g++; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_path_orig_target_cxx+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 case $orig_target_cxx in
11165 [\\/]* | ?:[\\/]*)
11166 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11180 done
11181 done
11182 IFS=$as_save_IFS
11185 esac
11187 orig_target_cxx=$ac_cv_path_orig_target_cxx
11188 if test -n "$orig_target_cxx"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11190 $as_echo "$orig_target_cxx" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11197 else
11198 if test "$GCC" = "yes"; then
11199 aros_gcc_g++=`$CC -print-prog-name=g++`
11200 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11201 set dummy `basename $aros_gcc_g++`; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_path_orig_target_cxx+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 case $orig_target_cxx in
11208 [\\/]* | ?:[\\/]*)
11209 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in `dirname $aros_gcc_g++`
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11223 done
11224 done
11225 IFS=$as_save_IFS
11228 esac
11230 orig_target_cxx=$ac_cv_path_orig_target_cxx
11231 if test -n "$orig_target_cxx"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11233 $as_echo "$orig_target_cxx" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11241 if test "$orig_target_cxx" = ""; then
11242 # Extract the first word of "g++", so it can be a program name with args.
11243 set dummy g++; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_orig_target_cxx+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $orig_target_cxx in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11270 esac
11272 orig_target_cxx=$ac_cv_path_orig_target_cxx
11273 if test -n "$orig_target_cxx"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11275 $as_echo "$orig_target_cxx" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11284 else
11285 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11286 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_path_orig_target_cxx+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 case $orig_target_cxx in
11293 [\\/]* | ?:[\\/]*)
11294 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11304 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11308 done
11309 done
11310 IFS=$as_save_IFS
11313 esac
11315 orig_target_cxx=$ac_cv_path_orig_target_cxx
11316 if test -n "$orig_target_cxx"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11318 $as_echo "$orig_target_cxx" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11327 if test "$orig_target_cxx" = ""; then
11328 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11331 if test "${aros_tool_prefix}ld" = ""; then
11332 if test "$cross_compiling" = "yes" ; then
11333 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11334 set dummy ${target_tool_prefix}gcc; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_path_orig_target_ld+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 case $orig_target_ld in
11341 [\\/]* | ?:[\\/]*)
11342 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11352 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11361 esac
11363 orig_target_ld=$ac_cv_path_orig_target_ld
11364 if test -n "$orig_target_ld"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11366 $as_echo "$orig_target_ld" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11373 else
11374 if test "$GCC" = "yes"; then
11375 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11376 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11377 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_orig_target_ld+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 case $orig_target_ld in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in `dirname $aros_gcc_gcc`
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11399 done
11400 done
11401 IFS=$as_save_IFS
11404 esac
11406 orig_target_ld=$ac_cv_path_orig_target_ld
11407 if test -n "$orig_target_ld"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11409 $as_echo "$orig_target_ld" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11417 if test "$orig_target_ld" = ""; then
11418 # Extract the first word of "gcc", so it can be a program name with args.
11419 set dummy gcc; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_path_orig_target_ld+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 case $orig_target_ld in
11426 [\\/]* | ?:[\\/]*)
11427 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11437 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11446 esac
11448 orig_target_ld=$ac_cv_path_orig_target_ld
11449 if test -n "$orig_target_ld"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11451 $as_echo "$orig_target_ld" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11460 else
11461 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11462 set dummy ${aros_tool_prefix}ld; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_path_orig_target_ld+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 case $orig_target_ld in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11489 esac
11491 orig_target_ld=$ac_cv_path_orig_target_ld
11492 if test -n "$orig_target_ld"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11494 $as_echo "$orig_target_ld" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11503 if test "$orig_target_ld" = ""; then
11504 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11507 if test "${aros_tool_prefix}as" = ""; then
11508 if test "$cross_compiling" = "yes" ; then
11509 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11510 set dummy ${target_tool_prefix}as; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_path_orig_target_as+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 case $orig_target_as in
11517 [\\/]* | ?:[\\/]*)
11518 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11528 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11532 done
11533 done
11534 IFS=$as_save_IFS
11537 esac
11539 orig_target_as=$ac_cv_path_orig_target_as
11540 if test -n "$orig_target_as"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11542 $as_echo "$orig_target_as" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11549 else
11550 if test "$GCC" = "yes"; then
11551 aros_gcc_as=`$CC -print-prog-name=as`
11552 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11553 set dummy `basename $aros_gcc_as`; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_path_orig_target_as+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 case $orig_target_as in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in `dirname $aros_gcc_as`
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11580 esac
11582 orig_target_as=$ac_cv_path_orig_target_as
11583 if test -n "$orig_target_as"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11585 $as_echo "$orig_target_as" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11593 if test "$orig_target_as" = ""; then
11594 # Extract the first word of "as", so it can be a program name with args.
11595 set dummy as; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_orig_target_as+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $orig_target_as in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11622 esac
11624 orig_target_as=$ac_cv_path_orig_target_as
11625 if test -n "$orig_target_as"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11627 $as_echo "$orig_target_as" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11636 else
11637 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11638 set dummy ${aros_tool_prefix}as; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_path_orig_target_as+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 case $orig_target_as in
11645 [\\/]* | ?:[\\/]*)
11646 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11660 done
11661 done
11662 IFS=$as_save_IFS
11665 esac
11667 orig_target_as=$ac_cv_path_orig_target_as
11668 if test -n "$orig_target_as"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11670 $as_echo "$orig_target_as" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11679 if test "$orig_target_as" = ""; then
11680 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11683 if test "${aros_tool_prefix}ar" = ""; then
11684 if test "$cross_compiling" = "yes" ; then
11685 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11686 set dummy ${target_tool_prefix}ar; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_ar+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_ar in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11713 esac
11715 orig_target_ar=$ac_cv_path_orig_target_ar
11716 if test -n "$orig_target_ar"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11718 $as_echo "$orig_target_ar" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11725 else
11726 if test "$GCC" = "yes"; then
11727 aros_gcc_ar=`$CC -print-prog-name=ar`
11728 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11729 set dummy `basename $aros_gcc_ar`; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_ar+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $orig_target_ar in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in `dirname $aros_gcc_ar`
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 orig_target_ar=$ac_cv_path_orig_target_ar
11759 if test -n "$orig_target_ar"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11761 $as_echo "$orig_target_ar" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test "$orig_target_ar" = ""; then
11770 # Extract the first word of "ar", so it can be a program name with args.
11771 set dummy ar; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_ar+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_ar in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_ar=$ac_cv_path_orig_target_ar
11801 if test -n "$orig_target_ar"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11803 $as_echo "$orig_target_ar" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11812 else
11813 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11814 set dummy ${aros_tool_prefix}ar; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_orig_target_ar+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $orig_target_ar in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11841 esac
11843 orig_target_ar=$ac_cv_path_orig_target_ar
11844 if test -n "$orig_target_ar"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11846 $as_echo "$orig_target_ar" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11855 if test "$orig_target_ar" = ""; then
11856 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11859 if test "${aros_tool_prefix}ranlib" = ""; then
11860 if test "$cross_compiling" = "yes" ; then
11861 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11862 set dummy ${target_tool_prefix}ar; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 case $orig_target_ranlib in
11869 [\\/]* | ?:[\\/]*)
11870 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11886 IFS=$as_save_IFS
11889 esac
11891 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11892 if test -n "$orig_target_ranlib"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11894 $as_echo "$orig_target_ranlib" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 else
11902 if test "$GCC" = "yes"; then
11903 aros_gcc_ar=`$CC -print-prog-name=ar`
11904 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11905 set dummy `basename $aros_gcc_ar`; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 case $orig_target_ranlib in
11912 [\\/]* | ?:[\\/]*)
11913 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in `dirname $aros_gcc_ar`
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11927 done
11928 done
11929 IFS=$as_save_IFS
11932 esac
11934 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11935 if test -n "$orig_target_ranlib"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11937 $as_echo "$orig_target_ranlib" >&6; }
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11945 if test "$orig_target_ranlib" = ""; then
11946 # Extract the first word of "ar", so it can be a program name with args.
11947 set dummy ar; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $orig_target_ranlib in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11974 esac
11976 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11977 if test -n "$orig_target_ranlib"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11979 $as_echo "$orig_target_ranlib" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11988 else
11989 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11990 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 case $orig_target_ranlib in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12017 esac
12019 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12020 if test -n "$orig_target_ranlib"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12022 $as_echo "$orig_target_ranlib" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12031 if test "$orig_target_ranlib" = ""; then
12032 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12035 if test "${aros_tool_prefix}nm" = ""; then
12036 if test "$cross_compiling" = "yes" ; then
12037 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12038 set dummy ${target_tool_prefix}nm; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_path_orig_target_nm+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 case $orig_target_nm in
12045 [\\/]* | ?:[\\/]*)
12046 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12056 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 break 2
12060 done
12061 done
12062 IFS=$as_save_IFS
12065 esac
12067 orig_target_nm=$ac_cv_path_orig_target_nm
12068 if test -n "$orig_target_nm"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12070 $as_echo "$orig_target_nm" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12077 else
12078 if test "$GCC" = "yes"; then
12079 aros_gcc_nm=`$CC -print-prog-name=nm`
12080 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12081 set dummy `basename $aros_gcc_nm`; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_path_orig_target_nm+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 case $orig_target_nm in
12088 [\\/]* | ?:[\\/]*)
12089 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in `dirname $aros_gcc_nm`
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12103 done
12104 done
12105 IFS=$as_save_IFS
12108 esac
12110 orig_target_nm=$ac_cv_path_orig_target_nm
12111 if test -n "$orig_target_nm"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12113 $as_echo "$orig_target_nm" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 if test "$orig_target_nm" = ""; then
12122 # Extract the first word of "nm", so it can be a program name with args.
12123 set dummy nm; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_path_orig_target_nm+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $orig_target_nm in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12150 esac
12152 orig_target_nm=$ac_cv_path_orig_target_nm
12153 if test -n "$orig_target_nm"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12155 $as_echo "$orig_target_nm" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12164 else
12165 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12166 set dummy ${aros_tool_prefix}nm; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_path_orig_target_nm+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 case $orig_target_nm in
12173 [\\/]* | ?:[\\/]*)
12174 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12188 done
12189 done
12190 IFS=$as_save_IFS
12193 esac
12195 orig_target_nm=$ac_cv_path_orig_target_nm
12196 if test -n "$orig_target_nm"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12198 $as_echo "$orig_target_nm" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12207 if test "$orig_target_nm" = ""; then
12208 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12211 if test "${aros_tool_prefix}strip" = ""; then
12212 if test "$cross_compiling" = "yes" ; then
12213 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12214 set dummy ${target_tool_prefix}strip; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_path_orig_target_strip+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 case $orig_target_strip in
12221 [\\/]* | ?:[\\/]*)
12222 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12241 esac
12243 orig_target_strip=$ac_cv_path_orig_target_strip
12244 if test -n "$orig_target_strip"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12246 $as_echo "$orig_target_strip" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12253 else
12254 if test "$GCC" = "yes"; then
12255 aros_gcc_strip=`$CC -print-prog-name=strip`
12256 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12257 set dummy `basename $aros_gcc_strip`; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_orig_target_strip+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 case $orig_target_strip in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in `dirname $aros_gcc_strip`
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12284 esac
12286 orig_target_strip=$ac_cv_path_orig_target_strip
12287 if test -n "$orig_target_strip"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12289 $as_echo "$orig_target_strip" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12297 if test "$orig_target_strip" = ""; then
12298 # Extract the first word of "strip", so it can be a program name with args.
12299 set dummy strip; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_path_orig_target_strip+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 case $orig_target_strip in
12306 [\\/]* | ?:[\\/]*)
12307 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12321 done
12322 done
12323 IFS=$as_save_IFS
12326 esac
12328 orig_target_strip=$ac_cv_path_orig_target_strip
12329 if test -n "$orig_target_strip"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12331 $as_echo "$orig_target_strip" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12340 else
12341 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12342 set dummy ${aros_tool_prefix}strip; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_orig_target_strip+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 case $orig_target_strip in
12349 [\\/]* | ?:[\\/]*)
12350 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12364 done
12365 done
12366 IFS=$as_save_IFS
12369 esac
12371 orig_target_strip=$ac_cv_path_orig_target_strip
12372 if test -n "$orig_target_strip"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12374 $as_echo "$orig_target_strip" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12383 if test "$orig_target_strip" = ""; then
12384 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12387 if test "${aros_tool_prefix}objcopy" = ""; then
12388 if test "$cross_compiling" = "yes" ; then
12389 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12390 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $orig_target_objcopy in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12408 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12417 esac
12419 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12420 if test -n "$orig_target_objcopy"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12422 $as_echo "$orig_target_objcopy" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12429 else
12430 if test "$GCC" = "yes"; then
12431 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12432 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12433 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 case $orig_target_objcopy in
12440 [\\/]* | ?:[\\/]*)
12441 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in `dirname $aros_gcc_objcopy`
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12455 done
12456 done
12457 IFS=$as_save_IFS
12460 esac
12462 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12463 if test -n "$orig_target_objcopy"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12465 $as_echo "$orig_target_objcopy" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12473 if test "$orig_target_objcopy" = ""; then
12474 # Extract the first word of "objcopy", so it can be a program name with args.
12475 set dummy objcopy; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $orig_target_objcopy in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12505 if test -n "$orig_target_objcopy"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12507 $as_echo "$orig_target_objcopy" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12516 else
12517 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12518 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 case $orig_target_objcopy in
12525 [\\/]* | ?:[\\/]*)
12526 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12536 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12540 done
12541 done
12542 IFS=$as_save_IFS
12545 esac
12547 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12548 if test -n "$orig_target_objcopy"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12550 $as_echo "$orig_target_objcopy" >&6; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12559 if test "$orig_target_objcopy" = ""; then
12560 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12563 if test "${aros_tool_prefix}objdump" = ""; then
12564 if test "$cross_compiling" = "yes" ; then
12565 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12566 set dummy ${target_tool_prefix}objdump; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_path_orig_target_objdump+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 case $orig_target_objdump in
12573 [\\/]* | ?:[\\/]*)
12574 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12588 done
12589 done
12590 IFS=$as_save_IFS
12593 esac
12595 orig_target_objdump=$ac_cv_path_orig_target_objdump
12596 if test -n "$orig_target_objdump"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12598 $as_echo "$orig_target_objdump" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12605 else
12606 if test "$GCC" = "yes"; then
12607 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12608 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12609 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12611 $as_echo_n "checking for $ac_word... " >&6; }
12612 if ${ac_cv_path_orig_target_objdump+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 case $orig_target_objdump in
12616 [\\/]* | ?:[\\/]*)
12617 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in `dirname $aros_gcc_objdump`
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12627 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12631 done
12632 done
12633 IFS=$as_save_IFS
12636 esac
12638 orig_target_objdump=$ac_cv_path_orig_target_objdump
12639 if test -n "$orig_target_objdump"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12641 $as_echo "$orig_target_objdump" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12649 if test "$orig_target_objdump" = ""; then
12650 # Extract the first word of "objdump", so it can be a program name with args.
12651 set dummy objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_orig_target_objdump+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 case $orig_target_objdump in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12678 esac
12680 orig_target_objdump=$ac_cv_path_orig_target_objdump
12681 if test -n "$orig_target_objdump"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12683 $as_echo "$orig_target_objdump" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12692 else
12693 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12694 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_path_orig_target_objdump+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 case $orig_target_objdump in
12701 [\\/]* | ?:[\\/]*)
12702 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12716 done
12717 done
12718 IFS=$as_save_IFS
12721 esac
12723 orig_target_objdump=$ac_cv_path_orig_target_objdump
12724 if test -n "$orig_target_objdump"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12726 $as_echo "$orig_target_objdump" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12735 if test "$orig_target_objdump" = ""; then
12736 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12740 if test "$kernel_tool_prefix" = "none" ; then
12741 # No kernel tools specified
12742 # Assume target tools == kernel tools with ELF wrapper
12743 aros_kernel_cc=$orig_target_cc
12744 aros_kernel_cxx=$orig_target_cxx
12745 aros_kernel_cpp=$orig_target_cpp
12746 aros_kernel_ld=$orig_target_ld
12747 aros_kernel_as=$orig_target_as
12748 aros_kernel_ar=$orig_target_ar
12749 aros_kernel_ranlib=$orig_target_ranlib
12750 aros_kernel_nm=$orig_target_nm
12751 aros_kernel_strip=$orig_target_strip
12752 aros_kernel_objcopy=$orig_target_objcopy
12753 aros_kernel_objdump=$orig_target_objdump
12754 use_kernel_cc_wrapper=yes
12757 # At this point, all aros_kernel_* and aros_target_*
12758 # tools should be set up correctly
12760 CC="$aros_kernel_cc $kernel_tool_flags"
12761 CPP="$aros_kernel_cpp"
12763 #-----------------------------------------------------------------------------
12765 # Disable pointer-signedness warnings if the compiler recognises the option
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12768 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12769 save_cflags="$CFLAGS"
12770 if test "$crosstools" != "yes" ; then
12771 CFLAGS="$CFLAGS -Wno-pointer-sign"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12776 main ()
12780 return 0;
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784 use_no_sign_warning="yes"
12785 else
12786 use_no_sign_warning="no"
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 else
12790 # we do know it is supported for the smallest version of gcc we are going to build
12791 # we assume it's also supported by later versions
12792 use_no_sign_warning=yes
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12795 $as_echo "$use_no_sign_warning" >&6; }
12796 if test "x-$use_no_sign_warning" = "x-yes" ; then
12797 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12799 CFLAGS="$save_cflags"
12801 #-----------------------------------------------------------------------------
12803 # Find all the tools we need to compile. This could be cross-compiling
12804 # though! If that is the case we use the GNU form of the target and
12805 # simply add this to the front of the binary name. This is rather simple,
12806 # but it should work under most circumstances.
12808 # The default tools are to use the same as the host, but only if the
12809 # host and target CPU are the same. With GCC this is normally enough.
12812 aros_cc_pre=""
12813 aros_shared_ld="$aros_host_ld"
12815 aros_target_mkdep="$aros_host_mkdep"
12817 # The default tools executables to be linked to.
12818 if test "$rescomp" != ""; then
12819 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12820 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 case $aros_kernel_rescomp in
12827 [\\/]* | ?:[\\/]*)
12828 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12838 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 break 2
12842 done
12843 done
12844 IFS=$as_save_IFS
12847 esac
12849 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12850 if test -n "$aros_kernel_rescomp"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12852 $as_echo "$aros_kernel_rescomp" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12859 if test "$aros_kernel_rescomp" = ""; then
12860 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12864 # Set up the sources for the symlink farm
12865 if test "$crosstools" = "yes"; then
12866 crosstools_target=tools-crosstools
12869 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12870 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12873 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12874 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12875 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12876 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12877 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12878 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12879 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12881 # aros_cc_pre is a variable that is added to the front of the compiler name
12882 # in the generated aros-gcc shell script. We need this to enable the cache
12883 # to work across cleaned builds. Also, support DISTCC using the correct
12884 # environment variable.
12887 if test "x${DISTCC}" != "x" ; then
12888 if test "x${CCACHE}" != "x" ; then
12889 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12890 else
12891 aros_cc_pre="${DISTCC} "
12893 else
12894 if test "x${CCACHE}" != "x" ; then
12895 aros_cc_pre="${CCACHE} "
12899 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12901 aros_target_nostdinc_cflags=-nostdinc
12903 aros_target_nostartup_ldflags=-nostartfiles
12905 aros_target_nix_ldflags=-nix
12907 aros_target_detach_ldflags=-detach
12909 aros_target_nostdlib_ldflags=-nostdlib
12912 # Target tools
12913 if test "$crosstools" != "yes"; then
12914 if test "$GCC" = "yes"; then
12915 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12917 else
12918 # We do not know which gcc version we are going to build and what we need to know
12919 # here is different for different versions so this will be set later during the
12920 # build of crosstools.
12921 aros_target_cc_path=@aros_target_cc_path@
12923 aros_target_cpp="${prefix}cpp"
12924 aros_target_cc="${prefix}gcc"
12925 aros_target_cxx="${prefix}g++"
12926 aros_target_as="${prefix}as"
12927 aros_target_ld="${prefix}ld"
12928 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12929 aros_target_objcopy="${prefix}objcopy"
12930 aros_target_objdump="${prefix}objdump"
12931 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12932 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12933 aros_target_strip="${prefix}strip"
12934 aros_plain_nm="${prefix}nm"
12935 aros_plain_ar="${prefix}ar"
12937 # Check whether --enable-includes was given.
12938 if test "${enable_includes+set}" = set; then :
12939 enableval=$enable_includes; aros_target_incl=$enable_includes
12940 else
12941 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
12945 if test "$aros_kernel_includes" = ""; then
12946 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12947 aros_kernel_includes="-isystem $aros_target_incl"
12951 if test "$aros_kernel_includes" != "" ; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12953 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12954 if test "$aros_kernel_cc_includes" = "" ; then
12955 # Try to guess where the directory is.
12956 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12957 if test -d $aros_kernel_cc_includes; then
12958 # Check if there is also an include-fixed directory and add it
12959 # to kernel compiler's include path as it may contain some of
12960 # the headers we need.
12961 if test -d "$aros_kernel_cc_includes"-fixed; then
12962 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12964 # Check for specific includes directory. Neede for Ubuntu 11.10
12965 if test -d "/usr/include/i386-linux-gnu"; then
12966 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12968 else
12969 # The directory doesn't exist, we need to do some more work.
12970 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12972 # These are the headers we're looking for.
12973 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12974 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12975 zutil.h stdint.h"
12977 dirs=
12978 for h in $headers; do
12979 # Which other headers are needed by each of the above?
12980 deps=$(echo "#include <$h>" | \
12981 $aros_kernel_cc -E -M - 2>/dev/null | \
12982 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12984 # Copy all the needed headers to a directory beneath gendir.
12985 for d in $deps; do
12986 h=$(basename $d)
12987 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12988 sed -n "s,^.*/include\(/.*\),\1,p")
12989 ! test -d $dir && mkdir -p $dir
12990 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12991 done
12992 done
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12996 $as_echo "$aros_kernel_cc_includes" >&6; }
12997 # Adding -nostdinc to kernel includes as they are always used together.
12998 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13001 if test "$crosstools" != "yes"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13003 $as_echo_n "checking for the target compiler's include path... " >&6; }
13004 if test "$aros_target_cc_includes" = "" ; then
13005 #try to guess where the directory is
13006 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13007 if ! test -d $aros_target_cc_includes; then
13008 #the directory doesn't exist, we need to do some more work
13009 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13011 #these are the headers we're looking for
13012 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13013 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13014 zutil.h"
13016 dirs=
13017 for h in $headers; do
13018 #which other headers each of the above headers needs?
13019 deps=$(echo "#include <$h>" | \
13020 $orig_target_cc -E -M - 2>/dev/null | \
13021 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13023 #copy all the needed headers to a directory beneath gendir
13024 for d in $deps; do
13025 h=$(basename $d)
13026 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13027 sed -n "s,^.*/include\(/.*\),\1,p")
13028 ! test -d $dir && mkdir -p $dir
13029 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13030 done
13031 done
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13035 $as_echo "$aros_target_cc_includes" >&6; }
13036 else
13037 # We do not know which gcc version we are going to build and what we need to know
13038 # here is different for different versions so this will be set later during the
13039 # build of crosstools.
13040 aros_target_cc_includes=@aros_target_cc_includes@
13044 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13045 # On GCC >= 4.0 -iquote should be used
13048 save_cc="$CC"
13049 save_cflags="$CFLAGS"
13050 CFLAGS="-iquote."
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13052 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13053 if test "x-$crosstools" != "x-yes"; then
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13058 main ()
13062 return 0;
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 has_iquote="yes"
13067 else
13068 has_iquote="no"
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 else
13072 # we do know it is supported for the smallest version of gcc we are going to build
13073 # we assume it's also supported by later versions
13074 has_iquote=yes
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13077 $as_echo "$has_iquote" >&6; }
13078 if test "x-$has_iquote" = "x-yes" ; then
13079 host_cflags_iquote=-iquote
13080 host_cflags_iquote_end=
13081 else
13082 host_cflags_iquote=-I
13083 host_cflags_iquote_end=-I-
13085 kernel_cflags_iquote=$host_cflags_iquote
13086 kernel_cflags_iquote_end=$host_cflags_iquote_end
13087 if test "x-$cross_compiling" = "x-yes"; then
13088 CC="$aros_kernel_cc"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13090 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13091 if test "x-$crosstools" != "x-yes"; then
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13096 main ()
13100 return 0;
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104 use_no_stack_protector="yes"
13105 else
13106 use_no_stack_protector="no"
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 else
13110 # we do know it is supported for the smallest version of gcc we are going to build
13111 # we assume it's also supported by later versions
13112 use_no_stack_protector=yes
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13115 $as_echo "$use_no_stack_protector" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13117 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13118 if test "x-$crosstools" != "x-yes"; then
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13123 main ()
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131 has_iquote="yes"
13132 else
13133 has_iquote="no"
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 else
13137 # we do know it is supported for the smallest version of gcc we are going to build
13138 # we assume it's also supported by later versions
13139 has_iquote=yes
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13142 $as_echo "$has_iquote" >&6; }
13143 if test "x-$has_iquote" = "x-yes" ; then
13144 kernel_cflags_iquote=-iquote
13145 kernel_cflags_iquote_end=
13146 else
13147 kernel_cflags_iquote=-I
13148 kernel_cflags_iquote_end=-I-
13151 aros_cflags_iquote=$kernel_cflags_iquote
13152 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13153 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13154 CC="$orig_target_cc"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13156 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13157 if test "x-$crosstools" != "x-yes"; then
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13162 main ()
13166 return 0;
13168 _ACEOF
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170 has_iquote="yes"
13171 else
13172 has_iquote="no"
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 else
13176 # we do know it is supported for the smallest version of gcc we are going to build
13177 # we assume it's also supported by later versions
13178 has_iquote=yes
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13181 $as_echo "$has_iquote" >&6; }
13182 if test "x-$has_iquote" = "x-yes" ; then
13183 aros_cflags_iquote=-iquote
13184 aros_cflags_iquote_end=
13185 else
13186 aros_cflags_iquote=-I
13187 aros_cflags_iquote_end=-I-
13190 if test "x-$use_no_stack_protector" = "x-yes" ; then
13191 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13195 #-----------------------------------------------------------------------------
13197 # Check if the target compiler supports some options used for delinting:
13198 # -Wunused-but-set-variable
13199 # -Warray-bounds
13200 # -Wenum-compare
13201 # -Wstrict-overflow
13202 # -Wformat-security
13204 if test "x-$crosstools" != "x-yes"; then
13205 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13206 CC="$orig_target_cc"
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13209 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13210 CFLAGS=-Wunused-but-set-variable
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13215 main ()
13219 return 0;
13221 _ACEOF
13222 if ac_fn_c_try_compile "$LINENO"; then :
13223 aros_unused_but_set_variable="yes"
13224 else
13225 aros_unused_but_set_variable="no"
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13229 $as_echo "$aros_unused_but_set_variable" >&6; }
13230 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13231 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13235 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13236 CFLAGS=-Warray-bounds
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13241 main ()
13245 return 0;
13247 _ACEOF
13248 if ac_fn_c_try_compile "$LINENO"; then :
13249 aros_array_bounds="yes"
13250 else
13251 aros_array_bounds="no"
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13255 $as_echo "$aros_array_bounds" >&6; }
13256 if test "x-$aros_array_bounds" = "x-yes" ; then
13257 aros_cflags_array_bounds=-Wno-array-bounds
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13261 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13262 CFLAGS=-Wenum-compare
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13267 main ()
13271 return 0;
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 aros_enum_compare="yes"
13276 else
13277 aros_enum_compare="no"
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13281 $as_echo "$aros_enum_compare" >&6; }
13282 if test "x-$aros_enum_compare" = "x-yes" ; then
13283 aros_cflags_enum_compare=-Wno-enum-compare
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13287 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13288 CFLAGS=-Wstrict-overflow
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13293 main ()
13297 return 0;
13299 _ACEOF
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301 aros_strict_overflow="yes"
13302 else
13303 aros_strict_overflow="no"
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13307 $as_echo "$aros_strict_overflow" >&6; }
13308 if test "x-$aros_strict_overflow" = "x-yes" ; then
13309 aros_cflags_strict_overflow=-Wno-strict-overflow
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13313 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13314 CFLAGS=-Wformat-security
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13319 main ()
13323 return 0;
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327 aros_format_security="yes"
13328 else
13329 aros_format_security="no"
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13333 $as_echo "$aros_format_security" >&6; }
13334 if test "x-$aros_format_security" = "x-yes" ; then
13335 aros_cflags_format_security=-Wno-format-security
13337 else
13338 # We do not know which gcc version we are going to build and what we need to know
13339 # here is different for different versions so this will be set later during the
13340 # build of crosstools.
13341 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13342 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13343 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13344 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13345 aros_cflags_format_security=@aros_cflags_format_security@
13348 #-----------------------------------------------------------------------------
13350 # Check if we can explicitly choose older version of symbol hashing
13352 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13353 CC="$aros_kernel_cc"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13355 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13360 main ()
13364 return 0;
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 use_hash_style="yes"
13369 else
13370 use_hash_style="no"
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13375 $as_echo "$use_hash_style" >&6; }
13376 if test "x-$use_hash_style" = "x-yes" ; then
13377 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13379 CC="$save_cc"
13380 CFLAGS="$save_cflags"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13391 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13393 # Check whether --with-resolution was given.
13394 if test "${with_resolution+set}" = set; then :
13395 withval=$with_resolution; resolution=$withval
13396 else
13397 resolution=none
13400 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13401 if test "$resolution" = "yes" ; then
13402 resolution="none"
13404 if test "$resolution" = "no" ; then
13405 resolution="none"
13407 if test "$resolution" != "none" ; then
13408 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13409 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13410 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13413 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13414 aros_cv_default_wbwidth=$aros_default_wbwidth
13415 aros_cv_default_wbheight=$aros_default_wbheight
13416 aros_cv_default_wbdepth=$aros_default_wbdepth
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13419 $as_echo_n "checking if serial debug is enabled... " >&6; }
13421 # Check whether --with-serial-debug was given.
13422 if test "${with_serial_debug+set}" = set; then :
13423 withval=$with_serial_debug; serial_debug=$withval
13424 else
13425 serial_debug=none
13428 if test "$aros_serial_debug" = 0 ; then
13429 serial_debug_forced=""
13430 if test "$serial_debug" = "yes" ; then
13431 serial_debug="1"
13433 if test "$serial_debug" = "no" ; then
13434 serial_debug="none"
13436 else
13437 serial_debug_forced="(forced)"
13438 serial_debug=$aros_serial_debug
13440 if test "$serial_debug" != "none" ; then
13441 aros_serial_debug=$serial_debug
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13443 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13450 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13451 # Check whether --enable-palm_debug_hack was given.
13452 if test "${enable_palm_debug_hack+set}" = set; then :
13453 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13454 else
13455 palm_debug_hack="no"
13458 if test "$palm_debug_hack" = "yes" ; then
13459 aros_palm_debug_hack="1"
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13462 $as_echo "$palm_debug_hack" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13465 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13466 # Check whether --enable-usb30_code was given.
13467 if test "${enable_usb30_code+set}" = set; then :
13468 enableval=$enable_usb30_code; usb30_code="yes"
13469 else
13470 usb30_code="no"
13473 if test "$usb30_code" = "yes" ; then
13474 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13475 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13478 $as_echo "$usb30_code" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13481 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13482 # Check whether --enable-nesting_supervisor was given.
13483 if test "${enable_nesting_supervisor+set}" = set; then :
13484 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13485 else
13486 nesting_supervisor="no"
13489 if test "$nesting_supervisor" = "yes" ; then
13490 aros_nesting_supervisor="1"
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13493 $as_echo "$nesting_supervisor" >&6; }
13495 if test "$aros_enable_mmu" = "" ; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13497 $as_echo_n "checking if MMU support is enabled... " >&6; }
13498 # Check whether --enable-mmu was given.
13499 if test "${enable_mmu+set}" = set; then :
13500 enableval=$enable_mmu; aros_enable_mmu=$enableval
13501 else
13502 aros_enable_mmu="yes"
13505 if test "$aros_enable_mmu" = "" ; then
13506 aros_enable_mmu="yes"
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13509 $as_echo "$aros_enable_mmu" >&6; }
13511 if test "$aros_enable_mmu" = "no" ; then
13512 aros_enable_mmu="0"
13513 else
13514 aros_enable_mmu="1"
13518 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13520 if test "x-$need_dlopen" != "x-no" ; then
13521 save_libs="$LIBS"
13522 LIBS=""
13523 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13524 if test "x$ac_cv_func_dlopen" = xyes; then :
13525 have_dl="yes"
13526 else
13527 have_dl="no"
13530 if test "x-$have_dl" = "x-no" ; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13532 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13533 if ${ac_cv_lib_dl_dlopen+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-ldl $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 char dlopen ();
13549 main ()
13551 return dlopen ();
13553 return 0;
13555 _ACEOF
13556 if ac_fn_c_try_link "$LINENO"; then :
13557 ac_cv_lib_dl_dlopen=yes
13558 else
13559 ac_cv_lib_dl_dlopen=no
13561 rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13567 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13568 have_dl="yes"
13569 aros_host_ldflags="$aros_host_ldflags -ldl"
13570 else
13571 have_dl="no"
13575 if test "x-$have_dl" = "x-no" ; then
13576 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13578 LIBS="$save_libs"
13582 # Check whether --enable-x11_hidd was given.
13583 if test "${enable_x11_hidd+set}" = set; then :
13584 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13585 else
13586 x11_hidd="$need_x11"
13589 case "x-$x11_hidd" in
13590 x-yes|x-no|x-auto) ;;
13591 *) x11_hidd="$need_x11" ;;
13592 esac
13594 ENABLE_X11=0
13596 if test "x-$x11_hidd" != "x-no" ; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13599 $as_echo_n "checking for X... " >&6; }
13602 # Check whether --with-x was given.
13603 if test "${with_x+set}" = set; then :
13604 withval=$with_x;
13607 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13608 if test "x$with_x" = xno; then
13609 # The user explicitly disabled X.
13610 have_x=disabled
13611 else
13612 case $x_includes,$x_libraries in #(
13613 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13614 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 # One or both of the vars are not set, and there is no cached value.
13618 ac_x_includes=no ac_x_libraries=no
13619 rm -f -r conftest.dir
13620 if mkdir conftest.dir; then
13621 cd conftest.dir
13622 cat >Imakefile <<'_ACEOF'
13623 incroot:
13624 @echo incroot='${INCROOT}'
13625 usrlibdir:
13626 @echo usrlibdir='${USRLIBDIR}'
13627 libdir:
13628 @echo libdir='${LIBDIR}'
13629 _ACEOF
13630 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13632 for ac_var in incroot usrlibdir libdir; do
13633 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13634 done
13635 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13636 for ac_extension in a so sl dylib la dll; do
13637 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13638 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13639 ac_im_usrlibdir=$ac_im_libdir; break
13641 done
13642 # Screen out bogus values from the imake configuration. They are
13643 # bogus both because they are the default anyway, and because
13644 # using them would break gcc on systems where it needs fixed includes.
13645 case $ac_im_incroot in
13646 /usr/include) ac_x_includes= ;;
13647 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13648 esac
13649 case $ac_im_usrlibdir in
13650 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13651 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13652 esac
13654 cd ..
13655 rm -f -r conftest.dir
13658 # Standard set of common directories for X headers.
13659 # Check X11 before X11Rn because it is often a symlink to the current release.
13660 ac_x_header_dirs='
13661 /usr/X11/include
13662 /usr/X11R7/include
13663 /usr/X11R6/include
13664 /usr/X11R5/include
13665 /usr/X11R4/include
13667 /usr/include/X11
13668 /usr/include/X11R7
13669 /usr/include/X11R6
13670 /usr/include/X11R5
13671 /usr/include/X11R4
13673 /usr/local/X11/include
13674 /usr/local/X11R7/include
13675 /usr/local/X11R6/include
13676 /usr/local/X11R5/include
13677 /usr/local/X11R4/include
13679 /usr/local/include/X11
13680 /usr/local/include/X11R7
13681 /usr/local/include/X11R6
13682 /usr/local/include/X11R5
13683 /usr/local/include/X11R4
13685 /usr/X386/include
13686 /usr/x386/include
13687 /usr/XFree86/include/X11
13689 /usr/include
13690 /usr/local/include
13691 /usr/unsupported/include
13692 /usr/athena/include
13693 /usr/local/x11r5/include
13694 /usr/lpp/Xamples/include
13696 /usr/openwin/include
13697 /usr/openwin/share/include'
13699 if test "$ac_x_includes" = no; then
13700 # Guess where to find include files, by looking for Xlib.h.
13701 # First, try using that file with no special directory specified.
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 #include <X11/Xlib.h>
13705 _ACEOF
13706 if ac_fn_c_try_cpp "$LINENO"; then :
13707 # We can compile using X headers with no special include directory.
13708 ac_x_includes=
13709 else
13710 for ac_dir in $ac_x_header_dirs; do
13711 if test -r "$ac_dir/X11/Xlib.h"; then
13712 ac_x_includes=$ac_dir
13713 break
13715 done
13717 rm -f conftest.err conftest.i conftest.$ac_ext
13718 fi # $ac_x_includes = no
13720 if test "$ac_x_libraries" = no; then
13721 # Check for the libraries.
13722 # See if we find them without any special options.
13723 # Don't add to $LIBS permanently.
13724 ac_save_LIBS=$LIBS
13725 LIBS="-lX11 $LIBS"
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <X11/Xlib.h>
13730 main ()
13732 XrmInitialize ()
13734 return 0;
13736 _ACEOF
13737 if ac_fn_c_try_link "$LINENO"; then :
13738 LIBS=$ac_save_LIBS
13739 # We can link X programs with no special library path.
13740 ac_x_libraries=
13741 else
13742 LIBS=$ac_save_LIBS
13743 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13745 # Don't even attempt the hair of trying to link an X program!
13746 for ac_extension in a so sl dylib la dll; do
13747 if test -r "$ac_dir/libX11.$ac_extension"; then
13748 ac_x_libraries=$ac_dir
13749 break 2
13751 done
13752 done
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 fi # $ac_x_libraries = no
13758 case $ac_x_includes,$ac_x_libraries in #(
13759 no,* | *,no | *\'*)
13760 # Didn't find X, or a directory has "'" in its name.
13761 ac_cv_have_x="have_x=no";; #(
13763 # Record where we found X for the cache.
13764 ac_cv_have_x="have_x=yes\
13765 ac_x_includes='$ac_x_includes'\
13766 ac_x_libraries='$ac_x_libraries'"
13767 esac
13769 ;; #(
13770 *) have_x=yes;;
13771 esac
13772 eval "$ac_cv_have_x"
13773 fi # $with_x != no
13775 if test "$have_x" != yes; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13777 $as_echo "$have_x" >&6; }
13778 no_x=yes
13779 else
13780 # If each of the values was on the command line, it overrides each guess.
13781 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13782 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13783 # Update the cache value to reflect the command line values.
13784 ac_cv_have_x="have_x=yes\
13785 ac_x_includes='$x_includes'\
13786 ac_x_libraries='$x_libraries'"
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13788 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13792 x_cflags=
13793 for path in $x_libraries
13795 x_cflags="$x_cflags -L$path"
13796 done
13798 for path in $x_includes
13800 x_cflags="$x_cflags -I$path"
13801 done
13803 if test "x-$no_x" = "x-yes" ; then
13805 if test "x-$x11_hidd" != "x-auto" ; then
13806 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13809 else
13810 unixgfx_hidd_target=kernel-x11gfx
13811 ENABLE_X11=1
13813 # Check whether --enable-x11_shm was given.
13814 if test "${enable_x11_shm+set}" = set; then :
13815 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13816 else
13817 x11_hidd_shm="auto"
13820 case "x-$x11_hidd_shm" in
13821 x-yes|x-no|x-auto) ;;
13822 *) x11_hidd_shm="auto" ;;
13823 esac
13825 have_xshm=no
13827 if test "x-$x11_hidd_shm" != "x-no" ; then
13829 for ac_header in sys/ipc.h
13830 do :
13831 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13832 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_SYS_IPC_H 1
13835 _ACEOF
13839 done
13841 for ac_header in sys/shm.h
13842 do :
13843 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13844 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_SYS_SHM_H 1
13847 _ACEOF
13851 done
13854 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13856 save_cflags="$CFLAGS"
13857 CFLAGS="$CFLAGS $x_cflags"
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13859 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13860 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 ac_check_lib_save_LIBS=$LIBS
13864 LIBS="-lXext $LIBS"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13868 /* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13871 #ifdef __cplusplus
13872 extern "C"
13873 #endif
13874 char XShmQueryExtension ();
13876 main ()
13878 return XShmQueryExtension ();
13880 return 0;
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 ac_cv_lib_Xext_XShmQueryExtension=yes
13885 else
13886 ac_cv_lib_Xext_XShmQueryExtension=no
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13893 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13894 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13895 have_xshm=yes
13898 CFLAGS="$save_cflags"
13902 if test "x-$have_xshm" = "x-yes" ; then
13903 DO_XSHM_SUPPORT="1"
13904 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13905 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13906 else
13907 DO_XSHM_SUPPORT="0"
13911 # Check whether --enable-x11_vidmode was given.
13912 if test "${enable_x11_vidmode+set}" = set; then :
13913 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13914 else
13915 x11_hidd_vidmode="auto"
13918 case "x-$x11_hidd_vidmode" in
13919 x-yes|x-no|x-auto) ;;
13920 *) x11_hidd_vidmode="auto" ;;
13921 esac
13923 have_vidmode=no
13925 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13927 save_cflags="$CFLAGS"
13928 CFLAGS="$CFLAGS $x_cflags"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13930 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13931 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 ac_check_lib_save_LIBS=$LIBS
13935 LIBS="-lXxf86vm $LIBS"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char XF86VidModeQueryExtension ();
13947 main ()
13949 return XF86VidModeQueryExtension ();
13951 return 0;
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13956 else
13957 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13964 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13965 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13966 have_vidmode=yes
13969 CFLAGS="$save_cflags"
13972 if test "x-$have_vidmode" = "x-yes" ; then
13973 DO_VIDMODE_SUPPORT="1"
13974 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13975 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13976 else
13977 DO_VIDMODE_SUPPORT="0"
13981 aros_host_x11_includes=$x_includes
13982 aros_host_x11_libdirs=$x_libraries
13986 # Check whether --enable-sdl_hidd was given.
13987 if test "${enable_sdl_hidd+set}" = set; then :
13988 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13989 else
13990 sdl_hidd="auto"
13993 case "x-$sdl_hidd" in
13994 x-yes|x-no|x-auto) ;;
13995 *) sdl_hidd="auto" ;;
13996 esac
13998 if test "x-$sdl_hidd" != "x-no" ; then
14001 # Check whether --with-sdl-prefix was given.
14002 if test "${with_sdl_prefix+set}" = set; then :
14003 withval=$with_sdl_prefix; sdl_prefix="$withval"
14004 else
14005 sdl_prefix=""
14009 # Check whether --with-sdl-exec-prefix was given.
14010 if test "${with_sdl_exec_prefix+set}" = set; then :
14011 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14012 else
14013 sdl_exec_prefix=""
14016 # Check whether --enable-sdltest was given.
14017 if test "${enable_sdltest+set}" = set; then :
14018 enableval=$enable_sdltest;
14019 else
14020 enable_sdltest=yes
14024 if test x$sdl_exec_prefix != x ; then
14025 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14026 if test x${SDL_CONFIG+set} != xset ; then
14027 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14030 if test x$sdl_prefix != x ; then
14031 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14032 if test x${SDL_CONFIG+set} != xset ; then
14033 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14037 as_save_PATH="$PATH"
14038 if test "x$prefix" != xNONE; then
14039 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14041 # Extract the first word of "sdl-config", so it can be a program name with args.
14042 set dummy sdl-config; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 case $SDL_CONFIG in
14049 [\\/]* | ?:[\\/]*)
14050 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14064 done
14065 done
14066 IFS=$as_save_IFS
14068 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14070 esac
14072 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14073 if test -n "$SDL_CONFIG"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14075 $as_echo "$SDL_CONFIG" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14082 PATH="$as_save_PATH"
14083 min_sdl_version=1.2.10
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14085 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14086 no_sdl=""
14087 if test "$SDL_CONFIG" = "no" ; then
14088 no_sdl=yes
14089 else
14090 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14091 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14093 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14094 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14095 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14097 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14099 if test "x$enable_sdltest" = "xyes" ; then
14100 ac_save_CFLAGS="$CFLAGS"
14101 ac_save_CXXFLAGS="$CXXFLAGS"
14102 ac_save_LIBS="$LIBS"
14103 CFLAGS="$CFLAGS $SDL_CFLAGS"
14104 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14105 LIBS="$LIBS $SDL_LIBS"
14106 rm -f conf.sdltest
14107 if test "$cross_compiling" = yes; then :
14108 echo $ac_n "cross compiling; assumed OK... $ac_c"
14109 else
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 #include <stdio.h>
14114 #include <stdlib.h>
14115 #include <string.h>
14116 #include "SDL.h"
14118 char*
14119 my_strdup (char *str)
14121 char *new_str;
14123 if (str)
14125 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14126 strcpy (new_str, str);
14128 else
14129 new_str = NULL;
14131 return new_str;
14134 int main (int argc, char *argv[])
14136 int major, minor, micro;
14137 char *tmp_version;
14139 /* This hangs on some systems (?)
14140 system ("touch conf.sdltest");
14142 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14144 /* HP/UX 9 (%@#!) writes to sscanf strings */
14145 tmp_version = my_strdup("$min_sdl_version");
14146 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14147 printf("%s, bad version string\n", "$min_sdl_version");
14148 exit(1);
14151 if (($sdl_major_version > major) ||
14152 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14153 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14155 return 0;
14157 else
14159 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14160 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14161 printf("*** best to upgrade to the required version.\n");
14162 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14163 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14164 printf("*** config.cache before re-running configure\n");
14165 return 1;
14170 _ACEOF
14171 if ac_fn_c_try_run "$LINENO"; then :
14173 else
14174 no_sdl=yes
14176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14177 conftest.$ac_objext conftest.beam conftest.$ac_ext
14180 CFLAGS="$ac_save_CFLAGS"
14181 CXXFLAGS="$ac_save_CXXFLAGS"
14182 LIBS="$ac_save_LIBS"
14185 if test "x$no_sdl" = x ; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14187 $as_echo "yes" >&6; }
14188 have_sdl="yes"
14189 else
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14192 if test "$SDL_CONFIG" = "no" ; then
14193 echo "*** The sdl-config script installed by SDL could not be found"
14194 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14195 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14196 echo "*** full path to sdl-config."
14197 else
14198 if test -f conf.sdltest ; then
14200 else
14201 echo "*** Could not run SDL test program, checking why..."
14202 CFLAGS="$CFLAGS $SDL_CFLAGS"
14203 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14204 LIBS="$LIBS $SDL_LIBS"
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14208 #include <stdio.h>
14209 #include "SDL.h"
14211 int main(int argc, char *argv[])
14212 { return 0; }
14213 #undef main
14214 #define main K_and_R_C_main
14217 main ()
14219 return 0;
14221 return 0;
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 echo "*** The test program compiled, but did not run. This usually means"
14226 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14227 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14228 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14229 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14230 echo "*** is required on your system"
14231 echo "***"
14232 echo "*** If you have an old version installed, it is best to remove it, although"
14233 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14234 else
14235 echo "*** The test program failed to compile or link. See the file config.log for the"
14236 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14237 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14238 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 CFLAGS="$ac_save_CFLAGS"
14243 CXXFLAGS="$ac_save_CXXFLAGS"
14244 LIBS="$ac_save_LIBS"
14247 SDL_CFLAGS=""
14248 SDL_LIBS=""
14249 have_sdl="no"
14253 rm -f conf.sdltest
14256 if test "x-$have_sdl" != "x-yes" ; then
14258 if test "x-$sdl_hidd" != "x-auto" ; then
14259 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14262 else
14263 sdl_hidd_target=kernel-hidd-sdl
14264 aros_host_sdl_cflags=SDL_CFLAGS
14265 aros_host_sdl_libs=SDL_LIBS
14269 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14270 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14275 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14276 oss_library_target=workbench-libs-oss-unix
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14282 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14283 # Check whether --enable-dbus was given.
14284 if test "${enable_dbus+set}" = set; then :
14285 enableval=$enable_dbus; dbus="yes"
14286 else
14287 dbus="no"
14290 if test "$dbus" = "yes" ; then
14291 ENABLE_DBUS=1
14292 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14293 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14294 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14295 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14296 else
14297 ENABLE_DBUS=0
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14300 $as_echo "$dbus" >&6; }
14302 if test "$use_kernel_cc_wrapper" = "yes" ; then
14303 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14306 if test "${crosstools}" != "yes" ; then
14307 aros_target_toolchain=no
14308 else
14309 aros_target_toolchain=yes
14313 # Generic
14325 # Compatability with other Amiga-like operation systems
14328 # Host related
14356 # Target Related
14420 # Delinting target compiler flags
14427 # Graphics Related
14444 # Native version related
14447 # Palm native version related
14450 # Unix/Hosted version related
14453 # MMU related
14456 # Apple iOS related
14461 # ARM default GCC target related
14467 # Android related
14472 # DBUS related
14479 #X11 related
14482 # Debug related
14488 # Collect-aros stuff: "-ius" to ignore undefined symbols
14491 # C compiler related
14494 #ObjC compiler related
14497 # USB3.0 code
14500 case "$aros_flavour" in
14501 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14502 aros_flavour="emulation" ;;
14503 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14504 aros_flavour="emulation" ;;
14505 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14506 aros_flavour="standalone";;
14507 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14508 aros_flavour="standalone";;
14509 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14510 aros_flavour="native" ;;
14511 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14512 aros_flavour="native" ;;
14513 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14514 aros_flavour="linklib" ;;
14515 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14516 aros_flavour="palmnative" ;;
14517 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14518 aros_flavour="mac68knative" ;;
14519 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14520 aros_flavour="ppcnative" ;;
14521 esac
14523 if test ! -d ${aros_inc_dir} ; then
14524 ${MKDIR} ${aros_inc_dir}
14526 if test ! -d ${aros_geninc_dir} ; then
14527 ${MKDIR} ${aros_geninc_dir}
14529 if test ! -d ${aros_hostcfg_dir} ; then
14530 ${MKDIR} ${aros_hostcfg_dir}
14532 if test ! -d ${aros_targetcfg_dir} ; then
14533 ${MKDIR} ${aros_targetcfg_dir}
14535 if test ! -d ${aros_tools_dir} ; then
14536 ${MKDIR} ${aros_tools_dir}
14538 if test ! -d ${aros_scripts_dir} ; then
14539 ${MKDIR} ${aros_scripts_dir}
14542 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14545 ac_config_commands="$ac_config_commands compiler_executable"
14547 ac_config_commands="$ac_config_commands genmf_executable"
14550 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"
14553 cat >confcache <<\_ACEOF
14554 # This file is a shell script that caches the results of configure
14555 # tests run on this system so they can be shared between configure
14556 # scripts and configure runs, see configure's option --config-cache.
14557 # It is not useful on other systems. If it contains results you don't
14558 # want to keep, you may remove or edit it.
14560 # config.status only pays attention to the cache file if you give it
14561 # the --recheck option to rerun configure.
14563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14565 # following values.
14567 _ACEOF
14569 # The following way of writing the cache mishandles newlines in values,
14570 # but we know of no workaround that is simple, portable, and efficient.
14571 # So, we kill variables containing newlines.
14572 # Ultrix sh set writes to stderr and can't be redirected directly,
14573 # and sets the high bit in the cache file unless we assign to the vars.
14575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14576 eval ac_val=\$$ac_var
14577 case $ac_val in #(
14578 *${as_nl}*)
14579 case $ac_var in #(
14580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14582 esac
14583 case $ac_var in #(
14584 _ | IFS | as_nl) ;; #(
14585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14586 *) { eval $ac_var=; unset $ac_var;} ;;
14587 esac ;;
14588 esac
14589 done
14591 (set) 2>&1 |
14592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14593 *${as_nl}ac_space=\ *)
14594 # `set' does not quote correctly, so add quotes: double-quote
14595 # substitution turns \\\\ into \\, and sed turns \\ into \.
14596 sed -n \
14597 "s/'/'\\\\''/g;
14598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14599 ;; #(
14601 # `set' quotes correctly as required by POSIX, so do not add quotes.
14602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14604 esac |
14605 sort
14607 sed '
14608 /^ac_cv_env_/b end
14609 t clear
14610 :clear
14611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14612 t end
14613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14614 :end' >>confcache
14615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14616 if test -w "$cache_file"; then
14617 if test "x$cache_file" != "x/dev/null"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14619 $as_echo "$as_me: updating cache $cache_file" >&6;}
14620 if test ! -f "$cache_file" || test -h "$cache_file"; then
14621 cat confcache >"$cache_file"
14622 else
14623 case $cache_file in #(
14624 */* | ?:*)
14625 mv -f confcache "$cache_file"$$ &&
14626 mv -f "$cache_file"$$ "$cache_file" ;; #(
14628 mv -f confcache "$cache_file" ;;
14629 esac
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14637 rm -f confcache
14639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14640 # Let make expand exec_prefix.
14641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14643 DEFS=-DHAVE_CONFIG_H
14645 ac_libobjs=
14646 ac_ltlibobjs=
14648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14649 # 1. Remove the extension, and $U if already installed.
14650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14653 # will be set to the directory where LIBOBJS objects are built.
14654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14656 done
14657 LIBOBJS=$ac_libobjs
14659 LTLIBOBJS=$ac_ltlibobjs
14663 : "${CONFIG_STATUS=./config.status}"
14664 ac_write_fail=0
14665 ac_clean_files_save=$ac_clean_files
14666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14669 as_write_fail=0
14670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14671 #! $SHELL
14672 # Generated by $as_me.
14673 # Run this file to recreate the current configuration.
14674 # Compiler output produced by configure, useful for debugging
14675 # configure, is in config.log if it exists.
14677 debug=false
14678 ac_cs_recheck=false
14679 ac_cs_silent=false
14681 SHELL=\${CONFIG_SHELL-$SHELL}
14682 export SHELL
14683 _ASEOF
14684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14685 ## -------------------- ##
14686 ## M4sh Initialization. ##
14687 ## -------------------- ##
14689 # Be more Bourne compatible
14690 DUALCASE=1; export DUALCASE # for MKS sh
14691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14692 emulate sh
14693 NULLCMD=:
14694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14695 # is contrary to our usage. Disable this feature.
14696 alias -g '${1+"$@"}'='"$@"'
14697 setopt NO_GLOB_SUBST
14698 else
14699 case `(set -o) 2>/dev/null` in #(
14700 *posix*) :
14701 set -o posix ;; #(
14702 *) :
14704 esac
14708 as_nl='
14710 export as_nl
14711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14715 # Prefer a ksh shell builtin over an external printf program on Solaris,
14716 # but without wasting forks for bash or zsh.
14717 if test -z "$BASH_VERSION$ZSH_VERSION" \
14718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14719 as_echo='print -r --'
14720 as_echo_n='print -rn --'
14721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14722 as_echo='printf %s\n'
14723 as_echo_n='printf %s'
14724 else
14725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14727 as_echo_n='/usr/ucb/echo -n'
14728 else
14729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14730 as_echo_n_body='eval
14731 arg=$1;
14732 case $arg in #(
14733 *"$as_nl"*)
14734 expr "X$arg" : "X\\(.*\\)$as_nl";
14735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14736 esac;
14737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14739 export as_echo_n_body
14740 as_echo_n='sh -c $as_echo_n_body as_echo'
14742 export as_echo_body
14743 as_echo='sh -c $as_echo_body as_echo'
14746 # The user is always right.
14747 if test "${PATH_SEPARATOR+set}" != set; then
14748 PATH_SEPARATOR=:
14749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14751 PATH_SEPARATOR=';'
14756 # IFS
14757 # We need space, tab and new line, in precisely that order. Quoting is
14758 # there to prevent editors from complaining about space-tab.
14759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14760 # splitting by setting IFS to empty value.)
14761 IFS=" "" $as_nl"
14763 # Find who we are. Look in the path if we contain no directory separator.
14764 as_myself=
14765 case $0 in #((
14766 *[\\/]* ) as_myself=$0 ;;
14767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
14772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14773 done
14774 IFS=$as_save_IFS
14777 esac
14778 # We did not find ourselves, most probably we were run as `sh COMMAND'
14779 # in which case we are not to be found in the path.
14780 if test "x$as_myself" = x; then
14781 as_myself=$0
14783 if test ! -f "$as_myself"; then
14784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14785 exit 1
14788 # Unset variables that we do not need and which cause bugs (e.g. in
14789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14790 # suppresses any "Segmentation fault" message there. '((' could
14791 # trigger a bug in pdksh 5.2.14.
14792 for as_var in BASH_ENV ENV MAIL MAILPATH
14793 do eval test x\${$as_var+set} = xset \
14794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14795 done
14796 PS1='$ '
14797 PS2='> '
14798 PS4='+ '
14800 # NLS nuisances.
14801 LC_ALL=C
14802 export LC_ALL
14803 LANGUAGE=C
14804 export LANGUAGE
14806 # CDPATH.
14807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14811 # ----------------------------------------
14812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14814 # script with STATUS, using 1 if that was 0.
14815 as_fn_error ()
14817 as_status=$1; test $as_status -eq 0 && as_status=1
14818 if test "$4"; then
14819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14822 $as_echo "$as_me: error: $2" >&2
14823 as_fn_exit $as_status
14824 } # as_fn_error
14827 # as_fn_set_status STATUS
14828 # -----------------------
14829 # Set $? to STATUS, without forking.
14830 as_fn_set_status ()
14832 return $1
14833 } # as_fn_set_status
14835 # as_fn_exit STATUS
14836 # -----------------
14837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14838 as_fn_exit ()
14840 set +e
14841 as_fn_set_status $1
14842 exit $1
14843 } # as_fn_exit
14845 # as_fn_unset VAR
14846 # ---------------
14847 # Portably unset VAR.
14848 as_fn_unset ()
14850 { eval $1=; unset $1;}
14852 as_unset=as_fn_unset
14853 # as_fn_append VAR VALUE
14854 # ----------------------
14855 # Append the text in VALUE to the end of the definition contained in VAR. Take
14856 # advantage of any shell optimizations that allow amortized linear growth over
14857 # repeated appends, instead of the typical quadratic growth present in naive
14858 # implementations.
14859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14860 eval 'as_fn_append ()
14862 eval $1+=\$2
14864 else
14865 as_fn_append ()
14867 eval $1=\$$1\$2
14869 fi # as_fn_append
14871 # as_fn_arith ARG...
14872 # ------------------
14873 # Perform arithmetic evaluation on the ARGs, and store the result in the
14874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14875 # must be portable across $(()) and expr.
14876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14877 eval 'as_fn_arith ()
14879 as_val=$(( $* ))
14881 else
14882 as_fn_arith ()
14884 as_val=`expr "$@" || test $? -eq 1`
14886 fi # as_fn_arith
14889 if expr a : '\(a\)' >/dev/null 2>&1 &&
14890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14891 as_expr=expr
14892 else
14893 as_expr=false
14896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14897 as_basename=basename
14898 else
14899 as_basename=false
14902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14903 as_dirname=dirname
14904 else
14905 as_dirname=false
14908 as_me=`$as_basename -- "$0" ||
14909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14910 X"$0" : 'X\(//\)$' \| \
14911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14912 $as_echo X/"$0" |
14913 sed '/^.*\/\([^/][^/]*\)\/*$/{
14914 s//\1/
14917 /^X\/\(\/\/\)$/{
14918 s//\1/
14921 /^X\/\(\/\).*/{
14922 s//\1/
14925 s/.*/./; q'`
14927 # Avoid depending upon Character Ranges.
14928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14931 as_cr_digits='0123456789'
14932 as_cr_alnum=$as_cr_Letters$as_cr_digits
14934 ECHO_C= ECHO_N= ECHO_T=
14935 case `echo -n x` in #(((((
14936 -n*)
14937 case `echo 'xy\c'` in
14938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14939 xy) ECHO_C='\c';;
14940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14941 ECHO_T=' ';;
14942 esac;;
14944 ECHO_N='-n';;
14945 esac
14947 rm -f conf$$ conf$$.exe conf$$.file
14948 if test -d conf$$.dir; then
14949 rm -f conf$$.dir/conf$$.file
14950 else
14951 rm -f conf$$.dir
14952 mkdir conf$$.dir 2>/dev/null
14954 if (echo >conf$$.file) 2>/dev/null; then
14955 if ln -s conf$$.file conf$$ 2>/dev/null; then
14956 as_ln_s='ln -s'
14957 # ... but there are two gotchas:
14958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14960 # In both cases, we have to default to `cp -pR'.
14961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14962 as_ln_s='cp -pR'
14963 elif ln conf$$.file conf$$ 2>/dev/null; then
14964 as_ln_s=ln
14965 else
14966 as_ln_s='cp -pR'
14968 else
14969 as_ln_s='cp -pR'
14971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14972 rmdir conf$$.dir 2>/dev/null
14975 # as_fn_mkdir_p
14976 # -------------
14977 # Create "$as_dir" as a directory, including parents if necessary.
14978 as_fn_mkdir_p ()
14981 case $as_dir in #(
14982 -*) as_dir=./$as_dir;;
14983 esac
14984 test -d "$as_dir" || eval $as_mkdir_p || {
14985 as_dirs=
14986 while :; do
14987 case $as_dir in #(
14988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14989 *) as_qdir=$as_dir;;
14990 esac
14991 as_dirs="'$as_qdir' $as_dirs"
14992 as_dir=`$as_dirname -- "$as_dir" ||
14993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14994 X"$as_dir" : 'X\(//\)[^/]' \| \
14995 X"$as_dir" : 'X\(//\)$' \| \
14996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14997 $as_echo X"$as_dir" |
14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14999 s//\1/
15002 /^X\(\/\/\)[^/].*/{
15003 s//\1/
15006 /^X\(\/\/\)$/{
15007 s//\1/
15010 /^X\(\/\).*/{
15011 s//\1/
15014 s/.*/./; q'`
15015 test -d "$as_dir" && break
15016 done
15017 test -z "$as_dirs" || eval "mkdir $as_dirs"
15018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15021 } # as_fn_mkdir_p
15022 if mkdir -p . 2>/dev/null; then
15023 as_mkdir_p='mkdir -p "$as_dir"'
15024 else
15025 test -d ./-p && rmdir ./-p
15026 as_mkdir_p=false
15030 # as_fn_executable_p FILE
15031 # -----------------------
15032 # Test if FILE is an executable regular file.
15033 as_fn_executable_p ()
15035 test -f "$1" && test -x "$1"
15036 } # as_fn_executable_p
15037 as_test_x='test -x'
15038 as_executable_p=as_fn_executable_p
15040 # Sed expression to map a string onto a valid CPP name.
15041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15043 # Sed expression to map a string onto a valid variable name.
15044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15047 exec 6>&1
15048 ## ----------------------------------- ##
15049 ## Main body of $CONFIG_STATUS script. ##
15050 ## ----------------------------------- ##
15051 _ASEOF
15052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055 # Save the log message, to keep $0 and so on meaningful, and to
15056 # report actual input values of CONFIG_FILES etc. instead of their
15057 # values after options handling.
15058 ac_log="
15059 This file was extended by $as_me, which was
15060 generated by GNU Autoconf 2.69. Invocation command line was
15062 CONFIG_FILES = $CONFIG_FILES
15063 CONFIG_HEADERS = $CONFIG_HEADERS
15064 CONFIG_LINKS = $CONFIG_LINKS
15065 CONFIG_COMMANDS = $CONFIG_COMMANDS
15066 $ $0 $@
15068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15071 _ACEOF
15073 case $ac_config_files in *"
15074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15075 esac
15077 case $ac_config_headers in *"
15078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15079 esac
15082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15083 # Files that config.status was made for.
15084 config_files="$ac_config_files"
15085 config_headers="$ac_config_headers"
15086 config_commands="$ac_config_commands"
15088 _ACEOF
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 ac_cs_usage="\
15092 \`$as_me' instantiates files and other configuration actions
15093 from templates according to the current configuration. Unless the files
15094 and actions are specified as TAGs, all are instantiated by default.
15096 Usage: $0 [OPTION]... [TAG]...
15098 -h, --help print this help, then exit
15099 -V, --version print version number and configuration settings, then exit
15100 --config print configuration, then exit
15101 -q, --quiet, --silent
15102 do not print progress messages
15103 -d, --debug don't remove temporary files
15104 --recheck update $as_me by reconfiguring in the same conditions
15105 --file=FILE[:TEMPLATE]
15106 instantiate the configuration file FILE
15107 --header=FILE[:TEMPLATE]
15108 instantiate the configuration header FILE
15110 Configuration files:
15111 $config_files
15113 Configuration headers:
15114 $config_headers
15116 Configuration commands:
15117 $config_commands
15119 Report bugs to the package provider."
15121 _ACEOF
15122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15123 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15124 ac_cs_version="\\
15125 config.status
15126 configured by $0, generated by GNU Autoconf 2.69,
15127 with options \\"\$ac_cs_config\\"
15129 Copyright (C) 2012 Free Software Foundation, Inc.
15130 This config.status script is free software; the Free Software Foundation
15131 gives unlimited permission to copy, distribute and modify it."
15133 ac_pwd='$ac_pwd'
15134 srcdir='$srcdir'
15135 test -n "\$AWK" || AWK=awk
15136 _ACEOF
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 # The default lists apply if the user does not specify any file.
15140 ac_need_defaults=:
15141 while test $# != 0
15143 case $1 in
15144 --*=?*)
15145 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15146 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15147 ac_shift=:
15149 --*=)
15150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15151 ac_optarg=
15152 ac_shift=:
15155 ac_option=$1
15156 ac_optarg=$2
15157 ac_shift=shift
15159 esac
15161 case $ac_option in
15162 # Handling of the options.
15163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15164 ac_cs_recheck=: ;;
15165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15166 $as_echo "$ac_cs_version"; exit ;;
15167 --config | --confi | --conf | --con | --co | --c )
15168 $as_echo "$ac_cs_config"; exit ;;
15169 --debug | --debu | --deb | --de | --d | -d )
15170 debug=: ;;
15171 --file | --fil | --fi | --f )
15172 $ac_shift
15173 case $ac_optarg in
15174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15175 '') as_fn_error $? "missing file argument" ;;
15176 esac
15177 as_fn_append CONFIG_FILES " '$ac_optarg'"
15178 ac_need_defaults=false;;
15179 --header | --heade | --head | --hea )
15180 $ac_shift
15181 case $ac_optarg in
15182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15183 esac
15184 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15185 ac_need_defaults=false;;
15186 --he | --h)
15187 # Conflict between --help and --header
15188 as_fn_error $? "ambiguous option: \`$1'
15189 Try \`$0 --help' for more information.";;
15190 --help | --hel | -h )
15191 $as_echo "$ac_cs_usage"; exit ;;
15192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15194 ac_cs_silent=: ;;
15196 # This is an error.
15197 -*) as_fn_error $? "unrecognized option: \`$1'
15198 Try \`$0 --help' for more information." ;;
15200 *) as_fn_append ac_config_targets " $1"
15201 ac_need_defaults=false ;;
15203 esac
15204 shift
15205 done
15207 ac_configure_extra_args=
15209 if $ac_cs_silent; then
15210 exec 6>/dev/null
15211 ac_configure_extra_args="$ac_configure_extra_args --silent"
15214 _ACEOF
15215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216 if \$ac_cs_recheck; then
15217 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15218 shift
15219 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15220 CONFIG_SHELL='$SHELL'
15221 export CONFIG_SHELL
15222 exec "\$@"
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 exec 5>>config.log
15229 echo
15230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15231 ## Running $as_me. ##
15232 _ASBOX
15233 $as_echo "$ac_log"
15234 } >&5
15236 _ACEOF
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 # INIT-COMMANDS
15242 aros_host_exe_suffix=${aros_host_exe_suffix}
15243 aros_tools_dir=${aros_tools_dir}
15244 aros_target_cpu=${aros_target_cpu}
15245 aros_target_arch=${aros_target_arch}
15246 aros_target_suffix=${aros_target_suffix}
15247 orig_target_nm=${orig_target_nm}
15248 orig_target_as=${orig_target_as}
15249 orig_target_ar=${orig_target_ar}
15250 orig_target_ranlib=${orig_target_ranlib}
15251 orig_target_objdump=${orig_target_objdump}
15252 orig_target_objcopy=${orig_target_objcopy}
15253 orig_target_strip=${orig_target_strip}
15254 aros_kernel_ld=${aros_kernel_ld}
15257 aros_tools_dir=${aros_tools_dir}
15260 _ACEOF
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15264 # Handling of arguments.
15265 for ac_config_target in $ac_config_targets
15267 case $ac_config_target in
15268 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15269 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15270 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15272 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15273 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15274 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15275 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15276 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15277 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15278 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15279 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15280 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15281 "${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" ;;
15282 "${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" ;;
15283 "${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" ;;
15284 "${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" ;;
15285 "${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" ;;
15286 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15287 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15288 "${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" ;;
15290 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15291 esac
15292 done
15295 # If the user did not use the arguments to specify the items to instantiate,
15296 # then the envvar interface is used. Set only those that are not.
15297 # We use the long form for the default assignment because of an extremely
15298 # bizarre bug on SunOS 4.1.3.
15299 if $ac_need_defaults; then
15300 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15301 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15305 # Have a temporary directory for convenience. Make it in the build tree
15306 # simply because there is no reason against having it here, and in addition,
15307 # creating and moving files from /tmp can sometimes cause problems.
15308 # Hook for its removal unless debugging.
15309 # Note that there is a small window in which the directory will not be cleaned:
15310 # after its creation but before its name has been assigned to `$tmp'.
15311 $debug ||
15313 tmp= ac_tmp=
15314 trap 'exit_status=$?
15315 : "${ac_tmp:=$tmp}"
15316 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15318 trap 'as_fn_exit 1' 1 2 13 15
15320 # Create a (secure) tmp directory for tmp files.
15323 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15324 test -d "$tmp"
15325 } ||
15327 tmp=./conf$$-$RANDOM
15328 (umask 077 && mkdir "$tmp")
15329 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15330 ac_tmp=$tmp
15332 # Set up the scripts for CONFIG_FILES section.
15333 # No need to generate them if there are no CONFIG_FILES.
15334 # This happens for instance with `./config.status config.h'.
15335 if test -n "$CONFIG_FILES"; then
15338 ac_cr=`echo X | tr X '\015'`
15339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15340 # But we know of no other shell where ac_cr would be empty at this
15341 # point, so we can use a bashism as a fallback.
15342 if test "x$ac_cr" = x; then
15343 eval ac_cr=\$\'\\r\'
15345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15347 ac_cs_awk_cr='\\r'
15348 else
15349 ac_cs_awk_cr=$ac_cr
15352 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15353 _ACEOF
15357 echo "cat >conf$$subs.awk <<_ACEOF" &&
15358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15359 echo "_ACEOF"
15360 } >conf$$subs.sh ||
15361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15363 ac_delim='%!_!# '
15364 for ac_last_try in false false false false false :; do
15365 . ./conf$$subs.sh ||
15366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15369 if test $ac_delim_n = $ac_delim_num; then
15370 break
15371 elif $ac_last_try; then
15372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15373 else
15374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15376 done
15377 rm -f conf$$subs.sh
15379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15380 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15381 _ACEOF
15382 sed -n '
15384 s/^/S["/; s/!.*/"]=/
15387 s/^[^!]*!//
15388 :repl
15389 t repl
15390 s/'"$ac_delim"'$//
15391 t delim
15394 s/\(.\{148\}\)..*/\1/
15395 t more1
15396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15399 b repl
15400 :more1
15401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15404 s/.\{148\}//
15405 t nl
15406 :delim
15408 s/\(.\{148\}\)..*/\1/
15409 t more2
15410 s/["\\]/\\&/g; s/^/"/; s/$/"/
15413 :more2
15414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15417 s/.\{148\}//
15418 t delim
15419 ' <conf$$subs.awk | sed '
15420 /^[^""]/{
15422 s/\n//
15424 ' >>$CONFIG_STATUS || ac_write_fail=1
15425 rm -f conf$$subs.awk
15426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15427 _ACAWK
15428 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15429 for (key in S) S_is_set[key] = 1
15430 FS = "\a"
15434 line = $ 0
15435 nfields = split(line, field, "@")
15436 substed = 0
15437 len = length(field[1])
15438 for (i = 2; i < nfields; i++) {
15439 key = field[i]
15440 keylen = length(key)
15441 if (S_is_set[key]) {
15442 value = S[key]
15443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15444 len += length(value) + length(field[++i])
15445 substed = 1
15446 } else
15447 len += 1 + keylen
15450 print line
15453 _ACAWK
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15458 else
15460 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15461 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15462 _ACEOF
15464 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15465 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15466 # trailing colons and then remove the whole line if VPATH becomes empty
15467 # (actually we leave an empty line to preserve line numbers).
15468 if test "x$srcdir" = x.; then
15469 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15471 s///
15472 s/^/:/
15473 s/[ ]*$/:/
15474 s/:\$(srcdir):/:/g
15475 s/:\${srcdir}:/:/g
15476 s/:@srcdir@:/:/g
15477 s/^:*//
15478 s/:*$//
15480 s/\(=[ ]*\).*/\1/
15482 s/\n//
15483 s/^[^=]*=[ ]*$//
15487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15488 fi # test -n "$CONFIG_FILES"
15490 # Set up the scripts for CONFIG_HEADERS section.
15491 # No need to generate them if there are no CONFIG_HEADERS.
15492 # This happens for instance with `./config.status Makefile'.
15493 if test -n "$CONFIG_HEADERS"; then
15494 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15495 BEGIN {
15496 _ACEOF
15498 # Transform confdefs.h into an awk script `defines.awk', embedded as
15499 # here-document in config.status, that substitutes the proper values into
15500 # config.h.in to produce config.h.
15502 # Create a delimiter string that does not exist in confdefs.h, to ease
15503 # handling of long lines.
15504 ac_delim='%!_!# '
15505 for ac_last_try in false false :; do
15506 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15507 if test -z "$ac_tt"; then
15508 break
15509 elif $ac_last_try; then
15510 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15511 else
15512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15514 done
15516 # For the awk script, D is an array of macro values keyed by name,
15517 # likewise P contains macro parameters if any. Preserve backslash
15518 # newline sequences.
15520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15521 sed -n '
15522 s/.\{148\}/&'"$ac_delim"'/g
15523 t rset
15524 :rset
15525 s/^[ ]*#[ ]*define[ ][ ]*/ /
15526 t def
15528 :def
15529 s/\\$//
15530 t bsnl
15531 s/["\\]/\\&/g
15532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15533 D["\1"]=" \3"/p
15534 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15536 :bsnl
15537 s/["\\]/\\&/g
15538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15539 D["\1"]=" \3\\\\\\n"\\/p
15540 t cont
15541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15542 t cont
15544 :cont
15546 s/.\{148\}/&'"$ac_delim"'/g
15547 t clear
15548 :clear
15549 s/\\$//
15550 t bsnlc
15551 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15553 :bsnlc
15554 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15555 b cont
15556 ' <confdefs.h | sed '
15557 s/'"$ac_delim"'/"\\\
15558 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 for (key in D) D_is_set[key] = 1
15562 FS = "\a"
15564 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15565 line = \$ 0
15566 split(line, arg, " ")
15567 if (arg[1] == "#") {
15568 defundef = arg[2]
15569 mac1 = arg[3]
15570 } else {
15571 defundef = substr(arg[1], 2)
15572 mac1 = arg[2]
15574 split(mac1, mac2, "(") #)
15575 macro = mac2[1]
15576 prefix = substr(line, 1, index(line, defundef) - 1)
15577 if (D_is_set[macro]) {
15578 # Preserve the white space surrounding the "#".
15579 print prefix "define", macro P[macro] D[macro]
15580 next
15581 } else {
15582 # Replace #undef with comments. This is necessary, for example,
15583 # in the case of _POSIX_SOURCE, which is predefined and required
15584 # on some systems where configure will not decide to define it.
15585 if (defundef == "undef") {
15586 print "/*", prefix defundef, macro, "*/"
15587 next
15591 { print }
15592 _ACAWK
15593 _ACEOF
15594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15596 fi # test -n "$CONFIG_HEADERS"
15599 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15600 shift
15601 for ac_tag
15603 case $ac_tag in
15604 :[FHLC]) ac_mode=$ac_tag; continue;;
15605 esac
15606 case $ac_mode$ac_tag in
15607 :[FHL]*:*);;
15608 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15609 :[FH]-) ac_tag=-:-;;
15610 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15611 esac
15612 ac_save_IFS=$IFS
15613 IFS=:
15614 set x $ac_tag
15615 IFS=$ac_save_IFS
15616 shift
15617 ac_file=$1
15618 shift
15620 case $ac_mode in
15621 :L) ac_source=$1;;
15622 :[FH])
15623 ac_file_inputs=
15624 for ac_f
15626 case $ac_f in
15627 -) ac_f="$ac_tmp/stdin";;
15628 *) # Look for the file first in the build tree, then in the source tree
15629 # (if the path is not absolute). The absolute path cannot be DOS-style,
15630 # because $ac_f cannot contain `:'.
15631 test -f "$ac_f" ||
15632 case $ac_f in
15633 [\\/$]*) false;;
15634 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15635 esac ||
15636 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15637 esac
15638 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15639 as_fn_append ac_file_inputs " '$ac_f'"
15640 done
15642 # Let's still pretend it is `configure' which instantiates (i.e., don't
15643 # use $as_me), people would be surprised to read:
15644 # /* config.h. Generated by config.status. */
15645 configure_input='Generated from '`
15646 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15647 `' by configure.'
15648 if test x"$ac_file" != x-; then
15649 configure_input="$ac_file. $configure_input"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15651 $as_echo "$as_me: creating $ac_file" >&6;}
15653 # Neutralize special characters interpreted by sed in replacement strings.
15654 case $configure_input in #(
15655 *\&* | *\|* | *\\* )
15656 ac_sed_conf_input=`$as_echo "$configure_input" |
15657 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15658 *) ac_sed_conf_input=$configure_input;;
15659 esac
15661 case $ac_tag in
15662 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15664 esac
15666 esac
15668 ac_dir=`$as_dirname -- "$ac_file" ||
15669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15670 X"$ac_file" : 'X\(//\)[^/]' \| \
15671 X"$ac_file" : 'X\(//\)$' \| \
15672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15673 $as_echo X"$ac_file" |
15674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15675 s//\1/
15678 /^X\(\/\/\)[^/].*/{
15679 s//\1/
15682 /^X\(\/\/\)$/{
15683 s//\1/
15686 /^X\(\/\).*/{
15687 s//\1/
15690 s/.*/./; q'`
15691 as_dir="$ac_dir"; as_fn_mkdir_p
15692 ac_builddir=.
15694 case "$ac_dir" in
15695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15698 # A ".." for each directory in $ac_dir_suffix.
15699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15700 case $ac_top_builddir_sub in
15701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15703 esac ;;
15704 esac
15705 ac_abs_top_builddir=$ac_pwd
15706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15707 # for backward compatibility:
15708 ac_top_builddir=$ac_top_build_prefix
15710 case $srcdir in
15711 .) # We are building in place.
15712 ac_srcdir=.
15713 ac_top_srcdir=$ac_top_builddir_sub
15714 ac_abs_top_srcdir=$ac_pwd ;;
15715 [\\/]* | ?:[\\/]* ) # Absolute name.
15716 ac_srcdir=$srcdir$ac_dir_suffix;
15717 ac_top_srcdir=$srcdir
15718 ac_abs_top_srcdir=$srcdir ;;
15719 *) # Relative name.
15720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15721 ac_top_srcdir=$ac_top_build_prefix$srcdir
15722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15723 esac
15724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15727 case $ac_mode in
15730 # CONFIG_FILE
15733 _ACEOF
15735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15736 # If the template does not know about datarootdir, expand it.
15737 # FIXME: This hack should be removed a few years after 2.60.
15738 ac_datarootdir_hack=; ac_datarootdir_seen=
15739 ac_sed_dataroot='
15740 /datarootdir/ {
15744 /@datadir@/p
15745 /@docdir@/p
15746 /@infodir@/p
15747 /@localedir@/p
15748 /@mandir@/p'
15749 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15750 *datarootdir*) ac_datarootdir_seen=yes;;
15751 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15753 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15754 _ACEOF
15755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756 ac_datarootdir_hack='
15757 s&@datadir@&$datadir&g
15758 s&@docdir@&$docdir&g
15759 s&@infodir@&$infodir&g
15760 s&@localedir@&$localedir&g
15761 s&@mandir@&$mandir&g
15762 s&\\\${datarootdir}&$datarootdir&g' ;;
15763 esac
15764 _ACEOF
15766 # Neutralize VPATH when `$srcdir' = `.'.
15767 # Shell code in configure.ac might set extrasub.
15768 # FIXME: do we really want to maintain this feature?
15769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15770 ac_sed_extra="$ac_vpsub
15771 $extrasub
15772 _ACEOF
15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15776 s|@configure_input@|$ac_sed_conf_input|;t t
15777 s&@top_builddir@&$ac_top_builddir_sub&;t t
15778 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15779 s&@srcdir@&$ac_srcdir&;t t
15780 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15781 s&@top_srcdir@&$ac_top_srcdir&;t t
15782 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15783 s&@builddir@&$ac_builddir&;t t
15784 s&@abs_builddir@&$ac_abs_builddir&;t t
15785 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15786 $ac_datarootdir_hack
15788 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15789 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15792 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15794 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15796 which seems to be undefined. Please make sure it is defined" >&5
15797 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15798 which seems to be undefined. Please make sure it is defined" >&2;}
15800 rm -f "$ac_tmp/stdin"
15801 case $ac_file in
15802 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15803 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15804 esac \
15805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15809 # CONFIG_HEADER
15811 if test x"$ac_file" != x-; then
15813 $as_echo "/* $configure_input */" \
15814 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15815 } >"$ac_tmp/config.h" \
15816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15817 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15819 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15820 else
15821 rm -f "$ac_file"
15822 mv "$ac_tmp/config.h" "$ac_file" \
15823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15825 else
15826 $as_echo "/* $configure_input */" \
15827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15828 || as_fn_error $? "could not create -" "$LINENO" 5
15832 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15833 $as_echo "$as_me: executing $ac_file commands" >&6;}
15835 esac
15838 case $ac_file$ac_mode in
15839 "compiler_executable":C)
15840 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15841 mkdir -p $prefix
15842 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15843 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15845 echo ${prefix2}
15846 echo ${prefix3}
15847 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15849 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15850 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15851 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15852 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15853 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15854 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15855 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15857 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15859 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15861 esac
15862 done # for ac_tag
15865 as_fn_exit 0
15866 _ACEOF
15867 ac_clean_files=$ac_clean_files_save
15869 test $ac_write_fail = 0 ||
15870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15873 # configure is writing to config.log, and then calls config.status.
15874 # config.status does its own redirection, appending to config.log.
15875 # Unfortunately, on DOS this fails, as config.log is still kept open
15876 # by configure, so config.status won't be able to write to it; its
15877 # output is simply discarded. So we exec the FD to /dev/null,
15878 # effectively closing config.log, so it can be properly (re)opened and
15879 # appended to by config.status. When coming back to configure, we
15880 # need to make the FD available again.
15881 if test "$no_create" != yes; then
15882 ac_cs_success=:
15883 ac_config_status_args=
15884 test "$silent" = yes &&
15885 ac_config_status_args="$ac_config_status_args --quiet"
15886 exec 5>/dev/null
15887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15888 exec 5>>config.log
15889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15890 # would make configure fail if this is the last instruction.
15891 $ac_cs_success || as_fn_exit 1
15893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15900 #XXX compatability...
15901 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15903 if test -n "$aros_shared_cflags" ; then
15904 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15905 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg