if the compiler supports it, don't warn about unused command line options by default
[AROS.git] / configure
blobd3cfa20bebcb1777e2722a6eb0cbc8eb02105941
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_ldflags
658 aros_host_x11_cflags
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_target_strip_flags
673 aros_target_genmap
674 aros_debug_ldflags
675 aros_debug_aflags
676 aros_debug_cflags
677 aros_target_cflags
678 aros_kernel_ldflags
679 aros_kernel_objcflags
680 aros_kernel_includes
681 aros_kernel_cflags
682 aros_kernel_sysroot
683 aros_config_ldflags
684 aros_config_aflags
685 aros_config_cflags
686 aros_nowarn_flags
687 aros_config_sysroot
688 aros_shared_ldflags
689 aros_shared_aflags
690 aros_shared_cflags
691 aros_arch_libs
692 aros_compiler_libs
693 spec_obj_format
694 aros_object_format
695 aros_shared_ld
696 aros_shared_default
697 aros_target_nm
698 aros_target_strip
699 aros_target_objcopy
700 aros_target_objdump
701 aros_target_cc_path
702 aros_target_cc_includes
703 aros_target_ld
704 aros_target_as
705 aros_target_cpp
706 aros_target_cxx
707 aros_target_cc
708 aros_plain_ar
709 aros_plain_nm
710 aros_target_ranlib
711 aros_target_ar
712 aros_target_suffix
713 aros_target_variant
714 aros_target_cpu_mode
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_def_cc
735 aros_host_cpp
736 aros_host_cpu
737 aros_host_arch
738 aros_cc_pre
739 aros_amigaos_compliance
740 AROS_PORTSSRCDIR
741 AROS_CROSSTOOLSDIR
742 SRCDIR
743 AROS_BUILDDIR_UNIX
744 AROS_BUILDDIR
745 aros_build_host
746 aros_target_toolchain
747 aros_flavour_uc
748 aros_flavour
749 aros_cpu
750 aros_arch
751 SDL_LIBS
752 SDL_CFLAGS
753 SDL_CONFIG
754 X_EXTRA_LIBS
755 X_LIBS
756 X_PRE_LIBS
757 X_CFLAGS
758 XMKMF
759 kernel_cflags_iquote_end
760 kernel_cflags_iquote
761 host_cflags_iquote_end
762 host_cflags_iquote
763 aros_toolchain
764 aros_target_nostdlib_ldflags
765 aros_target_detach_ldflags
766 aros_target_nix_ldflags
767 aros_target_nostartup_ldflags
768 aros_target_nostdinc_cflags
769 aros_kernel_rescomp
770 orig_target_objdump
771 orig_target_objcopy
772 orig_target_strip
773 orig_target_nm
774 orig_target_ranlib
775 orig_target_ar
776 orig_target_as
777 orig_target_ld
778 orig_target_cxx
779 orig_target_cc
780 orig_target_cpp
781 aros_kernel_objdump
782 aros_kernel_objcopy
783 aros_kernel_strip
784 aros_kernel_nm
785 aros_kernel_ranlib
786 aros_kernel_ar
787 aros_kernel_as
788 aros_kernel_ld
789 aros_kernel_cxx
790 aros_kernel_cc
791 aros_kernel_cpp
792 target_gcc_version
794 android_tool
795 CCACHE
796 DISTCC
797 LIBOBJS
798 EGREP
799 GREP
801 TEST
804 libpng_incdir
805 libpng_libextra
806 libpng
807 arosconfig_use_libpngconfig
808 pkgpyexecdir
809 pyexecdir
810 pkgpythondir
811 pythondir
812 PYTHON_PLATFORM
813 PYTHON_EXEC_PREFIX
814 PYTHON_PREFIX
815 PYTHON_VERSION
816 PYTHON
817 PATCH
818 CHMOD
820 PPMTOILBM
821 PNGTOPNM
822 FLEX
823 BISON
826 UNIQ
827 SORT
828 TOUCH
829 MKDIR
830 ECHO
834 aros_host_strip
835 aros_host_ranlib
836 aros_host_ar
837 aros_host_automake
838 aros_host_autoheader
839 aros_host_autoconf
840 aros_host_aclocal
841 aros_host_ld
842 MMAKE
845 ac_ct_CC
846 CFLAGS
848 OBJEXT
849 EXEEXT
850 ac_ct_CXX
851 CPPFLAGS
852 LDFLAGS
853 CXXFLAGS
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 with_c_compiler
905 with_cxx_compiler
906 enable_libpng_config
907 with_toolchain
908 enable_build_type
909 enable_debug
910 enable_distcc
911 enable_ccache
912 with_kernel_gcc_version
913 with_optimization
914 with_paranoia
915 enable_target_variant
916 with_xcode
917 with_sdk_version
918 with_sdk
919 with_ndk
920 with_ndk_version
921 with_apk_version
922 enable_amigaos_compliance
923 with_kernel_toolchain_prefix
924 with_elf_toolchain_prefix
925 with_aros_toolchain
926 enable_crosstools
927 with_aros_toolchain_install
928 with_binutils_version
929 with_gcc_version
930 enable_objc
931 enable_java
932 with_cpu
933 with_fpu
934 with_float
935 with_portssources
936 with_bootloader
937 with_iconset
938 with_theme
939 enable_includes
940 with_resolution
941 with_serial_debug
942 enable_palm_debug_hack
943 enable_usb30_code
944 enable_nesting_supervisor
945 enable_mmu
946 enable_x11_hidd
947 with_x
948 enable_x11_shm
949 enable_x11_vidmode
950 enable_sdl_hidd
951 with_sdl_prefix
952 with_sdl_exec_prefix
953 enable_sdltest
954 enable_dbus
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
960 CXXFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
966 CFLAGS
968 PYTHON
969 XMKMF'
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1024 # If the previous option needs an argument, assign it.
1025 if test -n "$ac_prev"; then
1026 eval $ac_prev=\$ac_option
1027 ac_prev=
1028 continue
1031 case $ac_option in
1032 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 *=) ac_optarg= ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error $? "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $? "missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $? "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $? "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 X features:
1568 --x-includes=DIR X include files are in DIR
1569 --x-libraries=DIR X library files are in DIR
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1577 if test -n "$ac_init_help"; then
1579 cat <<\_ACEOF
1581 Optional Features:
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --disable-libpng-config disable libpng-config test and configuration
1586 --enable-build-type=TYPE
1587 Select the build type. Available types are:
1588 personal, nightly, snapshot, milestone, release. Do
1589 NOT use this option unless you know what you are
1590 doing! (default=personal)
1591 --enable-debug=list Enable different types of debug. Commas or
1592 whitespaces can be used to separate the items in the
1593 list. Available types of debug are: all, none,
1594 messages, stack, mungwall, modules, symbols. If no
1595 list is provided then "all" is assumed.
1596 (default=none)
1597 --enable-distcc Use distcc as a front end to the compiler
1598 (default=no).
1599 --enable-ccache Use ccache as a front end to the compiler
1600 (default=no).
1601 --enable-target-variant=NAME
1602 Enable a specific target variant(default=none)
1603 --enable-amigaos-compliance=VERSION
1604 Enforce userspace AmigaOS compliance to a specific
1605 KickStart version (default=none).
1606 --disable-crosstools Do not build cross-compiler toolchain
1607 --enable-objc Enable Objectve-C support (default=no)
1608 --enable-java Enable Java support (default=no)
1609 --enable-includes=dir Alternative system include directory
1610 --enable-palm-debug-hack
1611 Enable palm debug output hack in palm native
1612 (default=no)
1613 --enable-usb30-code Enable usb3.0 code (default=no)
1614 --enable-nesting-supervisor
1615 Enable nesting supervisor support in unix
1616 (default=no)
1617 --disable-mmu Disable MMU support (default=enabled)
1618 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1619 --enable-x11-shm use X11 shared memory (default=auto)
1620 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1621 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1622 --disable-sdltest Do not try to compile and run a test SDL program
1623 --enable-dbus Enable DBUS support via dbus.library (default=no)
1625 Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-c-compiler=VERSION
1629 Use specified c compiler for building AROS
1630 --with-cxx-compiler=VERSION
1631 Use specified c++ compiler building AROS
1632 --with-toolchain=family Which toolchain family to crosscompile with
1633 (defaults to gnu)
1634 --with-kernel-gcc-version=VERSION
1635 Use gcc-VERSION for building bootstrap
1636 --with-optimization=FLAGS
1637 Use optimization flags FLAGS (default=-O2).
1638 --with-paranoia=FLAGS compiler warning flags to enable for paranoia
1639 --with-xcode=PATH Specify XCode path for iOS targets
1640 (default=/Developer).
1641 --with-sdk-version=VERSION
1642 Use iOS SDK version VERSION (default=4.1).
1643 --with-sdk=PATH Specify Android SDK path
1644 (default=$default_android_sdk).
1645 --with-ndk=PATH Specify Android NDK path (default=none).
1646 --with-sdk-version=LEVEL
1647 Use Android SDK for API LEVEL (default=12).
1648 --with-ndk-version=LEVEL
1649 Use Android NDK for API LEVEL (default=9).
1650 --with-apk-version=(release|debug)
1651 Which version of AROSBootstrap.apk to compile.
1652 Release version needs key for signing, debug version
1653 will only run in emulator. (default=release)
1654 --with-kernel-toolchain-prefix=...
1655 Specify crosscompile toolchain prefix for kernel
1656 objects
1657 --with-elf-toolchain-prefix=...
1658 Specify crosscompile toolchain prefix to wrap for
1659 AROS objects
1660 --with-aros-toolchain=PREFIX
1661 Specify prebuilt AROS toolchain. Use yes for default
1662 name
1663 --with-aros-toolchain-install=DIR
1664 Where to install or search for cross tools binaries
1665 --with-binutils-version=VERSION
1666 Use binutils-VERSION for building AROS
1667 --with-gcc-version=VERSION
1668 Compile gcc-VERSION for AROS
1669 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1670 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1671 --with-float=<spec> Specify floating point ABI
1672 (default=$gcc_default_float_abi).
1673 --with-portssources=DIR Where to download sourcecode for external ports
1674 --with-bootloader=NAME Use a specific bootloader
1675 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1676 --with-theme=NAME Use a specific GUI Theme
1677 --with-resolution=XRESxYRESxDEPTH
1678 Default resolution of the initial WorkbenchScreen
1679 --with-serial-debug Enable serial debug output in native (default=no)
1680 --with-x use the X Window System
1681 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1682 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1684 Some influential environment variables:
1685 CXX C++ compiler command
1686 CXXFLAGS C++ compiler flags
1687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1688 nonstandard directory <lib dir>
1689 LIBS libraries to pass to the linker, e.g. -l<library>
1690 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1691 you have headers in a nonstandard directory <include dir>
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 CPP C preprocessor
1695 PYTHON the Python interpreter
1696 XMKMF Path to xmkmf, Makefile generator for X Window System
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1702 _ACEOF
1703 ac_status=$?
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 continue
1712 ac_builddir=.
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723 esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1730 case $srcdir in
1731 .) # We are building in place.
1732 ac_srcdir=.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1739 *) # Relative name.
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1754 else
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 fi || ac_status=$?
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1758 done
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763 cat <<\_ACEOF
1764 configure
1765 generated by GNU Autoconf 2.69
1767 Copyright (C) 2012 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1770 _ACEOF
1771 exit
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_cxx_try_compile LINENO
1779 # ----------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_cxx_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_cxx_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_cxx_try_compile
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_cpp
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if eval \${$3+:} false; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1965 else
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1981 else
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.i conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 yes:no: )
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 no:yes:* )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_c_try_run ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2039 ac_status=$?
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2064 } # ac_fn_c_try_run
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval \${$3+:} false; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_header_compile
2097 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2098 # ----------------------------------------------------
2099 # Tries to find if the field MEMBER exists in type AGGR, after including
2100 # INCLUDES, setting cache variable VAR accordingly.
2101 ac_fn_c_check_member ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2105 $as_echo_n "checking for $2.$3... " >&6; }
2106 if eval \${$4+:} false; then :
2107 $as_echo_n "(cached) " >&6
2108 else
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2113 main ()
2115 static $2 ac_aggr;
2116 if (ac_aggr.$3)
2117 return 0;
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$4=yes"
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 main ()
2131 static $2 ac_aggr;
2132 if (sizeof ac_aggr.$3)
2133 return 0;
2135 return 0;
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 eval "$4=yes"
2140 else
2141 eval "$4=no"
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 eval ac_res=\$$4
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_member
2154 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2155 # ---------------------------------------------
2156 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2157 # accordingly.
2158 ac_fn_c_check_decl ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 as_decl_name=`echo $2|sed 's/ *(.*//'`
2162 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2164 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 #ifndef $as_decl_name
2175 #ifdef __cplusplus
2176 (void) $as_decl_use;
2177 #else
2178 (void) $as_decl_name;
2179 #endif
2180 #endif
2183 return 0;
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 eval "$3=yes"
2188 else
2189 eval "$3=no"
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_decl
2200 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2201 # -------------------------------------------
2202 # Tests whether TYPE exists after having included INCLUDES, setting cache
2203 # variable VAR accordingly.
2204 ac_fn_c_check_type ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 eval "$3=no"
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2217 main ()
2219 if (sizeof ($2))
2220 return 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2230 main ()
2232 if (sizeof (($2)))
2233 return 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2240 else
2241 eval "$3=yes"
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 eval ac_res=\$$3
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_c_check_type
2254 # ac_fn_c_check_func LINENO FUNC VAR
2255 # ----------------------------------
2256 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2257 ac_fn_c_check_func ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2269 #define $2 innocuous_$2
2271 /* System header to define __stub macros and hopefully few prototypes,
2272 which can conflict with char $2 (); below.
2273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2274 <limits.h> exists even on freestanding compilers. */
2276 #ifdef __STDC__
2277 # include <limits.h>
2278 #else
2279 # include <assert.h>
2280 #endif
2282 #undef $2
2284 /* Override any GCC internal prototype to avoid an error.
2285 Use char because int might match the return type of a GCC
2286 builtin and then its argument prototype would still apply. */
2287 #ifdef __cplusplus
2288 extern "C"
2289 #endif
2290 char $2 ();
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined __stub_$2 || defined __stub___$2
2295 choke me
2296 #endif
2299 main ()
2301 return $2 ();
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_link "$LINENO"; then :
2307 eval "$3=yes"
2308 else
2309 eval "$3=no"
2311 rm -f core conftest.err conftest.$ac_objext \
2312 conftest$ac_exeext conftest.$ac_ext
2314 eval ac_res=\$$3
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_func
2320 cat >config.log <<_ACEOF
2321 This file contains any messages produced by compilers while
2322 running configure, to aid debugging if configure makes a mistake.
2324 It was created by $as_me, which was
2325 generated by GNU Autoconf 2.69. Invocation command line was
2327 $ $0 $@
2329 _ACEOF
2330 exec 5>>config.log
2332 cat <<_ASUNAME
2333 ## --------- ##
2334 ## Platform. ##
2335 ## --------- ##
2337 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2338 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2339 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2340 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2341 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2343 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2344 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2346 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2347 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2348 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2349 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2350 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2351 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2352 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2354 _ASUNAME
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2362 done
2363 IFS=$as_save_IFS
2365 } >&5
2367 cat >&5 <<_ACEOF
2370 ## ----------- ##
2371 ## Core tests. ##
2372 ## ----------- ##
2374 _ACEOF
2377 # Keep a trace of the command line.
2378 # Strip out --no-create and --no-recursion so they do not pile up.
2379 # Strip out --silent because we don't want to record it for future runs.
2380 # Also quote any args containing shell meta-characters.
2381 # Make two passes to allow for proper duplicate-argument suppression.
2382 ac_configure_args=
2383 ac_configure_args0=
2384 ac_configure_args1=
2385 ac_must_keep_next=false
2386 for ac_pass in 1 2
2388 for ac_arg
2390 case $ac_arg in
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2394 continue ;;
2395 *\'*)
2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 esac
2398 case $ac_pass in
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2404 else
2405 case $ac_arg in
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 esac
2414 -* ) ac_must_keep_next=true ;;
2415 esac
2417 as_fn_append ac_configure_args " '$ac_arg'"
2419 esac
2420 done
2421 done
2422 { ac_configure_args0=; unset ac_configure_args0;}
2423 { ac_configure_args1=; unset ac_configure_args1;}
2425 # When interrupted or exit'd, cleanup temporary files, and complete
2426 # config.log. We remove comments because anyway the quotes in there
2427 # would cause problems or look ugly.
2428 # WARNING: Use '\'' to represent an apostrophe within the trap.
2429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430 trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2433 echo
2435 $as_echo "## ---------------- ##
2436 ## Cache variables. ##
2437 ## ---------------- ##"
2438 echo
2439 # The following way of writing the cache mishandles newlines in values,
2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2442 eval ac_val=\$$ac_var
2443 case $ac_val in #(
2444 *${as_nl}*)
2445 case $ac_var in #(
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 esac
2449 case $ac_var in #(
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2453 esac ;;
2454 esac
2455 done
2456 (set) 2>&1 |
2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2459 sed -n \
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 ;; #(
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2466 esac |
2467 sort
2469 echo
2471 $as_echo "## ----------------- ##
2472 ## Output variables. ##
2473 ## ----------------- ##"
2474 echo
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2478 case $ac_val in
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 esac
2481 $as_echo "$ac_var='\''$ac_val'\''"
2482 done | sort
2483 echo
2485 if test -n "$ac_subst_files"; then
2486 $as_echo "## ------------------- ##
2487 ## File substitutions. ##
2488 ## ------------------- ##"
2489 echo
2490 for ac_var in $ac_subst_files
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2501 if test -s confdefs.h; then
2502 $as_echo "## ----------- ##
2503 ## confdefs.h. ##
2504 ## ----------- ##"
2505 echo
2506 cat confdefs.h
2507 echo
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2512 } >&5
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 exit $exit_status
2517 for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519 done
2520 ac_signal=0
2522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2523 rm -f -r conftest* confdefs.h
2525 $as_echo "/* confdefs.h */" > confdefs.h
2527 # Predefined preprocessor variables.
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_NAME "$PACKAGE_NAME"
2531 _ACEOF
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535 _ACEOF
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2539 _ACEOF
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_STRING "$PACKAGE_STRING"
2543 _ACEOF
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_URL "$PACKAGE_URL"
2551 _ACEOF
2554 # Let the site file select an alternate cache file if it wants to.
2555 # Prefer an explicitly selected file to automatically selected ones.
2556 ac_site_file1=NONE
2557 ac_site_file2=NONE
2558 if test -n "$CONFIG_SITE"; then
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2564 esac
2565 elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2568 else
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2572 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574 test "x$ac_site_file" = xNONE && continue
2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
2579 . "$ac_site_file" \
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "failed to load site script $ac_site_file
2583 See \`config.log' for more details" "$LINENO" 5; }
2585 done
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2593 case $cache_file in
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2596 esac
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2601 >$cache_file
2604 as_fn_append ac_header_list " stdlib.h"
2605 as_fn_append ac_header_list " unistd.h"
2606 as_fn_append ac_header_list " sys/param.h"
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2616 set,)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,set)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,);;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2643 fi;;
2644 esac
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2647 case $ac_new_val in
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2650 esac
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 esac
2656 done
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 ac_aux_dir=
2677 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2678 if test -f "$ac_dir/install-sh"; then
2679 ac_aux_dir=$ac_dir
2680 ac_install_sh="$ac_aux_dir/install-sh -c"
2681 break
2682 elif test -f "$ac_dir/install.sh"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/install.sh -c"
2685 break
2686 elif test -f "$ac_dir/shtool"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/shtool install -c"
2689 break
2691 done
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2706 # Check what host we are running on.
2707 # If a target is not suggested, we use this one.
2708 # Note that what we call a target, Autoconf calls a host.
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2714 $as_echo_n "checking build system type... " >&6; }
2715 if ${ac_cv_build+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 ac_build_alias=$build_alias
2719 test "x$ac_build_alias" = x &&
2720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2721 test "x$ac_build_alias" = x &&
2722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2728 $as_echo "$ac_cv_build" >&6; }
2729 case $ac_cv_build in
2730 *-*-*) ;;
2731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2732 esac
2733 build=$ac_cv_build
2734 ac_save_IFS=$IFS; IFS='-'
2735 set x $ac_cv_build
2736 shift
2737 build_cpu=$1
2738 build_vendor=$2
2739 shift; shift
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2742 build_os=$*
2743 IFS=$ac_save_IFS
2744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2748 $as_echo_n "checking host system type... " >&6; }
2749 if ${ac_cv_host+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2754 else
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2761 $as_echo "$ac_cv_host" >&6; }
2762 case $ac_cv_host in
2763 *-*-*) ;;
2764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2765 esac
2766 host=$ac_cv_host
2767 ac_save_IFS=$IFS; IFS='-'
2768 set x $ac_cv_host
2769 shift
2770 host_cpu=$1
2771 host_vendor=$2
2772 shift; shift
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2775 host_os=$*
2776 IFS=$ac_save_IFS
2777 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2781 # Default versions for the gnu tools we build
2782 default_gcc_version="4.6.4"
2783 default_binutils_version="2.23.2"
2785 # The AROS target is slightly different to the normal GNU style
2786 # format. We don't have the middle part, and we reverse the order
2787 # of the $(CPU) and $(OS) bits.
2789 # Don't strip the version of the target yet, it might be
2790 # useful on some systems.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2793 $as_echo_n "checking for AROS style target... " >&6; }
2795 if test "$target" = "NONE" ; then
2796 target=$host_os-$host_cpu
2797 else
2798 if test "$target" = "" ; then
2799 target=$host_os-$host_cpu
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2803 $as_echo "$target" >&6; }
2805 if test "$host_os" = "mingw32" ; then
2806 PWDCMD="pwd -W"
2809 # Don't know where else to put this...
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2811 $as_echo_n "checking building AROS in... " >&6; }
2812 AROS_BUILDDIR=`${PWDCMD-pwd}`
2813 AROS_BUILDDIR_UNIX=${PWD}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2815 $as_echo "$AROS_BUILDDIR" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2818 $as_echo_n "checking AROS source in... " >&6; }
2819 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2820 SRCDIR=${srcpwd}
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2822 $as_echo "$SRCDIR" >&6; }
2824 # Parse the target field into something useful.
2826 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2827 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2830 # Some debug output, to be removed again.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2832 $as_echo_n "checking for target system (debug output)... " >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2834 $as_echo "$target_os" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2836 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2838 $as_echo "$target_cpu" >&6; }
2840 aros_nominal_width=800
2841 aros_nominal_height=600
2842 aros_nominal_depth=4
2845 default_c_compilers="gcc clang cc"
2847 # Check whether --with-c-compiler was given.
2848 if test "${with_c_compiler+set}" = set; then :
2849 withval=$with_c_compiler; use_c_compiler="$withval"
2850 else
2851 use_c_compiler=""
2854 if test "$use_c_compiler" = ""; then
2855 host_c_compilers="$default_c_compilers"
2856 else
2857 host_c_compilers="$use_c_compiler"
2860 default_cxx_compilers="g++ clang++ c++"
2862 # Check whether --with-cxx-compiler was given.
2863 if test "${with_cxx_compiler+set}" = set; then :
2864 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2865 else
2866 use_cxx_compiler=""
2869 if test "$use_cxx_compiler" = ""; then
2870 host_cxx_compilers="$default_cxx_compilers"
2871 else
2872 host_cxx_compilers="$use_cxx_compiler"
2876 # The first step is to find the host binaries.
2877 # Check for a compiler.
2878 # Due to a bug in autoconf check for c++ compiler first.
2879 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2880 ac_ext=cpp
2881 ac_cpp='$CXXCPP $CPPFLAGS'
2882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2885 if test -z "$CXX"; then
2886 if test -n "$CCC"; then
2887 CXX=$CCC
2888 else
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in ${host_cxx_compilers}
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CXX+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CXX"; then
2900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CXX=$ac_cv_prog_CXX
2920 if test -n "$CXX"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2922 $as_echo "$CXX" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CXX" && break
2930 done
2932 if test -z "$CXX"; then
2933 ac_ct_CXX=$CXX
2934 for ac_prog in ${host_cxx_compilers}
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$ac_ct_CXX"; then
2944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2964 if test -n "$ac_ct_CXX"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2966 $as_echo "$ac_ct_CXX" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CXX" && break
2974 done
2976 if test "x$ac_ct_CXX" = x; then
2977 CXX="g++"
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 CXX=$ac_ct_CXX
2991 # Provide some information about the compiler.
2992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2993 set X $ac_compile
2994 ac_compiler=$2
2995 for ac_option in --version -v -V -qversion; do
2996 { { ac_try="$ac_compiler $ac_option >&5"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3004 ac_status=$?
3005 if test -s conftest.err; then
3006 sed '10a\
3007 ... rest of stderr output deleted ...
3008 10q' conftest.err >conftest.er1
3009 cat conftest.er1 >&5
3011 rm -f conftest.er1 conftest.err
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3014 done
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3020 main ()
3024 return 0;
3026 _ACEOF
3027 ac_clean_files_save=$ac_clean_files
3028 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3029 # Try to create an executable without -o first, disregard a.out.
3030 # It will help us diagnose broken compilers, and finding out an intuition
3031 # of exeext.
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3033 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3034 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036 # The possible output files:
3037 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039 ac_rmfiles=
3040 for ac_file in $ac_files
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3044 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3045 esac
3046 done
3047 rm -f $ac_rmfiles
3049 if { { ac_try="$ac_link_default"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link_default") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; then :
3060 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3061 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3062 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3063 # so that the user can short-circuit this test for compilers unknown to
3064 # Autoconf.
3065 for ac_file in $ac_files ''
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 )
3071 [ab].out )
3072 # We found the default executable, but exeext='' is most
3073 # certainly right.
3074 break;;
3075 *.* )
3076 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3077 then :; else
3078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # We set ac_cv_exeext here because the later test for it is not
3081 # safe: cross compilers may not add the suffix if given an `-o'
3082 # argument, so we may need to know it at that point already.
3083 # Even if this section looks crufty: it has the advantage of
3084 # actually working.
3085 break;;
3087 break;;
3088 esac
3089 done
3090 test "$ac_cv_exeext" = no && ac_cv_exeext=
3092 else
3093 ac_file=''
3095 if test -z "$ac_file"; then :
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error 77 "C++ compiler cannot create executables
3104 See \`config.log' for more details" "$LINENO" 5; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3110 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3112 $as_echo "$ac_file" >&6; }
3113 ac_exeext=$ac_cv_exeext
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3118 $as_echo_n "checking for suffix of executables... " >&6; }
3119 if { { ac_try="$ac_link"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3133 # `rm'.
3134 for ac_file in conftest.exe conftest conftest.*; do
3135 test -f "$ac_file" || continue
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 break;;
3140 * ) break;;
3141 esac
3142 done
3143 else
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details" "$LINENO" 5; }
3149 rm -f conftest conftest$ac_cv_exeext
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3151 $as_echo "$ac_cv_exeext" >&6; }
3153 rm -f conftest.$ac_ext
3154 EXEEXT=$ac_cv_exeext
3155 ac_exeext=$EXEEXT
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 #include <stdio.h>
3160 main ()
3162 FILE *f = fopen ("conftest.out", "w");
3163 return ferror (f) || fclose (f) != 0;
3166 return 0;
3168 _ACEOF
3169 ac_clean_files="$ac_clean_files conftest.out"
3170 # Check that the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3173 $as_echo_n "checking whether we are cross compiling... " >&6; }
3174 if test "$cross_compiling" != yes; then
3175 { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }
3186 if { ac_try='./conftest$ac_cv_exeext'
3187 { { case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; }; then
3197 cross_compiling=no
3198 else
3199 if test "$cross_compiling" = maybe; then
3200 cross_compiling=yes
3201 else
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "cannot run C++ compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details" "$LINENO" 5; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3211 $as_echo "$cross_compiling" >&6; }
3213 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3216 $as_echo_n "checking for suffix of object files... " >&6; }
3217 if ${ac_cv_objext+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.o conftest.obj
3232 if { { ac_try="$ac_compile"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compile") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 for ac_file in conftest.o conftest.obj conftest.*; do
3244 test -f "$ac_file" || continue;
3245 case $ac_file in
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3248 break;;
3249 esac
3250 done
3251 else
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "cannot compute suffix of object files: cannot compile
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3263 $as_echo "$ac_cv_objext" >&6; }
3264 OBJEXT=$ac_cv_objext
3265 ac_objext=$OBJEXT
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3275 main ()
3277 #ifndef __GNUC__
3278 choke me
3279 #endif
3282 return 0;
3284 _ACEOF
3285 if ac_fn_cxx_try_compile "$LINENO"; then :
3286 ac_compiler_gnu=yes
3287 else
3288 ac_compiler_gnu=no
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3296 if test $ac_compiler_gnu = yes; then
3297 GXX=yes
3298 else
3299 GXX=
3301 ac_test_CXXFLAGS=${CXXFLAGS+set}
3302 ac_save_CXXFLAGS=$CXXFLAGS
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3305 if ${ac_cv_prog_cxx_g+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3309 ac_cxx_werror_flag=yes
3310 ac_cv_prog_cxx_g=no
3311 CXXFLAGS="-g"
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3324 ac_cv_prog_cxx_g=yes
3325 else
3326 CXXFLAGS=""
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3335 return 0;
3337 _ACEOF
3338 if ac_fn_cxx_try_compile "$LINENO"; then :
3340 else
3341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3342 CXXFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3347 main ()
3351 return 0;
3353 _ACEOF
3354 if ac_fn_cxx_try_compile "$LINENO"; then :
3355 ac_cv_prog_cxx_g=yes
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3366 if test "$ac_test_CXXFLAGS" = set; then
3367 CXXFLAGS=$ac_save_CXXFLAGS
3368 elif test $ac_cv_prog_cxx_g = yes; then
3369 if test "$GXX" = yes; then
3370 CXXFLAGS="-g -O2"
3371 else
3372 CXXFLAGS="-g"
3374 else
3375 if test "$GXX" = yes; then
3376 CXXFLAGS="-O2"
3377 else
3378 CXXFLAGS=
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 for ac_prog in ${host_c_compilers}
3395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3416 done
3417 done
3418 IFS=$as_save_IFS
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$CC" && break
3433 done
3435 if test -z "$CC"; then
3436 ac_ct_CC=$CC
3437 for ac_prog in ${host_c_compilers}
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="$ac_prog"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3476 test -n "$ac_ct_CC" && break
3477 done
3479 if test "x$ac_ct_CC" = x; then
3480 CC=""
3481 else
3482 case $cross_compiling:$ac_tool_warned in
3483 yes:)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486 ac_tool_warned=yes ;;
3487 esac
3488 CC=$ac_ct_CC
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details" "$LINENO" 5; }
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500 set X $ac_compile
3501 ac_compiler=$2
3502 for ac_option in --version -v -V -qversion; do
3503 { { ac_try="$ac_compiler $ac_option >&5"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511 ac_status=$?
3512 if test -s conftest.err; then
3513 sed '10a\
3514 ... rest of stderr output deleted ...
3515 10q' conftest.err >conftest.er1
3516 cat conftest.er1 >&5
3518 rm -f conftest.er1 conftest.err
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3521 done
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if ${ac_cv_c_compiler_gnu+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3534 #ifndef __GNUC__
3535 choke me
3536 #endif
3539 return 0;
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_compiler_gnu=yes
3544 else
3545 ac_compiler_gnu=no
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553 if test $ac_compiler_gnu = yes; then
3554 GCC=yes
3555 else
3556 GCC=
3558 ac_test_CFLAGS=${CFLAGS+set}
3559 ac_save_CFLAGS=$CFLAGS
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3562 if ${ac_cv_prog_cc_g+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3573 main ()
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_g=yes
3582 else
3583 CFLAGS=""
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3588 main ()
3592 return 0;
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3597 else
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3599 CFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_g=yes
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622 $as_echo "$ac_cv_prog_cc_g" >&6; }
3623 if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS=$ac_save_CFLAGS
3625 elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3631 else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640 if ${ac_cv_prog_cc_c89+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 ac_cv_prog_cc_c89=no
3644 ac_save_CC=$CC
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647 #include <stdarg.h>
3648 #include <stdio.h>
3649 struct stat;
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3654 char **p;
3655 int i;
3657 return p[i];
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3661 char *s;
3662 va_list v;
3663 va_start (v,p);
3664 s = g (p, va_arg (v,int));
3665 va_end (v);
3666 return s;
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3680 #define FOO(x) 'x'
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687 int argc;
3688 char **argv;
3690 main ()
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3694 return 0;
3696 _ACEOF
3697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_c89=$ac_arg
3704 rm -f core conftest.err conftest.$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706 done
3707 rm -f conftest.$ac_ext
3708 CC=$ac_save_CC
3711 # AC_CACHE_VAL
3712 case "x$ac_cv_prog_cc_c89" in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715 $as_echo "none needed" >&6; } ;;
3716 xno)
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;;
3720 CC="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723 esac
3724 if test "x$ac_cv_prog_cc_c89" != xno; then :
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 aros_host_def_cc="$CC"
3735 case $ac_cv_prog_cc_stdc in #(
3736 no) :
3737 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3738 *) :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3740 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3741 if ${ac_cv_prog_cc_c99+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_cv_prog_cc_c99=no
3745 ac_save_CC=$CC
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <stdarg.h>
3749 #include <stdbool.h>
3750 #include <stdlib.h>
3751 #include <wchar.h>
3752 #include <stdio.h>
3754 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3755 #define debug(...) fprintf (stderr, __VA_ARGS__)
3756 #define showlist(...) puts (#__VA_ARGS__)
3757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3758 static void
3759 test_varargs_macros (void)
3761 int x = 1234;
3762 int y = 5678;
3763 debug ("Flag");
3764 debug ("X = %d\n", x);
3765 showlist (The first, second, and third items.);
3766 report (x>y, "x is %d but y is %d", x, y);
3769 // Check long long types.
3770 #define BIG64 18446744073709551615ull
3771 #define BIG32 4294967295ul
3772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3773 #if !BIG_OK
3774 your preprocessor is broken;
3775 #endif
3776 #if BIG_OK
3777 #else
3778 your preprocessor is broken;
3779 #endif
3780 static long long int bignum = -9223372036854775807LL;
3781 static unsigned long long int ubignum = BIG64;
3783 struct incomplete_array
3785 int datasize;
3786 double data[];
3789 struct named_init {
3790 int number;
3791 const wchar_t *name;
3792 double average;
3795 typedef const char *ccp;
3797 static inline int
3798 test_restrict (ccp restrict text)
3800 // See if C++-style comments work.
3801 // Iterate through items via the restricted pointer.
3802 // Also check for declarations in for loops.
3803 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3804 continue;
3805 return 0;
3808 // Check varargs and va_copy.
3809 static void
3810 test_varargs (const char *format, ...)
3812 va_list args;
3813 va_start (args, format);
3814 va_list args_copy;
3815 va_copy (args_copy, args);
3817 const char *str;
3818 int number;
3819 float fnumber;
3821 while (*format)
3823 switch (*format++)
3825 case 's': // string
3826 str = va_arg (args_copy, const char *);
3827 break;
3828 case 'd': // int
3829 number = va_arg (args_copy, int);
3830 break;
3831 case 'f': // float
3832 fnumber = va_arg (args_copy, double);
3833 break;
3834 default:
3835 break;
3838 va_end (args_copy);
3839 va_end (args);
3843 main ()
3846 // Check bool.
3847 _Bool success = false;
3849 // Check restrict.
3850 if (test_restrict ("String literal") == 0)
3851 success = true;
3852 char *restrict newvar = "Another string";
3854 // Check varargs.
3855 test_varargs ("s, d' f .", "string", 65, 34.234);
3856 test_varargs_macros ();
3858 // Check flexible array members.
3859 struct incomplete_array *ia =
3860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3861 ia->datasize = 10;
3862 for (int i = 0; i < ia->datasize; ++i)
3863 ia->data[i] = i * 1.234;
3865 // Check named initializers.
3866 struct named_init ni = {
3867 .number = 34,
3868 .name = L"Test wide string",
3869 .average = 543.34343,
3872 ni.number = 58;
3874 int dynamic_array[ni.number];
3875 dynamic_array[ni.number - 1] = 543;
3877 // work around unused variable warnings
3878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3879 || dynamic_array[ni.number - 1] != 543);
3882 return 0;
3884 _ACEOF
3885 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c99=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c99" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c99" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903 xno)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c99"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3909 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c99" != xno; then :
3912 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 ac_cv_prog_cc_c89=no
3920 ac_save_CC=$CC
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdarg.h>
3924 #include <stdio.h>
3925 struct stat;
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930 char **p;
3931 int i;
3933 return p[i];
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3937 char *s;
3938 va_list v;
3939 va_start (v,p);
3940 s = g (p, va_arg (v,int));
3941 va_end (v);
3942 return s;
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3966 main ()
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3970 return 0;
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_c89=$ac_arg
3980 rm -f core conftest.err conftest.$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3982 done
3983 rm -f conftest.$ac_ext
3984 CC=$ac_save_CC
3987 # AC_CACHE_VAL
3988 case "x$ac_cv_prog_cc_c89" in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3992 xno)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3996 CC="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999 esac
4000 if test "x$ac_cv_prog_cc_c89" != xno; then :
4001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4002 else
4003 ac_cv_prog_cc_stdc=no
4008 esac
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4010 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4011 if ${ac_cv_prog_cc_stdc+:} false; then :
4012 $as_echo_n "(cached) " >&6
4015 case $ac_cv_prog_cc_stdc in #(
4016 no) :
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;; #(
4019 '') :
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;; #(
4022 *) :
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4024 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4025 esac
4027 ac_ext=c
4028 ac_cpp='$CPP $CPPFLAGS'
4029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4034 # On Suns, sometimes $CPP names a directory.
4035 if test -n "$CPP" && test -d "$CPP"; then
4036 CPP=
4038 if test -z "$CPP"; then
4039 if ${ac_cv_prog_CPP+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 # Double quotes because CPP needs to be expanded
4043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045 ac_preproc_ok=false
4046 for ac_c_preproc_warn_flag in '' yes
4048 # Use a header file that comes with gcc, so configuring glibc
4049 # with a fresh cross-compiler works.
4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051 # <limits.h> exists even on freestanding compilers.
4052 # On the NeXT, cc -E runs the code through the compiler's parser,
4053 # not just through cpp. "Syntax error" is here to catch this case.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #ifdef __STDC__
4057 # include <limits.h>
4058 #else
4059 # include <assert.h>
4060 #endif
4061 Syntax error
4062 _ACEOF
4063 if ac_fn_c_try_cpp "$LINENO"; then :
4065 else
4066 # Broken: fails on valid input.
4067 continue
4069 rm -f conftest.err conftest.i conftest.$ac_ext
4071 # OK, works on sane cases. Now check whether nonexistent headers
4072 # can be detected and how.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4076 _ACEOF
4077 if ac_fn_c_try_cpp "$LINENO"; then :
4078 # Broken: success on invalid input.
4079 continue
4080 else
4081 # Passes both tests.
4082 ac_preproc_ok=:
4083 break
4085 rm -f conftest.err conftest.i conftest.$ac_ext
4087 done
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.i conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok; then :
4091 break
4094 done
4095 ac_cv_prog_CPP=$CPP
4098 CPP=$ac_cv_prog_CPP
4099 else
4100 ac_cv_prog_CPP=$CPP
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4103 $as_echo "$CPP" >&6; }
4104 ac_preproc_ok=false
4105 for ac_c_preproc_warn_flag in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120 Syntax error
4121 _ACEOF
4122 if ac_fn_c_try_cpp "$LINENO"; then :
4124 else
4125 # Broken: fails on valid input.
4126 continue
4128 rm -f conftest.err conftest.i conftest.$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if ac_fn_c_try_cpp "$LINENO"; then :
4137 # Broken: success on invalid input.
4138 continue
4139 else
4140 # Passes both tests.
4141 ac_preproc_ok=:
4142 break
4144 rm -f conftest.err conftest.i conftest.$ac_ext
4146 done
4147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4148 rm -f conftest.i conftest.err conftest.$ac_ext
4149 if $ac_preproc_ok; then :
4151 else
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4155 See \`config.log' for more details" "$LINENO" 5; }
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 # Check for a compatible awk
4166 for ac_prog in gawk nawk
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_AWK+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$AWK"; then
4176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_AWK="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 AWK=$ac_cv_prog_AWK
4196 if test -n "$AWK"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4198 $as_echo "$AWK" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$AWK" && break
4206 done
4208 req_avail=yes
4209 if test "$AWK" = ""; then
4210 req_avail=no
4212 if test "$AWK" = "no"; then
4213 req_avail=no
4215 if test "$req_avail" = "no"; then
4216 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4218 # Extract the first word of "mmake", so it can be a program name with args.
4219 set dummy mmake; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_MMAKE+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$MMAKE"; then
4226 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_MMAKE="mmake "
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4245 MMAKE=$ac_cv_prog_MMAKE
4246 if test -n "$MMAKE"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4248 $as_echo "$MMAKE" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4256 # Perform some default variable assignments. Note all of these will be
4257 # Regenerated from the script, so there is no need to cache them.
4259 aros_build_host=$host
4260 aros_host_cpp="$CPP"
4261 aros_host_cc="$CC"
4262 aros_host_cxx="$CXX"
4263 if test "$GCC" = "yes"; then
4264 aros_gcc_ld=`$CC -print-prog-name=ld`
4265 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4266 set dummy `basename $aros_gcc_ld`; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_path_aros_host_ld+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 case $aros_host_ld in
4273 [\\/]* | ?:[\\/]*)
4274 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in `dirname $aros_gcc_ld`
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4293 esac
4295 aros_host_ld=$ac_cv_path_aros_host_ld
4296 if test -n "$aros_host_ld"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4298 $as_echo "$aros_host_ld" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4306 if test "$aros_host_ld" = ""; then
4307 # Extract the first word of "ld", so it can be a program name with args.
4308 set dummy ld; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_path_aros_host_ld+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 case $aros_host_ld in
4315 [\\/]* | ?:[\\/]*)
4316 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4335 esac
4337 aros_host_ld=$ac_cv_path_aros_host_ld
4338 if test -n "$aros_host_ld"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4340 $as_echo "$aros_host_ld" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4348 req_avail=yes
4349 if test "$aros_host_ld" = ""; then
4350 req_avail=no
4352 if test "$aros_host_ld" = "no"; then
4353 req_avail=no
4355 if test "$req_avail" = "no"; then
4356 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4358 aros_host_make="make"
4359 aros_host_cflags="$CFLAGS"
4360 aros_host_cxxflags="$CXXFLAGS"
4361 aros_host_ldflags="$LDFLAGS"
4362 aros_host_debug="-g -O0"
4363 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4364 aros_host_mkargs="--no-print-directory"
4365 aros_host_exe_suffix="$EXEEXT"
4366 aros_host_lib_suffix=""
4368 # Ignore all compliance, AROS ROMs = 0
4369 # KickStart v1.0 = 30
4370 # KickStart v1.3 = 34
4371 # KickStart v2.0 = 37
4372 # KickStart v3.0 = 39
4373 # KickStart v3.1 = 40
4374 # AmigaOS v3.5 = 44
4375 aros_amigaos_compliance=0
4377 for ac_prog in aclocal aclocal19 aclocal-1.9
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$aros_host_aclocal"; then
4387 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_aros_host_aclocal="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4402 IFS=$as_save_IFS
4406 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4407 if test -n "$aros_host_aclocal"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4409 $as_echo "$aros_host_aclocal" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4416 test -n "$aros_host_aclocal" && break
4417 done
4419 for ac_prog in autoconf autoconf259 autoconf253
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -n "$aros_host_autoconf"; then
4429 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_aros_host_autoconf="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4444 IFS=$as_save_IFS
4448 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4449 if test -n "$aros_host_autoconf"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4451 $as_echo "$aros_host_autoconf" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$aros_host_autoconf" && break
4459 done
4461 for ac_prog in autoheader autoheader259 autoheader253
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -n "$aros_host_autoheader"; then
4471 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_aros_host_autoheader="$ac_prog"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4486 IFS=$as_save_IFS
4490 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4491 if test -n "$aros_host_autoheader"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4493 $as_echo "$aros_host_autoheader" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4500 test -n "$aros_host_autoheader" && break
4501 done
4503 for ac_prog in automake automake19 automake-1.9
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_aros_host_automake+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$aros_host_automake"; then
4513 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_aros_host_automake="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 aros_host_automake=$ac_cv_prog_aros_host_automake
4533 if test -n "$aros_host_automake"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4535 $as_echo "$aros_host_automake" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$aros_host_automake" && break
4543 done
4546 req_avail=yes
4547 if test "$aros_host_aclocal" = ""; then
4548 req_avail=no
4550 if test "$aros_host_aclocal" = "no"; then
4551 req_avail=no
4553 if test "$req_avail" = "no"; then
4554 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4556 req_avail=yes
4557 if test "$aros_host_automake" = ""; then
4558 req_avail=no
4560 if test "$aros_host_automake" = "no"; then
4561 req_avail=no
4563 if test "$req_avail" = "no"; then
4564 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4567 case "$aros_host_cc" in
4568 *clang*)
4569 aros_host_cc_pipe=""
4571 *gcc*)
4572 aros_host_cc_pipe="-pipe"
4574 icc)
4575 aros_host_cc_pipe=""
4578 aros_host_cc_pipe=""
4580 esac
4582 aros_kernel_cc_includes=""
4583 aros_target_cc_includes=""
4584 host_cc_elf=yes
4586 # ----------------------------------------------------------------------------------------
4587 # Host-specific defaults
4589 # This is the main host configuration section. It is where the host
4590 # can change the values of any variables it needs to change. We do
4591 # not look at anything that compiles to the target yet, we'll get
4592 # to that later.
4594 case "$host_os" in
4595 aros*)
4596 aros_host_arch="aros"
4597 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4598 case "$host_cpu" in
4599 *i?86*)
4600 aros_host_cpu="i386"
4602 *x86_64*)
4603 aros_host_cpu="x86_64"
4605 *powerpc*)
4606 aros_host_cpu="ppc"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4610 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4611 aros_host_cpu="$host_cpu"
4613 esac
4616 linux*)
4617 aros_host_arch="linux"
4618 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4619 android_build_os="linux-x86"
4620 android_tool="android"
4621 default_android_sdk="/opt/android-sdk-linux_x86"
4622 case "$host_cpu" in
4623 *i?86*)
4624 aros_host_cpu="i386"
4626 *x86_64*)
4627 aros_host_cpu="x86_64"
4629 *m68k*)
4630 aros_host_cpu="m68k"
4632 *powerpc*)
4633 aros_host_cpu="ppc"
4635 *arm*)
4636 aros_host_cpu="arm"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4640 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4641 aros_host_cpu="$host_cpu"
4643 esac
4646 freebsd*)
4647 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4648 aros_host_make="gmake"
4649 aros_host_arch="freebsd"
4650 aros_host_cpu="i386"
4652 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4654 case $host_os in
4655 freebsd[234]*)
4656 aros_object_format="elf_i386"
4660 aros_object_format="elf_i386_fbsd"
4662 esac
4666 darwin*)
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4668 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4669 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 test "$cross_compiling" = yes &&
4673 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4674 if test -r "/usr/include/stddef.h"; then
4675 ac_cv_file__usr_include_stddef_h=yes
4676 else
4677 ac_cv_file__usr_include_stddef_h=no
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4681 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4682 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4684 else
4685 as_fn_error $? "XCode incorrectly configured!
4686 please run 'xcode-select --install' before
4687 re-running configure" "$LINENO" 5
4691 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4692 aros_host_arch="darwin"
4693 host_cc_elf=no
4694 if [ -z ${SED+x} ]; then SED="gsed"; fi
4695 android_build_os="darwin-x86"
4696 android_tool="android"
4697 default_android_sdk="/android-sdk-mac_x86"
4698 case "$host_cpu" in
4699 *i?86*)
4700 aros_host_cpu="i386"
4702 *x86_64*)
4703 aros_host_cpu="x86_64"
4705 *powerpc*)
4706 aros_host_cpu="ppc"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4710 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4711 aros_host_cpu="$host_cpu"
4713 esac
4715 aros_host_ldflags="$aros_host_ldflags -liconv"
4719 dragonfly*)
4720 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4721 aros_host_make="gmake"
4722 aros_host_arch="dragonfly"
4723 case $host_cpu in
4724 *i?86*)
4725 aros_host_cpu="i386"
4727 *amd64*)
4728 aros_host_cpu="x86_64"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4732 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4733 aros_host_cpu="$host_cpu"
4735 esac
4738 netbsd*)
4739 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4740 aros_host_make="gmake"
4741 aros_host_arch="netbsd"
4742 case "$host_cpu" in
4743 *i?86*)
4744 aros_host_cpu="i386"
4746 *m68k*)
4747 aros_host_cpu="m68k"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4751 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4752 aros_host_cpu="$host_cpu"
4754 esac
4755 aros_host_lib_suffix=".0.0"
4758 openbsd*)
4759 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4760 aros_host_make="gmake"
4761 aros_host_arch="openbsd"
4762 case "$host_cpu" in
4763 *i?86*)
4764 aros_host_cpu="i386"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4768 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4769 aros_host_cpu="$host_cpu"
4771 esac
4774 solaris*)
4775 aros_host_arch="solaris"
4776 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4777 case "$host_cpu" in
4778 *i?86*)
4779 aros_host_cpu="i386"
4781 *sparc*)
4782 aros_host_cpu="sparc"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4786 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4787 aros_host_cpu="$host_cpu"
4789 esac
4792 morphos*)
4793 aros_host_arch="morphos"
4794 aros_host_cpu="ppc"
4795 host_cc_elf=no
4798 amiga*)
4799 aros_host_arch="amiga"
4800 host_cc_elf=no
4801 SORT="/gg/bin/sort"
4802 TEST="/gg/bin/test"
4803 UNIQ="/gg/bin/uniq"
4804 FOR="for"
4805 TOUCH="/gg/bin/touch"
4806 case "$host_cpu" in
4807 *m68k*)
4808 aros_host_cpu="m68k"
4810 *powerpc*)
4811 aros_host_cpu="ppc"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4815 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4816 aros_host_cpu="$host_cpu"
4818 esac
4821 cygwin*)
4822 aros_host_arch="cygwin"
4823 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4824 host_cc_elf=no
4825 android_build_os="windows"
4826 android_tool="android.bat"
4827 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4829 case "$host_cpu" in
4830 *i?86*)
4831 aros_host_cpu="i386"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4835 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4836 aros_host_cpu="$host_cpu"
4838 esac
4841 mingw32*)
4842 aros_host_arch="mingw32"
4843 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4844 host_cc_elf=no
4845 android_build_os="windows"
4846 android_tool="android.bat"
4847 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4849 libpng_libextra="-lws2_32"
4851 case "$host_cpu" in
4852 *i?86*)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4855 $as_echo_n "checking for Windows native gcc target... " >&6; }
4856 host_cpu=`gcc -dumpmachine`
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4858 $as_echo "$host_cpu" >&6; }
4861 esac
4863 case "$host_cpu" in
4864 *i?86*)
4865 aros_host_cpu="i386"
4868 mingw32*)
4869 aros_host_cpu="i386"
4872 *x86_64*)
4873 aros_host_cpu="x86_64"
4874 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4879 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4880 aros_host_cpu="$host_cpu"
4882 esac
4885 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4887 esac
4889 # Extract the first word of "ar", so it can be a program name with args.
4890 set dummy ar; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_aros_host_ar+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$aros_host_ar"; then
4897 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_aros_host_ar="ar cr"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 aros_host_ar=$ac_cv_prog_aros_host_ar
4917 if test -n "$aros_host_ar"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4919 $as_echo "$aros_host_ar" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 req_avail=yes
4927 if test "$aros_host_ar" = ""; then
4928 req_avail=no
4930 if test "$aros_host_ar" = "no"; then
4931 req_avail=no
4933 if test "$req_avail" = "no"; then
4934 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4936 # Extract the first word of "ranlib", so it can be a program name with args.
4937 set dummy ranlib; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$aros_host_ranlib"; then
4944 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_aros_host_ranlib="ranlib "
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4964 if test -n "$aros_host_ranlib"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4966 $as_echo "$aros_host_ranlib" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 req_avail=yes
4974 if test "$aros_host_ranlib" = ""; then
4975 req_avail=no
4977 if test "$aros_host_ranlib" = "no"; then
4978 req_avail=no
4980 if test "$req_avail" = "no"; then
4981 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4983 # Extract the first word of "strip", so it can be a program name with args.
4984 set dummy strip; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_aros_host_strip+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$aros_host_strip"; then
4991 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_aros_host_strip="strip "
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 aros_host_strip=$ac_cv_prog_aros_host_strip
5011 if test -n "$aros_host_strip"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5013 $as_echo "$aros_host_strip" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 req_avail=yes
5021 if test "$aros_host_strip" = ""; then
5022 req_avail=no
5024 if test "$aros_host_strip" = "no"; then
5025 req_avail=no
5027 if test "$req_avail" = "no"; then
5028 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5031 # Extract the first word of "rm", so it can be a program name with args.
5032 set dummy rm; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_RM+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$RM"; then
5039 ac_cv_prog_RM="$RM" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_RM="rm -rf"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 RM=$ac_cv_prog_RM
5059 if test -n "$RM"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5061 $as_echo "$RM" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 req_avail=yes
5069 if test "$RM" = ""; then
5070 req_avail=no
5072 if test "$RM" = "no"; then
5073 req_avail=no
5075 if test "$req_avail" = "no"; then
5076 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5078 # Extract the first word of "cp", so it can be a program name with args.
5079 set dummy cp; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_CP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$CP"; then
5086 ac_cv_prog_CP="$CP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_CP="cp "
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 CP=$ac_cv_prog_CP
5106 if test -n "$CP"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5108 $as_echo "$CP" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 req_avail=yes
5116 if test "$CP" = ""; then
5117 req_avail=no
5119 if test "$CP" = "no"; then
5120 req_avail=no
5122 if test "$req_avail" = "no"; then
5123 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5125 # Extract the first word of "mv", so it can be a program name with args.
5126 set dummy mv; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_MV+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$MV"; then
5133 ac_cv_prog_MV="$MV" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_MV="mv "
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 MV=$ac_cv_prog_MV
5153 if test -n "$MV"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5155 $as_echo "$MV" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 req_avail=yes
5163 if test "$MV" = ""; then
5164 req_avail=no
5166 if test "$MV" = "no"; then
5167 req_avail=no
5169 if test "$req_avail" = "no"; then
5170 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5172 # Extract the first word of "echo", so it can be a program name with args.
5173 set dummy echo; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ECHO+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ECHO"; then
5180 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ECHO="echo "
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ECHO=$ac_cv_prog_ECHO
5200 if test -n "$ECHO"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5202 $as_echo "$ECHO" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 req_avail=yes
5210 if test "$ECHO" = ""; then
5211 req_avail=no
5213 if test "$ECHO" = "no"; then
5214 req_avail=no
5216 if test "$req_avail" = "no"; then
5217 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5219 # Extract the first word of "mkdir", so it can be a program name with args.
5220 set dummy mkdir; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_MKDIR+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$MKDIR"; then
5227 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_MKDIR="mkdir -p"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 MKDIR=$ac_cv_prog_MKDIR
5247 if test -n "$MKDIR"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5249 $as_echo "$MKDIR" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5256 req_avail=yes
5257 if test "$MKDIR" = ""; then
5258 req_avail=no
5260 if test "$MKDIR" = "no"; then
5261 req_avail=no
5263 if test "$req_avail" = "no"; then
5264 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "touch", so it can be a program name with args.
5267 set dummy touch; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_TOUCH+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$TOUCH"; then
5274 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_TOUCH="touch "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 TOUCH=$ac_cv_prog_TOUCH
5294 if test -n "$TOUCH"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5296 $as_echo "$TOUCH" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 req_avail=yes
5304 if test "$TOUCH" = ""; then
5305 req_avail=no
5307 if test "$TOUCH" = "no"; then
5308 req_avail=no
5310 if test "$req_avail" = "no"; then
5311 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5313 # Extract the first word of "sort", so it can be a program name with args.
5314 set dummy sort; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_SORT+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$SORT"; then
5321 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_SORT="sort "
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 SORT=$ac_cv_prog_SORT
5341 if test -n "$SORT"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5343 $as_echo "$SORT" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5350 req_avail=yes
5351 if test "$SORT" = ""; then
5352 req_avail=no
5354 if test "$SORT" = "no"; then
5355 req_avail=no
5357 if test "$req_avail" = "no"; then
5358 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5360 # Extract the first word of "uniq", so it can be a program name with args.
5361 set dummy uniq; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_UNIQ+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$UNIQ"; then
5368 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_UNIQ="uniq "
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 UNIQ=$ac_cv_prog_UNIQ
5388 if test -n "$UNIQ"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5390 $as_echo "$UNIQ" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5397 req_avail=yes
5398 if test "$UNIQ" = ""; then
5399 req_avail=no
5401 if test "$UNIQ" = "no"; then
5402 req_avail=no
5404 if test "$req_avail" = "no"; then
5405 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5407 # Extract the first word of "true", so it can be a program name with args.
5408 set dummy true; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NOP+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$NOP"; then
5415 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_NOP="true "
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 NOP=$ac_cv_prog_NOP
5435 if test -n "$NOP"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5437 $as_echo "$NOP" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 req_avail=yes
5445 if test "$NOP" = ""; then
5446 req_avail=no
5448 if test "$NOP" = "no"; then
5449 req_avail=no
5451 if test "$req_avail" = "no"; then
5452 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5454 # Extract the first word of "cat", so it can be a program name with args.
5455 set dummy cat; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_CAT+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$CAT"; then
5462 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_CAT="cat "
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5475 done
5476 done
5477 IFS=$as_save_IFS
5481 CAT=$ac_cv_prog_CAT
5482 if test -n "$CAT"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5484 $as_echo "$CAT" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 req_avail=yes
5492 if test "$CAT" = ""; then
5493 req_avail=no
5495 if test "$CAT" = "no"; then
5496 req_avail=no
5498 if test "$req_avail" = "no"; then
5499 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5501 # Extract the first word of "bison", so it can be a program name with args.
5502 set dummy bison; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_BISON+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$BISON"; then
5509 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_BISON="bison "
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5528 BISON=$ac_cv_prog_BISON
5529 if test -n "$BISON"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5531 $as_echo "$BISON" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5538 req_avail=yes
5539 if test "$BISON" = ""; then
5540 req_avail=no
5542 if test "$BISON" = "no"; then
5543 req_avail=no
5545 if test "$req_avail" = "no"; then
5546 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5548 # Extract the first word of "flex", so it can be a program name with args.
5549 set dummy flex; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_FLEX+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$FLEX"; then
5556 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_FLEX="flex "
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5571 IFS=$as_save_IFS
5575 FLEX=$ac_cv_prog_FLEX
5576 if test -n "$FLEX"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5578 $as_echo "$FLEX" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5585 req_avail=yes
5586 if test "$FLEX" = ""; then
5587 req_avail=no
5589 if test "$FLEX" = "no"; then
5590 req_avail=no
5592 if test "$req_avail" = "no"; then
5593 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5595 # Extract the first word of "pngtopnm", so it can be a program name with args.
5596 set dummy pngtopnm; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$PNGTOPNM"; then
5603 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_PNGTOPNM="pngtopnm "
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5616 done
5617 done
5618 IFS=$as_save_IFS
5622 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5623 if test -n "$PNGTOPNM"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5625 $as_echo "$PNGTOPNM" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5632 req_avail=yes
5633 if test "$PNGTOPNM" = ""; then
5634 req_avail=no
5636 if test "$PNGTOPNM" = "no"; then
5637 req_avail=no
5639 if test "$req_avail" = "no"; then
5640 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5642 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5643 set dummy ppmtoilbm; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$PPMTOILBM"; then
5650 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5670 if test -n "$PPMTOILBM"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5672 $as_echo "$PPMTOILBM" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5679 req_avail=yes
5680 if test "$PPMTOILBM" = ""; then
5681 req_avail=no
5683 if test "$PPMTOILBM" = "no"; then
5684 req_avail=no
5686 if test "$req_avail" = "no"; then
5687 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5689 # Extract the first word of "sed", so it can be a program name with args.
5690 set dummy sed; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_prog_SED+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 if test -n "$SED"; then
5697 ac_cv_prog_SED="$SED" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_SED="sed "
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5710 done
5711 done
5712 IFS=$as_save_IFS
5716 SED=$ac_cv_prog_SED
5717 if test -n "$SED"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5719 $as_echo "$SED" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5726 req_avail=yes
5727 if test "$SED" = ""; then
5728 req_avail=no
5730 if test "$SED" = "no"; then
5731 req_avail=no
5733 if test "$req_avail" = "no"; then
5734 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5736 # Extract the first word of "chmod", so it can be a program name with args.
5737 set dummy chmod; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_CHMOD+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$CHMOD"; then
5744 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_CHMOD="chmod "
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5757 done
5758 done
5759 IFS=$as_save_IFS
5763 CHMOD=$ac_cv_prog_CHMOD
5764 if test -n "$CHMOD"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5766 $as_echo "$CHMOD" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5773 req_avail=yes
5774 if test "$CHMOD" = ""; then
5775 req_avail=no
5777 if test "$CHMOD" = "no"; then
5778 req_avail=no
5780 if test "$req_avail" = "no"; then
5781 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5783 # Extract the first word of "patch", so it can be a program name with args.
5784 set dummy patch; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_PATCH+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$PATCH"; then
5791 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_PATCH="patch "
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5804 done
5805 done
5806 IFS=$as_save_IFS
5810 PATCH=$ac_cv_prog_PATCH
5811 if test -n "$PATCH"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5813 $as_echo "$PATCH" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5820 req_avail=yes
5821 if test "$PATCH" = ""; then
5822 req_avail=no
5824 if test "$PATCH" = "no"; then
5825 req_avail=no
5827 if test "$req_avail" = "no"; then
5828 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5837 if test -n "$PYTHON"; then
5838 # If the user set $PYTHON, use it and don't search something else.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5840 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5841 prog="import sys
5842 # split strings by '.' and convert to numeric. Append some zeros
5843 # because we need at least 4 digits for the hex conversion.
5844 # map returns an iterator in Python 3.0 and a list in 2.x
5845 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5846 minverhex = 0
5847 # xrange is not present in Python 3.0 and range returns an iterator
5848 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5849 sys.exit(sys.hexversion < minverhex)"
5850 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5851 ($PYTHON -c "$prog") >&5 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; then :
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 $as_echo "yes" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5862 am_display_PYTHON=$PYTHON
5863 else
5864 # Otherwise, try each interpreter until we find one that satisfies
5865 # VERSION.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5867 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5868 if ${am_cv_pathless_PYTHON+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5872 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5873 test "$am_cv_pathless_PYTHON" = none && break
5874 prog="import sys
5875 # split strings by '.' and convert to numeric. Append some zeros
5876 # because we need at least 4 digits for the hex conversion.
5877 # map returns an iterator in Python 3.0 and a list in 2.x
5878 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5879 minverhex = 0
5880 # xrange is not present in Python 3.0 and range returns an iterator
5881 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5882 sys.exit(sys.hexversion < minverhex)"
5883 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5884 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; then :
5888 break
5890 done
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5893 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5894 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5895 if test "$am_cv_pathless_PYTHON" = none; then
5896 PYTHON=:
5897 else
5898 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5899 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_path_PYTHON+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 case $PYTHON in
5906 [\\/]* | ?:[\\/]*)
5907 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5921 done
5922 done
5923 IFS=$as_save_IFS
5926 esac
5928 PYTHON=$ac_cv_path_PYTHON
5929 if test -n "$PYTHON"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5931 $as_echo "$PYTHON" >&6; }
5932 else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5939 am_display_PYTHON=$am_cv_pathless_PYTHON
5943 if test "$PYTHON" = :; then
5944 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5945 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5949 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5950 if ${am_cv_python_version+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5956 $as_echo "$am_cv_python_version" >&6; }
5957 PYTHON_VERSION=$am_cv_python_version
5961 PYTHON_PREFIX='${prefix}'
5963 PYTHON_EXEC_PREFIX='${exec_prefix}'
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5968 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5969 if ${am_cv_python_platform+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5975 $as_echo "$am_cv_python_platform" >&6; }
5976 PYTHON_PLATFORM=$am_cv_python_platform
5979 # Just factor out some code duplication.
5980 am_python_setup_sysconfig="\
5981 import sys
5982 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5983 # with python 3.x. See automake bug#10227.
5984 try:
5985 import sysconfig
5986 except ImportError:
5987 can_use_sysconfig = 0
5988 else:
5989 can_use_sysconfig = 1
5990 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5991 # <https://github.com/pypa/virtualenv/issues/118>
5992 try:
5993 from platform import python_implementation
5994 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5995 can_use_sysconfig = 0
5996 except ImportError:
5997 pass"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6001 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6002 if ${am_cv_python_pythondir+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test "x$prefix" = xNONE
6006 then
6007 am_py_prefix=$ac_default_prefix
6008 else
6009 am_py_prefix=$prefix
6011 am_cv_python_pythondir=`$PYTHON -c "
6012 $am_python_setup_sysconfig
6013 if can_use_sysconfig:
6014 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6015 else:
6016 from distutils import sysconfig
6017 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6018 sys.stdout.write(sitedir)"`
6019 case $am_cv_python_pythondir in
6020 $am_py_prefix*)
6021 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6022 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6025 case $am_py_prefix in
6026 /usr|/System*) ;;
6028 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6030 esac
6032 esac
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6036 $as_echo "$am_cv_python_pythondir" >&6; }
6037 pythondir=$am_cv_python_pythondir
6041 pkgpythondir=\${pythondir}/$PACKAGE
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6045 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6046 if ${am_cv_python_pyexecdir+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test "x$exec_prefix" = xNONE
6050 then
6051 am_py_exec_prefix=$am_py_prefix
6052 else
6053 am_py_exec_prefix=$exec_prefix
6055 am_cv_python_pyexecdir=`$PYTHON -c "
6056 $am_python_setup_sysconfig
6057 if can_use_sysconfig:
6058 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6059 else:
6060 from distutils import sysconfig
6061 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6062 sys.stdout.write(sitedir)"`
6063 case $am_cv_python_pyexecdir in
6064 $am_py_exec_prefix*)
6065 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6066 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6069 case $am_py_exec_prefix in
6070 /usr|/System*) ;;
6072 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6074 esac
6076 esac
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6080 $as_echo "$am_cv_python_pyexecdir" >&6; }
6081 pyexecdir=$am_cv_python_pyexecdir
6085 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6093 # Check whether --enable-libpng-config was given.
6094 if test "${enable_libpng_config+set}" = set; then :
6095 enableval=$enable_libpng_config;
6098 if test "$enable_libpng_config" != "no"; then
6099 # Extract the first word of "libpng-config", so it can be a program name with args.
6100 set dummy libpng-config; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$arosconfig_use_libpngconfig"; then
6107 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6120 done
6121 done
6122 IFS=$as_save_IFS
6124 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6127 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6128 if test -n "$arosconfig_use_libpngconfig"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6130 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6138 if test "$arosconfig_use_libpngconfig" = "yes"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6140 $as_echo_n "checking libpng-config library... " >&6; }
6141 libpng_incdir="`libpng-config --cflags`"
6142 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6143 libpng="`libpng-config --libs`"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6145 $as_echo "$libpng" >&6; }
6146 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6149 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6150 if ${ac_cv_lib_png_png_read_png+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-lpng $LIBS"
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6158 /* Override any GCC internal prototype to avoid an error.
6159 Use char because int might match the return type of a GCC
6160 builtin and then its argument prototype would still apply. */
6161 #ifdef __cplusplus
6162 extern "C"
6163 #endif
6164 char png_read_png ();
6166 main ()
6168 return png_read_png ();
6170 return 0;
6172 _ACEOF
6173 if ac_fn_c_try_link "$LINENO"; then :
6174 ac_cv_lib_png_png_read_png=yes
6175 else
6176 ac_cv_lib_png_png_read_png=no
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6183 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6184 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6185 libpng="-lpng"
6186 else
6187 libpng="no"
6190 if test "$libpng_libextra" != ""; then
6191 if test "$libpng" != "no"; then
6192 libpng_libextra="$libpng_libextra $libpng"
6196 req_avail=yes
6197 if test "$libpng" = ""; then
6198 req_avail=no
6200 if test "$libpng" = "no"; then
6201 req_avail=no
6203 if test "$req_avail" = "no"; then
6204 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6210 FOR=for
6212 IF=if
6214 TEST=test
6216 CMP=cmp
6220 # Check for some includes for the X11 HIDD and the kernel
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6224 if ${ac_cv_path_GREP+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -z "$GREP"; then
6228 ac_path_GREP_found=false
6229 # Loop through the user's path and test for each of PROGNAME-LIST
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_prog in grep ggrep; do
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6238 as_fn_executable_p "$ac_path_GREP" || continue
6239 # Check for GNU ac_path_GREP and select it if it is found.
6240 # Check for GNU $ac_path_GREP
6241 case `"$ac_path_GREP" --version 2>&1` in
6242 *GNU*)
6243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6245 ac_count=0
6246 $as_echo_n 0123456789 >"conftest.in"
6247 while :
6249 cat "conftest.in" "conftest.in" >"conftest.tmp"
6250 mv "conftest.tmp" "conftest.in"
6251 cp "conftest.in" "conftest.nl"
6252 $as_echo 'GREP' >> "conftest.nl"
6253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255 as_fn_arith $ac_count + 1 && ac_count=$as_val
6256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6257 # Best one so far, save it but keep looking for a better one
6258 ac_cv_path_GREP="$ac_path_GREP"
6259 ac_path_GREP_max=$ac_count
6261 # 10*(2^10) chars as input seems more than enough
6262 test $ac_count -gt 10 && break
6263 done
6264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265 esac
6267 $ac_path_GREP_found && break 3
6268 done
6269 done
6270 done
6271 IFS=$as_save_IFS
6272 if test -z "$ac_cv_path_GREP"; then
6273 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6275 else
6276 ac_cv_path_GREP=$GREP
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6281 $as_echo "$ac_cv_path_GREP" >&6; }
6282 GREP="$ac_cv_path_GREP"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6286 $as_echo_n "checking for egrep... " >&6; }
6287 if ${ac_cv_path_EGREP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6291 then ac_cv_path_EGREP="$GREP -E"
6292 else
6293 if test -z "$EGREP"; then
6294 ac_path_EGREP_found=false
6295 # Loop through the user's path and test for each of PROGNAME-LIST
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_prog in egrep; do
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6304 as_fn_executable_p "$ac_path_EGREP" || continue
6305 # Check for GNU ac_path_EGREP and select it if it is found.
6306 # Check for GNU $ac_path_EGREP
6307 case `"$ac_path_EGREP" --version 2>&1` in
6308 *GNU*)
6309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6311 ac_count=0
6312 $as_echo_n 0123456789 >"conftest.in"
6313 while :
6315 cat "conftest.in" "conftest.in" >"conftest.tmp"
6316 mv "conftest.tmp" "conftest.in"
6317 cp "conftest.in" "conftest.nl"
6318 $as_echo 'EGREP' >> "conftest.nl"
6319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6321 as_fn_arith $ac_count + 1 && ac_count=$as_val
6322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6323 # Best one so far, save it but keep looking for a better one
6324 ac_cv_path_EGREP="$ac_path_EGREP"
6325 ac_path_EGREP_max=$ac_count
6327 # 10*(2^10) chars as input seems more than enough
6328 test $ac_count -gt 10 && break
6329 done
6330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6331 esac
6333 $ac_path_EGREP_found && break 3
6334 done
6335 done
6336 done
6337 IFS=$as_save_IFS
6338 if test -z "$ac_cv_path_EGREP"; then
6339 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6341 else
6342 ac_cv_path_EGREP=$EGREP
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6348 $as_echo "$ac_cv_path_EGREP" >&6; }
6349 EGREP="$ac_cv_path_EGREP"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6353 $as_echo_n "checking for ANSI C header files... " >&6; }
6354 if ${ac_cv_header_stdc+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 #include <stdlib.h>
6360 #include <stdarg.h>
6361 #include <string.h>
6362 #include <float.h>
6365 main ()
6369 return 0;
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"; then :
6373 ac_cv_header_stdc=yes
6374 else
6375 ac_cv_header_stdc=no
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 if test $ac_cv_header_stdc = yes; then
6380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <string.h>
6385 _ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "memchr" >/dev/null 2>&1; then :
6389 else
6390 ac_cv_header_stdc=no
6392 rm -f conftest*
6396 if test $ac_cv_header_stdc = yes; then
6397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <stdlib.h>
6402 _ACEOF
6403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6404 $EGREP "free" >/dev/null 2>&1; then :
6406 else
6407 ac_cv_header_stdc=no
6409 rm -f conftest*
6413 if test $ac_cv_header_stdc = yes; then
6414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6415 if test "$cross_compiling" = yes; then :
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 #include <ctype.h>
6421 #include <stdlib.h>
6422 #if ((' ' & 0x0FF) == 0x020)
6423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6425 #else
6426 # define ISLOWER(c) \
6427 (('a' <= (c) && (c) <= 'i') \
6428 || ('j' <= (c) && (c) <= 'r') \
6429 || ('s' <= (c) && (c) <= 'z'))
6430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6431 #endif
6433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6435 main ()
6437 int i;
6438 for (i = 0; i < 256; i++)
6439 if (XOR (islower (i), ISLOWER (i))
6440 || toupper (i) != TOUPPER (i))
6441 return 2;
6442 return 0;
6444 _ACEOF
6445 if ac_fn_c_try_run "$LINENO"; then :
6447 else
6448 ac_cv_header_stdc=no
6450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6451 conftest.$ac_objext conftest.beam conftest.$ac_ext
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6457 $as_echo "$ac_cv_header_stdc" >&6; }
6458 if test $ac_cv_header_stdc = yes; then
6460 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6466 inttypes.h stdint.h unistd.h
6467 do :
6468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6472 cat >>confdefs.h <<_ACEOF
6473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 _ACEOF
6478 done
6481 for ac_header in sys/ipc.h sys/shm.h \
6482 sys/mmap.h sys/mman.h sysexits.h \
6483 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6485 do :
6486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491 _ACEOF
6495 done
6498 for ac_header in sys/mount.h
6499 do :
6500 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6502 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6503 cat >>confdefs.h <<_ACEOF
6504 #define HAVE_SYS_MOUNT_H 1
6505 _ACEOF
6509 done
6512 ac_header_dirent=no
6513 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6514 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6516 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6517 if eval \${$as_ac_Header+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6523 #include <$ac_hdr>
6526 main ()
6528 if ((DIR *) 0)
6529 return 0;
6531 return 0;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 eval "$as_ac_Header=yes"
6536 else
6537 eval "$as_ac_Header=no"
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 eval ac_res=\$$as_ac_Header
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6547 _ACEOF
6549 ac_header_dirent=$ac_hdr; break
6552 done
6553 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6554 if test $ac_header_dirent = dirent.h; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6556 $as_echo_n "checking for library containing opendir... " >&6; }
6557 if ${ac_cv_search_opendir+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 ac_func_search_save_LIBS=$LIBS
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6564 /* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 char opendir ();
6572 main ()
6574 return opendir ();
6576 return 0;
6578 _ACEOF
6579 for ac_lib in '' dir; do
6580 if test -z "$ac_lib"; then
6581 ac_res="none required"
6582 else
6583 ac_res=-l$ac_lib
6584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 ac_cv_search_opendir=$ac_res
6589 rm -f core conftest.err conftest.$ac_objext \
6590 conftest$ac_exeext
6591 if ${ac_cv_search_opendir+:} false; then :
6592 break
6594 done
6595 if ${ac_cv_search_opendir+:} false; then :
6597 else
6598 ac_cv_search_opendir=no
6600 rm conftest.$ac_ext
6601 LIBS=$ac_func_search_save_LIBS
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6604 $as_echo "$ac_cv_search_opendir" >&6; }
6605 ac_res=$ac_cv_search_opendir
6606 if test "$ac_res" != no; then :
6607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6613 $as_echo_n "checking for library containing opendir... " >&6; }
6614 if ${ac_cv_search_opendir+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 ac_func_search_save_LIBS=$LIBS
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 /* Override any GCC internal prototype to avoid an error.
6622 Use char because int might match the return type of a GCC
6623 builtin and then its argument prototype would still apply. */
6624 #ifdef __cplusplus
6625 extern "C"
6626 #endif
6627 char opendir ();
6629 main ()
6631 return opendir ();
6633 return 0;
6635 _ACEOF
6636 for ac_lib in '' x; do
6637 if test -z "$ac_lib"; then
6638 ac_res="none required"
6639 else
6640 ac_res=-l$ac_lib
6641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6643 if ac_fn_c_try_link "$LINENO"; then :
6644 ac_cv_search_opendir=$ac_res
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext
6648 if ${ac_cv_search_opendir+:} false; then :
6649 break
6651 done
6652 if ${ac_cv_search_opendir+:} false; then :
6654 else
6655 ac_cv_search_opendir=no
6657 rm conftest.$ac_ext
6658 LIBS=$ac_func_search_save_LIBS
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6661 $as_echo "$ac_cv_search_opendir" >&6; }
6662 ac_res=$ac_cv_search_opendir
6663 if test "$ac_res" != no; then :
6664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6671 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6672 if ${ac_cv_header_stat_broken+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <sys/stat.h>
6680 #if defined S_ISBLK && defined S_IFDIR
6681 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6682 #endif
6684 #if defined S_ISBLK && defined S_IFCHR
6685 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6686 #endif
6688 #if defined S_ISLNK && defined S_IFREG
6689 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6690 #endif
6692 #if defined S_ISSOCK && defined S_IFREG
6693 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6694 #endif
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698 ac_cv_header_stat_broken=no
6699 else
6700 ac_cv_header_stat_broken=yes
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6705 $as_echo "$ac_cv_header_stat_broken" >&6; }
6706 if test $ac_cv_header_stat_broken = yes; then
6708 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6713 $as_echo_n "checking for ANSI C header files... " >&6; }
6714 if ${ac_cv_header_stdc+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <stdlib.h>
6720 #include <stdarg.h>
6721 #include <string.h>
6722 #include <float.h>
6725 main ()
6729 return 0;
6731 _ACEOF
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 ac_cv_header_stdc=yes
6734 else
6735 ac_cv_header_stdc=no
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 if test $ac_cv_header_stdc = yes; then
6740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <string.h>
6745 _ACEOF
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "memchr" >/dev/null 2>&1; then :
6749 else
6750 ac_cv_header_stdc=no
6752 rm -f conftest*
6756 if test $ac_cv_header_stdc = yes; then
6757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 #include <stdlib.h>
6762 _ACEOF
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then :
6766 else
6767 ac_cv_header_stdc=no
6769 rm -f conftest*
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then :
6777 else
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #include <ctype.h>
6781 #include <stdlib.h>
6782 #if ((' ' & 0x0FF) == 0x020)
6783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6785 #else
6786 # define ISLOWER(c) \
6787 (('a' <= (c) && (c) <= 'i') \
6788 || ('j' <= (c) && (c) <= 'r') \
6789 || ('s' <= (c) && (c) <= 'z'))
6790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6791 #endif
6793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6795 main ()
6797 int i;
6798 for (i = 0; i < 256; i++)
6799 if (XOR (islower (i), ISLOWER (i))
6800 || toupper (i) != TOUPPER (i))
6801 return 2;
6802 return 0;
6804 _ACEOF
6805 if ac_fn_c_try_run "$LINENO"; then :
6807 else
6808 ac_cv_header_stdc=no
6810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6811 conftest.$ac_objext conftest.beam conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6817 $as_echo "$ac_cv_header_stdc" >&6; }
6818 if test $ac_cv_header_stdc = yes; then
6820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6826 if ${ac_cv_header_sys_wait_h+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <sys/wait.h>
6833 #ifndef WEXITSTATUS
6834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6835 #endif
6836 #ifndef WIFEXITED
6837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6838 #endif
6841 main ()
6843 int s;
6844 wait (&s);
6845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6847 return 0;
6849 _ACEOF
6850 if ac_fn_c_try_compile "$LINENO"; then :
6851 ac_cv_header_sys_wait_h=yes
6852 else
6853 ac_cv_header_sys_wait_h=no
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6859 if test $ac_cv_header_sys_wait_h = yes; then
6861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6866 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6867 if ${ac_cv_header_time+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <sys/types.h>
6873 #include <sys/time.h>
6874 #include <time.h>
6877 main ()
6879 if ((struct tm *) 0)
6880 return 0;
6882 return 0;
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 ac_cv_header_time=yes
6887 else
6888 ac_cv_header_time=no
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6893 $as_echo "$ac_cv_header_time" >&6; }
6894 if test $ac_cv_header_time = yes; then
6896 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6900 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6901 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6905 _ACEOF
6908 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6913 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6914 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6916 cat >>confdefs.h <<_ACEOF
6917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6918 _ACEOF
6921 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6923 else
6924 case " $LIBOBJS " in
6925 *" fileblocks.$ac_objext "* ) ;;
6926 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6928 esac
6933 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6934 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_STRUCT_STAT_ST_RDEV 1
6938 _ACEOF
6941 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6947 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6948 if ${ac_cv_struct_tm+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 #include <sys/types.h>
6954 #include <time.h>
6957 main ()
6959 struct tm tm;
6960 int *p = &tm.tm_sec;
6961 return !p;
6963 return 0;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"; then :
6967 ac_cv_struct_tm=time.h
6968 else
6969 ac_cv_struct_tm=sys/time.h
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6974 $as_echo "$ac_cv_struct_tm" >&6; }
6975 if test $ac_cv_struct_tm = sys/time.h; then
6977 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6981 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6982 #include <$ac_cv_struct_tm>
6985 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_STRUCT_TM_TM_ZONE 1
6989 _ACEOF
6994 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6996 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6998 else
6999 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7001 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7002 ac_have_decl=1
7003 else
7004 ac_have_decl=0
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_TZNAME $ac_have_decl
7009 _ACEOF
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7012 $as_echo_n "checking for tzname... " >&6; }
7013 if ${ac_cv_var_tzname+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #include <time.h>
7019 #if !HAVE_DECL_TZNAME
7020 extern char *tzname[];
7021 #endif
7024 main ()
7026 return tzname[0][0];
7028 return 0;
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 ac_cv_var_tzname=yes
7033 else
7034 ac_cv_var_tzname=no
7036 rm -f core conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7040 $as_echo "$ac_cv_var_tzname" >&6; }
7041 if test $ac_cv_var_tzname = yes; then
7043 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7048 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7049 if test "x$ac_cv_type_off_t" = xyes; then :
7051 else
7053 cat >>confdefs.h <<_ACEOF
7054 #define off_t long int
7055 _ACEOF
7059 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7060 if test "x$ac_cv_type_pid_t" = xyes; then :
7062 else
7064 cat >>confdefs.h <<_ACEOF
7065 #define pid_t int
7066 _ACEOF
7070 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7071 if test "x$ac_cv_type_size_t" = xyes; then :
7073 else
7075 cat >>confdefs.h <<_ACEOF
7076 #define size_t unsigned int
7077 _ACEOF
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7082 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7083 if ${ac_cv_type_uid_t+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #include <sys/types.h>
7090 _ACEOF
7091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 $EGREP "uid_t" >/dev/null 2>&1; then :
7093 ac_cv_type_uid_t=yes
7094 else
7095 ac_cv_type_uid_t=no
7097 rm -f conftest*
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7101 $as_echo "$ac_cv_type_uid_t" >&6; }
7102 if test $ac_cv_type_uid_t = no; then
7104 $as_echo "#define uid_t int" >>confdefs.h
7107 $as_echo "#define gid_t int" >>confdefs.h
7112 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7113 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7115 cat >>confdefs.h <<_ACEOF
7116 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7117 _ACEOF
7123 # Look for some functions
7124 for ac_func in getpagesize kqueue statfs statvfs \
7125 clone kse_create rfork_thread thr_create sa_register \
7126 getcontext makecontext setcontext sigaltstack swapcontext
7127 do :
7128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7131 cat >>confdefs.h <<_ACEOF
7132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7133 _ACEOF
7136 done
7142 for ac_header in $ac_header_list
7143 do :
7144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7145 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7148 cat >>confdefs.h <<_ACEOF
7149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7150 _ACEOF
7154 done
7163 for ac_func in getpagesize
7164 do :
7165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7166 if test "x$ac_cv_func_getpagesize" = xyes; then :
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_GETPAGESIZE 1
7169 _ACEOF
7172 done
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7175 $as_echo_n "checking for working mmap... " >&6; }
7176 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test "$cross_compiling" = yes; then :
7180 ac_cv_func_mmap_fixed_mapped=no
7181 else
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 $ac_includes_default
7185 /* malloc might have been renamed as rpl_malloc. */
7186 #undef malloc
7188 /* Thanks to Mike Haertel and Jim Avera for this test.
7189 Here is a matrix of mmap possibilities:
7190 mmap private not fixed
7191 mmap private fixed at somewhere currently unmapped
7192 mmap private fixed at somewhere already mapped
7193 mmap shared not fixed
7194 mmap shared fixed at somewhere currently unmapped
7195 mmap shared fixed at somewhere already mapped
7196 For private mappings, we should verify that changes cannot be read()
7197 back from the file, nor mmap's back from the file at a different
7198 address. (There have been systems where private was not correctly
7199 implemented like the infamous i386 svr4.0, and systems where the
7200 VM page cache was not coherent with the file system buffer cache
7201 like early versions of FreeBSD and possibly contemporary NetBSD.)
7202 For shared mappings, we should conversely verify that changes get
7203 propagated back to all the places they're supposed to be.
7205 Grep wants private fixed already mapped.
7206 The main things grep needs to know about mmap are:
7207 * does it exist and is it safe to write into the mmap'd area
7208 * how to use it (BSD variants) */
7210 #include <fcntl.h>
7211 #include <sys/mman.h>
7213 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7214 char *malloc ();
7215 #endif
7217 /* This mess was copied from the GNU getpagesize.h. */
7218 #ifndef HAVE_GETPAGESIZE
7219 # ifdef _SC_PAGESIZE
7220 # define getpagesize() sysconf(_SC_PAGESIZE)
7221 # else /* no _SC_PAGESIZE */
7222 # ifdef HAVE_SYS_PARAM_H
7223 # include <sys/param.h>
7224 # ifdef EXEC_PAGESIZE
7225 # define getpagesize() EXEC_PAGESIZE
7226 # else /* no EXEC_PAGESIZE */
7227 # ifdef NBPG
7228 # define getpagesize() NBPG * CLSIZE
7229 # ifndef CLSIZE
7230 # define CLSIZE 1
7231 # endif /* no CLSIZE */
7232 # else /* no NBPG */
7233 # ifdef NBPC
7234 # define getpagesize() NBPC
7235 # else /* no NBPC */
7236 # ifdef PAGESIZE
7237 # define getpagesize() PAGESIZE
7238 # endif /* PAGESIZE */
7239 # endif /* no NBPC */
7240 # endif /* no NBPG */
7241 # endif /* no EXEC_PAGESIZE */
7242 # else /* no HAVE_SYS_PARAM_H */
7243 # define getpagesize() 8192 /* punt totally */
7244 # endif /* no HAVE_SYS_PARAM_H */
7245 # endif /* no _SC_PAGESIZE */
7247 #endif /* no HAVE_GETPAGESIZE */
7250 main ()
7252 char *data, *data2, *data3;
7253 const char *cdata2;
7254 int i, pagesize;
7255 int fd, fd2;
7257 pagesize = getpagesize ();
7259 /* First, make a file with some known garbage in it. */
7260 data = (char *) malloc (pagesize);
7261 if (!data)
7262 return 1;
7263 for (i = 0; i < pagesize; ++i)
7264 *(data + i) = rand ();
7265 umask (0);
7266 fd = creat ("conftest.mmap", 0600);
7267 if (fd < 0)
7268 return 2;
7269 if (write (fd, data, pagesize) != pagesize)
7270 return 3;
7271 close (fd);
7273 /* Next, check that the tail of a page is zero-filled. File must have
7274 non-zero length, otherwise we risk SIGBUS for entire page. */
7275 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7276 if (fd2 < 0)
7277 return 4;
7278 cdata2 = "";
7279 if (write (fd2, cdata2, 1) != 1)
7280 return 5;
7281 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7282 if (data2 == MAP_FAILED)
7283 return 6;
7284 for (i = 0; i < pagesize; ++i)
7285 if (*(data2 + i))
7286 return 7;
7287 close (fd2);
7288 if (munmap (data2, pagesize))
7289 return 8;
7291 /* Next, try to mmap the file at a fixed address which already has
7292 something else allocated at it. If we can, also make sure that
7293 we see the same garbage. */
7294 fd = open ("conftest.mmap", O_RDWR);
7295 if (fd < 0)
7296 return 9;
7297 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7299 return 10;
7300 for (i = 0; i < pagesize; ++i)
7301 if (*(data + i) != *(data2 + i))
7302 return 11;
7304 /* Finally, make sure that changes to the mapped area do not
7305 percolate back to the file as seen by read(). (This is a bug on
7306 some variants of i386 svr4.0.) */
7307 for (i = 0; i < pagesize; ++i)
7308 *(data2 + i) = *(data2 + i) + 1;
7309 data3 = (char *) malloc (pagesize);
7310 if (!data3)
7311 return 12;
7312 if (read (fd, data3, pagesize) != pagesize)
7313 return 13;
7314 for (i = 0; i < pagesize; ++i)
7315 if (*(data + i) != *(data3 + i))
7316 return 14;
7317 close (fd);
7318 return 0;
7320 _ACEOF
7321 if ac_fn_c_try_run "$LINENO"; then :
7322 ac_cv_func_mmap_fixed_mapped=yes
7323 else
7324 ac_cv_func_mmap_fixed_mapped=no
7326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7327 conftest.$ac_objext conftest.beam conftest.$ac_ext
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7332 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7335 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7338 rm -f conftest.mmap conftest.txt
7341 #-----------------------------------------------------------------------------
7344 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7345 # it switched on by default, and we use the host compiler, so it compiles AROS
7346 # code with this enabled resulting in link failures as we don't have support
7347 # for it.
7349 # We use two methods to disable it. For the host compiler (used to compile
7350 # some hosted modules), we test to see if the compiler supports stack
7351 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7352 # work on all platforms.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7356 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7357 save_cflags="$CFLAGS"
7358 CFLAGS="$CFLAGS -fno-stack-protector"
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7363 main ()
7367 return 0;
7369 _ACEOF
7370 if ac_fn_c_try_compile "$LINENO"; then :
7371 use_no_stack_protector="yes"
7372 else
7373 use_no_stack_protector="no"
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7377 $as_echo "$use_no_stack_protector" >&6; }
7378 if test "x-$use_no_stack_protector" = "x-yes" ; then
7379 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7381 CFLAGS="$save_cflags"
7383 #-----------------------------------------------------------------------------
7385 # Disable pointer-signedness warnings if the compiler recognises the option
7386 # (this only works for the host compiler at the moment)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7389 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7390 save_cflags="$CFLAGS"
7391 CFLAGS="$CFLAGS -Wno-pointer-sign"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7396 main ()
7400 return 0;
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"; then :
7404 use_no_sign_warning="yes"
7405 else
7406 use_no_sign_warning="no"
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7410 $as_echo "$use_no_sign_warning" >&6; }
7411 if test "x-$use_no_sign_warning" = "x-yes" ; then
7412 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7414 CFLAGS="$save_cflags"
7416 #-----------------------------------------------------------------------------
7418 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7421 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7422 save_cflags="$CFLAGS"
7423 CFLAGS="$CFLAGS -fgnu89-inline"
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7428 main ()
7432 return 0;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"; then :
7436 use_gnu89_inline="yes"
7437 else
7438 use_gnu89_inline="no"
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7442 $as_echo "$use_gnu89_inline" >&6; }
7443 if test "x-$use_gnu89_inline" = "x-yes" ; then
7444 gnu89_inline="-fgnu89-inline"
7446 CFLAGS="$save_cflags"
7449 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7450 # On GCC >= 4.0 -iquote should be used
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7453 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7454 CFLAGS="$CFLAGS -iquote."
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7459 main ()
7463 return 0;
7465 _ACEOF
7466 if ac_fn_c_try_compile "$LINENO"; then :
7467 has_iquote="yes"
7468 else
7469 has_iquote="no"
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7473 $as_echo "$has_iquote" >&6; }
7474 if test "x-$has_iquote" = "x-yes" ; then
7475 host_cflags_iquote=-iquote
7476 host_cflags_iquote_end=
7477 else
7478 host_cflags_iquote=-I
7479 host_cflags_iquote_end=-I-
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7483 $as_echo "$as_me: Performing target configuration..." >&6;}
7486 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7488 toolchain_needs_sysroot=no
7490 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7491 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7492 aros_config_ldflags=""
7494 aros_shared_default=yes
7496 aros_shared_cflags="-fPIC"
7497 aros_shared_aflags=""
7498 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7499 aros_kernel_ldflags="-Wl,-rpath,./lib"
7501 aros_kernel_ar_flags="cr"
7502 aros_target_ar_flags="cr"
7503 aros_target_nm_flags="-C -ul"
7504 aros_target_strip_flags="--strip-unneeded -R.comment"
7506 aros_compiler_libs=
7507 aros_arch_libs=
7509 aros_target_genmap="-Wl,-Map -Xlinker"
7511 # Native flavour stuff
7512 aros_serial_debug="0"
7514 # Palm native flavour stuff
7515 aros_palm_debug_hack="0"
7517 # Unix flavour stuff
7518 aros_nesting_supervisor="0"
7520 # Collect-aros stuff: "-ius" to ignore undefined symbols
7521 ignore_undefined_symbols=""
7523 # Check for X11 by default
7524 need_x11="auto"
7526 host_x_gfx=no
7527 host_sdl_gfx=no
7528 host_android_gfx=no
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7532 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7534 # Check whether --with-toolchain was given.
7535 if test "${with_toolchain+set}" = set; then :
7536 withval=$with_toolchain; aros_toolchain="$withval"
7537 else
7538 aros_toolchain="gnu"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7542 $as_echo "$aros_toolchain" >&6; }
7544 case "$aros_toolchain" in
7545 *llvm*)
7546 # toolchain_needs_sysroot=yes
7547 toolchain_c_compiler="clang"
7548 toolchain_cxx_compiler="clang++"
7549 toolchain_cpp_preprocessor="clang -E"
7550 toolchain_ld="lld"
7551 toolchain_as="llvm-as"
7552 toolchain_ar="llvm-ar"
7553 toolchain_ranlib="llvm-ranlib"
7554 toolchain_nm="llvm-nm"
7555 toolchain_strip="true"
7556 toolchain_objcopy="llvm-objcopy"
7557 toolchain_objdump="llvm-objdump"
7559 *gnu*)
7560 toolchain_c_compiler="gcc"
7561 toolchain_cxx_compiler="g++"
7562 toolchain_cpp_preprocessor="cpp"
7563 toolchain_ld="ld"
7564 toolchain_as="as"
7565 toolchain_ar="ar"
7566 toolchain_ranlib="ranlib"
7567 toolchain_nm="nm"
7568 toolchain_strip="strip"
7569 toolchain_objcopy="objcopy"
7570 toolchain_objdump="objdump"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7574 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7575 toolchain_c_compiler="cc"
7576 toolchain_cxx_compiler="c++"
7577 toolchain_cpp_preprocessor="cpp"
7578 toolchain_ld="ld"
7579 toolchain_as="as"
7580 toolchain_ar="ar"
7581 toolchain_ranlib="ranlib"
7582 toolchain_nm="nm"
7583 toolchain_strip="strip"
7584 toolchain_objcopy="objcopy"
7585 toolchain_objdump="objdump"
7587 esac
7589 #-----------------------------------------------------------------------------
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7592 $as_echo_n "checking which type of build to do... " >&6; }
7593 # Check whether --enable-build_type was given.
7594 if test "${enable_build_type+set}" = set; then :
7595 enableval=$enable_build_type; build_type=$enableval
7596 else
7597 build_type="personal"
7601 if test "$build_type" = "nightly"; then
7602 build_type_string="NIGHTLY"
7603 elif test "$build_type" = "snapshot"; then
7604 build_type_string="SNAPSHOT"
7605 elif test "$build_type" = "milestone"; then
7606 build_type_string="MILESTONE"
7607 elif test "$build_type" = "release"; then
7608 build_type_string="RELEASE"
7609 else
7610 build_type_string="PERSONAL"
7611 build_type="personal"
7614 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7617 $as_echo "$build_type" >&6; }
7619 #-----------------------------------------------------------------------------
7620 all_debug_types="messages stack modules mungwall symbols"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7623 $as_echo_n "checking which debug types to enable... " >&6; }
7624 # Check whether --enable-debug was given.
7625 if test "${enable_debug+set}" = set; then :
7626 enableval=$enable_debug; debug="$enableval"
7627 else
7628 debug=""
7632 if test "$debug" = "" -o "$debug" = "no"; then
7633 debug="none"
7634 elif test "$debug" = "yes"; then
7635 debug="all"
7638 if test "$debug" = "all" ; then
7639 debug="messages stack modules symbols"
7640 for d in $all_debug_types; do
7641 export aros_${d}_debug="1"
7642 done
7643 else
7644 for d in $all_debug_types; do
7645 export aros_${d}_debug="0"
7646 done
7649 if test "$debug" != "none"; then
7650 debug=`echo $debug | sed s/,/\ /g`
7651 for d in $debug; do
7652 found="0"
7653 for d2 in $all_debug_types; do
7654 if test "$d2" = "$d"; then
7655 found="1"
7656 break
7658 done
7659 if test "$found" = "0"; then
7660 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7662 export aros_${d}_debug="1"
7663 done
7664 aros_debug="yes"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7667 $as_echo "$debug" >&6; }
7669 if test "$aros_messages_debug" = "1"; then
7670 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7671 else
7672 aros_messages_debug=""
7674 if test "$aros_symbols_debug" = "1"; then
7675 aros_symbols_debug="-g"
7676 else
7677 aros_symbols_debug=""
7680 # These are the flags to pass when compiling debugged programs
7681 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7682 aros_debug_aflags=""
7683 aros_debug_ldflags="$aros_symbols_debug"
7685 #-----------------------------------------------------------------------------
7686 # Checking for distcc and ccache.
7688 # Always apply the transforms in this particular order. Basically you should
7689 # always run 'ccache distcc compiler' in that order for the best performance.
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7692 $as_echo_n "checking whether to enable distcc... " >&6; }
7693 # Check whether --enable-distcc was given.
7694 if test "${enable_distcc+set}" = set; then :
7695 enableval=$enable_distcc; distcc="$enableval"
7696 else
7697 distcc="no"
7700 if test "$distcc" != "" -a "$distcc" != "no"; then
7701 # AC_CHECK_PROG will print out the result in this case
7702 # Extract the first word of "distcc", so it can be a program name with args.
7703 set dummy distcc; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_path_DISTCC+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 case $DISTCC in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7729 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7731 esac
7733 DISTCC=$ac_cv_path_DISTCC
7734 if test -n "$DISTCC"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7736 $as_echo "$DISTCC" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7749 $as_echo_n "checking whether to enable ccache... " >&6; }
7750 # Check whether --enable-ccache was given.
7751 if test "${enable_ccache+set}" = set; then :
7752 enableval=$enable_ccache; ccache="$enableval"
7753 else
7754 ccache="no"
7757 if test "$ccache" != "" -a "$ccache" != "no"; then
7758 # AC_CHECK_PROG will print out the result in this case
7759 # Extract the first word of "ccache", so it can be a program name with args.
7760 set dummy ccache; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_CCACHE+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$CCACHE"; then
7767 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_CCACHE="ccache"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 CCACHE=$ac_cv_prog_CCACHE
7787 if test -n "$CCACHE"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7789 $as_echo "$CCACHE" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7801 #-----------------------------------------------------------------------------
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7803 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7805 # Check whether --with-kernel-gcc-version was given.
7806 if test "${with_kernel_gcc_version+set}" = set; then :
7807 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7808 else
7809 kernel_tool_version=""
7812 if test "$kernel_tool_version" != "" ; then
7813 msg_result=$kernel_tool_version
7814 else
7815 msg_result="default"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7818 $as_echo "$msg_result" >&6; }
7820 #-----------------------------------------------------------------------------
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7822 $as_echo_n "checking what optimization flags to use... " >&6; }
7824 # Check whether --with-optimization was given.
7825 if test "${with_optimization+set}" = set; then :
7826 withval=$with_optimization; optimization="$withval"
7827 else
7828 optimization="unknown"
7831 if test "$optimization" = "unknown"; then
7832 if test "$debug" != "none"; then
7833 optimization="-O0"
7834 else
7835 optimization="-O2"
7838 aros_optimization_cflags="$optimization"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7840 $as_echo "$optimization" >&6; }
7842 #-----------------------------------------------------------------------------
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7844 $as_echo_n "checking which paranoia flags to use... " >&6; }
7846 # Check whether --with-paranoia was given.
7847 if test "${with_paranoia+set}" = set; then :
7848 withval=$with_paranoia; paranoia_flags="$withval"
7849 else
7850 paranoia_flags="default"
7853 if test "$paranoia_flags" = "default"; then
7854 paranoia_flags=""
7855 msg_result="none"
7856 else if test "$paranoia_flags" = "yes"; then
7857 paranoia_flags="-Wall -Werror"
7858 msg_result="$paranoia_flags"
7859 fi fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7861 $as_echo "$msg_result" >&6; }
7862 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7864 #-----------------------------------------------------------------------------
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7866 $as_echo_n "checking what target variant to enable... " >&6; }
7867 # Check whether --enable-target_variant was given.
7868 if test "${enable_target_variant+set}" = set; then :
7869 enableval=$enable_target_variant; target_variant=$enableval
7870 else
7871 target_variant=""
7874 if test "$target_variant" = ""; then
7875 aros_target_variant=""
7876 aros_target_suffix=""
7877 enableval="none"
7878 else
7879 aros_target_variant="$target_variant"
7880 aros_target_suffix="-$target_variant"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7883 $as_echo "$enableval" >&6; }
7885 #-----------------------------------------------------------------------------
7886 # Target-specific defaults. You can override then on a per-target basis.
7888 # Bootloader name. Currently used by PC target.
7889 target_bootloader="none"
7890 ENABLE_EXECSMP=
7892 #-----------------------------------------------------------------------------
7893 # Additional options for some specific targets
7895 case "$aros_target_variant" in
7896 ios)
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7898 $as_echo_n "checking XCode path... " >&6; }
7900 # Check whether --with-xcode was given.
7901 if test "${with_xcode+set}" = set; then :
7902 withval=$with_xcode; aros_xcode_path="$withval"
7903 else
7904 aros_xcode_path="/Developer"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7908 $as_echo "$aros_xcode_path" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7911 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7913 # Check whether --with-sdk-version was given.
7914 if test "${with_sdk_version+set}" = set; then :
7915 withval=$with_sdk_version; aros_sdk_version="$withval"
7916 else
7917 aros_sdk_version="4.1"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7921 $as_echo "$aros_sdk_version" >&6; }
7925 "android")
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7927 $as_echo_n "checking Android SDK path... " >&6; }
7929 # Check whether --with-sdk was given.
7930 if test "${with_sdk+set}" = set; then :
7931 withval=$with_sdk; aros_android_sdk="$withval"
7932 else
7933 aros_android_sdk=$default_android_sdk
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7937 $as_echo "$aros_android_sdk" >&6; }
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7940 $as_echo_n "checking Android NDK path... " >&6; }
7942 # Check whether --with-ndk was given.
7943 if test "${with_ndk+set}" = set; then :
7944 withval=$with_ndk; aros_android_ndk="$withval"
7945 else
7946 aros_android_ndk="none"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7950 $as_echo "$aros_android_ndk" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7953 $as_echo_n "checking what Android SDK version to use... " >&6; }
7955 # Check whether --with-sdk-version was given.
7956 if test "${with_sdk_version+set}" = set; then :
7957 withval=$with_sdk_version; aros_sdk_version="$withval"
7958 else
7959 aros_sdk_version="12"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7963 $as_echo "$aros_sdk_version" >&6; }
7965 aros_android_level=android-$aros_sdk_version
7966 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7967 echo "Platform $aros_android_level is not installed in your SDK"
7968 echo "Use --with-sdk-version=<API level number> to select another platform version"
7969 echo "You can check what plaform versions are installed in your SDK"
7970 echo "by examining contents of $aros_android_sdk/platforms directory"
7971 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7974 export PATH="$aros_android_sdk/tools:$PATH"
7975 # Extract the first word of "$android_tool", so it can be a program name with args.
7976 set dummy $android_tool; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_path_android_tool+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 case $android_tool in
7983 [\\/]* | ?:[\\/]*)
7984 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8003 esac
8005 android_tool=$ac_cv_path_android_tool
8006 if test -n "$android_tool"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8008 $as_echo "$android_tool" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8015 req_avail=yes
8016 if test "$android_tool" = ""; then
8017 req_avail=no
8019 if test "$android_tool" = "no"; then
8020 req_avail=no
8022 if test "$req_avail" = "no"; then
8023 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8026 if test "$aros_android_ndk" != "none"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8028 $as_echo_n "checking what Android NDK version to use... " >&6; }
8030 # Check whether --with-ndk-version was given.
8031 if test "${with_ndk_version+set}" = set; then :
8032 withval=$with_ndk_version; aros_ndk_version="$withval"
8033 else
8034 aros_ndk_version="9"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8038 $as_echo "$aros_ndk_version" >&6; }
8041 # Extract the first word of "ant", so it can be a program name with args.
8042 set dummy ant; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_path_ant+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 case $ant in
8049 [\\/]* | ?:[\\/]*)
8050 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8064 done
8065 done
8066 IFS=$as_save_IFS
8069 esac
8071 ant=$ac_cv_path_ant
8072 if test -n "$ant"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8074 $as_echo "$ant" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8081 if test "$ant" = ""; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8083 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8087 $as_echo_n "checking Build debug or release apk... " >&6; }
8089 # Check whether --with-apk-version was given.
8090 if test "${with_apk_version+set}" = set; then :
8091 withval=$with_apk_version; aros_android_antapk=$withval
8092 else
8093 aros_android_antapk=release
8096 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8097 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8100 $as_echo "$aros_android_antapk" >&6; }
8102 if test "$host_os" = "mingw32"; then
8103 android_tool="cmd //c $android_tool"
8106 need_dlopen="no"
8109 esac
8111 #-----------------------------------------------------------------------------
8112 # External toolchains
8113 kernel_tool_prefix="none"
8114 aros_tool_prefix="none"
8115 elf_tool_prefix="${target_cpu}-elf-"
8117 # This is the target configuration switch.
8118 case "$target_os" in
8119 linux*)
8120 aros_target_arch="linux"
8121 aros_target_family="unix"
8122 case "$target_cpu" in
8123 *m68k*)
8124 aros_target_cpu="m68k"
8125 aros_object_format="m68kelf"
8126 aros_flavour="emulcompat"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8128 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8129 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8130 gcc_target_cpu="mc68000"
8132 *i?86*)
8133 aros_target_cpu="i386"
8134 aros_object_format="elf_i386"
8135 aros_flavour="emulation"
8136 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8137 aros_kernel_ldflags="-Wl,-melf_i386"
8138 aros_nominal_depth=8
8139 gcc_target_cpu="i386"
8140 pci_hidd_target="hidd-pci-linux"
8141 android_tool_dir_prefix="x86"
8142 android_tool_prefix="i686-android-linux"
8143 android_ndk_arch="x86"
8145 *x86_64*)
8146 aros_target_cpu="x86_64"
8147 aros_object_format="elf_x86_64"
8148 aros_flavour="emulation"
8149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8150 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8151 aros_nominal_depth=8
8152 pci_hidd_target="hidd-pci-linux"
8154 *powerpc*)
8155 aros_target_cpu="ppc"
8156 aros_object_format="elf32ppc"
8157 aros_flavour="emulation"
8158 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8159 aros_nominal_depth=8
8160 gcc_target_cpu="ppc"
8162 # TODO
8163 # Same as powerpc, but I need this for the nightly build to work again.
8164 # Actually, the nightly should be made working with powerpc target.
8165 # That just was too much work for the moment, another week or two.
8166 *ppc*)
8167 aros_target_cpu="ppc"
8168 aros_object_format="elf32ppc"
8169 aros_flavour="emulation"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8171 aros_nominal_depth=8
8172 gcc_target_cpu="ppc"
8174 *aarch64*)
8175 aros_target_cpu="aarch64"
8176 target_cpu="aarch64"
8177 aros_object_format="aarch64elf_aros"
8178 aros_flavour="emulation"
8179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8180 gcc_target_cpu="aarch64"
8181 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8182 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8183 aros_arch_libs="-laeabi"
8184 gcc_default_float_abi="hard"
8185 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8187 *armhf*)
8188 aros_target_cpu="arm"
8189 target_cpu="arm"
8190 aros_object_format="armelf_aros"
8191 aros_flavour="emulation"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8193 gcc_target_cpu="arm"
8194 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8195 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8196 aros_arch_libs="-laeabi"
8197 gcc_default_float_abi="hard"
8198 android_tool_dir_prefix="arm-linux-androideabi"
8199 android_tool_prefix="arm-linux-androideabi"
8200 android_ndk_arch="arm"
8201 kernel_tool_prefix="arm-linux-gnueabihf-"
8203 *arm*)
8204 aros_target_cpu="arm"
8205 aros_object_format="armelf_aros"
8206 aros_flavour="emulation"
8207 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8208 gcc_target_cpu="arm"
8209 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8210 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8211 aros_arch_libs="-laeabi"
8212 android_tool_dir_prefix="arm-linux-androideabi"
8213 android_tool_prefix="arm-linux-androideabi"
8214 android_ndk_arch="arm"
8215 kernel_tool_prefix="arm-linux-gnueabi-"
8218 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8220 esac
8221 case "$aros_target_variant" in
8222 android)
8224 if test "$android_ndk_arch" = ""; then
8225 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8228 aros_nominal_width=320
8229 aros_nominal_height=480
8230 if test "$aros_android_ndk" = "none"; then
8231 aros_kernel_cflags="-mandroid"
8232 aros_kernel_ldflags="-mandroid"
8233 CFLAGS="-mandroid"
8234 else
8235 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8236 kernel_tool_version=""
8237 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8238 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8239 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8240 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8241 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8243 need_x11=no
8244 host_android_gfx=yes
8245 # Disable implicit PIC mode
8246 aros_target_cflags="$aros_target_cflags -fno-pic"
8247 kernel_tool_prefix="$android_tool_prefix-"
8249 esac
8253 aros_target_arch="pc"
8254 aros_shared_default="no"
8255 target_bootloader="grub2"
8256 case "$target_cpu" in
8257 *i?86*)
8258 aros_target_cpu="i386"
8261 if test "$aros_object_format" = "" ; then
8262 aros_object_format="elf_i386"
8264 aros_flavour="standalone"
8265 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8266 aros_kernel_ldflags="-Wl,-melf_i386"
8267 aros_nominal_width=640
8268 aros_nominal_height=480
8269 gcc_target_cpu="i386"
8271 *x86_64*)
8272 aros_target_cpu="x86_64"
8273 aros_serial_debug=1
8274 if test "$aros_object_format" = "" ; then
8275 aros_object_format="elf_x86_64"
8277 aros_flavour="standalone"
8278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8279 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8280 aros_kernel_ldflags=""
8281 aros_nominal_width=640
8282 aros_nominal_height=480
8283 case "$aros_target_variant" in
8284 smp)
8285 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8287 esac
8290 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8292 esac
8295 prep)
8296 aros_target_arch="prep"
8297 aros_shared_default="no"
8298 aros_target_cpu="ppc"
8299 aros_object_format="elf32ppc"
8300 aros_flavour="ppcnative"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8302 aros_kernel_ldflags=""
8303 aros_nominal_width=640
8304 aros_nominal_height=480
8305 gcc_target_cpu="ppc"
8308 freebsd*)
8309 aros_target_arch="freebsd"
8310 aros_target_family="unix"
8311 aros_target_cpu="i386"
8312 aros_flavour="emulation"
8313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8314 gcc_target_cpu="i386"
8316 aros_target_strip_flags="-x"
8319 darwin*)
8320 aros_target_arch="darwin"
8321 aros_target_family="unix"
8322 aros_flavour="emulation"
8323 case "$target_cpu" in
8324 *i?86*)
8325 aros_ios_platform="iPhoneSimulator"
8326 aros_target_cpu="i386"
8327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8328 aros_kernel_ldflags=""
8329 aros_macosx_version="10.4"
8330 aros_nominal_depth=8
8331 gcc_target_cpu="i386"
8332 aros_object_format="elf_i386"
8333 aros_kernel_ar_flags="-cr"
8334 aros_target_strip_flags="-x"
8335 kernel_tool_flags="-m32"
8337 *x86_64*)
8338 aros_target_cpu="x86_64"
8339 aros_object_format="elf_x86_64"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8341 aros_macosx_version="10.6"
8342 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8343 aros_kernel_cflags="-m64"
8344 aros_kernel_ldflags="-m64"
8345 aros_target_cflags="-mcmodel=large"
8346 aros_nominal_depth=8
8347 aros_kernel_ar="ar"
8348 aros_kernel_ar_flags="-cr"
8349 aros_kernel_ld="ld"
8350 aros_kernel_as="as"
8351 aros_kernel_ranlib="ranlib"
8352 aros_kernel_nm="nm"
8353 aros_kernel_strip="strip"
8354 kernel_tool_prefix="i686-apple-darwin10-"
8356 *ppc*)
8357 aros_target_cpu="ppc"
8358 aros_object_format="elf32ppc"
8359 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8360 aros_kernel_ldflags=""
8361 aros_macosx_version="10.0"
8362 aros_nominal_depth=8
8363 gcc_target_cpu="ppc"
8364 aros_kernel_ar="ar"
8365 aros_kernel_ar_flags="-cr"
8366 aros_kernel_ld="ld -arch ppc"
8367 aros_kernel_as="as -arch ppc"
8368 aros_kernel_ranlib="ranlib -arch ppc"
8369 aros_kernel_nm="nm -arch ppc"
8370 aros_kernel_strip="strip -arch ppc"
8371 kernel_tool_prefix="powerpc-apple-darwin10-"
8373 *arm*)
8374 aros_ios_platform="iPhoneOS"
8375 aros_target_cpu="arm"
8376 aros_object_format="armelf_aros"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8378 aros_arch_libs="-laeabi"
8379 aros_nominal_depth=8
8380 gcc_target_cpu="arm"
8381 aros_kernel_ar="ar"
8382 aros_kernel_ar_flags="-cr"
8383 aros_kernel_ld="ld -arch arm"
8384 aros_kernel_ranlib="ranlib -arch arm"
8385 kernel_tool_prefix="arm-apple-darwin10-"
8386 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8389 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8391 esac
8392 case "$aros_target_variant" in
8393 ios)
8394 aros_ios_version="3.0"
8395 aros_nominal_width=320
8396 aros_nominal_height=480
8397 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8398 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8399 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8400 need_x11=no
8401 # This is here because it may depend on iOS or SDK version
8402 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8403 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8404 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8407 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8408 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8410 esac
8413 dragonfly*)
8414 aros_target_arch="dragonfly"
8415 aros_target_family="unix"
8416 aros_flavour="emulation"
8417 case "$target_cpu" in
8418 *i?86*)
8419 aros_target_cpu="i386"
8420 aros_object_format="elf_i386"
8421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8423 *x86_64*)
8424 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8425 aros_target_cpu="x86_64"
8426 aros_object_format="elf_x86_64"
8427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8430 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8432 esac
8435 netbsd*)
8436 aros_target_arch="netbsd"
8437 aros_target_family="unix"
8438 case "$target_cpu" in
8439 *m68k*)
8440 aros_target_cpu="m68k"
8441 aros_object_format="m68kelf"
8442 aros_flavour="emulcompat"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8444 gcc_target_cpu="mc68000"
8446 *i?86*)
8447 aros_target_cpu="i386"
8448 aros_object_format="elf_i386"
8449 aros_flavour="emulation"
8450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8451 aros_nominal_depth=8
8452 gcc_target_cpu="i386"
8455 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8457 esac
8458 aros_target_genmap="-Wl,-M -Xlinker >"
8459 aros_flavour="emulation"
8460 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8463 openbsd*)
8464 aros_target_arch="openbsd"
8465 aros_target_family="unix"
8466 case "$target_cpu" in
8467 *i?86*)
8468 aros_target_cpu="i386"
8469 aros_object_format="elf_i386"
8470 aros_flavour="emulation"
8471 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8472 gcc_target_cpu="i386"
8475 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8477 esac
8478 aros_target_genmap="-Wl,-M -Xlinker >"
8479 aros_target_nm_flags="-u"
8480 aros_flavour="emulation"
8483 solaris*)
8484 aros_target_arch="solaris"
8485 aros_target_family="unix"
8486 case "$target_cpu" in
8487 *i?86*)
8488 aros_target_cpu="i386"
8489 aros_object_format="elf_i386"
8490 aros_flavour="emulation"
8491 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8492 aros_nominal_depth=8
8493 gcc_target_cpu="i386"
8495 *sparc*)
8496 aros_target_cpu="sparc"
8497 aros_object_format="elf_sparc"
8498 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8499 gcc_target_cpu="sparc"
8502 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8504 esac
8505 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8506 aros_flavour="emulation"
8509 morphos*)
8510 aros_target_arch="morphos"
8511 aros_shared_default="no"
8512 aros_target_cpu="ppc"
8513 aros_object_format="elf_ppc"
8514 aros_flavour="nativecompat"
8515 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8516 gcc_target_cpu="ppc"
8519 sam440)
8520 aros_target_arch="sam440"
8521 aros_shared_default="no"
8522 aros_target_cpu="ppc"
8523 aros_object_format="elf32ppc"
8524 aros_flavour="ppcnative"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8526 aros_kernel_ldflags=""
8527 aros_nominal_width=1024
8528 aros_nominal_height=768
8529 aros_nominal_depth=24
8530 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8531 gcc_target_cpu="powerpc"
8534 efika)
8535 aros_target_arch="efika"
8536 aros_shared_default="no"
8537 aros_target_cpu="arm"
8538 aros_object_format="armelf_aros"
8539 aros_flavour="standalone"
8540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8541 aros_kernel_ldflags=""
8542 aros_nominal_width=1024
8543 aros_nominal_height=600
8544 aros_arch_libs="-laeabi"
8545 gcc_default_cpu="armv7-a"
8546 gcc_default_fpu="vfpv3"
8547 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8548 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8549 aros_optimization_cflags="$aros_optimization_cflags -Os"
8550 case "$target_cpu" in
8551 *armhf*)
8552 gcc_default_float_abi="hard"
8553 target_cpu=arm
8554 aros_target_cpu=arm
8556 *arm*)
8557 gcc_default_float_abi="softfp"
8560 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8562 esac
8565 chrp)
8566 aros_target_arch="chrp"
8567 aros_shared_default="no"
8568 aros_target_cpu="ppc"
8569 aros_object_format="elf32ppc"
8570 aros_flavour="ppcnative"
8571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8572 aros_kernel_ldflags=""
8573 aros_nominal_width=640
8574 aros_nominal_height=480
8575 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8576 gcc_target_cpu="powerpc"
8577 case "$aros_target_variant" in
8578 efika)
8579 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8581 esac
8584 r*pi)
8585 aros_flavour="standalone"
8586 aros_target_arch="raspi"
8588 aros_shared_default="no"
8590 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8592 case "$target_cpu" in
8593 *aarch64*)
8594 aros_target_cpu="aarch64"
8595 gcc_default_cpu="aarch64"
8596 aros_object_format="aarch64elf_aros"
8598 *armhf*)
8599 aros_target_cpu="arm"
8600 gcc_default_cpu="armv6zk"
8601 gcc_default_cpu_tune="arm1176jzf-s"
8602 aros_object_format="armelf_aros"
8603 aros_config_cflags="$aros_config_cflags -marm"
8604 aros_config_aflags="$aros_config_aflags -marm"
8605 aros_kernel_cflags="$aros_kernel_cflags -marm"
8606 aros_target_cflags="$aros_kernel_cflags -marm"
8607 aros_target_mkdep="$aros_target_mkdep -Darm"
8608 aros_arch_libs="-laeabi"
8610 *arm*)
8611 aros_target_cpu="arm"
8612 gcc_default_cpu="armv6zk"
8613 gcc_default_cpu_tune="arm1176jzf-s"
8614 aros_object_format="armelf_aros"
8615 aros_config_cflags="$aros_config_cflags -marm"
8616 aros_config_aflags="$aros_config_aflags -marm"
8617 aros_kernel_cflags="$aros_kernel_cflags -marm"
8618 aros_target_cflags="$aros_kernel_cflags -marm"
8619 aros_target_mkdep="$aros_target_mkdep -Darm"
8620 aros_arch_libs="-laeabi"
8623 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8625 esac
8627 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8628 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8629 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8630 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8632 case "$aros_target_variant" in
8633 smp)
8634 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8636 esac
8639 stm32f7_discovery)
8640 aros_flavour="standalone"
8641 aros_target_arch="stm32f7_discovery"
8642 aros_target_cpu="arm"
8643 aros_target_cpu_mode="thumb2"
8644 aros_object_format="armelf_aros"
8645 aros_shared_default="no"
8647 # stm32f7 has DSP opcode support
8648 gcc_default_cpu="armv7e-m"
8649 # gcc_default_cpu="armv7-m"
8650 gcc_default_cpu_tune="cortex-m7"
8651 gcc_default_fpu="fpv4-sp-d16"
8652 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8653 # gcc_default_fpu="fpv5-sp-d16"
8654 gcc_default_float_abi="hard"
8656 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8659 amiga*)
8660 aros_target_arch="amiga"
8661 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8662 aros_shared_default="no"
8664 case "$target_cpu" in
8665 *m68k*)
8666 # Check whether --enable-amigaos_compliance was given.
8667 if test "${enable_amigaos_compliance+set}" = set; then :
8668 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8671 aros_enable_mmu=no
8672 aros_target_cpu="m68k"
8673 aros_object_format="m68kelf"
8674 aros_flavour="standcompat"
8675 gcc_target_cpu="m68000"
8676 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8677 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8678 aros_optimization_cflags="$aros_optimization_cflags -Os"
8679 aros_config_aflags="$aros_config_aflags"
8680 aros_target_strip_flags="-R.comment --strip-debug"
8681 aros_nominal_width=640
8682 aros_nominal_height=256
8683 aros_nominal_depth=2
8685 *ppc*)
8686 aros_cpu="ppc"
8687 aros_flavour="native"
8688 gcc_target_cpu="ppc"
8691 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8693 esac
8696 mingw*)
8697 aros_target_arch="mingw32"
8698 aros_shared_default="no"
8699 aros_flavour="emulation"
8700 aros_shared_cflags=""
8701 need_crosstools="yes"
8702 need_dlopen="no"
8703 rescomp="windres"
8704 case "$target_cpu" in
8705 *i?86*)
8706 aros_target_cpu="i386"
8707 aros_object_format="elf_i386"
8708 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8709 aros_nominal_depth=8
8710 gcc_target_cpu="i386"
8712 kernel_tool_prefix="i386-mingw32-"
8714 *x86_64*)
8715 aros_target_cpu="x86_64"
8716 aros_object_format="elf_x86_64"
8717 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8718 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8719 aros_nominal_depth=8
8720 kernel_tool_prefix="x86_64-w64-mingw32-"
8722 *arm*)
8723 aros_target_cpu="arm"
8724 aros_object_format="armelf_aros"
8725 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8726 aros_arch_libs="-laeabi"
8727 aros_nominal_depth=8
8728 gcc_target_cpu="arm"
8729 gcc_default_float_abi="soft"
8730 kernel_tool_prefix="arm-mingw32ce-"
8731 aros_nominal_width=160
8732 aros_nominal_height=160
8735 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8737 esac
8738 if test $host_os = "cygwin"; then
8739 aros_kernel_cflags="-mno-cygwin"
8742 pp*)
8743 aros_target_arch="pp"
8744 aros_shared_default="no"
8745 case "$target_cpu" in
8746 *m68k*)
8747 aros_target_cpu="m68k"
8748 aros_object_format="m68kelf"
8749 aros_flavour="palmnative"
8750 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8751 aros_nominal_width=160
8752 aros_nominal_height=160
8753 aros_nominal_depth=1
8754 aros_target_ar_flags="cru"
8755 aros_compiler_libs="-lgcc1"
8756 aros_shared_default=no
8757 aros_shared_cflags="-fpic"
8758 aros_shared_aflags=""
8759 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8760 aros_kernel_ldflags="-Wl,-rpath,./lib"
8761 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8762 aros_debug_aflags=""
8763 aros_debug_ldflags="$aros_symbols_debug"
8764 aros_mungwall_debug="0"
8765 aros_modules_debug="0"
8766 gcc_target_cpu="mc68000"
8767 ignore_undefined_symbols="-ius"
8770 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8772 esac
8775 mac*)
8776 aros_target_arch="mac"
8777 aros_shared_default="no"
8778 case "$target_cpu" in
8779 *m68k*)
8780 aros_target_cpu="m68k"
8781 aros_object_format="m68kelf"
8782 aros_flavour="mac68knative"
8783 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8784 aros_nominal_width=512
8785 aros_nominal_height=384
8786 aros_nominal_depth=8
8787 aros_target_ar_flags="cru"
8788 aros_compiler_libs="-lgcc1"
8789 aros_shared_default=no
8790 aros_shared_cflags="-fpic"
8791 aros_shared_aflags=""
8792 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8793 aros_kernel_ldflags="-Wl,-rpath,./lib"
8794 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8795 aros_debug_aflags=""
8796 aros_debug_ldflags="$aros_symbols_debug"
8797 aros_mungwall_debug="0"
8798 aros_modules_debug="0"
8799 gcc_target_cpu="mc68000"
8800 ignore_undefined_symbols="-ius"
8803 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8805 esac
8809 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8811 esac
8813 #-----------------------------------------------------------------------------
8814 crosstools_guess="yes"
8815 aros_target_toolchain="no"
8816 aros_config_sysroot=""
8817 aros_kernel_sysroot=""
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8820 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8822 # Check whether --with-kernel-toolchain-prefix was given.
8823 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8824 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8828 $as_echo "$kernel_tool_prefix" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8831 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8833 # Check whether --with-elf-toolchain-prefix was given.
8834 if test "${with_elf_toolchain_prefix+set}" = set; then :
8835 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8836 crosstools_guess="no"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8840 $as_echo "$elf_tool_prefix" >&6; }
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8843 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8845 # Check whether --with-aros-toolchain was given.
8846 if test "${with_aros_toolchain+set}" = set; then :
8847 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8848 crosstools_guess="no"
8851 if test "$aros_tool_prefix" = "yes" ; then
8852 aros_tool_prefix=$aros_target_cpu-aros-
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8855 $as_echo "$aros_tool_prefix" >&6; }
8857 #-----------------------------------------------------------------------------
8858 # Checking if we should build crosstools..
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8860 $as_echo_n "checking whether to build crosstools... " >&6; }
8861 # Check whether --enable-crosstools was given.
8862 if test "${enable_crosstools+set}" = set; then :
8863 enableval=$enable_crosstools; crosstools="$enableval"
8864 else
8865 crosstools="$crosstools_guess"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8869 $as_echo "$crosstools" >&6; }
8871 if test "${crosstools}" = "yes"; then
8872 if test "${crosstools_guess}" = "no"; then
8873 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8877 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8878 aros_target_toolchain="yes"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8882 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8884 # Check whether --with-aros-toolchain-install was given.
8885 if test "${with_aros_toolchain_install+set}" = set; then :
8886 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8889 if test "x$aros_toolchain_install" = "x"; then
8890 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8891 else
8892 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8893 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8894 if test "$crosstools_guess" = "no" ; then
8895 toolchain_needs_sysroot=yes
8897 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8898 aros_kernel_sysroot = $aros_config_sysroot
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8903 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8906 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8907 if test "$toolchain_needs_sysroot" = "yes" ; then
8908 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8911 $as_echo "$toolchain_needs_sysroot" >&6; }
8913 #-----------------------------------------------------------------------------
8914 if test "$aros_toolchain" = "gnu" ; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8916 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8919 # Check whether --with-binutils-version was given.
8920 if test "${with_binutils_version+set}" = set; then :
8921 withval=$with_binutils_version; use_binutils_version="$withval"
8922 else
8923 use_binutils_version=""
8926 if test "$use_binutils_version" = ""; then
8927 target_binutils_version="$default_binutils_version"
8928 else
8929 target_binutils_version="$use_binutils_version"
8931 if test "$aros_toolchain" = "gnu" ; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8933 $as_echo "$target_binutils_version" >&6; }
8937 # Helper to identify gcc version
8940 #-----------------------------------------------------------------------------
8941 if test "$aros_toolchain" = "gnu" ; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8943 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8946 # Check whether --with-gcc-version was given.
8947 if test "${with_gcc_version+set}" = set; then :
8948 withval=$with_gcc_version; use_gcc_version="$withval"
8949 else
8950 use_gcc_version=""
8953 if test "$use_gcc_version" = ""; then
8954 if test "${crosstools}" = "no"; then
8955 if test "x$aros_toolchain_install" != "x"; then
8957 target_gcc_version=""
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8959 $as_echo_n "checking gcc version... " >&6; }
8960 if ${ax_cv_gcc_version+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8964 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8965 if test "x$ax_cv_gcc_version" = "x"; then :
8967 ax_cv_gcc_version=""
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8973 $as_echo "$ax_cv_gcc_version" >&6; }
8974 target_gcc_version=$ax_cv_gcc_version
8979 if test "$use_gcc_version" = ""; then
8980 target_gcc_version="$default_gcc_version"
8982 else
8983 target_gcc_version="$use_gcc_version"
8985 if test "$aros_toolchain" = "gnu" ; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8987 $as_echo "$target_gcc_version" >&6; }
8989 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8990 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8991 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8993 gcc_fix_bitfields="false"
8994 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8995 gcc_fix_bitfields="true"
8996 else
8997 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8998 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8999 gcc_fix_bitfields="true"
9004 if test "$gcc_fix_bitfields" = "true" ; then
9005 case "$aros_target_cpu" in
9006 *x86_64*)
9007 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9008 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9010 i386)
9011 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9012 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9014 esac
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9019 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9020 # Check whether --enable-objc was given.
9021 if test "${enable_objc+set}" = set; then :
9022 enableval=$enable_objc; objc="$enableval"
9023 else
9024 objc="no"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9028 $as_echo "$objc" >&6; }
9029 if test "x$objc" = "xyes"; then
9030 objc_target="$objc"
9031 else
9032 objc_target="no-objc"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9036 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9037 # Check whether --enable-java was given.
9038 if test "${enable_java+set}" = set; then :
9039 enableval=$enable_java; java="$enableval"
9040 else
9041 java="no"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9045 $as_echo "$java" >&6; }
9046 if test "x$java" != "xno"; then
9047 java_target="$java"
9048 else
9049 java_target="no-java"
9052 spec_obj_format="-m $aros_object_format"
9053 # Now process extra architecture-specific options.
9054 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9055 # as well as floating-point ABI.
9056 case "$aros_target_cpu" in
9057 *x86_64*)
9058 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9060 arm*)
9061 if test "$gcc_default_cpu" = ""; then
9062 gcc_default_cpu="armv6"
9064 if test "$gcc_default_fpu" = ""; then
9065 gcc_default_fpu="vfp"
9067 if test "$gcc_default_float_abi" = ""; then
9068 if test "$target_cpu" = "armhf"; then
9069 gcc_default_float_abi="hard"
9070 else
9071 gcc_default_float_abi="softfp"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9076 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9078 # Check whether --with-cpu was given.
9079 if test "${with_cpu+set}" = set; then :
9080 withval=$with_cpu; aros_gcc_cpu="$withval"
9081 else
9082 aros_gcc_cpu=$gcc_default_cpu
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9086 $as_echo "$aros_gcc_cpu" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9089 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9091 # Check whether --with-fpu was given.
9092 if test "${with_fpu+set}" = set; then :
9093 withval=$with_fpu; aros_gcc_fpu="$withval"
9094 else
9095 aros_gcc_fpu=$gcc_default_fpu
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9099 $as_echo "$aros_gcc_fpu" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9102 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9104 # Check whether --with-float was given.
9105 if test "${with_float+set}" = set; then :
9106 withval=$with_float; aros_gcc_float_abi="$withval"
9107 else
9108 aros_gcc_float_abi=$gcc_default_float_abi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9112 $as_echo "$aros_gcc_float_abi" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9115 $as_echo_n "checking Which ARM mode to use... " >&6; }
9116 if test "$aros_target_cpu_mode" = ""; then
9117 aros_target_cpu_mode="arm32"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9119 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9122 $as_echo "$aros_target_cpu_mode" >&6; }
9125 case "$aros_target_cpu_mode" in
9126 arm32)
9127 gcc_default_mode="arm"
9128 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9130 arm64)
9131 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9133 thumb)
9134 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9136 thumb1)
9137 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9139 thumb2)
9140 gcc_default_mode="thumb"
9141 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9142 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9145 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9147 esac
9149 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9150 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9152 i386)
9153 aros_isa_flags="-m32 -march=i486"
9154 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9155 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9157 esac
9159 # Some architectures may need custom ELF specs.
9160 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9161 elf_specs_in=config/${aros_object_format}-specs.in
9162 else
9163 elf_specs_in=config/elf-specs.in
9166 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9167 # Since we override specs, we may need to put these defines there
9168 if test "$gcc_target_cpu" != ""; then
9169 gcc_target_cpu="-D__${gcc_target_cpu}__"
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9173 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9175 # Check whether --with-portssources was given.
9176 if test "${with_portssources+set}" = set; then :
9177 withval=$with_portssources; with_portssrcdir=$withval
9178 else
9179 with_portssrcdir="default"
9182 if test "$with_portssrcdir" = "default"; then
9183 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9184 else
9185 AROS_PORTSSRCDIR="$with_portssrcdir"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9188 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9191 $as_echo_n "checking which bootloader to use... " >&6; }
9193 # Check whether --with-bootloader was given.
9194 if test "${with_bootloader+set}" = set; then :
9195 withval=$with_bootloader; target_bootloader=$withval
9196 else
9197 target_bootloader=$target_bootloader
9200 if test "$target_bootloader" = "none"; then
9201 aros_target_bootloader=""
9202 else
9203 aros_target_bootloader="$target_bootloader"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9206 $as_echo "$target_bootloader" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9209 $as_echo_n "checking which icon-set to use... " >&6; }
9211 # Check whether --with-iconset was given.
9212 if test "${with_iconset+set}" = set; then :
9213 withval=$with_iconset; target_iconset=$withval
9214 else
9215 target_iconset="default"
9218 if test "$target_iconset" = "default"; then
9219 aros_target_iconset="Gorilla"
9220 target_iconset="default (Gorilla)"
9221 else
9222 aros_target_iconset="$target_iconset"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9225 $as_echo "$target_iconset" >&6; }
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9228 $as_echo_n "checking which GUI Theme to use... " >&6; }
9230 # Check whether --with-theme was given.
9231 if test "${with_theme+set}" = set; then :
9232 withval=$with_theme; target_guitheme=$withval
9233 else
9234 target_guitheme="default"
9237 if test "$target_guitheme" = "default"; then
9238 aros_target_guitheme="Ice"
9239 else
9240 aros_target_guitheme="$target_guitheme"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9243 $as_echo "$aros_target_guitheme" >&6; }
9245 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9246 # for target code)
9247 cross_compiling=no
9249 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9250 cross_compiling=yes
9253 if test "$aros_host_cpu" == "x86_64" ; then
9254 if test "$aros_target_cpu" == "i386" ; then
9255 cross_compiling=no
9259 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9260 if test "$aros_host_arch" != "$aros_target_arch" ; then
9261 cross_compiling=yes
9263 else
9264 if test "$host_cc_elf" = "no" ; then
9265 cross_compiling=yes
9269 if test "$cross_compiling" = "no" ; then
9270 kernel_tool_prefix=""
9271 if test "$host_cc_elf" = "yes" ; then
9272 elf_tool_prefix=""
9276 if test "$kernel_tool_version" != ""; then
9277 kernel_tool_version="-$kernel_tool_version"
9280 #######################################################################
9281 ## Compute what toolchains to use, and their paths ##
9282 #######################################################################
9284 # This takes, as input:
9285 # crosstools {yes,no}
9286 # kernel_tool_version {"",[version]}
9287 # target_tool_version {"",[version]}
9288 # kernel_tool_prefix {none,[some-arch-os-]}
9289 # gnu-toolchain -:
9290 # target_tool_prefix ${aros_target_cpu}-aros-
9291 # aros_tool_prefix ${aros_target_cpu}-aros-
9293 # The output is
9294 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9295 # Where the 'kernel' binaries are located
9296 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9297 # Where the 'target' binaries are located
9298 # (not the symlink farm - that is aros_target_*!)
9300 # The rules are:
9301 # if crosstools then
9302 # if kernel_tools_prefix = "no-kernel-prefix-"
9303 # aros_kernel_* = crosstools cc paths
9304 # aros_kernel_cc = elf cc wrapper around crosstools cc
9305 # else
9306 # VALIDATE(${kernel_tools_prefix}*)
9307 # aros_kernel_* = ${kernel_tools_prefix}*
9308 # if ${kernel_tools_prefix}cc is an AROS gcc
9309 # aros_kernel_cc = ${kernel_tools_prefix}cc
9310 # else
9311 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9312 # fi
9313 # fi
9315 # orig_target_* = aros built crosstools
9316 # orig_target_cc = elf cc wrapper around crosstools cc
9317 # else
9318 # VALIDATE(${kernel_tools_prefix}*)
9320 # orig_target_* = aros_kernel_*
9321 # if aros_kernel_cc is an AROS gcc
9322 # orig_target_cc = aros_kernel_cc
9323 # else
9324 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9325 # fi
9326 # fi
9328 if test "$aros_toolchain" = "gnu" ; then
9329 target_tool_prefix="${aros_target_cpu}-aros-"
9330 elif test "$aros_toolchain" = "llvm" ; then
9331 target_tool_prefix="bin/"
9334 if test "$kernel_tool_prefix" != "" ; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9336 $as_echo_n "checking which kernel tools... " >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9338 $as_echo "$kernel_tool_prefix" >&6; };
9341 if test "$kernel_tool_prefix" = "none" ; then
9342 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9343 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9345 else
9346 # Kernel tools required - find them
9347 # Note that 'normally', aros_kernel_* overrides will be
9348 # empty, unless specified in the per-arch sections above.
9349 if test "x$aros_kernel_cpp" = "x"; then
9350 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9353 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9354 if test "$cross_compiling" = "yes" ; then
9355 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9356 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 case $aros_kernel_cpp in
9363 [\\/]* | ?:[\\/]*)
9364 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9374 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 break 2
9378 done
9379 done
9380 IFS=$as_save_IFS
9383 esac
9385 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9386 if test -n "$aros_kernel_cpp"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9388 $as_echo "$aros_kernel_cpp" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9395 else
9396 if test "$GCC" = "yes"; then
9397 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9398 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9399 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 case $aros_kernel_cpp in
9406 [\\/]* | ?:[\\/]*)
9407 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in `dirname $aros_gcc_cpp`
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9426 esac
9428 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9429 if test -n "$aros_kernel_cpp"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9431 $as_echo "$aros_kernel_cpp" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9439 if test "$aros_kernel_cpp" = ""; then
9440 # Extract the first word of "cpp", so it can be a program name with args.
9441 set dummy cpp; ac_word=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 case $aros_kernel_cpp in
9448 [\\/]* | ?:[\\/]*)
9449 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9465 IFS=$as_save_IFS
9468 esac
9470 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9471 if test -n "$aros_kernel_cpp"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9473 $as_echo "$aros_kernel_cpp" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9482 else
9483 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9484 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 case $aros_kernel_cpp in
9491 [\\/]* | ?:[\\/]*)
9492 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9502 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9511 esac
9513 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9514 if test -n "$aros_kernel_cpp"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9516 $as_echo "$aros_kernel_cpp" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9525 req_avail=yes
9526 if test "$aros_kernel_cpp" = ""; then
9527 req_avail=no
9529 if test "$aros_kernel_cpp" = "no"; then
9530 req_avail=no
9532 if test "$req_avail" = "no"; then
9533 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9535 if test "x$aros_kernel_cc" = "x"; then
9536 aros_kernel_cc=${kernel_tool_prefix}${CC}
9539 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9540 if test "$cross_compiling" = "yes" ; then
9541 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9542 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 case $aros_kernel_cc in
9549 [\\/]* | ?:[\\/]*)
9550 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9560 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9564 done
9565 done
9566 IFS=$as_save_IFS
9569 esac
9571 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9572 if test -n "$aros_kernel_cc"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9574 $as_echo "$aros_kernel_cc" >&6; }
9575 else
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9581 else
9582 if test "$GCC" = "yes"; then
9583 aros_gcc_cc=`$CC -print-prog-name=cc`
9584 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9585 set dummy `basename $aros_gcc_cc`; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 case $aros_kernel_cc in
9592 [\\/]* | ?:[\\/]*)
9593 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in `dirname $aros_gcc_cc`
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9603 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9607 done
9608 done
9609 IFS=$as_save_IFS
9612 esac
9614 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9615 if test -n "$aros_kernel_cc"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9617 $as_echo "$aros_kernel_cc" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test "$aros_kernel_cc" = ""; then
9626 # Extract the first word of "cc", so it can be a program name with args.
9627 set dummy cc; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 case $aros_kernel_cc in
9634 [\\/]* | ?:[\\/]*)
9635 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9645 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9649 done
9650 done
9651 IFS=$as_save_IFS
9654 esac
9656 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9657 if test -n "$aros_kernel_cc"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9659 $as_echo "$aros_kernel_cc" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9668 else
9669 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9670 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 case $aros_kernel_cc in
9677 [\\/]* | ?:[\\/]*)
9678 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9697 esac
9699 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9700 if test -n "$aros_kernel_cc"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9702 $as_echo "$aros_kernel_cc" >&6; }
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9711 req_avail=yes
9712 if test "$aros_kernel_cc" = ""; then
9713 req_avail=no
9715 if test "$aros_kernel_cc" = "no"; then
9716 req_avail=no
9718 if test "$req_avail" = "no"; then
9719 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9721 if test "x$aros_kernel_cxx" = "x"; then
9722 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9725 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9726 if test "$cross_compiling" = "yes" ; then
9727 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9728 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 case $aros_kernel_cxx in
9735 [\\/]* | ?:[\\/]*)
9736 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9750 done
9751 done
9752 IFS=$as_save_IFS
9755 esac
9757 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9758 if test -n "$aros_kernel_cxx"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9760 $as_echo "$aros_kernel_cxx" >&6; }
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9767 else
9768 if test "$GCC" = "yes"; then
9769 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9770 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9771 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 case $aros_kernel_cxx in
9778 [\\/]* | ?:[\\/]*)
9779 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in `dirname $aros_gcc_cxx`
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9793 done
9794 done
9795 IFS=$as_save_IFS
9798 esac
9800 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9801 if test -n "$aros_kernel_cxx"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9803 $as_echo "$aros_kernel_cxx" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9811 if test "$aros_kernel_cxx" = ""; then
9812 # Extract the first word of "cxx", so it can be a program name with args.
9813 set dummy cxx; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 case $aros_kernel_cxx in
9820 [\\/]* | ?:[\\/]*)
9821 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9835 done
9836 done
9837 IFS=$as_save_IFS
9840 esac
9842 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9843 if test -n "$aros_kernel_cxx"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9845 $as_echo "$aros_kernel_cxx" >&6; }
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9854 else
9855 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9856 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 case $aros_kernel_cxx in
9863 [\\/]* | ?:[\\/]*)
9864 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9874 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9878 done
9879 done
9880 IFS=$as_save_IFS
9883 esac
9885 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9886 if test -n "$aros_kernel_cxx"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9888 $as_echo "$aros_kernel_cxx" >&6; }
9889 else
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9897 # If it's set, make sure it's really there
9898 if test "x$aros_kernel_cxx" != "x" ; then
9899 req_avail=yes
9900 if test "$aros_kernel_cxx" = ""; then
9901 req_avail=no
9903 if test "$aros_kernel_cxx" = "no"; then
9904 req_avail=no
9906 if test "$req_avail" = "no"; then
9907 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9911 if test "$aros_kernel_ld" = ""; then
9912 if test "$cross_compiling" = "yes" ; then
9913 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9914 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 case $aros_kernel_ld in
9921 [\\/]* | ?:[\\/]*)
9922 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9936 done
9937 done
9938 IFS=$as_save_IFS
9941 esac
9943 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9944 if test -n "$aros_kernel_ld"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9946 $as_echo "$aros_kernel_ld" >&6; }
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9953 else
9954 if test "$GCC" = "yes"; then
9955 aros_gcc_ld=`$CC -print-prog-name=ld`
9956 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9957 set dummy `basename $aros_gcc_ld`; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 case $aros_kernel_ld in
9964 [\\/]* | ?:[\\/]*)
9965 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 for as_dir in `dirname $aros_gcc_ld`
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9979 done
9980 done
9981 IFS=$as_save_IFS
9984 esac
9986 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9987 if test -n "$aros_kernel_ld"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9989 $as_echo "$aros_kernel_ld" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9997 if test "$aros_kernel_ld" = ""; then
9998 # Extract the first word of "ld", so it can be a program name with args.
9999 set dummy ld; ac_word=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 case $aros_kernel_ld in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10021 done
10022 done
10023 IFS=$as_save_IFS
10026 esac
10028 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10029 if test -n "$aros_kernel_ld"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10031 $as_echo "$aros_kernel_ld" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10040 else
10041 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10042 set dummy $aros_kernel_ld; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 case $aros_kernel_ld in
10049 [\\/]* | ?:[\\/]*)
10050 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10069 esac
10071 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10072 if test -n "$aros_kernel_ld"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10074 $as_echo "$aros_kernel_ld" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10083 req_avail=yes
10084 if test "$aros_kernel_ld" = ""; then
10085 req_avail=no
10087 if test "$aros_kernel_ld" = "no"; then
10088 req_avail=no
10090 if test "$req_avail" = "no"; then
10091 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10094 if test "$aros_kernel_as" = ""; then
10095 if test "$cross_compiling" = "yes" ; then
10096 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10097 set dummy ${kernel_tool_prefix}as; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if ${ac_cv_path_aros_kernel_as+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 case $aros_kernel_as in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10124 esac
10126 aros_kernel_as=$ac_cv_path_aros_kernel_as
10127 if test -n "$aros_kernel_as"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10129 $as_echo "$aros_kernel_as" >&6; }
10130 else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10136 else
10137 if test "$GCC" = "yes"; then
10138 aros_gcc_as=`$CC -print-prog-name=as`
10139 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10140 set dummy `basename $aros_gcc_as`; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if ${ac_cv_path_aros_kernel_as+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 case $aros_kernel_as in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in `dirname $aros_gcc_as`
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10167 esac
10169 aros_kernel_as=$ac_cv_path_aros_kernel_as
10170 if test -n "$aros_kernel_as"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10172 $as_echo "$aros_kernel_as" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10180 if test "$aros_kernel_as" = ""; then
10181 # Extract the first word of "as", so it can be a program name with args.
10182 set dummy as; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if ${ac_cv_path_aros_kernel_as+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 case $aros_kernel_as in
10189 [\\/]* | ?:[\\/]*)
10190 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10206 IFS=$as_save_IFS
10209 esac
10211 aros_kernel_as=$ac_cv_path_aros_kernel_as
10212 if test -n "$aros_kernel_as"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10214 $as_echo "$aros_kernel_as" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10223 else
10224 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10225 set dummy $aros_kernel_as; ac_word=$2
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227 $as_echo_n "checking for $ac_word... " >&6; }
10228 if ${ac_cv_path_aros_kernel_as+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 case $aros_kernel_as in
10232 [\\/]* | ?:[\\/]*)
10233 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 break 2
10247 done
10248 done
10249 IFS=$as_save_IFS
10252 esac
10254 aros_kernel_as=$ac_cv_path_aros_kernel_as
10255 if test -n "$aros_kernel_as"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10257 $as_echo "$aros_kernel_as" >&6; }
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10266 req_avail=yes
10267 if test "$aros_kernel_as" = ""; then
10268 req_avail=no
10270 if test "$aros_kernel_as" = "no"; then
10271 req_avail=no
10273 if test "$req_avail" = "no"; then
10274 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10277 if test "$aros_kernel_ar" = ""; then
10278 if test "$cross_compiling" = "yes" ; then
10279 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10280 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 case $aros_kernel_ar in
10287 [\\/]* | ?:[\\/]*)
10288 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10302 done
10303 done
10304 IFS=$as_save_IFS
10307 esac
10309 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10310 if test -n "$aros_kernel_ar"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10312 $as_echo "$aros_kernel_ar" >&6; }
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10319 else
10320 if test "$GCC" = "yes"; then
10321 aros_gcc_ar=`$CC -print-prog-name=ar`
10322 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10323 set dummy `basename $aros_gcc_ar`; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 case $aros_kernel_ar in
10330 [\\/]* | ?:[\\/]*)
10331 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in `dirname $aros_gcc_ar`
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10345 done
10346 done
10347 IFS=$as_save_IFS
10350 esac
10352 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10353 if test -n "$aros_kernel_ar"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10355 $as_echo "$aros_kernel_ar" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10363 if test "$aros_kernel_ar" = ""; then
10364 # Extract the first word of "ar", so it can be a program name with args.
10365 set dummy ar; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 case $aros_kernel_ar in
10372 [\\/]* | ?:[\\/]*)
10373 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10392 esac
10394 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10395 if test -n "$aros_kernel_ar"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10397 $as_echo "$aros_kernel_ar" >&6; }
10398 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10406 else
10407 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10408 set dummy $aros_kernel_ar; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 case $aros_kernel_ar in
10415 [\\/]* | ?:[\\/]*)
10416 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10430 done
10431 done
10432 IFS=$as_save_IFS
10435 esac
10437 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10438 if test -n "$aros_kernel_ar"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10440 $as_echo "$aros_kernel_ar" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10449 req_avail=yes
10450 if test "$aros_kernel_ar" = ""; then
10451 req_avail=no
10453 if test "$aros_kernel_ar" = "no"; then
10454 req_avail=no
10456 if test "$req_avail" = "no"; then
10457 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10460 if test "$aros_kernel_ranlib" = ""; then
10461 if test "$cross_compiling" = "yes" ; then
10462 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10463 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 case $aros_kernel_ranlib in
10470 [\\/]* | ?:[\\/]*)
10471 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10485 done
10486 done
10487 IFS=$as_save_IFS
10490 esac
10492 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10493 if test -n "$aros_kernel_ranlib"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10495 $as_echo "$aros_kernel_ranlib" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10502 else
10503 if test "$GCC" = "yes"; then
10504 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10505 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10506 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 case $aros_kernel_ranlib in
10513 [\\/]* | ?:[\\/]*)
10514 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in `dirname $aros_gcc_ranlib`
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10533 esac
10535 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10536 if test -n "$aros_kernel_ranlib"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10538 $as_echo "$aros_kernel_ranlib" >&6; }
10539 else
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10546 if test "$aros_kernel_ranlib" = ""; then
10547 # Extract the first word of "ranlib", so it can be a program name with args.
10548 set dummy ranlib; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 case $aros_kernel_ranlib in
10555 [\\/]* | ?:[\\/]*)
10556 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10570 done
10571 done
10572 IFS=$as_save_IFS
10575 esac
10577 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10578 if test -n "$aros_kernel_ranlib"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10580 $as_echo "$aros_kernel_ranlib" >&6; }
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10589 else
10590 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10591 set dummy $aros_kernel_ranlib; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 case $aros_kernel_ranlib in
10598 [\\/]* | ?:[\\/]*)
10599 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10613 done
10614 done
10615 IFS=$as_save_IFS
10618 esac
10620 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10621 if test -n "$aros_kernel_ranlib"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10623 $as_echo "$aros_kernel_ranlib" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10632 req_avail=yes
10633 if test "$aros_kernel_ranlib" = ""; then
10634 req_avail=no
10636 if test "$aros_kernel_ranlib" = "no"; then
10637 req_avail=no
10639 if test "$req_avail" = "no"; then
10640 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10643 if test "$aros_kernel_nm" = ""; then
10644 if test "$cross_compiling" = "yes" ; then
10645 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10646 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 case $aros_kernel_nm in
10653 [\\/]* | ?:[\\/]*)
10654 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10668 done
10669 done
10670 IFS=$as_save_IFS
10673 esac
10675 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10676 if test -n "$aros_kernel_nm"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10678 $as_echo "$aros_kernel_nm" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10685 else
10686 if test "$GCC" = "yes"; then
10687 aros_gcc_nm=`$CC -print-prog-name=nm`
10688 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10689 set dummy `basename $aros_gcc_nm`; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 case $aros_kernel_nm in
10696 [\\/]* | ?:[\\/]*)
10697 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in `dirname $aros_gcc_nm`
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10711 done
10712 done
10713 IFS=$as_save_IFS
10716 esac
10718 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10719 if test -n "$aros_kernel_nm"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10721 $as_echo "$aros_kernel_nm" >&6; }
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10729 if test "$aros_kernel_nm" = ""; then
10730 # Extract the first word of "nm", so it can be a program name with args.
10731 set dummy nm; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 case $aros_kernel_nm in
10738 [\\/]* | ?:[\\/]*)
10739 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10758 esac
10760 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10761 if test -n "$aros_kernel_nm"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10763 $as_echo "$aros_kernel_nm" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10772 else
10773 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10774 set dummy $aros_kernel_nm; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 case $aros_kernel_nm in
10781 [\\/]* | ?:[\\/]*)
10782 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10796 done
10797 done
10798 IFS=$as_save_IFS
10801 esac
10803 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10804 if test -n "$aros_kernel_nm"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10806 $as_echo "$aros_kernel_nm" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10815 req_avail=yes
10816 if test "$aros_kernel_nm" = ""; then
10817 req_avail=no
10819 if test "$aros_kernel_nm" = "no"; then
10820 req_avail=no
10822 if test "$req_avail" = "no"; then
10823 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10826 if test "$aros_kernel_strip" = ""; then
10827 if test "$cross_compiling" = "yes" ; then
10828 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10829 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 case $aros_kernel_strip in
10836 [\\/]* | ?:[\\/]*)
10837 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10851 done
10852 done
10853 IFS=$as_save_IFS
10856 esac
10858 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10859 if test -n "$aros_kernel_strip"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10861 $as_echo "$aros_kernel_strip" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10868 else
10869 if test "$GCC" = "yes"; then
10870 aros_gcc_strip=`$CC -print-prog-name=strip`
10871 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10872 set dummy `basename $aros_gcc_strip`; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 case $aros_kernel_strip in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in `dirname $aros_gcc_strip`
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10894 done
10895 done
10896 IFS=$as_save_IFS
10899 esac
10901 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10902 if test -n "$aros_kernel_strip"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10904 $as_echo "$aros_kernel_strip" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10912 if test "$aros_kernel_strip" = ""; then
10913 # Extract the first word of "strip", so it can be a program name with args.
10914 set dummy strip; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 case $aros_kernel_strip in
10921 [\\/]* | ?:[\\/]*)
10922 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10936 done
10937 done
10938 IFS=$as_save_IFS
10941 esac
10943 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10944 if test -n "$aros_kernel_strip"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10946 $as_echo "$aros_kernel_strip" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10955 else
10956 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10957 set dummy $aros_kernel_strip; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $aros_kernel_strip in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10979 done
10980 done
10981 IFS=$as_save_IFS
10984 esac
10986 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10987 if test -n "$aros_kernel_strip"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10989 $as_echo "$aros_kernel_strip" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10998 req_avail=yes
10999 if test "$aros_kernel_strip" = ""; then
11000 req_avail=no
11002 if test "$aros_kernel_strip" = "no"; then
11003 req_avail=no
11005 if test "$req_avail" = "no"; then
11006 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11009 # Objcopy and objdump are not required for the kernel
11010 # toolchain on many architectures.
11011 # So we'll look for them, but not make them strictly required.
11013 if test "$aros_kernel_objcopy" = ""; then
11014 if test "$cross_compiling" = "yes" ; then
11015 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11016 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 case $aros_kernel_objcopy in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11038 done
11039 done
11040 IFS=$as_save_IFS
11043 esac
11045 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11046 if test -n "$aros_kernel_objcopy"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11048 $as_echo "$aros_kernel_objcopy" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11055 else
11056 if test "$GCC" = "yes"; then
11057 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11058 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11059 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 case $aros_kernel_objcopy in
11066 [\\/]* | ?:[\\/]*)
11067 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in `dirname $aros_gcc_objcopy`
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11081 done
11082 done
11083 IFS=$as_save_IFS
11086 esac
11088 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11089 if test -n "$aros_kernel_objcopy"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11091 $as_echo "$aros_kernel_objcopy" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11099 if test "$aros_kernel_objcopy" = ""; then
11100 # Extract the first word of "objcopy", so it can be a program name with args.
11101 set dummy objcopy; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 case $aros_kernel_objcopy in
11108 [\\/]* | ?:[\\/]*)
11109 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11123 done
11124 done
11125 IFS=$as_save_IFS
11128 esac
11130 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11131 if test -n "$aros_kernel_objcopy"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11133 $as_echo "$aros_kernel_objcopy" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11142 else
11143 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11144 set dummy $aros_kernel_objcopy; ac_word=$2
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146 $as_echo_n "checking for $ac_word... " >&6; }
11147 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 case $aros_kernel_objcopy in
11151 [\\/]* | ?:[\\/]*)
11152 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11171 esac
11173 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11174 if test -n "$aros_kernel_objcopy"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11176 $as_echo "$aros_kernel_objcopy" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11186 if test "$aros_kernel_objdump" = ""; then
11187 if test "$cross_compiling" = "yes" ; then
11188 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11189 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 case $aros_kernel_objdump in
11196 [\\/]* | ?:[\\/]*)
11197 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11211 done
11212 done
11213 IFS=$as_save_IFS
11216 esac
11218 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11219 if test -n "$aros_kernel_objdump"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11221 $as_echo "$aros_kernel_objdump" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11228 else
11229 if test "$GCC" = "yes"; then
11230 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11231 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11232 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234 $as_echo_n "checking for $ac_word... " >&6; }
11235 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 case $aros_kernel_objdump in
11239 [\\/]* | ?:[\\/]*)
11240 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in `dirname $aros_gcc_objdump`
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11250 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11254 done
11255 done
11256 IFS=$as_save_IFS
11259 esac
11261 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11262 if test -n "$aros_kernel_objdump"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11264 $as_echo "$aros_kernel_objdump" >&6; }
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11272 if test "$aros_kernel_objdump" = ""; then
11273 # Extract the first word of "objdump", so it can be a program name with args.
11274 set dummy objdump; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 case $aros_kernel_objdump in
11281 [\\/]* | ?:[\\/]*)
11282 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11296 done
11297 done
11298 IFS=$as_save_IFS
11301 esac
11303 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11304 if test -n "$aros_kernel_objdump"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11306 $as_echo "$aros_kernel_objdump" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11315 else
11316 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11317 set dummy $aros_kernel_objdump; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 case $aros_kernel_objdump in
11324 [\\/]* | ?:[\\/]*)
11325 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11339 done
11340 done
11341 IFS=$as_save_IFS
11344 esac
11346 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11347 if test -n "$aros_kernel_objdump"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11349 $as_echo "$aros_kernel_objdump" >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11358 if test "x${crosstools}" != "xyes" ; then
11359 req_avail=yes
11360 if test "$aros_kernel_objcopy" = ""; then
11361 req_avail=no
11363 if test "$aros_kernel_objcopy" = "no"; then
11364 req_avail=no
11366 if test "$req_avail" = "no"; then
11367 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11369 req_avail=yes
11370 if test "$aros_kernel_objdump" = ""; then
11371 req_avail=no
11373 if test "$aros_kernel_objdump" = "no"; then
11374 req_avail=no
11376 if test "$req_avail" = "no"; then
11377 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11383 $as_echo_n "checking which target tools to use... " >&6; }
11384 if test "$aros_target_toolchain" = "yes"; then
11385 if test "$aros_toolchain" = "llvm" ; then
11386 msg_result="llvm"
11387 else
11388 msg_result=$target_tool_prefix
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11391 $as_echo "$msg_result" >&6; }
11392 # We are building AROS crosstools
11393 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11394 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11395 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11396 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11397 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11398 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11399 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11400 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11401 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11402 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11403 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11404 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11405 else
11406 # Determine whether AROS or ELF tools should be used
11407 if test "$aros_tool_prefix" = "none"; then
11408 aros_tool_prefix="${elf_tool_prefix}"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11412 $as_echo "$aros_tool_prefix" >&6; }
11413 # We are *not* building AROS crosstools - use the AROS or ELF tools
11415 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11416 if test "$cross_compiling" = "yes" ; then
11417 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11418 set dummy ${target_tool_prefix}cpp; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if ${ac_cv_path_orig_target_cpp+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 case $orig_target_cpp in
11425 [\\/]* | ?:[\\/]*)
11426 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11440 done
11441 done
11442 IFS=$as_save_IFS
11445 esac
11447 orig_target_cpp=$ac_cv_path_orig_target_cpp
11448 if test -n "$orig_target_cpp"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11450 $as_echo "$orig_target_cpp" >&6; }
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11457 else
11458 if test "$GCC" = "yes"; then
11459 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11460 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11461 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_path_orig_target_cpp+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 case $orig_target_cpp in
11468 [\\/]* | ?:[\\/]*)
11469 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in `dirname $aros_gcc_cpp`
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11483 done
11484 done
11485 IFS=$as_save_IFS
11488 esac
11490 orig_target_cpp=$ac_cv_path_orig_target_cpp
11491 if test -n "$orig_target_cpp"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11493 $as_echo "$orig_target_cpp" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11501 if test "$orig_target_cpp" = ""; then
11502 # Extract the first word of "cpp", so it can be a program name with args.
11503 set dummy cpp; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_orig_target_cpp+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $orig_target_cpp in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11530 esac
11532 orig_target_cpp=$ac_cv_path_orig_target_cpp
11533 if test -n "$orig_target_cpp"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11535 $as_echo "$orig_target_cpp" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11544 else
11545 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11546 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_orig_target_cpp+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 case $orig_target_cpp in
11553 [\\/]* | ?:[\\/]*)
11554 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11573 esac
11575 orig_target_cpp=$ac_cv_path_orig_target_cpp
11576 if test -n "$orig_target_cpp"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11578 $as_echo "$orig_target_cpp" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11587 req_avail=yes
11588 if test "$orig_target_cpp" = ""; then
11589 req_avail=no
11591 if test "$orig_target_cpp" = "no"; then
11592 req_avail=no
11594 if test "$req_avail" = "no"; then
11595 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11598 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11599 if test "$cross_compiling" = "yes" ; then
11600 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11601 set dummy ${target_tool_prefix}gcc; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_path_orig_target_cc+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 case $orig_target_cc in
11608 [\\/]* | ?:[\\/]*)
11609 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11623 done
11624 done
11625 IFS=$as_save_IFS
11628 esac
11630 orig_target_cc=$ac_cv_path_orig_target_cc
11631 if test -n "$orig_target_cc"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11633 $as_echo "$orig_target_cc" >&6; }
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11640 else
11641 if test "$GCC" = "yes"; then
11642 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11643 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11644 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_path_orig_target_cc+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 case $orig_target_cc in
11651 [\\/]* | ?:[\\/]*)
11652 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in `dirname $aros_gcc_gcc`
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11666 done
11667 done
11668 IFS=$as_save_IFS
11671 esac
11673 orig_target_cc=$ac_cv_path_orig_target_cc
11674 if test -n "$orig_target_cc"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11676 $as_echo "$orig_target_cc" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11684 if test "$orig_target_cc" = ""; then
11685 # Extract the first word of "gcc", so it can be a program name with args.
11686 set dummy gcc; 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_cc+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_cc in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_cc="$orig_target_cc" # 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_cc="$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_cc=$ac_cv_path_orig_target_cc
11716 if test -n "$orig_target_cc"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11718 $as_echo "$orig_target_cc" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11727 else
11728 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11729 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; 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_cc+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $orig_target_cc in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
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_cc="$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_cc=$ac_cv_path_orig_target_cc
11759 if test -n "$orig_target_cc"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11761 $as_echo "$orig_target_cc" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11770 req_avail=yes
11771 if test "$orig_target_cc" = ""; then
11772 req_avail=no
11774 if test "$orig_target_cc" = "no"; then
11775 req_avail=no
11777 if test "$req_avail" = "no"; then
11778 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11781 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11782 if test "$cross_compiling" = "yes" ; then
11783 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11784 set dummy ${target_tool_prefix}g++; ac_word=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if ${ac_cv_path_orig_target_cxx+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 case $orig_target_cxx in
11791 [\\/]* | ?:[\\/]*)
11792 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11806 done
11807 done
11808 IFS=$as_save_IFS
11811 esac
11813 orig_target_cxx=$ac_cv_path_orig_target_cxx
11814 if test -n "$orig_target_cxx"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11816 $as_echo "$orig_target_cxx" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11823 else
11824 if test "$GCC" = "yes"; then
11825 aros_gcc_g++=`$CC -print-prog-name=g++`
11826 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11827 set dummy `basename $aros_gcc_g++`; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_path_orig_target_cxx+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 case $orig_target_cxx in
11834 [\\/]* | ?:[\\/]*)
11835 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in `dirname $aros_gcc_g++`
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11849 done
11850 done
11851 IFS=$as_save_IFS
11854 esac
11856 orig_target_cxx=$ac_cv_path_orig_target_cxx
11857 if test -n "$orig_target_cxx"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11859 $as_echo "$orig_target_cxx" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11867 if test "$orig_target_cxx" = ""; then
11868 # Extract the first word of "g++", so it can be a program name with args.
11869 set dummy g++; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_orig_target_cxx+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 case $orig_target_cxx in
11876 [\\/]* | ?:[\\/]*)
11877 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11896 esac
11898 orig_target_cxx=$ac_cv_path_orig_target_cxx
11899 if test -n "$orig_target_cxx"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11901 $as_echo "$orig_target_cxx" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11910 else
11911 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11912 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_orig_target_cxx+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 case $orig_target_cxx in
11919 [\\/]* | ?:[\\/]*)
11920 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11934 done
11935 done
11936 IFS=$as_save_IFS
11939 esac
11941 orig_target_cxx=$ac_cv_path_orig_target_cxx
11942 if test -n "$orig_target_cxx"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11944 $as_echo "$orig_target_cxx" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11953 req_avail=yes
11954 if test "$orig_target_cxx" = ""; then
11955 req_avail=no
11957 if test "$orig_target_cxx" = "no"; then
11958 req_avail=no
11960 if test "$req_avail" = "no"; then
11961 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11964 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11965 if test "$cross_compiling" = "yes" ; then
11966 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11967 set dummy ${target_tool_prefix}gcc; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_path_orig_target_ld+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 case $orig_target_ld in
11974 [\\/]* | ?:[\\/]*)
11975 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11985 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11989 done
11990 done
11991 IFS=$as_save_IFS
11994 esac
11996 orig_target_ld=$ac_cv_path_orig_target_ld
11997 if test -n "$orig_target_ld"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11999 $as_echo "$orig_target_ld" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12006 else
12007 if test "$GCC" = "yes"; then
12008 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12009 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12010 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_orig_target_ld+:} false; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 case $orig_target_ld in
12017 [\\/]* | ?:[\\/]*)
12018 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in `dirname $aros_gcc_gcc`
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 break 2
12032 done
12033 done
12034 IFS=$as_save_IFS
12037 esac
12039 orig_target_ld=$ac_cv_path_orig_target_ld
12040 if test -n "$orig_target_ld"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12042 $as_echo "$orig_target_ld" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12050 if test "$orig_target_ld" = ""; then
12051 # Extract the first word of "gcc", so it can be a program name with args.
12052 set dummy gcc; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_orig_target_ld+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 case $orig_target_ld in
12059 [\\/]* | ?:[\\/]*)
12060 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12074 done
12075 done
12076 IFS=$as_save_IFS
12079 esac
12081 orig_target_ld=$ac_cv_path_orig_target_ld
12082 if test -n "$orig_target_ld"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12084 $as_echo "$orig_target_ld" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12093 else
12094 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12095 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_ld+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 case $orig_target_ld in
12102 [\\/]* | ?:[\\/]*)
12103 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12122 esac
12124 orig_target_ld=$ac_cv_path_orig_target_ld
12125 if test -n "$orig_target_ld"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12127 $as_echo "$orig_target_ld" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12136 req_avail=yes
12137 if test "$orig_target_ld" = ""; then
12138 req_avail=no
12140 if test "$orig_target_ld" = "no"; then
12141 req_avail=no
12143 if test "$req_avail" = "no"; then
12144 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12147 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12148 if test "$cross_compiling" = "yes" ; then
12149 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12150 set dummy ${target_tool_prefix}as; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_path_orig_target_as+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 case $orig_target_as in
12157 [\\/]* | ?:[\\/]*)
12158 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12172 done
12173 done
12174 IFS=$as_save_IFS
12177 esac
12179 orig_target_as=$ac_cv_path_orig_target_as
12180 if test -n "$orig_target_as"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12182 $as_echo "$orig_target_as" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12189 else
12190 if test "$GCC" = "yes"; then
12191 aros_gcc_as=`$CC -print-prog-name=as`
12192 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12193 set dummy `basename $aros_gcc_as`; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_orig_target_as+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 case $orig_target_as in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in `dirname $aros_gcc_as`
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12215 done
12216 done
12217 IFS=$as_save_IFS
12220 esac
12222 orig_target_as=$ac_cv_path_orig_target_as
12223 if test -n "$orig_target_as"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12225 $as_echo "$orig_target_as" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12233 if test "$orig_target_as" = ""; then
12234 # Extract the first word of "as", so it can be a program name with args.
12235 set dummy as; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_orig_target_as+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case $orig_target_as in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12259 IFS=$as_save_IFS
12262 esac
12264 orig_target_as=$ac_cv_path_orig_target_as
12265 if test -n "$orig_target_as"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12267 $as_echo "$orig_target_as" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12276 else
12277 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12278 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_orig_target_as+:} false; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 case $orig_target_as in
12285 [\\/]* | ?:[\\/]*)
12286 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12296 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12300 done
12301 done
12302 IFS=$as_save_IFS
12305 esac
12307 orig_target_as=$ac_cv_path_orig_target_as
12308 if test -n "$orig_target_as"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12310 $as_echo "$orig_target_as" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12319 req_avail=yes
12320 if test "$orig_target_as" = ""; then
12321 req_avail=no
12323 if test "$orig_target_as" = "no"; then
12324 req_avail=no
12326 if test "$req_avail" = "no"; then
12327 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12330 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12331 if test "$cross_compiling" = "yes" ; then
12332 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12333 set dummy ${target_tool_prefix}ar; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_orig_target_ar+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 case $orig_target_ar in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12355 done
12356 done
12357 IFS=$as_save_IFS
12360 esac
12362 orig_target_ar=$ac_cv_path_orig_target_ar
12363 if test -n "$orig_target_ar"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12365 $as_echo "$orig_target_ar" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12372 else
12373 if test "$GCC" = "yes"; then
12374 aros_gcc_ar=`$CC -print-prog-name=ar`
12375 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12376 set dummy `basename $aros_gcc_ar`; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if ${ac_cv_path_orig_target_ar+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 case $orig_target_ar in
12383 [\\/]* | ?:[\\/]*)
12384 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in `dirname $aros_gcc_ar`
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12398 done
12399 done
12400 IFS=$as_save_IFS
12403 esac
12405 orig_target_ar=$ac_cv_path_orig_target_ar
12406 if test -n "$orig_target_ar"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12408 $as_echo "$orig_target_ar" >&6; }
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12416 if test "$orig_target_ar" = ""; then
12417 # Extract the first word of "ar", so it can be a program name with args.
12418 set dummy ar; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_ar+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 case $orig_target_ar in
12425 [\\/]* | ?:[\\/]*)
12426 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12440 done
12441 done
12442 IFS=$as_save_IFS
12445 esac
12447 orig_target_ar=$ac_cv_path_orig_target_ar
12448 if test -n "$orig_target_ar"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12450 $as_echo "$orig_target_ar" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12459 else
12460 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12461 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if ${ac_cv_path_orig_target_ar+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 case $orig_target_ar in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12483 done
12484 done
12485 IFS=$as_save_IFS
12488 esac
12490 orig_target_ar=$ac_cv_path_orig_target_ar
12491 if test -n "$orig_target_ar"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12493 $as_echo "$orig_target_ar" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12502 req_avail=yes
12503 if test "$orig_target_ar" = ""; then
12504 req_avail=no
12506 if test "$orig_target_ar" = "no"; then
12507 req_avail=no
12509 if test "$req_avail" = "no"; then
12510 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12513 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12514 if test "$cross_compiling" = "yes" ; then
12515 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12516 set dummy ${target_tool_prefix}ar; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 case $orig_target_ranlib in
12523 [\\/]* | ?:[\\/]*)
12524 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12538 done
12539 done
12540 IFS=$as_save_IFS
12543 esac
12545 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12546 if test -n "$orig_target_ranlib"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12548 $as_echo "$orig_target_ranlib" >&6; }
12549 else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12555 else
12556 if test "$GCC" = "yes"; then
12557 aros_gcc_ar=`$CC -print-prog-name=ar`
12558 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12559 set dummy `basename $aros_gcc_ar`; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 case $orig_target_ranlib in
12566 [\\/]* | ?:[\\/]*)
12567 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in `dirname $aros_gcc_ar`
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12586 esac
12588 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12589 if test -n "$orig_target_ranlib"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12591 $as_echo "$orig_target_ranlib" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12599 if test "$orig_target_ranlib" = ""; then
12600 # Extract the first word of "ar", so it can be a program name with args.
12601 set dummy ar; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 case $orig_target_ranlib in
12608 [\\/]* | ?:[\\/]*)
12609 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12623 done
12624 done
12625 IFS=$as_save_IFS
12628 esac
12630 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12631 if test -n "$orig_target_ranlib"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12633 $as_echo "$orig_target_ranlib" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12642 else
12643 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12644 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $orig_target_ranlib in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12674 if test -n "$orig_target_ranlib"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12676 $as_echo "$orig_target_ranlib" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12685 req_avail=yes
12686 if test "$orig_target_ranlib" = ""; then
12687 req_avail=no
12689 if test "$orig_target_ranlib" = "no"; then
12690 req_avail=no
12692 if test "$req_avail" = "no"; then
12693 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12696 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12697 if test "$cross_compiling" = "yes" ; then
12698 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12699 set dummy ${target_tool_prefix}nm; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_path_orig_target_nm+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 case $orig_target_nm in
12706 [\\/]* | ?:[\\/]*)
12707 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12721 done
12722 done
12723 IFS=$as_save_IFS
12726 esac
12728 orig_target_nm=$ac_cv_path_orig_target_nm
12729 if test -n "$orig_target_nm"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12731 $as_echo "$orig_target_nm" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12738 else
12739 if test "$GCC" = "yes"; then
12740 aros_gcc_nm=`$CC -print-prog-name=nm`
12741 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12742 set dummy `basename $aros_gcc_nm`; ac_word=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if ${ac_cv_path_orig_target_nm+:} false; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 case $orig_target_nm in
12749 [\\/]* | ?:[\\/]*)
12750 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in `dirname $aros_gcc_nm`
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12760 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12764 done
12765 done
12766 IFS=$as_save_IFS
12769 esac
12771 orig_target_nm=$ac_cv_path_orig_target_nm
12772 if test -n "$orig_target_nm"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12774 $as_echo "$orig_target_nm" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12782 if test "$orig_target_nm" = ""; then
12783 # Extract the first word of "nm", so it can be a program name with args.
12784 set dummy nm; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if ${ac_cv_path_orig_target_nm+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 case $orig_target_nm in
12791 [\\/]* | ?:[\\/]*)
12792 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12806 done
12807 done
12808 IFS=$as_save_IFS
12811 esac
12813 orig_target_nm=$ac_cv_path_orig_target_nm
12814 if test -n "$orig_target_nm"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12816 $as_echo "$orig_target_nm" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12825 else
12826 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12827 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if ${ac_cv_path_orig_target_nm+:} false; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 case $orig_target_nm in
12834 [\\/]* | ?:[\\/]*)
12835 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12854 esac
12856 orig_target_nm=$ac_cv_path_orig_target_nm
12857 if test -n "$orig_target_nm"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12859 $as_echo "$orig_target_nm" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12868 req_avail=yes
12869 if test "$orig_target_nm" = ""; then
12870 req_avail=no
12872 if test "$orig_target_nm" = "no"; then
12873 req_avail=no
12875 if test "$req_avail" = "no"; then
12876 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12879 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12880 if test "$cross_compiling" = "yes" ; then
12881 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12882 set dummy ${target_tool_prefix}strip; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if ${ac_cv_path_orig_target_strip+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 case $orig_target_strip in
12889 [\\/]* | ?:[\\/]*)
12890 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12904 done
12905 done
12906 IFS=$as_save_IFS
12909 esac
12911 orig_target_strip=$ac_cv_path_orig_target_strip
12912 if test -n "$orig_target_strip"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12914 $as_echo "$orig_target_strip" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12921 else
12922 if test "$GCC" = "yes"; then
12923 aros_gcc_strip=`$CC -print-prog-name=strip`
12924 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12925 set dummy `basename $aros_gcc_strip`; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_orig_target_strip+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 case $orig_target_strip in
12932 [\\/]* | ?:[\\/]*)
12933 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in `dirname $aros_gcc_strip`
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12947 done
12948 done
12949 IFS=$as_save_IFS
12952 esac
12954 orig_target_strip=$ac_cv_path_orig_target_strip
12955 if test -n "$orig_target_strip"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12957 $as_echo "$orig_target_strip" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12965 if test "$orig_target_strip" = ""; then
12966 # Extract the first word of "strip", so it can be a program name with args.
12967 set dummy strip; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_path_orig_target_strip+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 case $orig_target_strip in
12974 [\\/]* | ?:[\\/]*)
12975 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12989 done
12990 done
12991 IFS=$as_save_IFS
12994 esac
12996 orig_target_strip=$ac_cv_path_orig_target_strip
12997 if test -n "$orig_target_strip"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12999 $as_echo "$orig_target_strip" >&6; }
13000 else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13008 else
13009 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13010 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if ${ac_cv_path_orig_target_strip+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 case $orig_target_strip in
13017 [\\/]* | ?:[\\/]*)
13018 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13037 esac
13039 orig_target_strip=$ac_cv_path_orig_target_strip
13040 if test -n "$orig_target_strip"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13042 $as_echo "$orig_target_strip" >&6; }
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13051 req_avail=yes
13052 if test "$orig_target_strip" = ""; then
13053 req_avail=no
13055 if test "$orig_target_strip" = "no"; then
13056 req_avail=no
13058 if test "$req_avail" = "no"; then
13059 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13062 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13063 if test "$cross_compiling" = "yes" ; then
13064 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13065 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 case $orig_target_objcopy in
13072 [\\/]* | ?:[\\/]*)
13073 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13087 done
13088 done
13089 IFS=$as_save_IFS
13092 esac
13094 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13095 if test -n "$orig_target_objcopy"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13097 $as_echo "$orig_target_objcopy" >&6; }
13098 else
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13104 else
13105 if test "$GCC" = "yes"; then
13106 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13107 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13108 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 case $orig_target_objcopy in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in `dirname $aros_gcc_objcopy`
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13126 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13130 done
13131 done
13132 IFS=$as_save_IFS
13135 esac
13137 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13138 if test -n "$orig_target_objcopy"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13140 $as_echo "$orig_target_objcopy" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13148 if test "$orig_target_objcopy" = ""; then
13149 # Extract the first word of "objcopy", so it can be a program name with args.
13150 set dummy objcopy; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 case $orig_target_objcopy in
13157 [\\/]* | ?:[\\/]*)
13158 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162 for as_dir in $PATH
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
13167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13168 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13172 done
13173 done
13174 IFS=$as_save_IFS
13177 esac
13179 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13180 if test -n "$orig_target_objcopy"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13182 $as_echo "$orig_target_objcopy" >&6; }
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13191 else
13192 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13193 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195 $as_echo_n "checking for $ac_word... " >&6; }
13196 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 case $orig_target_objcopy in
13200 [\\/]* | ?:[\\/]*)
13201 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13220 esac
13222 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13223 if test -n "$orig_target_objcopy"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13225 $as_echo "$orig_target_objcopy" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13234 req_avail=yes
13235 if test "$orig_target_objcopy" = ""; then
13236 req_avail=no
13238 if test "$orig_target_objcopy" = "no"; then
13239 req_avail=no
13241 if test "$req_avail" = "no"; then
13242 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13245 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13246 if test "$cross_compiling" = "yes" ; then
13247 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13248 set dummy ${target_tool_prefix}objdump; ac_word=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_path_orig_target_objdump+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 case $orig_target_objdump in
13255 [\\/]* | ?:[\\/]*)
13256 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13266 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13275 esac
13277 orig_target_objdump=$ac_cv_path_orig_target_objdump
13278 if test -n "$orig_target_objdump"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13280 $as_echo "$orig_target_objdump" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13287 else
13288 if test "$GCC" = "yes"; then
13289 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13290 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13291 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_objdump+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 case $orig_target_objdump in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in `dirname $aros_gcc_objdump`
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13318 esac
13320 orig_target_objdump=$ac_cv_path_orig_target_objdump
13321 if test -n "$orig_target_objdump"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13323 $as_echo "$orig_target_objdump" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$orig_target_objdump" = ""; then
13332 # Extract the first word of "objdump", so it can be a program name with args.
13333 set dummy objdump; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_orig_target_objdump+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 case $orig_target_objdump in
13340 [\\/]* | ?:[\\/]*)
13341 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13355 done
13356 done
13357 IFS=$as_save_IFS
13360 esac
13362 orig_target_objdump=$ac_cv_path_orig_target_objdump
13363 if test -n "$orig_target_objdump"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13365 $as_echo "$orig_target_objdump" >&6; }
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13374 else
13375 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13376 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if ${ac_cv_path_orig_target_objdump+:} false; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 case $orig_target_objdump in
13383 [\\/]* | ?:[\\/]*)
13384 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13398 done
13399 done
13400 IFS=$as_save_IFS
13403 esac
13405 orig_target_objdump=$ac_cv_path_orig_target_objdump
13406 if test -n "$orig_target_objdump"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13408 $as_echo "$orig_target_objdump" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13417 req_avail=yes
13418 if test "$orig_target_objdump" = ""; then
13419 req_avail=no
13421 if test "$orig_target_objdump" = "no"; then
13422 req_avail=no
13424 if test "$req_avail" = "no"; then
13425 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13429 if test "$kernel_tool_prefix" = "none" ; then
13430 # No kernel tools specified
13431 # Assume target tools == kernel tools with ELF wrapper
13432 aros_kernel_cc=$orig_target_cc
13433 aros_kernel_cxx=$orig_target_cxx
13434 aros_kernel_cpp=$orig_target_cpp
13435 aros_kernel_ld=$orig_target_ld
13436 aros_kernel_as=$orig_target_as
13437 aros_kernel_ar=$orig_target_ar
13438 aros_kernel_ranlib=$orig_target_ranlib
13439 aros_kernel_nm=$orig_target_nm
13440 aros_kernel_strip=$orig_target_strip
13441 aros_kernel_objcopy=$orig_target_objcopy
13442 aros_kernel_objdump=$orig_target_objdump
13443 use_kernel_cc_wrapper=yes
13446 # At this point, all aros_kernel_* and aros_target_*
13447 # tools should be set up correctly
13449 CC="$aros_kernel_cc $kernel_tool_flags"
13450 CPP="$aros_kernel_cpp"
13452 #-----------------------------------------------------------------------------
13454 # Find all the tools we need to compile. This could be cross-compiling
13455 # though! If that is the case we use the GNU form of the target and
13456 # simply add this to the front of the binary name. This is rather simple,
13457 # but it should work under most circumstances.
13459 # The default tools are to use the same as the host, but only if the
13460 # host and target CPU are the same. With GCC this is normally enough.
13463 aros_cc_pre=""
13464 aros_shared_ld="$aros_host_ld"
13466 aros_target_mkdep="$aros_host_mkdep"
13468 # The default tools executables to be linked to.
13469 if test "$rescomp" != ""; then
13470 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13471 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 case $aros_kernel_rescomp in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13493 done
13494 done
13495 IFS=$as_save_IFS
13498 esac
13500 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13501 if test -n "$aros_kernel_rescomp"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13503 $as_echo "$aros_kernel_rescomp" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13510 req_avail=yes
13511 if test "$aros_kernel_rescomp" = ""; then
13512 req_avail=no
13514 if test "$aros_kernel_rescomp" = "no"; then
13515 req_avail=no
13517 if test "$req_avail" = "no"; then
13518 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13522 # Set up the sources for the symlink farm
13523 if test "$crosstools" = "yes"; then
13524 crosstools_target=tools-crosstools
13527 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13528 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13530 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13531 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13532 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13533 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13534 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13535 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13536 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13538 # aros_cc_pre is a variable that is added to the front of the compiler name
13539 # in the generated aros-gcc shell script. We need this to enable the cache
13540 # to work across cleaned builds. Also, support DISTCC using the correct
13541 # environment variable.
13544 if test "x${DISTCC}" != "x" ; then
13545 if test "x${CCACHE}" != "x" ; then
13546 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13547 else
13548 aros_cc_pre="${DISTCC} "
13550 else
13551 if test "x${CCACHE}" != "x" ; then
13552 aros_cc_pre="${CCACHE} "
13556 aros_target_nostdinc_cflags=-nostdinc
13558 aros_target_nostartup_ldflags=-nostartfiles
13560 aros_target_nix_ldflags=-nix
13562 aros_target_detach_ldflags=-detach
13564 aros_target_nostdlib_ldflags=-nostdlib
13567 # Target tools
13569 if test "$aros_target_toolchain" != "yes"; then
13570 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13571 if test "$GCC" = "yes"; then
13572 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13574 else
13575 # We do not know which c compiler version we are going to build and what we need to know
13576 # here is different for different versions so this will be set later during the
13577 # build of crosstools.
13578 if test "$aros_toolchain" = "gnu" ; then
13579 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13580 elif test "$aros_toolchain" = "llvm" ; then
13581 prefix="$AROS_CROSSTOOLSDIR/bin/"
13583 aros_target_cc_path=@aros_target_cc_path@
13585 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13586 aros_target_cc="${prefix}${toolchain_c_compiler}"
13587 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13588 aros_target_as="${prefix}${toolchain_as}"
13589 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13590 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13591 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13592 aros_target_objdump="${prefix}${toolchain_objdump}"
13593 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13594 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13595 aros_target_strip="${prefix}${toolchain_strip}"
13596 aros_plain_nm="${prefix}${toolchain_nm}"
13597 aros_plain_ar="${prefix}${toolchain_ar}"
13599 # Check whether --enable-includes was given.
13600 if test "${enable_includes+set}" = set; then :
13601 enableval=$enable_includes; aros_target_incl=$enable_includes
13602 else
13603 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13607 if test "$aros_kernel_includes" = ""; then
13608 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13609 aros_kernel_includes="-isystem $aros_target_incl"
13613 if test "$aros_kernel_includes" != "" ; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13615 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13616 if test "$aros_kernel_cc_includes" = "" ; then
13617 # Try to guess where the directory is.
13618 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13619 if test -d $aros_kernel_cc_includes; then
13620 # Check if there is also an include-fixed directory and add it
13621 # to kernel compiler's include path as it may contain some of
13622 # the headers we need.
13623 if test -d "$aros_kernel_cc_includes"-fixed; then
13624 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13626 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13627 case ${host_cpu} in
13628 i[3456]86)
13629 host_cpu_glibc=i386
13632 host_cpu_glibc=${host_cpu}
13634 esac
13635 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13636 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13638 else
13639 # The directory doesn't exist, we need to do some more work.
13640 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13642 # These are the headers we're looking for.
13643 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13644 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13645 zutil.h stdint.h"
13647 dirs=
13648 for h in $headers; do
13649 # Which other headers are needed by each of the above?
13650 deps=$(echo "#include <$h>" | \
13651 $aros_kernel_cc -E -M - 2>/dev/null | \
13652 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13654 # Copy all the needed headers to a directory beneath gendir.
13655 for d in $deps; do
13656 h=$(basename $d)
13657 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13658 sed -n "s,^.*/include\(/.*\),\1,p")
13659 ! test -d $dir && mkdir -p $dir
13660 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13661 done
13662 done
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13666 $as_echo "$aros_kernel_cc_includes" >&6; }
13667 # Adding -nostdinc to kernel includes as they are always used together.
13668 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13671 if test "$crosstools" != "yes"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13673 $as_echo_n "checking for the target compiler's include path... " >&6; }
13674 if test "$aros_target_cc_includes" = "" ; then
13675 #try to guess where the directory is
13676 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13677 if ! test -d $aros_target_cc_includes; then
13678 #the directory doesn't exist, we need to do some more work
13679 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13681 #these are the headers we're looking for
13682 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13683 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13684 zutil.h"
13686 dirs=
13687 for h in $headers; do
13688 #which other headers each of the above headers needs?
13689 deps=$(echo "#include <$h>" | \
13690 $orig_target_cc -E -M - 2>/dev/null | \
13691 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13693 #copy all the needed headers to a directory beneath gendir
13694 for d in $deps; do
13695 h=$(basename $d)
13696 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13697 sed -n "s,^.*/include\(/.*\),\1,p")
13698 ! test -d $dir && mkdir -p $dir
13699 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13700 done
13701 done
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13705 $as_echo "$aros_target_cc_includes" >&6; }
13706 else
13707 # We do not know which c compiler version we are going to build and what we need to know
13708 # here is different for different versions so this will be set later during the
13709 # build of crosstools.
13710 aros_target_cc_includes=@aros_target_cc_includes@
13714 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13715 # On GCC >= 4.0 -iquote should be used
13718 save_cc="$CC"
13719 save_cflags="$CFLAGS"
13720 CFLAGS="-iquote."
13721 kernel_cflags_iquote=$host_cflags_iquote
13722 kernel_cflags_iquote_end=$host_cflags_iquote_end
13723 if test "x-$cross_compiling" = "x-yes"; then
13724 CC="$aros_kernel_cc"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13726 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13727 if test "x-$crosstools" != "x-yes"; then
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13732 main ()
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 use_no_stack_protector="yes"
13741 else
13742 use_no_stack_protector="no"
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 else
13746 # we do know it is supported for the smallest version of gcc we are going to build
13747 # we assume it's also supported by later versions
13748 use_no_stack_protector=yes
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13751 $as_echo "$use_no_stack_protector" >&6; }
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13753 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13754 if test "x-$crosstools" != "x-yes"; then
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13759 main ()
13763 return 0;
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 has_iquote="yes"
13768 else
13769 has_iquote="no"
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 else
13773 # we do know it is supported for the smallest version of gcc we are going to build
13774 # we assume it's also supported by later versions
13775 has_iquote=yes
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13778 $as_echo "$has_iquote" >&6; }
13779 if test "x-$has_iquote" = "x-yes" ; then
13780 kernel_cflags_iquote=-iquote
13781 kernel_cflags_iquote_end=
13782 else
13783 kernel_cflags_iquote=-I
13784 kernel_cflags_iquote_end=-I-
13787 if test "x-$use_no_stack_protector" = "x-yes" ; then
13788 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13791 #-----------------------------------------------------------------------------
13793 # Check if we can explicitly choose older version of symbol hashing
13795 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13796 CC="$aros_kernel_cc"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13798 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13803 main ()
13807 return 0;
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 use_hash_style="yes"
13812 else
13813 use_hash_style="no"
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13818 $as_echo "$use_hash_style" >&6; }
13819 if test "x-$use_hash_style" = "x-yes" ; then
13820 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13822 CC="$save_cc"
13823 CFLAGS="$save_cflags"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13832 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13834 # Check whether --with-resolution was given.
13835 if test "${with_resolution+set}" = set; then :
13836 withval=$with_resolution; resolution=$withval
13837 else
13838 resolution=none
13841 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13842 if test "$resolution" = "yes" ; then
13843 resolution="none"
13845 if test "$resolution" = "no" ; then
13846 resolution="none"
13848 if test "$resolution" != "none" ; then
13849 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13850 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13851 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13854 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13855 aros_cv_nominal_width=$aros_nominal_width
13856 aros_cv_nominal_height=$aros_nominal_height
13857 aros_cv_nominal_depth=$aros_nominal_depth
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13860 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13862 # Check whether --with-serial-debug was given.
13863 if test "${with_serial_debug+set}" = set; then :
13864 withval=$with_serial_debug; serial_debug=$withval
13865 else
13866 serial_debug=none
13869 if test "$aros_serial_debug" = 0 ; then
13870 serial_debug_forced=""
13871 if test "$serial_debug" = "yes" ; then
13872 serial_debug="1"
13874 if test "$serial_debug" = "no" ; then
13875 serial_debug="none"
13877 else
13878 serial_debug_forced="(forced)"
13879 serial_debug=$aros_serial_debug
13881 if test "$serial_debug" != "none" ; then
13882 aros_serial_debug=$serial_debug
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13884 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13891 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13892 # Check whether --enable-palm_debug_hack was given.
13893 if test "${enable_palm_debug_hack+set}" = set; then :
13894 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13895 else
13896 palm_debug_hack="no"
13899 if test "$palm_debug_hack" = "yes" ; then
13900 aros_palm_debug_hack="1"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13903 $as_echo "$palm_debug_hack" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13906 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13907 # Check whether --enable-usb30_code was given.
13908 if test "${enable_usb30_code+set}" = set; then :
13909 enableval=$enable_usb30_code; usb30_code="yes"
13910 else
13911 usb30_code="no"
13914 if test "$usb30_code" = "yes" ; then
13915 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13916 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13919 $as_echo "$usb30_code" >&6; }
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13922 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13923 # Check whether --enable-nesting_supervisor was given.
13924 if test "${enable_nesting_supervisor+set}" = set; then :
13925 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13926 else
13927 nesting_supervisor="no"
13930 if test "$nesting_supervisor" = "yes" ; then
13931 aros_nesting_supervisor="1"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13934 $as_echo "$nesting_supervisor" >&6; }
13936 if test "$aros_enable_mmu" = "" ; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13938 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13939 # Check whether --enable-mmu was given.
13940 if test "${enable_mmu+set}" = set; then :
13941 enableval=$enable_mmu; aros_enable_mmu=$enableval
13942 else
13943 aros_enable_mmu="yes"
13946 if test "$aros_enable_mmu" = "" ; then
13947 aros_enable_mmu="yes"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13950 $as_echo "$aros_enable_mmu" >&6; }
13952 if test "$aros_enable_mmu" = "no" ; then
13953 aros_enable_mmu="0"
13954 else
13955 aros_enable_mmu="1"
13959 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13961 if test "x-$need_dlopen" != "x-no" ; then
13962 save_libs="$LIBS"
13963 LIBS=""
13964 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13965 if test "x$ac_cv_func_dlopen" = xyes; then :
13966 have_dl="yes"
13967 else
13968 have_dl="no"
13971 if test "x-$have_dl" = "x-no" ; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13974 if ${ac_cv_lib_dl_dlopen+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 ac_check_lib_save_LIBS=$LIBS
13978 LIBS="-ldl $LIBS"
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13985 #ifdef __cplusplus
13986 extern "C"
13987 #endif
13988 char dlopen ();
13990 main ()
13992 return dlopen ();
13994 return 0;
13996 _ACEOF
13997 if ac_fn_c_try_link "$LINENO"; then :
13998 ac_cv_lib_dl_dlopen=yes
13999 else
14000 ac_cv_lib_dl_dlopen=no
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14009 have_dl="yes"
14010 aros_host_ldflags="$aros_host_ldflags -ldl"
14011 else
14012 have_dl="no"
14016 if test "x-$have_dl" = "x-no" ; then
14017 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14019 LIBS="$save_libs"
14023 # Check whether --enable-x11_hidd was given.
14024 if test "${enable_x11_hidd+set}" = set; then :
14025 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14026 else
14027 x11_hidd="$need_x11"
14030 case "x-$x11_hidd" in
14031 x-yes|x-no|x-auto) ;;
14032 *) x11_hidd="$need_x11" ;;
14033 esac
14035 ENABLE_X11=0
14037 if test "x-$x11_hidd" != "x-no" ; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14040 $as_echo_n "checking for X... " >&6; }
14043 # Check whether --with-x was given.
14044 if test "${with_x+set}" = set; then :
14045 withval=$with_x;
14048 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14049 if test "x$with_x" = xno; then
14050 # The user explicitly disabled X.
14051 have_x=disabled
14052 else
14053 case $x_includes,$x_libraries in #(
14054 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14055 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 # One or both of the vars are not set, and there is no cached value.
14059 ac_x_includes=no ac_x_libraries=no
14060 rm -f -r conftest.dir
14061 if mkdir conftest.dir; then
14062 cd conftest.dir
14063 cat >Imakefile <<'_ACEOF'
14064 incroot:
14065 @echo incroot='${INCROOT}'
14066 usrlibdir:
14067 @echo usrlibdir='${USRLIBDIR}'
14068 libdir:
14069 @echo libdir='${LIBDIR}'
14070 _ACEOF
14071 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14072 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14073 for ac_var in incroot usrlibdir libdir; do
14074 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14075 done
14076 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14077 for ac_extension in a so sl dylib la dll; do
14078 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14079 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14080 ac_im_usrlibdir=$ac_im_libdir; break
14082 done
14083 # Screen out bogus values from the imake configuration. They are
14084 # bogus both because they are the default anyway, and because
14085 # using them would break gcc on systems where it needs fixed includes.
14086 case $ac_im_incroot in
14087 /usr/include) ac_x_includes= ;;
14088 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14089 esac
14090 case $ac_im_usrlibdir in
14091 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14092 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14093 esac
14095 cd ..
14096 rm -f -r conftest.dir
14099 # Standard set of common directories for X headers.
14100 # Check X11 before X11Rn because it is often a symlink to the current release.
14101 ac_x_header_dirs='
14102 /usr/X11/include
14103 /usr/X11R7/include
14104 /usr/X11R6/include
14105 /usr/X11R5/include
14106 /usr/X11R4/include
14108 /usr/include/X11
14109 /usr/include/X11R7
14110 /usr/include/X11R6
14111 /usr/include/X11R5
14112 /usr/include/X11R4
14114 /usr/local/X11/include
14115 /usr/local/X11R7/include
14116 /usr/local/X11R6/include
14117 /usr/local/X11R5/include
14118 /usr/local/X11R4/include
14120 /usr/local/include/X11
14121 /usr/local/include/X11R7
14122 /usr/local/include/X11R6
14123 /usr/local/include/X11R5
14124 /usr/local/include/X11R4
14126 /usr/X386/include
14127 /usr/x386/include
14128 /usr/XFree86/include/X11
14130 /usr/include
14131 /usr/local/include
14132 /usr/unsupported/include
14133 /usr/athena/include
14134 /usr/local/x11r5/include
14135 /usr/lpp/Xamples/include
14137 /usr/openwin/include
14138 /usr/openwin/share/include'
14140 if test "$ac_x_includes" = no; then
14141 # Guess where to find include files, by looking for Xlib.h.
14142 # First, try using that file with no special directory specified.
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <X11/Xlib.h>
14146 _ACEOF
14147 if ac_fn_c_try_cpp "$LINENO"; then :
14148 # We can compile using X headers with no special include directory.
14149 ac_x_includes=
14150 else
14151 for ac_dir in $ac_x_header_dirs; do
14152 if test -r "$ac_dir/X11/Xlib.h"; then
14153 ac_x_includes=$ac_dir
14154 break
14156 done
14158 rm -f conftest.err conftest.i conftest.$ac_ext
14159 fi # $ac_x_includes = no
14161 if test "$ac_x_libraries" = no; then
14162 # Check for the libraries.
14163 # See if we find them without any special options.
14164 # Don't add to $LIBS permanently.
14165 ac_save_LIBS=$LIBS
14166 LIBS="-lX11 $LIBS"
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #include <X11/Xlib.h>
14171 main ()
14173 XrmInitialize ()
14175 return 0;
14177 _ACEOF
14178 if ac_fn_c_try_link "$LINENO"; then :
14179 LIBS=$ac_save_LIBS
14180 # We can link X programs with no special library path.
14181 ac_x_libraries=
14182 else
14183 LIBS=$ac_save_LIBS
14184 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14186 # Don't even attempt the hair of trying to link an X program!
14187 for ac_extension in a so sl dylib la dll; do
14188 if test -r "$ac_dir/libX11.$ac_extension"; then
14189 ac_x_libraries=$ac_dir
14190 break 2
14192 done
14193 done
14195 rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 fi # $ac_x_libraries = no
14199 case $ac_x_includes,$ac_x_libraries in #(
14200 no,* | *,no | *\'*)
14201 # Didn't find X, or a directory has "'" in its name.
14202 ac_cv_have_x="have_x=no";; #(
14204 # Record where we found X for the cache.
14205 ac_cv_have_x="have_x=yes\
14206 ac_x_includes='$ac_x_includes'\
14207 ac_x_libraries='$ac_x_libraries'"
14208 esac
14210 ;; #(
14211 *) have_x=yes;;
14212 esac
14213 eval "$ac_cv_have_x"
14214 fi # $with_x != no
14216 if test "$have_x" != yes; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14218 $as_echo "$have_x" >&6; }
14219 no_x=yes
14220 else
14221 # If each of the values was on the command line, it overrides each guess.
14222 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14223 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14224 # Update the cache value to reflect the command line values.
14225 ac_cv_have_x="have_x=yes\
14226 ac_x_includes='$x_includes'\
14227 ac_x_libraries='$x_libraries'"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14229 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14232 if test "$no_x" = yes; then
14233 # Not all programs may use this symbol, but it does not hurt to define it.
14235 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14237 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14238 else
14239 if test -n "$x_includes"; then
14240 X_CFLAGS="$X_CFLAGS -I$x_includes"
14243 # It would also be nice to do this for all -L options, not just this one.
14244 if test -n "$x_libraries"; then
14245 X_LIBS="$X_LIBS -L$x_libraries"
14246 # For Solaris; some versions of Sun CC require a space after -R and
14247 # others require no space. Words are not sufficient . . . .
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14249 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
14250 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14251 ac_xsave_c_werror_flag=$ac_c_werror_flag
14252 ac_c_werror_flag=yes
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14257 main ()
14261 return 0;
14263 _ACEOF
14264 if ac_fn_c_try_link "$LINENO"; then :
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267 X_LIBS="$X_LIBS -R$x_libraries"
14268 else
14269 LIBS="$ac_xsave_LIBS -R $x_libraries"
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14274 main ()
14278 return 0;
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283 $as_echo "yes" >&6; }
14284 X_LIBS="$X_LIBS -R $x_libraries"
14285 else
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14287 $as_echo "neither works" >&6; }
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14292 rm -f core conftest.err conftest.$ac_objext \
14293 conftest$ac_exeext conftest.$ac_ext
14294 ac_c_werror_flag=$ac_xsave_c_werror_flag
14295 LIBS=$ac_xsave_LIBS
14298 # Check for system-dependent libraries X programs must link with.
14299 # Do this before checking for the system-independent R6 libraries
14300 # (-lICE), since we may need -lsocket or whatever for X linking.
14302 if test "$ISC" = yes; then
14303 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14304 else
14305 # Martyn Johnson says this is needed for Ultrix, if the X
14306 # libraries were built with DECnet support. And Karl Berry says
14307 # the Alpha needs dnet_stub (dnet does not exist).
14308 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char XOpenDisplay ();
14320 main ()
14322 return XOpenDisplay ();
14324 return 0;
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14331 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14332 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-ldnet $LIBS"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14343 #ifdef __cplusplus
14344 extern "C"
14345 #endif
14346 char dnet_ntoa ();
14348 main ()
14350 return dnet_ntoa ();
14352 return 0;
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"; then :
14356 ac_cv_lib_dnet_dnet_ntoa=yes
14357 else
14358 ac_cv_lib_dnet_dnet_ntoa=no
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14365 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14366 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
14367 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14370 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14372 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14373 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 ac_check_lib_save_LIBS=$LIBS
14377 LIBS="-ldnet_stub $LIBS"
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char dnet_ntoa ();
14389 main ()
14391 return dnet_ntoa ();
14393 return 0;
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"; then :
14397 ac_cv_lib_dnet_stub_dnet_ntoa=yes
14398 else
14399 ac_cv_lib_dnet_stub_dnet_ntoa=no
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403 LIBS=$ac_check_lib_save_LIBS
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14406 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14407 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
14408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS="$ac_xsave_LIBS"
14417 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14418 # to get the SysV transport functions.
14419 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14420 # needs -lnsl.
14421 # The nsl library prevents programs from opening the X display
14422 # on Irix 5.2, according to T.E. Dickey.
14423 # The functions gethostbyname, getservbyname, and inet_addr are
14424 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14425 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14426 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14430 if test $ac_cv_func_gethostbyname = no; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14432 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14433 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-lnsl $LIBS"
14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 char gethostbyname ();
14449 main ()
14451 return gethostbyname ();
14453 return 0;
14455 _ACEOF
14456 if ac_fn_c_try_link "$LINENO"; then :
14457 ac_cv_lib_nsl_gethostbyname=yes
14458 else
14459 ac_cv_lib_nsl_gethostbyname=no
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_check_lib_save_LIBS
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14466 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14467 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14471 if test $ac_cv_lib_nsl_gethostbyname = no; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14473 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14474 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-lbsd $LIBS"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 char gethostbyname ();
14490 main ()
14492 return gethostbyname ();
14494 return 0;
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 ac_cv_lib_bsd_gethostbyname=yes
14499 else
14500 ac_cv_lib_bsd_gethostbyname=no
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14507 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14508 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
14509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14515 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14516 # socket/setsockopt and other routines are undefined under SCO ODT
14517 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14518 # on later versions), says Simon Leinen: it contains gethostby*
14519 # variants that don't use the name server (or something). -lsocket
14520 # must be given before -lnsl if both are needed. We assume that
14521 # if connect needs -lnsl, so does gethostbyname.
14522 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14523 if test "x$ac_cv_func_connect" = xyes; then :
14527 if test $ac_cv_func_connect = no; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14529 $as_echo_n "checking for connect in -lsocket... " >&6; }
14530 if ${ac_cv_lib_socket_connect+:} false; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 ac_check_lib_save_LIBS=$LIBS
14534 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
14541 #ifdef __cplusplus
14542 extern "C"
14543 #endif
14544 char connect ();
14546 main ()
14548 return connect ();
14550 return 0;
14552 _ACEOF
14553 if ac_fn_c_try_link "$LINENO"; then :
14554 ac_cv_lib_socket_connect=yes
14555 else
14556 ac_cv_lib_socket_connect=no
14558 rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_check_lib_save_LIBS
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14563 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14564 if test "x$ac_cv_lib_socket_connect" = xyes; then :
14565 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14570 # Guillermo Gomez says -lposix is necessary on A/UX.
14571 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
14572 if test "x$ac_cv_func_remove" = xyes; then :
14576 if test $ac_cv_func_remove = no; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14578 $as_echo_n "checking for remove in -lposix... " >&6; }
14579 if ${ac_cv_lib_posix_remove+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lposix $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char remove ();
14595 main ()
14597 return remove ();
14599 return 0;
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 ac_cv_lib_posix_remove=yes
14604 else
14605 ac_cv_lib_posix_remove=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14612 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14613 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14619 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14620 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14621 if test "x$ac_cv_func_shmat" = xyes; then :
14625 if test $ac_cv_func_shmat = no; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14627 $as_echo_n "checking for shmat in -lipc... " >&6; }
14628 if ${ac_cv_lib_ipc_shmat+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lipc $LIBS"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14639 #ifdef __cplusplus
14640 extern "C"
14641 #endif
14642 char shmat ();
14644 main ()
14646 return shmat ();
14648 return 0;
14650 _ACEOF
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_lib_ipc_shmat=yes
14653 else
14654 ac_cv_lib_ipc_shmat=no
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14658 LIBS=$ac_check_lib_save_LIBS
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14661 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14662 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14669 # Check for libraries that X11R6 Xt/Xaw programs need.
14670 ac_save_LDFLAGS=$LDFLAGS
14671 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14672 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14673 # check for ICE first), but we must link in the order -lSM -lICE or
14674 # we get undefined symbols. So assume we have SM if we have ICE.
14675 # These have to be linked with before -lX11, unlike the other
14676 # libraries we check for below, so use a different variable.
14677 # John Interrante, Karl Berry
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14679 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14680 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14681 $as_echo_n "(cached) " >&6
14682 else
14683 ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14688 /* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14691 #ifdef __cplusplus
14692 extern "C"
14693 #endif
14694 char IceConnectionNumber ();
14696 main ()
14698 return IceConnectionNumber ();
14700 return 0;
14702 _ACEOF
14703 if ac_fn_c_try_link "$LINENO"; then :
14704 ac_cv_lib_ICE_IceConnectionNumber=yes
14705 else
14706 ac_cv_lib_ICE_IceConnectionNumber=no
14708 rm -f core conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14713 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14714 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14715 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14718 LDFLAGS=$ac_save_LDFLAGS
14723 if test "x-$no_x" = "x-yes" ; then
14725 if test "x-$x11_hidd" != "x-auto" ; then
14726 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14729 else
14730 host_x_gfx=yes
14731 ENABLE_X11=1
14733 aros_host_x11_cflags="$X_CFLAGS"
14734 aros_host_x11_ldflags="$X_LIBS -lX11"
14736 # Check whether --enable-x11_shm was given.
14737 if test "${enable_x11_shm+set}" = set; then :
14738 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14739 else
14740 x11_hidd_shm="auto"
14743 case "x-$x11_hidd_shm" in
14744 x-yes|x-no|x-auto) ;;
14745 *) x11_hidd_shm="auto" ;;
14746 esac
14748 have_xshm=no
14750 if test "x-$x11_hidd_shm" != "x-no" ; then
14752 for ac_header in sys/ipc.h
14753 do :
14754 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14755 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_SYS_IPC_H 1
14758 _ACEOF
14762 done
14764 for ac_header in sys/shm.h
14765 do :
14766 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14767 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14768 cat >>confdefs.h <<_ACEOF
14769 #define HAVE_SYS_SHM_H 1
14770 _ACEOF
14774 done
14777 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14779 save_cflags="$CFLAGS"
14780 save_ldflags="$LDFLAGS"
14781 CFLAGS="$CFLAGS $X_CFLAGS"
14782 LDFLAGS="$LDFLAGS $X_LIBS"
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14784 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14785 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 ac_check_lib_save_LIBS=$LIBS
14789 LIBS="-lXext $LIBS"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14796 #ifdef __cplusplus
14797 extern "C"
14798 #endif
14799 char XShmQueryExtension ();
14801 main ()
14803 return XShmQueryExtension ();
14805 return 0;
14807 _ACEOF
14808 if ac_fn_c_try_link "$LINENO"; then :
14809 ac_cv_lib_Xext_XShmQueryExtension=yes
14810 else
14811 ac_cv_lib_Xext_XShmQueryExtension=no
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815 LIBS=$ac_check_lib_save_LIBS
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14818 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14819 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14820 have_xshm=yes
14823 CFLAGS="$save_cflags"
14824 LDFLAGS="$save_ldflags"
14828 if test "x-$have_xshm" = "x-yes" ; then
14829 DO_XSHM_SUPPORT="1"
14830 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14831 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14832 else
14833 DO_XSHM_SUPPORT="0"
14837 # Check whether --enable-x11_vidmode was given.
14838 if test "${enable_x11_vidmode+set}" = set; then :
14839 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14840 else
14841 x11_hidd_vidmode="auto"
14844 case "x-$x11_hidd_vidmode" in
14845 x-yes|x-no|x-auto) ;;
14846 *) x11_hidd_vidmode="auto" ;;
14847 esac
14849 have_vidmode=no
14851 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14853 save_cflags="$CFLAGS"
14854 save_ldflags="$LDFLAGS"
14855 CFLAGS="$CFLAGS $X_CFLAGS"
14856 LDFLAGS="$LDFLAGS $X_LIBS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14858 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14859 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lXxf86vm $LIBS"
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14870 #ifdef __cplusplus
14871 extern "C"
14872 #endif
14873 char XF86VidModeQueryExtension ();
14875 main ()
14877 return XF86VidModeQueryExtension ();
14879 return 0;
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14884 else
14885 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LIBS=$ac_check_lib_save_LIBS
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14892 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14893 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14894 have_vidmode=yes
14897 CFLAGS="$save_cflags"
14898 LDFLAGS="$save_ldflags"
14901 if test "x-$have_vidmode" = "x-yes" ; then
14902 DO_VIDMODE_SUPPORT="1"
14903 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14904 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14905 else
14906 DO_VIDMODE_SUPPORT="0"
14911 # Check whether --enable-sdl_hidd was given.
14912 if test "${enable_sdl_hidd+set}" = set; then :
14913 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14914 else
14915 sdl_hidd="auto"
14918 case "x-$sdl_hidd" in
14919 x-yes|x-no|x-auto) ;;
14920 *) sdl_hidd="auto" ;;
14921 esac
14923 if test "x-$sdl_hidd" != "x-no" ; then
14925 SDL_VERSION=1.2.5
14927 # Check whether --with-sdl-prefix was given.
14928 if test "${with_sdl_prefix+set}" = set; then :
14929 withval=$with_sdl_prefix; sdl_prefix="$withval"
14930 else
14931 sdl_prefix=""
14935 # Check whether --with-sdl-exec-prefix was given.
14936 if test "${with_sdl_exec_prefix+set}" = set; then :
14937 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14938 else
14939 sdl_exec_prefix=""
14942 # Check whether --enable-sdltest was given.
14943 if test "${enable_sdltest+set}" = set; then :
14944 enableval=$enable_sdltest;
14945 else
14946 enable_sdltest=yes
14950 if test x$sdl_exec_prefix != x ; then
14951 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14952 if test x${SDL_CONFIG+set} != xset ; then
14953 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14956 if test x$sdl_prefix != x ; then
14957 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14958 if test x${SDL_CONFIG+set} != xset ; then
14959 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14963 as_save_PATH="$PATH"
14964 if test "x$prefix" != xNONE; then
14965 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14967 # Extract the first word of "sdl-config", so it can be a program name with args.
14968 set dummy sdl-config; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 case $SDL_CONFIG in
14975 [\\/]* | ?:[\\/]*)
14976 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14990 done
14991 done
14992 IFS=$as_save_IFS
14994 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14996 esac
14998 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14999 if test -n "$SDL_CONFIG"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15001 $as_echo "$SDL_CONFIG" >&6; }
15002 else
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15008 PATH="$as_save_PATH"
15009 min_sdl_version=$SDL_VERSION
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15011 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15012 no_sdl=""
15013 if test "$SDL_CONFIG" = "no" ; then
15014 no_sdl=yes
15015 else
15016 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15017 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15019 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15021 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15023 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15025 if test "x$enable_sdltest" = "xyes" ; then
15026 ac_save_CFLAGS="$CFLAGS"
15027 ac_save_CXXFLAGS="$CXXFLAGS"
15028 ac_save_LIBS="$LIBS"
15029 CFLAGS="$CFLAGS $SDL_CFLAGS"
15030 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15031 LIBS="$LIBS $SDL_LIBS"
15032 rm -f conf.sdltest
15033 if test "$cross_compiling" = yes; then :
15034 echo $ac_n "cross compiling; assumed OK... $ac_c"
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 #include <stdio.h>
15040 #include <stdlib.h>
15041 #include <string.h>
15042 #include "SDL.h"
15044 char*
15045 my_strdup (char *str)
15047 char *new_str;
15049 if (str)
15051 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15052 strcpy (new_str, str);
15054 else
15055 new_str = NULL;
15057 return new_str;
15060 int main (int argc, char *argv[])
15062 int major, minor, micro;
15063 char *tmp_version;
15065 /* This hangs on some systems (?)
15066 system ("touch conf.sdltest");
15068 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15070 /* HP/UX 9 (%@#!) writes to sscanf strings */
15071 tmp_version = my_strdup("$min_sdl_version");
15072 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15073 printf("%s, bad version string\n", "$min_sdl_version");
15074 exit(1);
15077 if (($sdl_major_version > major) ||
15078 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15079 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15081 return 0;
15083 else
15085 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15086 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15087 printf("*** best to upgrade to the required version.\n");
15088 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15089 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15090 printf("*** config.cache before re-running configure\n");
15091 return 1;
15096 _ACEOF
15097 if ac_fn_c_try_run "$LINENO"; then :
15099 else
15100 no_sdl=yes
15102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15103 conftest.$ac_objext conftest.beam conftest.$ac_ext
15106 CFLAGS="$ac_save_CFLAGS"
15107 CXXFLAGS="$ac_save_CXXFLAGS"
15108 LIBS="$ac_save_LIBS"
15111 if test "x$no_sdl" = x ; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113 $as_echo "yes" >&6; }
15114 have_sdl="yes"
15115 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15118 if test "$SDL_CONFIG" = "no" ; then
15119 echo "*** The sdl-config script installed by SDL could not be found"
15120 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15121 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15122 echo "*** full path to sdl-config."
15123 else
15124 if test -f conf.sdltest ; then
15126 else
15127 echo "*** Could not run SDL test program, checking why..."
15128 CFLAGS="$CFLAGS $SDL_CFLAGS"
15129 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15130 LIBS="$LIBS $SDL_LIBS"
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 #include <stdio.h>
15135 #include "SDL.h"
15137 int main(int argc, char *argv[])
15138 { return 0; }
15139 #undef main
15140 #define main K_and_R_C_main
15143 main ()
15145 return 0;
15147 return 0;
15149 _ACEOF
15150 if ac_fn_c_try_link "$LINENO"; then :
15151 echo "*** The test program compiled, but did not run. This usually means"
15152 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15153 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15154 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15155 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15156 echo "*** is required on your system"
15157 echo "***"
15158 echo "*** If you have an old version installed, it is best to remove it, although"
15159 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15160 else
15161 echo "*** The test program failed to compile or link. See the file config.log for the"
15162 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15163 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15164 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 CFLAGS="$ac_save_CFLAGS"
15169 CXXFLAGS="$ac_save_CXXFLAGS"
15170 LIBS="$ac_save_LIBS"
15173 SDL_CFLAGS=""
15174 SDL_LIBS=""
15175 have_sdl="no"
15179 rm -f conf.sdltest
15182 if test "x-$have_sdl" != "x-yes" ; then
15184 if test "x-$sdl_hidd" != "x-auto" ; then
15185 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15188 else
15189 host_sdl_gfx=yes
15190 aros_host_sdl_cflags=$SDL_CFLAGS
15191 aros_host_sdl_libs=$SDL_LIBS
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15199 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15200 # Check whether --enable-dbus was given.
15201 if test "${enable_dbus+set}" = set; then :
15202 enableval=$enable_dbus; dbus="yes"
15203 else
15204 dbus="no"
15207 if test "$dbus" = "yes" ; then
15208 ENABLE_DBUS=1
15209 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15210 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15211 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15212 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15213 else
15214 ENABLE_DBUS=0
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15217 $as_echo "$dbus" >&6; }
15219 if test "$use_kernel_cc_wrapper" = "yes" ; then
15220 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15224 # Generic
15237 # Compatability with other Amiga-like operation systems
15240 # Host related
15269 # Target Related
15341 # Hosted Graphics Related
15359 # Native version related
15363 # Palm native version related
15366 # Unix/Hosted version related
15369 # MMU related
15372 # Apple iOS related
15377 # ARM default GCC target related
15384 # Android related
15389 # DBUS related
15396 #X11 related
15399 # Debug related
15405 # Collect-aros stuff: "-ius" to ignore undefined symbols
15408 # C compiler related
15413 #ObjC compiler related
15416 #Java related
15419 # USB3.0 code
15422 case "$aros_flavour" in
15423 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15424 aros_flavour="emulation" ;;
15425 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15426 aros_flavour="emulation" ;;
15427 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15428 aros_flavour="standalone";;
15429 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15430 aros_flavour="standalone";;
15431 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15432 aros_flavour="native" ;;
15433 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15434 aros_flavour="native" ;;
15435 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15436 aros_flavour="linklib" ;;
15437 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15438 aros_flavour="palmnative" ;;
15439 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15440 aros_flavour="mac68knative" ;;
15441 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15442 aros_flavour="ppcnative" ;;
15443 esac
15445 if test ! -d ${aros_inc_dir} ; then
15446 ${MKDIR} ${aros_inc_dir}
15448 if test ! -d ${aros_geninc_dir} ; then
15449 ${MKDIR} ${aros_geninc_dir}
15451 if test ! -d ${aros_hostcfg_dir} ; then
15452 ${MKDIR} ${aros_hostcfg_dir}
15454 if test ! -d ${aros_targetcfg_dir} ; then
15455 ${MKDIR} ${aros_targetcfg_dir}
15457 if test ! -d ${aros_tools_dir} ; then
15458 ${MKDIR} ${aros_tools_dir}
15460 if test ! -d ${aros_scripts_dir} ; then
15461 ${MKDIR} ${aros_scripts_dir}
15464 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15467 # Generic build tools (metamake, etc)
15468 ac_config_commands="$ac_config_commands genmf-executable-support"
15470 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15473 # Binutils
15474 ac_config_commands="$ac_config_commands binutils-support"
15476 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
15479 # Bare Elf support script and spec
15480 if test "${use_kernel_cc_wrapper}" = "yes"; then
15481 ac_config_commands="$ac_config_commands elf-compiler-support"
15483 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15487 # Host compiler support scripts and spec
15488 if test "${aros_target_toolchain}" = "no"; then
15489 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15491 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15495 # Android support
15496 if test "$aros_target_variant" == "android"; then
15497 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15501 # cmake helper
15502 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15505 cat >confcache <<\_ACEOF
15506 # This file is a shell script that caches the results of configure
15507 # tests run on this system so they can be shared between configure
15508 # scripts and configure runs, see configure's option --config-cache.
15509 # It is not useful on other systems. If it contains results you don't
15510 # want to keep, you may remove or edit it.
15512 # config.status only pays attention to the cache file if you give it
15513 # the --recheck option to rerun configure.
15515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15517 # following values.
15519 _ACEOF
15521 # The following way of writing the cache mishandles newlines in values,
15522 # but we know of no workaround that is simple, portable, and efficient.
15523 # So, we kill variables containing newlines.
15524 # Ultrix sh set writes to stderr and can't be redirected directly,
15525 # and sets the high bit in the cache file unless we assign to the vars.
15527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15528 eval ac_val=\$$ac_var
15529 case $ac_val in #(
15530 *${as_nl}*)
15531 case $ac_var in #(
15532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15534 esac
15535 case $ac_var in #(
15536 _ | IFS | as_nl) ;; #(
15537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15538 *) { eval $ac_var=; unset $ac_var;} ;;
15539 esac ;;
15540 esac
15541 done
15543 (set) 2>&1 |
15544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15545 *${as_nl}ac_space=\ *)
15546 # `set' does not quote correctly, so add quotes: double-quote
15547 # substitution turns \\\\ into \\, and sed turns \\ into \.
15548 sed -n \
15549 "s/'/'\\\\''/g;
15550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15551 ;; #(
15553 # `set' quotes correctly as required by POSIX, so do not add quotes.
15554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15556 esac |
15557 sort
15559 sed '
15560 /^ac_cv_env_/b end
15561 t clear
15562 :clear
15563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15564 t end
15565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15566 :end' >>confcache
15567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15568 if test -w "$cache_file"; then
15569 if test "x$cache_file" != "x/dev/null"; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15571 $as_echo "$as_me: updating cache $cache_file" >&6;}
15572 if test ! -f "$cache_file" || test -h "$cache_file"; then
15573 cat confcache >"$cache_file"
15574 else
15575 case $cache_file in #(
15576 */* | ?:*)
15577 mv -f confcache "$cache_file"$$ &&
15578 mv -f "$cache_file"$$ "$cache_file" ;; #(
15580 mv -f confcache "$cache_file" ;;
15581 esac
15584 else
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15589 rm -f confcache
15591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15592 # Let make expand exec_prefix.
15593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15595 DEFS=-DHAVE_CONFIG_H
15597 ac_libobjs=
15598 ac_ltlibobjs=
15600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15601 # 1. Remove the extension, and $U if already installed.
15602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15605 # will be set to the directory where LIBOBJS objects are built.
15606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15608 done
15609 LIBOBJS=$ac_libobjs
15611 LTLIBOBJS=$ac_ltlibobjs
15615 : "${CONFIG_STATUS=./config.status}"
15616 ac_write_fail=0
15617 ac_clean_files_save=$ac_clean_files
15618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15621 as_write_fail=0
15622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15623 #! $SHELL
15624 # Generated by $as_me.
15625 # Run this file to recreate the current configuration.
15626 # Compiler output produced by configure, useful for debugging
15627 # configure, is in config.log if it exists.
15629 debug=false
15630 ac_cs_recheck=false
15631 ac_cs_silent=false
15633 SHELL=\${CONFIG_SHELL-$SHELL}
15634 export SHELL
15635 _ASEOF
15636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15637 ## -------------------- ##
15638 ## M4sh Initialization. ##
15639 ## -------------------- ##
15641 # Be more Bourne compatible
15642 DUALCASE=1; export DUALCASE # for MKS sh
15643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15644 emulate sh
15645 NULLCMD=:
15646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15647 # is contrary to our usage. Disable this feature.
15648 alias -g '${1+"$@"}'='"$@"'
15649 setopt NO_GLOB_SUBST
15650 else
15651 case `(set -o) 2>/dev/null` in #(
15652 *posix*) :
15653 set -o posix ;; #(
15654 *) :
15656 esac
15660 as_nl='
15662 export as_nl
15663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15667 # Prefer a ksh shell builtin over an external printf program on Solaris,
15668 # but without wasting forks for bash or zsh.
15669 if test -z "$BASH_VERSION$ZSH_VERSION" \
15670 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15671 as_echo='print -r --'
15672 as_echo_n='print -rn --'
15673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15674 as_echo='printf %s\n'
15675 as_echo_n='printf %s'
15676 else
15677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15679 as_echo_n='/usr/ucb/echo -n'
15680 else
15681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15682 as_echo_n_body='eval
15683 arg=$1;
15684 case $arg in #(
15685 *"$as_nl"*)
15686 expr "X$arg" : "X\\(.*\\)$as_nl";
15687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15688 esac;
15689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15691 export as_echo_n_body
15692 as_echo_n='sh -c $as_echo_n_body as_echo'
15694 export as_echo_body
15695 as_echo='sh -c $as_echo_body as_echo'
15698 # The user is always right.
15699 if test "${PATH_SEPARATOR+set}" != set; then
15700 PATH_SEPARATOR=:
15701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15703 PATH_SEPARATOR=';'
15708 # IFS
15709 # We need space, tab and new line, in precisely that order. Quoting is
15710 # there to prevent editors from complaining about space-tab.
15711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15712 # splitting by setting IFS to empty value.)
15713 IFS=" "" $as_nl"
15715 # Find who we are. Look in the path if we contain no directory separator.
15716 as_myself=
15717 case $0 in #((
15718 *[\\/]* ) as_myself=$0 ;;
15719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15725 done
15726 IFS=$as_save_IFS
15729 esac
15730 # We did not find ourselves, most probably we were run as `sh COMMAND'
15731 # in which case we are not to be found in the path.
15732 if test "x$as_myself" = x; then
15733 as_myself=$0
15735 if test ! -f "$as_myself"; then
15736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15737 exit 1
15740 # Unset variables that we do not need and which cause bugs (e.g. in
15741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15742 # suppresses any "Segmentation fault" message there. '((' could
15743 # trigger a bug in pdksh 5.2.14.
15744 for as_var in BASH_ENV ENV MAIL MAILPATH
15745 do eval test x\${$as_var+set} = xset \
15746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15747 done
15748 PS1='$ '
15749 PS2='> '
15750 PS4='+ '
15752 # NLS nuisances.
15753 LC_ALL=C
15754 export LC_ALL
15755 LANGUAGE=C
15756 export LANGUAGE
15758 # CDPATH.
15759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15762 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15763 # ----------------------------------------
15764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15766 # script with STATUS, using 1 if that was 0.
15767 as_fn_error ()
15769 as_status=$1; test $as_status -eq 0 && as_status=1
15770 if test "$4"; then
15771 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15774 $as_echo "$as_me: error: $2" >&2
15775 as_fn_exit $as_status
15776 } # as_fn_error
15779 # as_fn_set_status STATUS
15780 # -----------------------
15781 # Set $? to STATUS, without forking.
15782 as_fn_set_status ()
15784 return $1
15785 } # as_fn_set_status
15787 # as_fn_exit STATUS
15788 # -----------------
15789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15790 as_fn_exit ()
15792 set +e
15793 as_fn_set_status $1
15794 exit $1
15795 } # as_fn_exit
15797 # as_fn_unset VAR
15798 # ---------------
15799 # Portably unset VAR.
15800 as_fn_unset ()
15802 { eval $1=; unset $1;}
15804 as_unset=as_fn_unset
15805 # as_fn_append VAR VALUE
15806 # ----------------------
15807 # Append the text in VALUE to the end of the definition contained in VAR. Take
15808 # advantage of any shell optimizations that allow amortized linear growth over
15809 # repeated appends, instead of the typical quadratic growth present in naive
15810 # implementations.
15811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15812 eval 'as_fn_append ()
15814 eval $1+=\$2
15816 else
15817 as_fn_append ()
15819 eval $1=\$$1\$2
15821 fi # as_fn_append
15823 # as_fn_arith ARG...
15824 # ------------------
15825 # Perform arithmetic evaluation on the ARGs, and store the result in the
15826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15827 # must be portable across $(()) and expr.
15828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15829 eval 'as_fn_arith ()
15831 as_val=$(( $* ))
15833 else
15834 as_fn_arith ()
15836 as_val=`expr "$@" || test $? -eq 1`
15838 fi # as_fn_arith
15841 if expr a : '\(a\)' >/dev/null 2>&1 &&
15842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15843 as_expr=expr
15844 else
15845 as_expr=false
15848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15849 as_basename=basename
15850 else
15851 as_basename=false
15854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15855 as_dirname=dirname
15856 else
15857 as_dirname=false
15860 as_me=`$as_basename -- "$0" ||
15861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15862 X"$0" : 'X\(//\)$' \| \
15863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15864 $as_echo X/"$0" |
15865 sed '/^.*\/\([^/][^/]*\)\/*$/{
15866 s//\1/
15869 /^X\/\(\/\/\)$/{
15870 s//\1/
15873 /^X\/\(\/\).*/{
15874 s//\1/
15877 s/.*/./; q'`
15879 # Avoid depending upon Character Ranges.
15880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15883 as_cr_digits='0123456789'
15884 as_cr_alnum=$as_cr_Letters$as_cr_digits
15886 ECHO_C= ECHO_N= ECHO_T=
15887 case `echo -n x` in #(((((
15888 -n*)
15889 case `echo 'xy\c'` in
15890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15891 xy) ECHO_C='\c';;
15892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15893 ECHO_T=' ';;
15894 esac;;
15896 ECHO_N='-n';;
15897 esac
15899 rm -f conf$$ conf$$.exe conf$$.file
15900 if test -d conf$$.dir; then
15901 rm -f conf$$.dir/conf$$.file
15902 else
15903 rm -f conf$$.dir
15904 mkdir conf$$.dir 2>/dev/null
15906 if (echo >conf$$.file) 2>/dev/null; then
15907 if ln -s conf$$.file conf$$ 2>/dev/null; then
15908 as_ln_s='ln -s'
15909 # ... but there are two gotchas:
15910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15912 # In both cases, we have to default to `cp -pR'.
15913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15914 as_ln_s='cp -pR'
15915 elif ln conf$$.file conf$$ 2>/dev/null; then
15916 as_ln_s=ln
15917 else
15918 as_ln_s='cp -pR'
15920 else
15921 as_ln_s='cp -pR'
15923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15924 rmdir conf$$.dir 2>/dev/null
15927 # as_fn_mkdir_p
15928 # -------------
15929 # Create "$as_dir" as a directory, including parents if necessary.
15930 as_fn_mkdir_p ()
15933 case $as_dir in #(
15934 -*) as_dir=./$as_dir;;
15935 esac
15936 test -d "$as_dir" || eval $as_mkdir_p || {
15937 as_dirs=
15938 while :; do
15939 case $as_dir in #(
15940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15941 *) as_qdir=$as_dir;;
15942 esac
15943 as_dirs="'$as_qdir' $as_dirs"
15944 as_dir=`$as_dirname -- "$as_dir" ||
15945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15946 X"$as_dir" : 'X\(//\)[^/]' \| \
15947 X"$as_dir" : 'X\(//\)$' \| \
15948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15949 $as_echo X"$as_dir" |
15950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15951 s//\1/
15954 /^X\(\/\/\)[^/].*/{
15955 s//\1/
15958 /^X\(\/\/\)$/{
15959 s//\1/
15962 /^X\(\/\).*/{
15963 s//\1/
15966 s/.*/./; q'`
15967 test -d "$as_dir" && break
15968 done
15969 test -z "$as_dirs" || eval "mkdir $as_dirs"
15970 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15973 } # as_fn_mkdir_p
15974 if mkdir -p . 2>/dev/null; then
15975 as_mkdir_p='mkdir -p "$as_dir"'
15976 else
15977 test -d ./-p && rmdir ./-p
15978 as_mkdir_p=false
15982 # as_fn_executable_p FILE
15983 # -----------------------
15984 # Test if FILE is an executable regular file.
15985 as_fn_executable_p ()
15987 test -f "$1" && test -x "$1"
15988 } # as_fn_executable_p
15989 as_test_x='test -x'
15990 as_executable_p=as_fn_executable_p
15992 # Sed expression to map a string onto a valid CPP name.
15993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15995 # Sed expression to map a string onto a valid variable name.
15996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15999 exec 6>&1
16000 ## ----------------------------------- ##
16001 ## Main body of $CONFIG_STATUS script. ##
16002 ## ----------------------------------- ##
16003 _ASEOF
16004 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007 # Save the log message, to keep $0 and so on meaningful, and to
16008 # report actual input values of CONFIG_FILES etc. instead of their
16009 # values after options handling.
16010 ac_log="
16011 This file was extended by $as_me, which was
16012 generated by GNU Autoconf 2.69. Invocation command line was
16014 CONFIG_FILES = $CONFIG_FILES
16015 CONFIG_HEADERS = $CONFIG_HEADERS
16016 CONFIG_LINKS = $CONFIG_LINKS
16017 CONFIG_COMMANDS = $CONFIG_COMMANDS
16018 $ $0 $@
16020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16023 _ACEOF
16025 case $ac_config_files in *"
16026 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16027 esac
16029 case $ac_config_headers in *"
16030 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16031 esac
16034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16035 # Files that config.status was made for.
16036 config_files="$ac_config_files"
16037 config_headers="$ac_config_headers"
16038 config_commands="$ac_config_commands"
16040 _ACEOF
16042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16043 ac_cs_usage="\
16044 \`$as_me' instantiates files and other configuration actions
16045 from templates according to the current configuration. Unless the files
16046 and actions are specified as TAGs, all are instantiated by default.
16048 Usage: $0 [OPTION]... [TAG]...
16050 -h, --help print this help, then exit
16051 -V, --version print version number and configuration settings, then exit
16052 --config print configuration, then exit
16053 -q, --quiet, --silent
16054 do not print progress messages
16055 -d, --debug don't remove temporary files
16056 --recheck update $as_me by reconfiguring in the same conditions
16057 --file=FILE[:TEMPLATE]
16058 instantiate the configuration file FILE
16059 --header=FILE[:TEMPLATE]
16060 instantiate the configuration header FILE
16062 Configuration files:
16063 $config_files
16065 Configuration headers:
16066 $config_headers
16068 Configuration commands:
16069 $config_commands
16071 Report bugs to the package provider."
16073 _ACEOF
16074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16076 ac_cs_version="\\
16077 config.status
16078 configured by $0, generated by GNU Autoconf 2.69,
16079 with options \\"\$ac_cs_config\\"
16081 Copyright (C) 2012 Free Software Foundation, Inc.
16082 This config.status script is free software; the Free Software Foundation
16083 gives unlimited permission to copy, distribute and modify it."
16085 ac_pwd='$ac_pwd'
16086 srcdir='$srcdir'
16087 test -n "\$AWK" || AWK=awk
16088 _ACEOF
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16091 # The default lists apply if the user does not specify any file.
16092 ac_need_defaults=:
16093 while test $# != 0
16095 case $1 in
16096 --*=?*)
16097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16099 ac_shift=:
16101 --*=)
16102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16103 ac_optarg=
16104 ac_shift=:
16107 ac_option=$1
16108 ac_optarg=$2
16109 ac_shift=shift
16111 esac
16113 case $ac_option in
16114 # Handling of the options.
16115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16116 ac_cs_recheck=: ;;
16117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16118 $as_echo "$ac_cs_version"; exit ;;
16119 --config | --confi | --conf | --con | --co | --c )
16120 $as_echo "$ac_cs_config"; exit ;;
16121 --debug | --debu | --deb | --de | --d | -d )
16122 debug=: ;;
16123 --file | --fil | --fi | --f )
16124 $ac_shift
16125 case $ac_optarg in
16126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16127 '') as_fn_error $? "missing file argument" ;;
16128 esac
16129 as_fn_append CONFIG_FILES " '$ac_optarg'"
16130 ac_need_defaults=false;;
16131 --header | --heade | --head | --hea )
16132 $ac_shift
16133 case $ac_optarg in
16134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16135 esac
16136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16137 ac_need_defaults=false;;
16138 --he | --h)
16139 # Conflict between --help and --header
16140 as_fn_error $? "ambiguous option: \`$1'
16141 Try \`$0 --help' for more information.";;
16142 --help | --hel | -h )
16143 $as_echo "$ac_cs_usage"; exit ;;
16144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16146 ac_cs_silent=: ;;
16148 # This is an error.
16149 -*) as_fn_error $? "unrecognized option: \`$1'
16150 Try \`$0 --help' for more information." ;;
16152 *) as_fn_append ac_config_targets " $1"
16153 ac_need_defaults=false ;;
16155 esac
16156 shift
16157 done
16159 ac_configure_extra_args=
16161 if $ac_cs_silent; then
16162 exec 6>/dev/null
16163 ac_configure_extra_args="$ac_configure_extra_args --silent"
16166 _ACEOF
16167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16168 if \$ac_cs_recheck; then
16169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16170 shift
16171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16172 CONFIG_SHELL='$SHELL'
16173 export CONFIG_SHELL
16174 exec "\$@"
16177 _ACEOF
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179 exec 5>>config.log
16181 echo
16182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16183 ## Running $as_me. ##
16184 _ASBOX
16185 $as_echo "$ac_log"
16186 } >&5
16188 _ACEOF
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16191 # INIT-COMMANDS
16193 aros_tools_dir=${aros_tools_dir}
16196 aros_host_exe_suffix=${aros_host_exe_suffix}
16197 aros_tools_dir=${aros_tools_dir}
16198 aros_target_cpu=${aros_target_cpu}
16199 aros_target_arch=${aros_target_arch}
16200 aros_target_suffix=${aros_target_suffix}
16201 orig_target_nm=${orig_target_nm}
16202 orig_target_as=${orig_target_as}
16203 orig_target_ar=${orig_target_ar}
16204 orig_target_ranlib=${orig_target_ranlib}
16205 orig_target_objdump=${orig_target_objdump}
16206 orig_target_objcopy=${orig_target_objcopy}
16207 orig_target_strip=${orig_target_strip}
16208 aros_kernel_ld=${aros_kernel_ld}
16212 aros_host_exe_suffix=${aros_host_exe_suffix}
16213 aros_tools_dir=${aros_tools_dir}
16214 aros_target_cpu=${aros_target_cpu}
16215 aros_target_arch=${aros_target_arch}
16216 aros_target_suffix=${aros_target_suffix}
16217 aros_kernel_ld=${aros_kernel_ld}
16221 aros_host_exe_suffix=${aros_host_exe_suffix}
16222 aros_tools_dir=${aros_tools_dir}
16223 aros_target_cpu=${aros_target_cpu}
16224 aros_target_arch=${aros_target_arch}
16225 aros_target_suffix=${aros_target_suffix}
16229 _ACEOF
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16233 # Handling of arguments.
16234 for ac_config_target in $ac_config_targets
16236 case $ac_config_target in
16237 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16238 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16240 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16241 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16242 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16243 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16244 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16245 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16246 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16247 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16248 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16249 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16250 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16251 "${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" ;;
16252 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16253 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16254 "${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" ;;
16255 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16256 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16257 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
16258 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
16259 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
16260 "${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" ;;
16261 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16263 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16264 esac
16265 done
16268 # If the user did not use the arguments to specify the items to instantiate,
16269 # then the envvar interface is used. Set only those that are not.
16270 # We use the long form for the default assignment because of an extremely
16271 # bizarre bug on SunOS 4.1.3.
16272 if $ac_need_defaults; then
16273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16274 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16278 # Have a temporary directory for convenience. Make it in the build tree
16279 # simply because there is no reason against having it here, and in addition,
16280 # creating and moving files from /tmp can sometimes cause problems.
16281 # Hook for its removal unless debugging.
16282 # Note that there is a small window in which the directory will not be cleaned:
16283 # after its creation but before its name has been assigned to `$tmp'.
16284 $debug ||
16286 tmp= ac_tmp=
16287 trap 'exit_status=$?
16288 : "${ac_tmp:=$tmp}"
16289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16291 trap 'as_fn_exit 1' 1 2 13 15
16293 # Create a (secure) tmp directory for tmp files.
16296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16297 test -d "$tmp"
16298 } ||
16300 tmp=./conf$$-$RANDOM
16301 (umask 077 && mkdir "$tmp")
16302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16303 ac_tmp=$tmp
16305 # Set up the scripts for CONFIG_FILES section.
16306 # No need to generate them if there are no CONFIG_FILES.
16307 # This happens for instance with `./config.status config.h'.
16308 if test -n "$CONFIG_FILES"; then
16311 ac_cr=`echo X | tr X '\015'`
16312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16313 # But we know of no other shell where ac_cr would be empty at this
16314 # point, so we can use a bashism as a fallback.
16315 if test "x$ac_cr" = x; then
16316 eval ac_cr=\$\'\\r\'
16318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16320 ac_cs_awk_cr='\\r'
16321 else
16322 ac_cs_awk_cr=$ac_cr
16325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16326 _ACEOF
16330 echo "cat >conf$$subs.awk <<_ACEOF" &&
16331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16332 echo "_ACEOF"
16333 } >conf$$subs.sh ||
16334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16336 ac_delim='%!_!# '
16337 for ac_last_try in false false false false false :; do
16338 . ./conf$$subs.sh ||
16339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16342 if test $ac_delim_n = $ac_delim_num; then
16343 break
16344 elif $ac_last_try; then
16345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16346 else
16347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16349 done
16350 rm -f conf$$subs.sh
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16354 _ACEOF
16355 sed -n '
16357 s/^/S["/; s/!.*/"]=/
16360 s/^[^!]*!//
16361 :repl
16362 t repl
16363 s/'"$ac_delim"'$//
16364 t delim
16367 s/\(.\{148\}\)..*/\1/
16368 t more1
16369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16372 b repl
16373 :more1
16374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16377 s/.\{148\}//
16378 t nl
16379 :delim
16381 s/\(.\{148\}\)..*/\1/
16382 t more2
16383 s/["\\]/\\&/g; s/^/"/; s/$/"/
16386 :more2
16387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16390 s/.\{148\}//
16391 t delim
16392 ' <conf$$subs.awk | sed '
16393 /^[^""]/{
16395 s/\n//
16397 ' >>$CONFIG_STATUS || ac_write_fail=1
16398 rm -f conf$$subs.awk
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 _ACAWK
16401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16402 for (key in S) S_is_set[key] = 1
16403 FS = "\a"
16407 line = $ 0
16408 nfields = split(line, field, "@")
16409 substed = 0
16410 len = length(field[1])
16411 for (i = 2; i < nfields; i++) {
16412 key = field[i]
16413 keylen = length(key)
16414 if (S_is_set[key]) {
16415 value = S[key]
16416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16417 len += length(value) + length(field[++i])
16418 substed = 1
16419 } else
16420 len += 1 + keylen
16423 print line
16426 _ACAWK
16427 _ACEOF
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16431 else
16433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16435 _ACEOF
16437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16439 # trailing colons and then remove the whole line if VPATH becomes empty
16440 # (actually we leave an empty line to preserve line numbers).
16441 if test "x$srcdir" = x.; then
16442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16444 s///
16445 s/^/:/
16446 s/[ ]*$/:/
16447 s/:\$(srcdir):/:/g
16448 s/:\${srcdir}:/:/g
16449 s/:@srcdir@:/:/g
16450 s/^:*//
16451 s/:*$//
16453 s/\(=[ ]*\).*/\1/
16455 s/\n//
16456 s/^[^=]*=[ ]*$//
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16461 fi # test -n "$CONFIG_FILES"
16463 # Set up the scripts for CONFIG_HEADERS section.
16464 # No need to generate them if there are no CONFIG_HEADERS.
16465 # This happens for instance with `./config.status Makefile'.
16466 if test -n "$CONFIG_HEADERS"; then
16467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16468 BEGIN {
16469 _ACEOF
16471 # Transform confdefs.h into an awk script `defines.awk', embedded as
16472 # here-document in config.status, that substitutes the proper values into
16473 # config.h.in to produce config.h.
16475 # Create a delimiter string that does not exist in confdefs.h, to ease
16476 # handling of long lines.
16477 ac_delim='%!_!# '
16478 for ac_last_try in false false :; do
16479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16480 if test -z "$ac_tt"; then
16481 break
16482 elif $ac_last_try; then
16483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16484 else
16485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16487 done
16489 # For the awk script, D is an array of macro values keyed by name,
16490 # likewise P contains macro parameters if any. Preserve backslash
16491 # newline sequences.
16493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16494 sed -n '
16495 s/.\{148\}/&'"$ac_delim"'/g
16496 t rset
16497 :rset
16498 s/^[ ]*#[ ]*define[ ][ ]*/ /
16499 t def
16501 :def
16502 s/\\$//
16503 t bsnl
16504 s/["\\]/\\&/g
16505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16506 D["\1"]=" \3"/p
16507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16509 :bsnl
16510 s/["\\]/\\&/g
16511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16512 D["\1"]=" \3\\\\\\n"\\/p
16513 t cont
16514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16515 t cont
16517 :cont
16519 s/.\{148\}/&'"$ac_delim"'/g
16520 t clear
16521 :clear
16522 s/\\$//
16523 t bsnlc
16524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16526 :bsnlc
16527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16528 b cont
16529 ' <confdefs.h | sed '
16530 s/'"$ac_delim"'/"\\\
16531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16534 for (key in D) D_is_set[key] = 1
16535 FS = "\a"
16537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16538 line = \$ 0
16539 split(line, arg, " ")
16540 if (arg[1] == "#") {
16541 defundef = arg[2]
16542 mac1 = arg[3]
16543 } else {
16544 defundef = substr(arg[1], 2)
16545 mac1 = arg[2]
16547 split(mac1, mac2, "(") #)
16548 macro = mac2[1]
16549 prefix = substr(line, 1, index(line, defundef) - 1)
16550 if (D_is_set[macro]) {
16551 # Preserve the white space surrounding the "#".
16552 print prefix "define", macro P[macro] D[macro]
16553 next
16554 } else {
16555 # Replace #undef with comments. This is necessary, for example,
16556 # in the case of _POSIX_SOURCE, which is predefined and required
16557 # on some systems where configure will not decide to define it.
16558 if (defundef == "undef") {
16559 print "/*", prefix defundef, macro, "*/"
16560 next
16564 { print }
16565 _ACAWK
16566 _ACEOF
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16569 fi # test -n "$CONFIG_HEADERS"
16572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16573 shift
16574 for ac_tag
16576 case $ac_tag in
16577 :[FHLC]) ac_mode=$ac_tag; continue;;
16578 esac
16579 case $ac_mode$ac_tag in
16580 :[FHL]*:*);;
16581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16582 :[FH]-) ac_tag=-:-;;
16583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16584 esac
16585 ac_save_IFS=$IFS
16586 IFS=:
16587 set x $ac_tag
16588 IFS=$ac_save_IFS
16589 shift
16590 ac_file=$1
16591 shift
16593 case $ac_mode in
16594 :L) ac_source=$1;;
16595 :[FH])
16596 ac_file_inputs=
16597 for ac_f
16599 case $ac_f in
16600 -) ac_f="$ac_tmp/stdin";;
16601 *) # Look for the file first in the build tree, then in the source tree
16602 # (if the path is not absolute). The absolute path cannot be DOS-style,
16603 # because $ac_f cannot contain `:'.
16604 test -f "$ac_f" ||
16605 case $ac_f in
16606 [\\/$]*) false;;
16607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16608 esac ||
16609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16610 esac
16611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16612 as_fn_append ac_file_inputs " '$ac_f'"
16613 done
16615 # Let's still pretend it is `configure' which instantiates (i.e., don't
16616 # use $as_me), people would be surprised to read:
16617 # /* config.h. Generated by config.status. */
16618 configure_input='Generated from '`
16619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16620 `' by configure.'
16621 if test x"$ac_file" != x-; then
16622 configure_input="$ac_file. $configure_input"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16624 $as_echo "$as_me: creating $ac_file" >&6;}
16626 # Neutralize special characters interpreted by sed in replacement strings.
16627 case $configure_input in #(
16628 *\&* | *\|* | *\\* )
16629 ac_sed_conf_input=`$as_echo "$configure_input" |
16630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16631 *) ac_sed_conf_input=$configure_input;;
16632 esac
16634 case $ac_tag in
16635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16637 esac
16639 esac
16641 ac_dir=`$as_dirname -- "$ac_file" ||
16642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16643 X"$ac_file" : 'X\(//\)[^/]' \| \
16644 X"$ac_file" : 'X\(//\)$' \| \
16645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16646 $as_echo X"$ac_file" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16648 s//\1/
16651 /^X\(\/\/\)[^/].*/{
16652 s//\1/
16655 /^X\(\/\/\)$/{
16656 s//\1/
16659 /^X\(\/\).*/{
16660 s//\1/
16663 s/.*/./; q'`
16664 as_dir="$ac_dir"; as_fn_mkdir_p
16665 ac_builddir=.
16667 case "$ac_dir" in
16668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16671 # A ".." for each directory in $ac_dir_suffix.
16672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16673 case $ac_top_builddir_sub in
16674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16676 esac ;;
16677 esac
16678 ac_abs_top_builddir=$ac_pwd
16679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16680 # for backward compatibility:
16681 ac_top_builddir=$ac_top_build_prefix
16683 case $srcdir in
16684 .) # We are building in place.
16685 ac_srcdir=.
16686 ac_top_srcdir=$ac_top_builddir_sub
16687 ac_abs_top_srcdir=$ac_pwd ;;
16688 [\\/]* | ?:[\\/]* ) # Absolute name.
16689 ac_srcdir=$srcdir$ac_dir_suffix;
16690 ac_top_srcdir=$srcdir
16691 ac_abs_top_srcdir=$srcdir ;;
16692 *) # Relative name.
16693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16694 ac_top_srcdir=$ac_top_build_prefix$srcdir
16695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16696 esac
16697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16700 case $ac_mode in
16703 # CONFIG_FILE
16706 _ACEOF
16708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16709 # If the template does not know about datarootdir, expand it.
16710 # FIXME: This hack should be removed a few years after 2.60.
16711 ac_datarootdir_hack=; ac_datarootdir_seen=
16712 ac_sed_dataroot='
16713 /datarootdir/ {
16717 /@datadir@/p
16718 /@docdir@/p
16719 /@infodir@/p
16720 /@localedir@/p
16721 /@mandir@/p'
16722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16723 *datarootdir*) ac_datarootdir_seen=yes;;
16724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16727 _ACEOF
16728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 ac_datarootdir_hack='
16730 s&@datadir@&$datadir&g
16731 s&@docdir@&$docdir&g
16732 s&@infodir@&$infodir&g
16733 s&@localedir@&$localedir&g
16734 s&@mandir@&$mandir&g
16735 s&\\\${datarootdir}&$datarootdir&g' ;;
16736 esac
16737 _ACEOF
16739 # Neutralize VPATH when `$srcdir' = `.'.
16740 # Shell code in configure.ac might set extrasub.
16741 # FIXME: do we really want to maintain this feature?
16742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743 ac_sed_extra="$ac_vpsub
16744 $extrasub
16745 _ACEOF
16746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16749 s|@configure_input@|$ac_sed_conf_input|;t t
16750 s&@top_builddir@&$ac_top_builddir_sub&;t t
16751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16752 s&@srcdir@&$ac_srcdir&;t t
16753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16754 s&@top_srcdir@&$ac_top_srcdir&;t t
16755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16756 s&@builddir@&$ac_builddir&;t t
16757 s&@abs_builddir@&$ac_abs_builddir&;t t
16758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16759 $ac_datarootdir_hack
16761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16767 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16769 which seems to be undefined. Please make sure it is defined" >&5
16770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16771 which seems to be undefined. Please make sure it is defined" >&2;}
16773 rm -f "$ac_tmp/stdin"
16774 case $ac_file in
16775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16777 esac \
16778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16782 # CONFIG_HEADER
16784 if test x"$ac_file" != x-; then
16786 $as_echo "/* $configure_input */" \
16787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16788 } >"$ac_tmp/config.h" \
16789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16793 else
16794 rm -f "$ac_file"
16795 mv "$ac_tmp/config.h" "$ac_file" \
16796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16798 else
16799 $as_echo "/* $configure_input */" \
16800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16801 || as_fn_error $? "could not create -" "$LINENO" 5
16805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16806 $as_echo "$as_me: executing $ac_file commands" >&6;}
16808 esac
16811 case $ac_file$ac_mode in
16812 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16813 "binutils-support":C)
16814 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16815 mkdir -p $prefix
16816 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16818 chmod a+x ${prefix2}-ld
16820 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16821 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16822 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16823 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16824 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16825 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16826 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16828 "elf-compiler-support":C)
16829 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16830 mkdir -p $prefix
16831 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16833 chmod a+x ${prefix2}-gcc
16835 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16837 "host-compiler-wrapper-support":C)
16838 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16839 mkdir -p $prefix
16840 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16842 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16845 esac
16846 done # for ac_tag
16849 as_fn_exit 0
16850 _ACEOF
16851 ac_clean_files=$ac_clean_files_save
16853 test $ac_write_fail = 0 ||
16854 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16857 # configure is writing to config.log, and then calls config.status.
16858 # config.status does its own redirection, appending to config.log.
16859 # Unfortunately, on DOS this fails, as config.log is still kept open
16860 # by configure, so config.status won't be able to write to it; its
16861 # output is simply discarded. So we exec the FD to /dev/null,
16862 # effectively closing config.log, so it can be properly (re)opened and
16863 # appended to by config.status. When coming back to configure, we
16864 # need to make the FD available again.
16865 if test "$no_create" != yes; then
16866 ac_cs_success=:
16867 ac_config_status_args=
16868 test "$silent" = yes &&
16869 ac_config_status_args="$ac_config_status_args --quiet"
16870 exec 5>/dev/null
16871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16872 exec 5>>config.log
16873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16874 # would make configure fail if this is the last instruction.
16875 $ac_cs_success || as_fn_exit 1
16877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16884 #XXX compatability...
16885 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16887 if test -n "$aros_shared_cflags" ; then
16888 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16889 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg