fix X11 detection so we get the correct include and libdir paths to use. export them...
[AROS.git] / configure
blob2a468fe7796d57e733b1687809b01ac061be8952
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 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4668 aros_host_arch="darwin"
4669 host_cc_elf=no
4670 if [ -z ${SED+x} ]; then SED="gsed"; fi
4671 android_build_os="darwin-x86"
4672 android_tool="android"
4673 default_android_sdk="/android-sdk-mac_x86"
4674 case "$host_cpu" in
4675 *i?86*)
4676 aros_host_cpu="i386"
4678 *x86_64*)
4679 aros_host_cpu="x86_64"
4681 *powerpc*)
4682 aros_host_cpu="ppc"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4686 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4687 aros_host_cpu="$host_cpu"
4689 esac
4691 aros_host_ldflags="$aros_host_ldflags -liconv"
4695 dragonfly*)
4696 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4697 aros_host_make="gmake"
4698 aros_host_arch="dragonfly"
4699 case $host_cpu in
4700 *i?86*)
4701 aros_host_cpu="i386"
4703 *amd64*)
4704 aros_host_cpu="x86_64"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4708 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4709 aros_host_cpu="$host_cpu"
4711 esac
4714 netbsd*)
4715 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4716 aros_host_make="gmake"
4717 aros_host_arch="netbsd"
4718 case "$host_cpu" in
4719 *i?86*)
4720 aros_host_cpu="i386"
4722 *m68k*)
4723 aros_host_cpu="m68k"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4727 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4728 aros_host_cpu="$host_cpu"
4730 esac
4731 aros_host_lib_suffix=".0.0"
4734 openbsd*)
4735 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4736 aros_host_make="gmake"
4737 aros_host_arch="openbsd"
4738 case "$host_cpu" in
4739 *i?86*)
4740 aros_host_cpu="i386"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4744 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4745 aros_host_cpu="$host_cpu"
4747 esac
4750 solaris*)
4751 aros_host_arch="solaris"
4752 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4753 case "$host_cpu" in
4754 *i?86*)
4755 aros_host_cpu="i386"
4757 *sparc*)
4758 aros_host_cpu="sparc"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4762 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4763 aros_host_cpu="$host_cpu"
4765 esac
4768 morphos*)
4769 aros_host_arch="morphos"
4770 aros_host_cpu="ppc"
4771 host_cc_elf=no
4774 amiga*)
4775 aros_host_arch="amiga"
4776 host_cc_elf=no
4777 SORT="/gg/bin/sort"
4778 TEST="/gg/bin/test"
4779 UNIQ="/gg/bin/uniq"
4780 FOR="for"
4781 TOUCH="/gg/bin/touch"
4782 case "$host_cpu" in
4783 *m68k*)
4784 aros_host_cpu="m68k"
4786 *powerpc*)
4787 aros_host_cpu="ppc"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4791 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4792 aros_host_cpu="$host_cpu"
4794 esac
4797 cygwin*)
4798 aros_host_arch="cygwin"
4799 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4800 host_cc_elf=no
4801 android_build_os="windows"
4802 android_tool="android.bat"
4803 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4805 case "$host_cpu" in
4806 *i?86*)
4807 aros_host_cpu="i386"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4811 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4812 aros_host_cpu="$host_cpu"
4814 esac
4817 mingw32*)
4818 aros_host_arch="mingw32"
4819 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4820 host_cc_elf=no
4821 android_build_os="windows"
4822 android_tool="android.bat"
4823 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4825 libpng_libextra="-lws2_32"
4827 case "$host_cpu" in
4828 *i?86*)
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4831 $as_echo_n "checking for Windows native gcc target... " >&6; }
4832 host_cpu=`gcc -dumpmachine`
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4834 $as_echo "$host_cpu" >&6; }
4837 esac
4839 case "$host_cpu" in
4840 *i?86*)
4841 aros_host_cpu="i386"
4844 mingw32*)
4845 aros_host_cpu="i386"
4848 *x86_64*)
4849 aros_host_cpu="x86_64"
4850 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4855 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4856 aros_host_cpu="$host_cpu"
4858 esac
4861 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4863 esac
4865 # Extract the first word of "ar", so it can be a program name with args.
4866 set dummy ar; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_aros_host_ar+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$aros_host_ar"; then
4873 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_aros_host_ar="ar cr"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 aros_host_ar=$ac_cv_prog_aros_host_ar
4893 if test -n "$aros_host_ar"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4895 $as_echo "$aros_host_ar" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 req_avail=yes
4903 if test "$aros_host_ar" = ""; then
4904 req_avail=no
4906 if test "$aros_host_ar" = "no"; then
4907 req_avail=no
4909 if test "$req_avail" = "no"; then
4910 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4912 # Extract the first word of "ranlib", so it can be a program name with args.
4913 set dummy ranlib; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$aros_host_ranlib"; then
4920 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_aros_host_ranlib="ranlib "
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4940 if test -n "$aros_host_ranlib"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4942 $as_echo "$aros_host_ranlib" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 req_avail=yes
4950 if test "$aros_host_ranlib" = ""; then
4951 req_avail=no
4953 if test "$aros_host_ranlib" = "no"; then
4954 req_avail=no
4956 if test "$req_avail" = "no"; then
4957 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4959 # Extract the first word of "strip", so it can be a program name with args.
4960 set dummy strip; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_aros_host_strip+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$aros_host_strip"; then
4967 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_aros_host_strip="strip "
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 aros_host_strip=$ac_cv_prog_aros_host_strip
4987 if test -n "$aros_host_strip"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4989 $as_echo "$aros_host_strip" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 req_avail=yes
4997 if test "$aros_host_strip" = ""; then
4998 req_avail=no
5000 if test "$aros_host_strip" = "no"; then
5001 req_avail=no
5003 if test "$req_avail" = "no"; then
5004 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5007 # Extract the first word of "rm", so it can be a program name with args.
5008 set dummy rm; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_RM+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$RM"; then
5015 ac_cv_prog_RM="$RM" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_RM="rm -rf"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 RM=$ac_cv_prog_RM
5035 if test -n "$RM"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5037 $as_echo "$RM" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5044 req_avail=yes
5045 if test "$RM" = ""; then
5046 req_avail=no
5048 if test "$RM" = "no"; then
5049 req_avail=no
5051 if test "$req_avail" = "no"; then
5052 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5054 # Extract the first word of "cp", so it can be a program name with args.
5055 set dummy cp; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_CP+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$CP"; then
5062 ac_cv_prog_CP="$CP" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_CP="cp "
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 CP=$ac_cv_prog_CP
5082 if test -n "$CP"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5084 $as_echo "$CP" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 req_avail=yes
5092 if test "$CP" = ""; then
5093 req_avail=no
5095 if test "$CP" = "no"; then
5096 req_avail=no
5098 if test "$req_avail" = "no"; then
5099 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5101 # Extract the first word of "mv", so it can be a program name with args.
5102 set dummy mv; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_MV+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$MV"; then
5109 ac_cv_prog_MV="$MV" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_MV="mv "
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 MV=$ac_cv_prog_MV
5129 if test -n "$MV"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5131 $as_echo "$MV" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5138 req_avail=yes
5139 if test "$MV" = ""; then
5140 req_avail=no
5142 if test "$MV" = "no"; then
5143 req_avail=no
5145 if test "$req_avail" = "no"; then
5146 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5148 # Extract the first word of "echo", so it can be a program name with args.
5149 set dummy echo; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ECHO+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ECHO"; then
5156 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ECHO="echo "
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ECHO=$ac_cv_prog_ECHO
5176 if test -n "$ECHO"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5178 $as_echo "$ECHO" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 req_avail=yes
5186 if test "$ECHO" = ""; then
5187 req_avail=no
5189 if test "$ECHO" = "no"; then
5190 req_avail=no
5192 if test "$req_avail" = "no"; then
5193 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5195 # Extract the first word of "mkdir", so it can be a program name with args.
5196 set dummy mkdir; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_MKDIR+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$MKDIR"; then
5203 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_MKDIR="mkdir -p"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5222 MKDIR=$ac_cv_prog_MKDIR
5223 if test -n "$MKDIR"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5225 $as_echo "$MKDIR" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 req_avail=yes
5233 if test "$MKDIR" = ""; then
5234 req_avail=no
5236 if test "$MKDIR" = "no"; then
5237 req_avail=no
5239 if test "$req_avail" = "no"; then
5240 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5242 # Extract the first word of "touch", so it can be a program name with args.
5243 set dummy touch; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_prog_TOUCH+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 if test -n "$TOUCH"; then
5250 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_TOUCH="touch "
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5265 IFS=$as_save_IFS
5269 TOUCH=$ac_cv_prog_TOUCH
5270 if test -n "$TOUCH"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5272 $as_echo "$TOUCH" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5279 req_avail=yes
5280 if test "$TOUCH" = ""; then
5281 req_avail=no
5283 if test "$TOUCH" = "no"; then
5284 req_avail=no
5286 if test "$req_avail" = "no"; then
5287 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5289 # Extract the first word of "sort", so it can be a program name with args.
5290 set dummy sort; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_SORT+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$SORT"; then
5297 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_SORT="sort "
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 SORT=$ac_cv_prog_SORT
5317 if test -n "$SORT"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5319 $as_echo "$SORT" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5326 req_avail=yes
5327 if test "$SORT" = ""; then
5328 req_avail=no
5330 if test "$SORT" = "no"; then
5331 req_avail=no
5333 if test "$req_avail" = "no"; then
5334 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 # Extract the first word of "uniq", so it can be a program name with args.
5337 set dummy uniq; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_UNIQ+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$UNIQ"; then
5344 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_UNIQ="uniq "
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5359 IFS=$as_save_IFS
5363 UNIQ=$ac_cv_prog_UNIQ
5364 if test -n "$UNIQ"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5366 $as_echo "$UNIQ" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 req_avail=yes
5374 if test "$UNIQ" = ""; then
5375 req_avail=no
5377 if test "$UNIQ" = "no"; then
5378 req_avail=no
5380 if test "$req_avail" = "no"; then
5381 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 # Extract the first word of "true", so it can be a program name with args.
5384 set dummy true; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_NOP+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$NOP"; then
5391 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_NOP="true "
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 NOP=$ac_cv_prog_NOP
5411 if test -n "$NOP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5413 $as_echo "$NOP" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 req_avail=yes
5421 if test "$NOP" = ""; then
5422 req_avail=no
5424 if test "$NOP" = "no"; then
5425 req_avail=no
5427 if test "$req_avail" = "no"; then
5428 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5430 # Extract the first word of "cat", so it can be a program name with args.
5431 set dummy cat; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_prog_CAT+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$CAT"; then
5438 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_CAT="cat "
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 CAT=$ac_cv_prog_CAT
5458 if test -n "$CAT"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5460 $as_echo "$CAT" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5467 req_avail=yes
5468 if test "$CAT" = ""; then
5469 req_avail=no
5471 if test "$CAT" = "no"; then
5472 req_avail=no
5474 if test "$req_avail" = "no"; then
5475 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5477 # Extract the first word of "bison", so it can be a program name with args.
5478 set dummy bison; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_BISON+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$BISON"; then
5485 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_BISON="bison "
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 BISON=$ac_cv_prog_BISON
5505 if test -n "$BISON"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5507 $as_echo "$BISON" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5514 req_avail=yes
5515 if test "$BISON" = ""; then
5516 req_avail=no
5518 if test "$BISON" = "no"; then
5519 req_avail=no
5521 if test "$req_avail" = "no"; then
5522 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5524 # Extract the first word of "flex", so it can be a program name with args.
5525 set dummy flex; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_FLEX+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$FLEX"; then
5532 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_FLEX="flex "
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 FLEX=$ac_cv_prog_FLEX
5552 if test -n "$FLEX"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5554 $as_echo "$FLEX" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 req_avail=yes
5562 if test "$FLEX" = ""; then
5563 req_avail=no
5565 if test "$FLEX" = "no"; then
5566 req_avail=no
5568 if test "$req_avail" = "no"; then
5569 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5571 # Extract the first word of "pngtopnm", so it can be a program name with args.
5572 set dummy pngtopnm; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$PNGTOPNM"; then
5579 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_PNGTOPNM="pngtopnm "
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5592 done
5593 done
5594 IFS=$as_save_IFS
5598 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5599 if test -n "$PNGTOPNM"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5601 $as_echo "$PNGTOPNM" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608 req_avail=yes
5609 if test "$PNGTOPNM" = ""; then
5610 req_avail=no
5612 if test "$PNGTOPNM" = "no"; then
5613 req_avail=no
5615 if test "$req_avail" = "no"; then
5616 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5618 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5619 set dummy ppmtoilbm; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$PPMTOILBM"; then
5626 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5646 if test -n "$PPMTOILBM"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5648 $as_echo "$PPMTOILBM" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 req_avail=yes
5656 if test "$PPMTOILBM" = ""; then
5657 req_avail=no
5659 if test "$PPMTOILBM" = "no"; then
5660 req_avail=no
5662 if test "$req_avail" = "no"; then
5663 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5665 # Extract the first word of "sed", so it can be a program name with args.
5666 set dummy sed; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_prog_SED+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$SED"; then
5673 ac_cv_prog_SED="$SED" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_SED="sed "
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5692 SED=$ac_cv_prog_SED
5693 if test -n "$SED"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5695 $as_echo "$SED" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5702 req_avail=yes
5703 if test "$SED" = ""; then
5704 req_avail=no
5706 if test "$SED" = "no"; then
5707 req_avail=no
5709 if test "$req_avail" = "no"; then
5710 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5712 # Extract the first word of "chmod", so it can be a program name with args.
5713 set dummy chmod; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_CHMOD+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$CHMOD"; then
5720 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_CHMOD="chmod "
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 CHMOD=$ac_cv_prog_CHMOD
5740 if test -n "$CHMOD"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5742 $as_echo "$CHMOD" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5749 req_avail=yes
5750 if test "$CHMOD" = ""; then
5751 req_avail=no
5753 if test "$CHMOD" = "no"; then
5754 req_avail=no
5756 if test "$req_avail" = "no"; then
5757 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5759 # Extract the first word of "patch", so it can be a program name with args.
5760 set dummy patch; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_PATCH+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$PATCH"; then
5767 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_PATCH="patch "
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5782 IFS=$as_save_IFS
5786 PATCH=$ac_cv_prog_PATCH
5787 if test -n "$PATCH"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5789 $as_echo "$PATCH" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5796 req_avail=yes
5797 if test "$PATCH" = ""; then
5798 req_avail=no
5800 if test "$PATCH" = "no"; then
5801 req_avail=no
5803 if test "$req_avail" = "no"; then
5804 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5813 if test -n "$PYTHON"; then
5814 # If the user set $PYTHON, use it and don't search something else.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5816 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5817 prog="import sys
5818 # split strings by '.' and convert to numeric. Append some zeros
5819 # because we need at least 4 digits for the hex conversion.
5820 # map returns an iterator in Python 3.0 and a list in 2.x
5821 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5822 minverhex = 0
5823 # xrange is not present in Python 3.0 and range returns an iterator
5824 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5825 sys.exit(sys.hexversion < minverhex)"
5826 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5827 ($PYTHON -c "$prog") >&5 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then :
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5838 am_display_PYTHON=$PYTHON
5839 else
5840 # Otherwise, try each interpreter until we find one that satisfies
5841 # VERSION.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5843 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5844 if ${am_cv_pathless_PYTHON+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5848 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
5849 test "$am_cv_pathless_PYTHON" = none && break
5850 prog="import sys
5851 # split strings by '.' and convert to numeric. Append some zeros
5852 # because we need at least 4 digits for the hex conversion.
5853 # map returns an iterator in Python 3.0 and a list in 2.x
5854 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5855 minverhex = 0
5856 # xrange is not present in Python 3.0 and range returns an iterator
5857 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5858 sys.exit(sys.hexversion < minverhex)"
5859 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5860 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; then :
5864 break
5866 done
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5869 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5870 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5871 if test "$am_cv_pathless_PYTHON" = none; then
5872 PYTHON=:
5873 else
5874 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5875 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_path_PYTHON+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 case $PYTHON in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5897 done
5898 done
5899 IFS=$as_save_IFS
5902 esac
5904 PYTHON=$ac_cv_path_PYTHON
5905 if test -n "$PYTHON"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5907 $as_echo "$PYTHON" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5915 am_display_PYTHON=$am_cv_pathless_PYTHON
5919 if test "$PYTHON" = :; then
5920 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5921 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5925 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5926 if ${am_cv_python_version+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5932 $as_echo "$am_cv_python_version" >&6; }
5933 PYTHON_VERSION=$am_cv_python_version
5937 PYTHON_PREFIX='${prefix}'
5939 PYTHON_EXEC_PREFIX='${exec_prefix}'
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5944 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5945 if ${am_cv_python_platform+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5951 $as_echo "$am_cv_python_platform" >&6; }
5952 PYTHON_PLATFORM=$am_cv_python_platform
5955 # Just factor out some code duplication.
5956 am_python_setup_sysconfig="\
5957 import sys
5958 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5959 # with python 3.x. See automake bug#10227.
5960 try:
5961 import sysconfig
5962 except ImportError:
5963 can_use_sysconfig = 0
5964 else:
5965 can_use_sysconfig = 1
5966 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5967 # <https://github.com/pypa/virtualenv/issues/118>
5968 try:
5969 from platform import python_implementation
5970 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5971 can_use_sysconfig = 0
5972 except ImportError:
5973 pass"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5977 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5978 if ${am_cv_python_pythondir+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test "x$prefix" = xNONE
5982 then
5983 am_py_prefix=$ac_default_prefix
5984 else
5985 am_py_prefix=$prefix
5987 am_cv_python_pythondir=`$PYTHON -c "
5988 $am_python_setup_sysconfig
5989 if can_use_sysconfig:
5990 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5991 else:
5992 from distutils import sysconfig
5993 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5994 sys.stdout.write(sitedir)"`
5995 case $am_cv_python_pythondir in
5996 $am_py_prefix*)
5997 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5998 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6001 case $am_py_prefix in
6002 /usr|/System*) ;;
6004 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6006 esac
6008 esac
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6012 $as_echo "$am_cv_python_pythondir" >&6; }
6013 pythondir=$am_cv_python_pythondir
6017 pkgpythondir=\${pythondir}/$PACKAGE
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6021 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6022 if ${am_cv_python_pyexecdir+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test "x$exec_prefix" = xNONE
6026 then
6027 am_py_exec_prefix=$am_py_prefix
6028 else
6029 am_py_exec_prefix=$exec_prefix
6031 am_cv_python_pyexecdir=`$PYTHON -c "
6032 $am_python_setup_sysconfig
6033 if can_use_sysconfig:
6034 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6035 else:
6036 from distutils import sysconfig
6037 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6038 sys.stdout.write(sitedir)"`
6039 case $am_cv_python_pyexecdir in
6040 $am_py_exec_prefix*)
6041 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6042 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6045 case $am_py_exec_prefix in
6046 /usr|/System*) ;;
6048 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6050 esac
6052 esac
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6056 $as_echo "$am_cv_python_pyexecdir" >&6; }
6057 pyexecdir=$am_cv_python_pyexecdir
6061 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6069 # Check whether --enable-libpng-config was given.
6070 if test "${enable_libpng_config+set}" = set; then :
6071 enableval=$enable_libpng_config;
6074 if test "$enable_libpng_config" != "no"; then
6075 # Extract the first word of "libpng-config", so it can be a program name with args.
6076 set dummy libpng-config; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$arosconfig_use_libpngconfig"; then
6083 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6100 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6103 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6104 if test -n "$arosconfig_use_libpngconfig"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6106 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6114 if test "$arosconfig_use_libpngconfig" = "yes"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6116 $as_echo_n "checking libpng-config library... " >&6; }
6117 libpng_incdir="`libpng-config --cflags`"
6118 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6119 libpng="`libpng-config --libs`"
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6121 $as_echo "$libpng" >&6; }
6122 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6125 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6126 if ${ac_cv_lib_png_png_read_png+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 ac_check_lib_save_LIBS=$LIBS
6130 LIBS="-lpng $LIBS"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 char png_read_png ();
6142 main ()
6144 return png_read_png ();
6146 return 0;
6148 _ACEOF
6149 if ac_fn_c_try_link "$LINENO"; then :
6150 ac_cv_lib_png_png_read_png=yes
6151 else
6152 ac_cv_lib_png_png_read_png=no
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 LIBS=$ac_check_lib_save_LIBS
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6159 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6160 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6161 libpng="-lpng"
6162 else
6163 libpng="no"
6166 if test "$libpng_libextra" != ""; then
6167 if test "$libpng" != "no"; then
6168 libpng_libextra="$libpng_libextra $libpng"
6172 req_avail=yes
6173 if test "$libpng" = ""; then
6174 req_avail=no
6176 if test "$libpng" = "no"; then
6177 req_avail=no
6179 if test "$req_avail" = "no"; then
6180 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6186 FOR=for
6188 IF=if
6190 TEST=test
6192 CMP=cmp
6196 # Check for some includes for the X11 HIDD and the kernel
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6200 if ${ac_cv_path_GREP+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -z "$GREP"; then
6204 ac_path_GREP_found=false
6205 # Loop through the user's path and test for each of PROGNAME-LIST
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_prog in grep ggrep; do
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6214 as_fn_executable_p "$ac_path_GREP" || continue
6215 # Check for GNU ac_path_GREP and select it if it is found.
6216 # Check for GNU $ac_path_GREP
6217 case `"$ac_path_GREP" --version 2>&1` in
6218 *GNU*)
6219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6221 ac_count=0
6222 $as_echo_n 0123456789 >"conftest.in"
6223 while :
6225 cat "conftest.in" "conftest.in" >"conftest.tmp"
6226 mv "conftest.tmp" "conftest.in"
6227 cp "conftest.in" "conftest.nl"
6228 $as_echo 'GREP' >> "conftest.nl"
6229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6231 as_fn_arith $ac_count + 1 && ac_count=$as_val
6232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6233 # Best one so far, save it but keep looking for a better one
6234 ac_cv_path_GREP="$ac_path_GREP"
6235 ac_path_GREP_max=$ac_count
6237 # 10*(2^10) chars as input seems more than enough
6238 test $ac_count -gt 10 && break
6239 done
6240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6241 esac
6243 $ac_path_GREP_found && break 3
6244 done
6245 done
6246 done
6247 IFS=$as_save_IFS
6248 if test -z "$ac_cv_path_GREP"; then
6249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6251 else
6252 ac_cv_path_GREP=$GREP
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6257 $as_echo "$ac_cv_path_GREP" >&6; }
6258 GREP="$ac_cv_path_GREP"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6262 $as_echo_n "checking for egrep... " >&6; }
6263 if ${ac_cv_path_EGREP+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6267 then ac_cv_path_EGREP="$GREP -E"
6268 else
6269 if test -z "$EGREP"; then
6270 ac_path_EGREP_found=false
6271 # Loop through the user's path and test for each of PROGNAME-LIST
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_prog in egrep; do
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6280 as_fn_executable_p "$ac_path_EGREP" || continue
6281 # Check for GNU ac_path_EGREP and select it if it is found.
6282 # Check for GNU $ac_path_EGREP
6283 case `"$ac_path_EGREP" --version 2>&1` in
6284 *GNU*)
6285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6287 ac_count=0
6288 $as_echo_n 0123456789 >"conftest.in"
6289 while :
6291 cat "conftest.in" "conftest.in" >"conftest.tmp"
6292 mv "conftest.tmp" "conftest.in"
6293 cp "conftest.in" "conftest.nl"
6294 $as_echo 'EGREP' >> "conftest.nl"
6295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297 as_fn_arith $ac_count + 1 && ac_count=$as_val
6298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6299 # Best one so far, save it but keep looking for a better one
6300 ac_cv_path_EGREP="$ac_path_EGREP"
6301 ac_path_EGREP_max=$ac_count
6303 # 10*(2^10) chars as input seems more than enough
6304 test $ac_count -gt 10 && break
6305 done
6306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6307 esac
6309 $ac_path_EGREP_found && break 3
6310 done
6311 done
6312 done
6313 IFS=$as_save_IFS
6314 if test -z "$ac_cv_path_EGREP"; then
6315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6317 else
6318 ac_cv_path_EGREP=$EGREP
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6324 $as_echo "$ac_cv_path_EGREP" >&6; }
6325 EGREP="$ac_cv_path_EGREP"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6329 $as_echo_n "checking for ANSI C header files... " >&6; }
6330 if ${ac_cv_header_stdc+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 #include <stdlib.h>
6336 #include <stdarg.h>
6337 #include <string.h>
6338 #include <float.h>
6341 main ()
6345 return 0;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 ac_cv_header_stdc=yes
6350 else
6351 ac_cv_header_stdc=no
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 if test $ac_cv_header_stdc = yes; then
6356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 #include <string.h>
6361 _ACEOF
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 $EGREP "memchr" >/dev/null 2>&1; then :
6365 else
6366 ac_cv_header_stdc=no
6368 rm -f conftest*
6372 if test $ac_cv_header_stdc = yes; then
6373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 #include <stdlib.h>
6378 _ACEOF
6379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380 $EGREP "free" >/dev/null 2>&1; then :
6382 else
6383 ac_cv_header_stdc=no
6385 rm -f conftest*
6389 if test $ac_cv_header_stdc = yes; then
6390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6391 if test "$cross_compiling" = yes; then :
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 #include <ctype.h>
6397 #include <stdlib.h>
6398 #if ((' ' & 0x0FF) == 0x020)
6399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6401 #else
6402 # define ISLOWER(c) \
6403 (('a' <= (c) && (c) <= 'i') \
6404 || ('j' <= (c) && (c) <= 'r') \
6405 || ('s' <= (c) && (c) <= 'z'))
6406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6407 #endif
6409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6411 main ()
6413 int i;
6414 for (i = 0; i < 256; i++)
6415 if (XOR (islower (i), ISLOWER (i))
6416 || toupper (i) != TOUPPER (i))
6417 return 2;
6418 return 0;
6420 _ACEOF
6421 if ac_fn_c_try_run "$LINENO"; then :
6423 else
6424 ac_cv_header_stdc=no
6426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6427 conftest.$ac_objext conftest.beam conftest.$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6433 $as_echo "$ac_cv_header_stdc" >&6; }
6434 if test $ac_cv_header_stdc = yes; then
6436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6442 inttypes.h stdint.h unistd.h
6443 do :
6444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6448 cat >>confdefs.h <<_ACEOF
6449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 _ACEOF
6454 done
6457 for ac_header in sys/ipc.h sys/shm.h \
6458 sys/mmap.h sys/mman.h sysexits.h \
6459 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6461 do :
6462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6465 cat >>confdefs.h <<_ACEOF
6466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6467 _ACEOF
6471 done
6474 for ac_header in sys/mount.h
6475 do :
6476 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6478 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6479 cat >>confdefs.h <<_ACEOF
6480 #define HAVE_SYS_MOUNT_H 1
6481 _ACEOF
6485 done
6488 ac_header_dirent=no
6489 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6490 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6492 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6493 if eval \${$as_ac_Header+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <sys/types.h>
6499 #include <$ac_hdr>
6502 main ()
6504 if ((DIR *) 0)
6505 return 0;
6507 return 0;
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 eval "$as_ac_Header=yes"
6512 else
6513 eval "$as_ac_Header=no"
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 eval ac_res=\$$as_ac_Header
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6519 $as_echo "$ac_res" >&6; }
6520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6521 cat >>confdefs.h <<_ACEOF
6522 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6523 _ACEOF
6525 ac_header_dirent=$ac_hdr; break
6528 done
6529 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6530 if test $ac_header_dirent = dirent.h; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6532 $as_echo_n "checking for library containing opendir... " >&6; }
6533 if ${ac_cv_search_opendir+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 ac_func_search_save_LIBS=$LIBS
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6540 /* Override any GCC internal prototype to avoid an error.
6541 Use char because int might match the return type of a GCC
6542 builtin and then its argument prototype would still apply. */
6543 #ifdef __cplusplus
6544 extern "C"
6545 #endif
6546 char opendir ();
6548 main ()
6550 return opendir ();
6552 return 0;
6554 _ACEOF
6555 for ac_lib in '' dir; do
6556 if test -z "$ac_lib"; then
6557 ac_res="none required"
6558 else
6559 ac_res=-l$ac_lib
6560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6562 if ac_fn_c_try_link "$LINENO"; then :
6563 ac_cv_search_opendir=$ac_res
6565 rm -f core conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext
6567 if ${ac_cv_search_opendir+:} false; then :
6568 break
6570 done
6571 if ${ac_cv_search_opendir+:} false; then :
6573 else
6574 ac_cv_search_opendir=no
6576 rm conftest.$ac_ext
6577 LIBS=$ac_func_search_save_LIBS
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6580 $as_echo "$ac_cv_search_opendir" >&6; }
6581 ac_res=$ac_cv_search_opendir
6582 if test "$ac_res" != no; then :
6583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6589 $as_echo_n "checking for library containing opendir... " >&6; }
6590 if ${ac_cv_search_opendir+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 ac_func_search_save_LIBS=$LIBS
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6600 #ifdef __cplusplus
6601 extern "C"
6602 #endif
6603 char opendir ();
6605 main ()
6607 return opendir ();
6609 return 0;
6611 _ACEOF
6612 for ac_lib in '' x; do
6613 if test -z "$ac_lib"; then
6614 ac_res="none required"
6615 else
6616 ac_res=-l$ac_lib
6617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_search_opendir=$ac_res
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext
6624 if ${ac_cv_search_opendir+:} false; then :
6625 break
6627 done
6628 if ${ac_cv_search_opendir+:} false; then :
6630 else
6631 ac_cv_search_opendir=no
6633 rm conftest.$ac_ext
6634 LIBS=$ac_func_search_save_LIBS
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6637 $as_echo "$ac_cv_search_opendir" >&6; }
6638 ac_res=$ac_cv_search_opendir
6639 if test "$ac_res" != no; then :
6640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6647 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6648 if ${ac_cv_header_stat_broken+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <sys/stat.h>
6656 #if defined S_ISBLK && defined S_IFDIR
6657 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6658 #endif
6660 #if defined S_ISBLK && defined S_IFCHR
6661 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6662 #endif
6664 #if defined S_ISLNK && defined S_IFREG
6665 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6666 #endif
6668 #if defined S_ISSOCK && defined S_IFREG
6669 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6670 #endif
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"; then :
6674 ac_cv_header_stat_broken=no
6675 else
6676 ac_cv_header_stat_broken=yes
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6681 $as_echo "$ac_cv_header_stat_broken" >&6; }
6682 if test $ac_cv_header_stat_broken = yes; then
6684 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6689 $as_echo_n "checking for ANSI C header files... " >&6; }
6690 if ${ac_cv_header_stdc+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 #include <stdlib.h>
6696 #include <stdarg.h>
6697 #include <string.h>
6698 #include <float.h>
6701 main ()
6705 return 0;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_header_stdc=yes
6710 else
6711 ac_cv_header_stdc=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <string.h>
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "memchr" >/dev/null 2>&1; then :
6725 else
6726 ac_cv_header_stdc=no
6728 rm -f conftest*
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <stdlib.h>
6738 _ACEOF
6739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6740 $EGREP "free" >/dev/null 2>&1; then :
6742 else
6743 ac_cv_header_stdc=no
6745 rm -f conftest*
6749 if test $ac_cv_header_stdc = yes; then
6750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6751 if test "$cross_compiling" = yes; then :
6753 else
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <ctype.h>
6757 #include <stdlib.h>
6758 #if ((' ' & 0x0FF) == 0x020)
6759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6761 #else
6762 # define ISLOWER(c) \
6763 (('a' <= (c) && (c) <= 'i') \
6764 || ('j' <= (c) && (c) <= 'r') \
6765 || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6767 #endif
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6771 main ()
6773 int i;
6774 for (i = 0; i < 256; i++)
6775 if (XOR (islower (i), ISLOWER (i))
6776 || toupper (i) != TOUPPER (i))
6777 return 2;
6778 return 0;
6780 _ACEOF
6781 if ac_fn_c_try_run "$LINENO"; then :
6783 else
6784 ac_cv_header_stdc=no
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6787 conftest.$ac_objext conftest.beam conftest.$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6793 $as_echo "$ac_cv_header_stdc" >&6; }
6794 if test $ac_cv_header_stdc = yes; then
6796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6801 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6802 if ${ac_cv_header_sys_wait_h+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6808 #include <sys/wait.h>
6809 #ifndef WEXITSTATUS
6810 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6811 #endif
6812 #ifndef WIFEXITED
6813 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6814 #endif
6817 main ()
6819 int s;
6820 wait (&s);
6821 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6823 return 0;
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 ac_cv_header_sys_wait_h=yes
6828 else
6829 ac_cv_header_sys_wait_h=no
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6834 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6835 if test $ac_cv_header_sys_wait_h = yes; then
6837 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6842 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6843 if ${ac_cv_header_time+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 #include <sys/time.h>
6850 #include <time.h>
6853 main ()
6855 if ((struct tm *) 0)
6856 return 0;
6858 return 0;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 ac_cv_header_time=yes
6863 else
6864 ac_cv_header_time=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6869 $as_echo "$ac_cv_header_time" >&6; }
6870 if test $ac_cv_header_time = yes; then
6872 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6876 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6877 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6881 _ACEOF
6884 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6889 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6890 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6894 _ACEOF
6897 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6899 else
6900 case " $LIBOBJS " in
6901 *" fileblocks.$ac_objext "* ) ;;
6902 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6904 esac
6909 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6910 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_STRUCT_STAT_ST_RDEV 1
6914 _ACEOF
6917 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6923 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6924 if ${ac_cv_struct_tm+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <time.h>
6933 main ()
6935 struct tm tm;
6936 int *p = &tm.tm_sec;
6937 return !p;
6939 return 0;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 ac_cv_struct_tm=time.h
6944 else
6945 ac_cv_struct_tm=sys/time.h
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6950 $as_echo "$ac_cv_struct_tm" >&6; }
6951 if test $ac_cv_struct_tm = sys/time.h; then
6953 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6957 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6958 #include <$ac_cv_struct_tm>
6961 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6963 cat >>confdefs.h <<_ACEOF
6964 #define HAVE_STRUCT_TM_TM_ZONE 1
6965 _ACEOF
6970 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6972 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6974 else
6975 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6977 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6978 ac_have_decl=1
6979 else
6980 ac_have_decl=0
6983 cat >>confdefs.h <<_ACEOF
6984 #define HAVE_DECL_TZNAME $ac_have_decl
6985 _ACEOF
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6988 $as_echo_n "checking for tzname... " >&6; }
6989 if ${ac_cv_var_tzname+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #include <time.h>
6995 #if !HAVE_DECL_TZNAME
6996 extern char *tzname[];
6997 #endif
7000 main ()
7002 return tzname[0][0];
7004 return 0;
7006 _ACEOF
7007 if ac_fn_c_try_link "$LINENO"; then :
7008 ac_cv_var_tzname=yes
7009 else
7010 ac_cv_var_tzname=no
7012 rm -f core conftest.err conftest.$ac_objext \
7013 conftest$ac_exeext conftest.$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7016 $as_echo "$ac_cv_var_tzname" >&6; }
7017 if test $ac_cv_var_tzname = yes; then
7019 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7024 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7025 if test "x$ac_cv_type_off_t" = xyes; then :
7027 else
7029 cat >>confdefs.h <<_ACEOF
7030 #define off_t long int
7031 _ACEOF
7035 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7036 if test "x$ac_cv_type_pid_t" = xyes; then :
7038 else
7040 cat >>confdefs.h <<_ACEOF
7041 #define pid_t int
7042 _ACEOF
7046 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7047 if test "x$ac_cv_type_size_t" = xyes; then :
7049 else
7051 cat >>confdefs.h <<_ACEOF
7052 #define size_t unsigned int
7053 _ACEOF
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7058 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7059 if ${ac_cv_type_uid_t+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #include <sys/types.h>
7066 _ACEOF
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068 $EGREP "uid_t" >/dev/null 2>&1; then :
7069 ac_cv_type_uid_t=yes
7070 else
7071 ac_cv_type_uid_t=no
7073 rm -f conftest*
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7077 $as_echo "$ac_cv_type_uid_t" >&6; }
7078 if test $ac_cv_type_uid_t = no; then
7080 $as_echo "#define uid_t int" >>confdefs.h
7083 $as_echo "#define gid_t int" >>confdefs.h
7088 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7089 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7093 _ACEOF
7099 # Look for some functions
7100 for ac_func in getpagesize kqueue statfs statvfs \
7101 clone kse_create rfork_thread thr_create sa_register \
7102 getcontext makecontext setcontext sigaltstack swapcontext
7103 do :
7104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7109 _ACEOF
7112 done
7118 for ac_header in $ac_header_list
7119 do :
7120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7121 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7123 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7124 cat >>confdefs.h <<_ACEOF
7125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126 _ACEOF
7130 done
7139 for ac_func in getpagesize
7140 do :
7141 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7142 if test "x$ac_cv_func_getpagesize" = xyes; then :
7143 cat >>confdefs.h <<_ACEOF
7144 #define HAVE_GETPAGESIZE 1
7145 _ACEOF
7148 done
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7151 $as_echo_n "checking for working mmap... " >&6; }
7152 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test "$cross_compiling" = yes; then :
7156 ac_cv_func_mmap_fixed_mapped=no
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 /* malloc might have been renamed as rpl_malloc. */
7162 #undef malloc
7164 /* Thanks to Mike Haertel and Jim Avera for this test.
7165 Here is a matrix of mmap possibilities:
7166 mmap private not fixed
7167 mmap private fixed at somewhere currently unmapped
7168 mmap private fixed at somewhere already mapped
7169 mmap shared not fixed
7170 mmap shared fixed at somewhere currently unmapped
7171 mmap shared fixed at somewhere already mapped
7172 For private mappings, we should verify that changes cannot be read()
7173 back from the file, nor mmap's back from the file at a different
7174 address. (There have been systems where private was not correctly
7175 implemented like the infamous i386 svr4.0, and systems where the
7176 VM page cache was not coherent with the file system buffer cache
7177 like early versions of FreeBSD and possibly contemporary NetBSD.)
7178 For shared mappings, we should conversely verify that changes get
7179 propagated back to all the places they're supposed to be.
7181 Grep wants private fixed already mapped.
7182 The main things grep needs to know about mmap are:
7183 * does it exist and is it safe to write into the mmap'd area
7184 * how to use it (BSD variants) */
7186 #include <fcntl.h>
7187 #include <sys/mman.h>
7189 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7190 char *malloc ();
7191 #endif
7193 /* This mess was copied from the GNU getpagesize.h. */
7194 #ifndef HAVE_GETPAGESIZE
7195 # ifdef _SC_PAGESIZE
7196 # define getpagesize() sysconf(_SC_PAGESIZE)
7197 # else /* no _SC_PAGESIZE */
7198 # ifdef HAVE_SYS_PARAM_H
7199 # include <sys/param.h>
7200 # ifdef EXEC_PAGESIZE
7201 # define getpagesize() EXEC_PAGESIZE
7202 # else /* no EXEC_PAGESIZE */
7203 # ifdef NBPG
7204 # define getpagesize() NBPG * CLSIZE
7205 # ifndef CLSIZE
7206 # define CLSIZE 1
7207 # endif /* no CLSIZE */
7208 # else /* no NBPG */
7209 # ifdef NBPC
7210 # define getpagesize() NBPC
7211 # else /* no NBPC */
7212 # ifdef PAGESIZE
7213 # define getpagesize() PAGESIZE
7214 # endif /* PAGESIZE */
7215 # endif /* no NBPC */
7216 # endif /* no NBPG */
7217 # endif /* no EXEC_PAGESIZE */
7218 # else /* no HAVE_SYS_PARAM_H */
7219 # define getpagesize() 8192 /* punt totally */
7220 # endif /* no HAVE_SYS_PARAM_H */
7221 # endif /* no _SC_PAGESIZE */
7223 #endif /* no HAVE_GETPAGESIZE */
7226 main ()
7228 char *data, *data2, *data3;
7229 const char *cdata2;
7230 int i, pagesize;
7231 int fd, fd2;
7233 pagesize = getpagesize ();
7235 /* First, make a file with some known garbage in it. */
7236 data = (char *) malloc (pagesize);
7237 if (!data)
7238 return 1;
7239 for (i = 0; i < pagesize; ++i)
7240 *(data + i) = rand ();
7241 umask (0);
7242 fd = creat ("conftest.mmap", 0600);
7243 if (fd < 0)
7244 return 2;
7245 if (write (fd, data, pagesize) != pagesize)
7246 return 3;
7247 close (fd);
7249 /* Next, check that the tail of a page is zero-filled. File must have
7250 non-zero length, otherwise we risk SIGBUS for entire page. */
7251 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7252 if (fd2 < 0)
7253 return 4;
7254 cdata2 = "";
7255 if (write (fd2, cdata2, 1) != 1)
7256 return 5;
7257 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7258 if (data2 == MAP_FAILED)
7259 return 6;
7260 for (i = 0; i < pagesize; ++i)
7261 if (*(data2 + i))
7262 return 7;
7263 close (fd2);
7264 if (munmap (data2, pagesize))
7265 return 8;
7267 /* Next, try to mmap the file at a fixed address which already has
7268 something else allocated at it. If we can, also make sure that
7269 we see the same garbage. */
7270 fd = open ("conftest.mmap", O_RDWR);
7271 if (fd < 0)
7272 return 9;
7273 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7274 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7275 return 10;
7276 for (i = 0; i < pagesize; ++i)
7277 if (*(data + i) != *(data2 + i))
7278 return 11;
7280 /* Finally, make sure that changes to the mapped area do not
7281 percolate back to the file as seen by read(). (This is a bug on
7282 some variants of i386 svr4.0.) */
7283 for (i = 0; i < pagesize; ++i)
7284 *(data2 + i) = *(data2 + i) + 1;
7285 data3 = (char *) malloc (pagesize);
7286 if (!data3)
7287 return 12;
7288 if (read (fd, data3, pagesize) != pagesize)
7289 return 13;
7290 for (i = 0; i < pagesize; ++i)
7291 if (*(data + i) != *(data3 + i))
7292 return 14;
7293 close (fd);
7294 return 0;
7296 _ACEOF
7297 if ac_fn_c_try_run "$LINENO"; then :
7298 ac_cv_func_mmap_fixed_mapped=yes
7299 else
7300 ac_cv_func_mmap_fixed_mapped=no
7302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7303 conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7308 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7311 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7314 rm -f conftest.mmap conftest.txt
7317 #-----------------------------------------------------------------------------
7320 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7321 # it switched on by default, and we use the host compiler, so it compiles AROS
7322 # code with this enabled resulting in link failures as we don't have support
7323 # for it.
7325 # We use two methods to disable it. For the host compiler (used to compile
7326 # some hosted modules), we test to see if the compiler supports stack
7327 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7328 # work on all platforms.
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7332 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7333 save_cflags="$CFLAGS"
7334 CFLAGS="$CFLAGS -fno-stack-protector"
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7339 main ()
7343 return 0;
7345 _ACEOF
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347 use_no_stack_protector="yes"
7348 else
7349 use_no_stack_protector="no"
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7353 $as_echo "$use_no_stack_protector" >&6; }
7354 if test "x-$use_no_stack_protector" = "x-yes" ; then
7355 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7357 CFLAGS="$save_cflags"
7359 #-----------------------------------------------------------------------------
7361 # Disable pointer-signedness warnings if the compiler recognises the option
7362 # (this only works for the host compiler at the moment)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7365 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7366 save_cflags="$CFLAGS"
7367 CFLAGS="$CFLAGS -Wno-pointer-sign"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7372 main ()
7376 return 0;
7378 _ACEOF
7379 if ac_fn_c_try_compile "$LINENO"; then :
7380 use_no_sign_warning="yes"
7381 else
7382 use_no_sign_warning="no"
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7386 $as_echo "$use_no_sign_warning" >&6; }
7387 if test "x-$use_no_sign_warning" = "x-yes" ; then
7388 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7390 CFLAGS="$save_cflags"
7392 #-----------------------------------------------------------------------------
7394 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7397 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7398 save_cflags="$CFLAGS"
7399 CFLAGS="$CFLAGS -fgnu89-inline"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7404 main ()
7408 return 0;
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 use_gnu89_inline="yes"
7413 else
7414 use_gnu89_inline="no"
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7418 $as_echo "$use_gnu89_inline" >&6; }
7419 if test "x-$use_gnu89_inline" = "x-yes" ; then
7420 gnu89_inline="-fgnu89-inline"
7422 CFLAGS="$save_cflags"
7425 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7426 # On GCC >= 4.0 -iquote should be used
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7429 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7430 CFLAGS="$CFLAGS -iquote."
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7435 main ()
7439 return 0;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 has_iquote="yes"
7444 else
7445 has_iquote="no"
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7449 $as_echo "$has_iquote" >&6; }
7450 if test "x-$has_iquote" = "x-yes" ; then
7451 host_cflags_iquote=-iquote
7452 host_cflags_iquote_end=
7453 else
7454 host_cflags_iquote=-I
7455 host_cflags_iquote_end=-I-
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7459 $as_echo "$as_me: Performing target configuration..." >&6;}
7462 aros_nowarn_flags="NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7464 toolchain_needs_sysroot=no
7466 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7467 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7468 aros_config_ldflags=""
7470 aros_shared_default=yes
7472 aros_shared_cflags="-fPIC"
7473 aros_shared_aflags=""
7474 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7475 aros_kernel_ldflags="-Wl,-rpath,./lib"
7477 aros_kernel_ar_flags="cr"
7478 aros_target_ar_flags="cr"
7479 aros_target_nm_flags="-C -ul"
7480 aros_target_strip_flags="--strip-unneeded -R.comment"
7482 aros_compiler_libs=
7483 aros_arch_libs=
7485 aros_target_genmap="-Wl,-Map -Xlinker"
7487 # Native flavour stuff
7488 aros_serial_debug="0"
7490 # Palm native flavour stuff
7491 aros_palm_debug_hack="0"
7493 # Unix flavour stuff
7494 aros_nesting_supervisor="0"
7496 # Collect-aros stuff: "-ius" to ignore undefined symbols
7497 ignore_undefined_symbols=""
7499 # Check for X11 by default
7500 need_x11="auto"
7502 host_x_gfx=no
7503 host_sdl_gfx=no
7504 host_android_gfx=no
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7508 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7510 # Check whether --with-toolchain was given.
7511 if test "${with_toolchain+set}" = set; then :
7512 withval=$with_toolchain; aros_toolchain="$withval"
7513 else
7514 aros_toolchain="gnu"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7518 $as_echo "$aros_toolchain" >&6; }
7520 case "$aros_toolchain" in
7521 *llvm*)
7522 # toolchain_needs_sysroot=yes
7523 toolchain_c_compiler="clang"
7524 toolchain_cxx_compiler="clang++"
7525 toolchain_cpp_preprocessor="clang -E"
7526 toolchain_ld="lld"
7527 toolchain_as="llvm-as"
7528 toolchain_ar="llvm-ar"
7529 toolchain_ranlib="llvm-ranlib"
7530 toolchain_nm="llvm-nm"
7531 toolchain_strip="true"
7532 toolchain_objcopy="llvm-objcopy"
7533 toolchain_objdump="llvm-objdump"
7535 *gnu*)
7536 toolchain_c_compiler="gcc"
7537 toolchain_cxx_compiler="g++"
7538 toolchain_cpp_preprocessor="cpp"
7539 toolchain_ld="ld"
7540 toolchain_as="as"
7541 toolchain_ar="ar"
7542 toolchain_ranlib="ranlib"
7543 toolchain_nm="nm"
7544 toolchain_strip="strip"
7545 toolchain_objcopy="objcopy"
7546 toolchain_objdump="objdump"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7550 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7551 toolchain_c_compiler="cc"
7552 toolchain_cxx_compiler="c++"
7553 toolchain_cpp_preprocessor="cpp"
7554 toolchain_ld="ld"
7555 toolchain_as="as"
7556 toolchain_ar="ar"
7557 toolchain_ranlib="ranlib"
7558 toolchain_nm="nm"
7559 toolchain_strip="strip"
7560 toolchain_objcopy="objcopy"
7561 toolchain_objdump="objdump"
7563 esac
7565 #-----------------------------------------------------------------------------
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7568 $as_echo_n "checking which type of build to do... " >&6; }
7569 # Check whether --enable-build_type was given.
7570 if test "${enable_build_type+set}" = set; then :
7571 enableval=$enable_build_type; build_type=$enableval
7572 else
7573 build_type="personal"
7577 if test "$build_type" = "nightly"; then
7578 build_type_string="NIGHTLY"
7579 elif test "$build_type" = "snapshot"; then
7580 build_type_string="SNAPSHOT"
7581 elif test "$build_type" = "milestone"; then
7582 build_type_string="MILESTONE"
7583 elif test "$build_type" = "release"; then
7584 build_type_string="RELEASE"
7585 else
7586 build_type_string="PERSONAL"
7587 build_type="personal"
7590 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7593 $as_echo "$build_type" >&6; }
7595 #-----------------------------------------------------------------------------
7596 all_debug_types="messages stack modules mungwall symbols"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7599 $as_echo_n "checking which debug types to enable... " >&6; }
7600 # Check whether --enable-debug was given.
7601 if test "${enable_debug+set}" = set; then :
7602 enableval=$enable_debug; debug="$enableval"
7603 else
7604 debug=""
7608 if test "$debug" = "" -o "$debug" = "no"; then
7609 debug="none"
7610 elif test "$debug" = "yes"; then
7611 debug="all"
7614 if test "$debug" = "all" ; then
7615 debug="messages stack modules symbols"
7616 for d in $all_debug_types; do
7617 export aros_${d}_debug="1"
7618 done
7619 else
7620 for d in $all_debug_types; do
7621 export aros_${d}_debug="0"
7622 done
7625 if test "$debug" != "none"; then
7626 debug=`echo $debug | sed s/,/\ /g`
7627 for d in $debug; do
7628 found="0"
7629 for d2 in $all_debug_types; do
7630 if test "$d2" = "$d"; then
7631 found="1"
7632 break
7634 done
7635 if test "$found" = "0"; then
7636 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7638 export aros_${d}_debug="1"
7639 done
7640 aros_debug="yes"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7643 $as_echo "$debug" >&6; }
7645 if test "$aros_messages_debug" = "1"; then
7646 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7647 else
7648 aros_messages_debug=""
7650 if test "$aros_symbols_debug" = "1"; then
7651 aros_symbols_debug="-g"
7652 else
7653 aros_symbols_debug=""
7656 # These are the flags to pass when compiling debugged programs
7657 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7658 aros_debug_aflags=""
7659 aros_debug_ldflags="$aros_symbols_debug"
7661 #-----------------------------------------------------------------------------
7662 # Checking for distcc and ccache.
7664 # Always apply the transforms in this particular order. Basically you should
7665 # always run 'ccache distcc compiler' in that order for the best performance.
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7668 $as_echo_n "checking whether to enable distcc... " >&6; }
7669 # Check whether --enable-distcc was given.
7670 if test "${enable_distcc+set}" = set; then :
7671 enableval=$enable_distcc; distcc="$enableval"
7672 else
7673 distcc="no"
7676 if test "$distcc" != "" -a "$distcc" != "no"; then
7677 # AC_CHECK_PROG will print out the result in this case
7678 # Extract the first word of "distcc", so it can be a program name with args.
7679 set dummy distcc; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_path_DISTCC+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 case $DISTCC in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7705 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7707 esac
7709 DISTCC=$ac_cv_path_DISTCC
7710 if test -n "$DISTCC"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7712 $as_echo "$DISTCC" >&6; }
7713 else
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7725 $as_echo_n "checking whether to enable ccache... " >&6; }
7726 # Check whether --enable-ccache was given.
7727 if test "${enable_ccache+set}" = set; then :
7728 enableval=$enable_ccache; ccache="$enableval"
7729 else
7730 ccache="no"
7733 if test "$ccache" != "" -a "$ccache" != "no"; then
7734 # AC_CHECK_PROG will print out the result in this case
7735 # Extract the first word of "ccache", so it can be a program name with args.
7736 set dummy ccache; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_CCACHE+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$CCACHE"; then
7743 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_CCACHE="ccache"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 CCACHE=$ac_cv_prog_CCACHE
7763 if test -n "$CCACHE"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7765 $as_echo "$CCACHE" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7777 #-----------------------------------------------------------------------------
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7779 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7781 # Check whether --with-kernel-gcc-version was given.
7782 if test "${with_kernel_gcc_version+set}" = set; then :
7783 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7784 else
7785 kernel_tool_version=""
7788 if test "$kernel_tool_version" != "" ; then
7789 msg_result=$kernel_tool_version
7790 else
7791 msg_result="default"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7794 $as_echo "$msg_result" >&6; }
7796 #-----------------------------------------------------------------------------
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7798 $as_echo_n "checking what optimization flags to use... " >&6; }
7800 # Check whether --with-optimization was given.
7801 if test "${with_optimization+set}" = set; then :
7802 withval=$with_optimization; optimization="$withval"
7803 else
7804 optimization="unknown"
7807 if test "$optimization" = "unknown"; then
7808 if test "$debug" != "none"; then
7809 optimization="-O0"
7810 else
7811 optimization="-O2"
7814 aros_optimization_cflags="$optimization"
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7816 $as_echo "$optimization" >&6; }
7818 #-----------------------------------------------------------------------------
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7820 $as_echo_n "checking which paranoia flags to use... " >&6; }
7822 # Check whether --with-paranoia was given.
7823 if test "${with_paranoia+set}" = set; then :
7824 withval=$with_paranoia; paranoia_flags="$withval"
7825 else
7826 paranoia_flags="default"
7829 if test "$paranoia_flags" = "default"; then
7830 paranoia_flags=""
7831 msg_result="none"
7832 else if test "$paranoia_flags" = "yes"; then
7833 paranoia_flags="-Wall -Werror"
7834 msg_result="$paranoia_flags"
7835 fi fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7837 $as_echo "$msg_result" >&6; }
7838 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7840 #-----------------------------------------------------------------------------
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7842 $as_echo_n "checking what target variant to enable... " >&6; }
7843 # Check whether --enable-target_variant was given.
7844 if test "${enable_target_variant+set}" = set; then :
7845 enableval=$enable_target_variant; target_variant=$enableval
7846 else
7847 target_variant=""
7850 if test "$target_variant" = ""; then
7851 aros_target_variant=""
7852 aros_target_suffix=""
7853 enableval="none"
7854 else
7855 aros_target_variant="$target_variant"
7856 aros_target_suffix="-$target_variant"
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7859 $as_echo "$enableval" >&6; }
7861 #-----------------------------------------------------------------------------
7862 # Target-specific defaults. You can override then on a per-target basis.
7864 # Bootloader name. Currently used by PC target.
7865 target_bootloader="none"
7866 ENABLE_EXECSMP=
7868 #-----------------------------------------------------------------------------
7869 # Additional options for some specific targets
7871 case "$aros_target_variant" in
7872 ios)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7874 $as_echo_n "checking XCode path... " >&6; }
7876 # Check whether --with-xcode was given.
7877 if test "${with_xcode+set}" = set; then :
7878 withval=$with_xcode; aros_xcode_path="$withval"
7879 else
7880 aros_xcode_path="/Developer"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7884 $as_echo "$aros_xcode_path" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7887 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7889 # Check whether --with-sdk-version was given.
7890 if test "${with_sdk_version+set}" = set; then :
7891 withval=$with_sdk_version; aros_sdk_version="$withval"
7892 else
7893 aros_sdk_version="4.1"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7897 $as_echo "$aros_sdk_version" >&6; }
7901 "android")
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7903 $as_echo_n "checking Android SDK path... " >&6; }
7905 # Check whether --with-sdk was given.
7906 if test "${with_sdk+set}" = set; then :
7907 withval=$with_sdk; aros_android_sdk="$withval"
7908 else
7909 aros_android_sdk=$default_android_sdk
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7913 $as_echo "$aros_android_sdk" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7916 $as_echo_n "checking Android NDK path... " >&6; }
7918 # Check whether --with-ndk was given.
7919 if test "${with_ndk+set}" = set; then :
7920 withval=$with_ndk; aros_android_ndk="$withval"
7921 else
7922 aros_android_ndk="none"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7926 $as_echo "$aros_android_ndk" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7929 $as_echo_n "checking what Android SDK version to use... " >&6; }
7931 # Check whether --with-sdk-version was given.
7932 if test "${with_sdk_version+set}" = set; then :
7933 withval=$with_sdk_version; aros_sdk_version="$withval"
7934 else
7935 aros_sdk_version="12"
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7939 $as_echo "$aros_sdk_version" >&6; }
7941 aros_android_level=android-$aros_sdk_version
7942 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7943 echo "Platform $aros_android_level is not installed in your SDK"
7944 echo "Use --with-sdk-version=<API level number> to select another platform version"
7945 echo "You can check what plaform versions are installed in your SDK"
7946 echo "by examining contents of $aros_android_sdk/platforms directory"
7947 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7950 export PATH="$aros_android_sdk/tools:$PATH"
7951 # Extract the first word of "$android_tool", so it can be a program name with args.
7952 set dummy $android_tool; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_path_android_tool+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 case $android_tool in
7959 [\\/]* | ?:[\\/]*)
7960 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7974 done
7975 done
7976 IFS=$as_save_IFS
7979 esac
7981 android_tool=$ac_cv_path_android_tool
7982 if test -n "$android_tool"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7984 $as_echo "$android_tool" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 req_avail=yes
7992 if test "$android_tool" = ""; then
7993 req_avail=no
7995 if test "$android_tool" = "no"; then
7996 req_avail=no
7998 if test "$req_avail" = "no"; then
7999 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8002 if test "$aros_android_ndk" != "none"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8004 $as_echo_n "checking what Android NDK version to use... " >&6; }
8006 # Check whether --with-ndk-version was given.
8007 if test "${with_ndk_version+set}" = set; then :
8008 withval=$with_ndk_version; aros_ndk_version="$withval"
8009 else
8010 aros_ndk_version="9"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8014 $as_echo "$aros_ndk_version" >&6; }
8017 # Extract the first word of "ant", so it can be a program name with args.
8018 set dummy ant; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_path_ant+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 case $ant in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8040 done
8041 done
8042 IFS=$as_save_IFS
8045 esac
8047 ant=$ac_cv_path_ant
8048 if test -n "$ant"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8050 $as_echo "$ant" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8057 if test "$ant" = ""; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8059 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8063 $as_echo_n "checking Build debug or release apk... " >&6; }
8065 # Check whether --with-apk-version was given.
8066 if test "${with_apk_version+set}" = set; then :
8067 withval=$with_apk_version; aros_android_antapk=$withval
8068 else
8069 aros_android_antapk=release
8072 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8073 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8076 $as_echo "$aros_android_antapk" >&6; }
8078 if test "$host_os" = "mingw32"; then
8079 android_tool="cmd //c $android_tool"
8082 need_dlopen="no"
8085 esac
8087 #-----------------------------------------------------------------------------
8088 # External toolchains
8089 kernel_tool_prefix="none"
8090 aros_tool_prefix="none"
8091 elf_tool_prefix="${target_cpu}-elf-"
8093 # This is the target configuration switch.
8094 case "$target_os" in
8095 linux*)
8096 aros_target_arch="linux"
8097 aros_target_family="unix"
8098 case "$target_cpu" in
8099 *m68k*)
8100 aros_target_cpu="m68k"
8101 aros_object_format="m68kelf"
8102 aros_flavour="emulcompat"
8103 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8104 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8105 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8106 gcc_target_cpu="mc68000"
8108 *i?86*)
8109 aros_target_cpu="i386"
8110 aros_object_format="elf_i386"
8111 aros_flavour="emulation"
8112 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8113 aros_kernel_ldflags="-Wl,-melf_i386"
8114 aros_nominal_depth=8
8115 gcc_target_cpu="i386"
8116 pci_hidd_target="hidd-pci-linux"
8117 android_tool_dir_prefix="x86"
8118 android_tool_prefix="i686-android-linux"
8119 android_ndk_arch="x86"
8121 *x86_64*)
8122 aros_target_cpu="x86_64"
8123 aros_object_format="elf_x86_64"
8124 aros_flavour="emulation"
8125 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8126 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8127 aros_nominal_depth=8
8128 pci_hidd_target="hidd-pci-linux"
8130 *powerpc*)
8131 aros_target_cpu="ppc"
8132 aros_object_format="elf32ppc"
8133 aros_flavour="emulation"
8134 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8135 aros_nominal_depth=8
8136 gcc_target_cpu="ppc"
8138 # TODO
8139 # Same as powerpc, but I need this for the nightly build to work again.
8140 # Actually, the nightly should be made working with powerpc target.
8141 # That just was too much work for the moment, another week or two.
8142 *ppc*)
8143 aros_target_cpu="ppc"
8144 aros_object_format="elf32ppc"
8145 aros_flavour="emulation"
8146 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8147 aros_nominal_depth=8
8148 gcc_target_cpu="ppc"
8150 *aarch64*)
8151 aros_target_cpu="aarch64"
8152 target_cpu="aarch64"
8153 aros_object_format="aarch64elf_aros"
8154 aros_flavour="emulation"
8155 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8156 gcc_target_cpu="aarch64"
8157 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8158 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8159 aros_arch_libs="-laeabi"
8160 gcc_default_float_abi="hard"
8161 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8163 *armhf*)
8164 aros_target_cpu="arm"
8165 target_cpu="arm"
8166 aros_object_format="armelf_aros"
8167 aros_flavour="emulation"
8168 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8169 gcc_target_cpu="arm"
8170 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8171 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8172 aros_arch_libs="-laeabi"
8173 gcc_default_float_abi="hard"
8174 android_tool_dir_prefix="arm-linux-androideabi"
8175 android_tool_prefix="arm-linux-androideabi"
8176 android_ndk_arch="arm"
8177 kernel_tool_prefix="arm-linux-gnueabihf-"
8179 *arm*)
8180 aros_target_cpu="arm"
8181 aros_object_format="armelf_aros"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8184 gcc_target_cpu="arm"
8185 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8186 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8187 aros_arch_libs="-laeabi"
8188 android_tool_dir_prefix="arm-linux-androideabi"
8189 android_tool_prefix="arm-linux-androideabi"
8190 android_ndk_arch="arm"
8191 kernel_tool_prefix="arm-linux-gnueabi-"
8194 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8196 esac
8197 case "$aros_target_variant" in
8198 android)
8200 if test "$android_ndk_arch" = ""; then
8201 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8204 aros_nominal_width=320
8205 aros_nominal_height=480
8206 if test "$aros_android_ndk" = "none"; then
8207 aros_kernel_cflags="-mandroid"
8208 aros_kernel_ldflags="-mandroid"
8209 CFLAGS="-mandroid"
8210 else
8211 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8212 kernel_tool_version=""
8213 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8214 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8215 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8216 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8217 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8219 need_x11=no
8220 host_android_gfx=yes
8221 # Disable implicit PIC mode
8222 aros_target_cflags="$aros_target_cflags -fno-pic"
8223 kernel_tool_prefix="$android_tool_prefix-"
8225 esac
8229 aros_target_arch="pc"
8230 aros_shared_default="no"
8231 target_bootloader="grub2"
8232 case "$target_cpu" in
8233 *i?86*)
8234 aros_target_cpu="i386"
8237 if test "$aros_object_format" = "" ; then
8238 aros_object_format="elf_i386"
8240 aros_flavour="standalone"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8242 aros_kernel_ldflags="-Wl,-melf_i386"
8243 aros_nominal_width=640
8244 aros_nominal_height=480
8245 gcc_target_cpu="i386"
8247 *x86_64*)
8248 aros_target_cpu="x86_64"
8249 aros_serial_debug=1
8250 if test "$aros_object_format" = "" ; then
8251 aros_object_format="elf_x86_64"
8253 aros_flavour="standalone"
8254 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8255 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8256 aros_kernel_ldflags=""
8257 aros_nominal_width=640
8258 aros_nominal_height=480
8259 case "$aros_target_variant" in
8260 smp)
8261 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8263 esac
8266 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8268 esac
8271 prep)
8272 aros_target_arch="prep"
8273 aros_shared_default="no"
8274 aros_target_cpu="ppc"
8275 aros_object_format="elf32ppc"
8276 aros_flavour="ppcnative"
8277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8278 aros_kernel_ldflags=""
8279 aros_nominal_width=640
8280 aros_nominal_height=480
8281 gcc_target_cpu="ppc"
8284 freebsd*)
8285 aros_target_arch="freebsd"
8286 aros_target_family="unix"
8287 aros_target_cpu="i386"
8288 aros_flavour="emulation"
8289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8290 gcc_target_cpu="i386"
8292 aros_target_strip_flags="-x"
8295 darwin*)
8296 aros_target_arch="darwin"
8297 aros_target_family="unix"
8298 aros_flavour="emulation"
8299 case "$target_cpu" in
8300 *i?86*)
8301 aros_ios_platform="iPhoneSimulator"
8302 aros_target_cpu="i386"
8303 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8304 aros_kernel_ldflags=""
8305 aros_macosx_version="10.4"
8306 aros_nominal_depth=8
8307 gcc_target_cpu="i386"
8308 aros_object_format="elf_i386"
8309 aros_kernel_ar_flags="-cr"
8310 aros_target_strip_flags="-x"
8311 kernel_tool_flags="-m32"
8313 *x86_64*)
8314 aros_target_cpu="x86_64"
8315 aros_object_format="elf_x86_64"
8316 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8317 aros_macosx_version="10.6"
8318 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8319 aros_kernel_cflags="-m64"
8320 aros_kernel_ldflags="-m64"
8321 aros_target_cflags="-mcmodel=large"
8322 aros_nominal_depth=8
8323 aros_kernel_ar="ar"
8324 aros_kernel_ar_flags="-cr"
8325 aros_kernel_ld="ld"
8326 aros_kernel_as="as"
8327 aros_kernel_ranlib="ranlib"
8328 aros_kernel_nm="nm"
8329 aros_kernel_strip="strip"
8330 kernel_tool_prefix="i686-apple-darwin10-"
8332 *ppc*)
8333 aros_target_cpu="ppc"
8334 aros_object_format="elf32ppc"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8336 aros_kernel_ldflags=""
8337 aros_macosx_version="10.0"
8338 aros_nominal_depth=8
8339 gcc_target_cpu="ppc"
8340 aros_kernel_ar="ar"
8341 aros_kernel_ar_flags="-cr"
8342 aros_kernel_ld="ld -arch ppc"
8343 aros_kernel_as="as -arch ppc"
8344 aros_kernel_ranlib="ranlib -arch ppc"
8345 aros_kernel_nm="nm -arch ppc"
8346 aros_kernel_strip="strip -arch ppc"
8347 kernel_tool_prefix="powerpc-apple-darwin10-"
8349 *arm*)
8350 aros_ios_platform="iPhoneOS"
8351 aros_target_cpu="arm"
8352 aros_object_format="armelf_aros"
8353 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8354 aros_arch_libs="-laeabi"
8355 aros_nominal_depth=8
8356 gcc_target_cpu="arm"
8357 aros_kernel_ar="ar"
8358 aros_kernel_ar_flags="-cr"
8359 aros_kernel_ld="ld -arch arm"
8360 aros_kernel_ranlib="ranlib -arch arm"
8361 kernel_tool_prefix="arm-apple-darwin10-"
8362 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8365 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8367 esac
8368 case "$aros_target_variant" in
8369 ios)
8370 aros_ios_version="3.0"
8371 aros_nominal_width=320
8372 aros_nominal_height=480
8373 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8374 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8375 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8376 need_x11=no
8377 # This is here because it may depend on iOS or SDK version
8378 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8379 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8380 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8383 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8384 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8386 esac
8389 dragonfly*)
8390 aros_target_arch="dragonfly"
8391 aros_target_family="unix"
8392 aros_flavour="emulation"
8393 case "$target_cpu" in
8394 *i?86*)
8395 aros_target_cpu="i386"
8396 aros_object_format="elf_i386"
8397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8399 *x86_64*)
8400 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8401 aros_target_cpu="x86_64"
8402 aros_object_format="elf_x86_64"
8403 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8406 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8408 esac
8411 netbsd*)
8412 aros_target_arch="netbsd"
8413 aros_target_family="unix"
8414 case "$target_cpu" in
8415 *m68k*)
8416 aros_target_cpu="m68k"
8417 aros_object_format="m68kelf"
8418 aros_flavour="emulcompat"
8419 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8420 gcc_target_cpu="mc68000"
8422 *i?86*)
8423 aros_target_cpu="i386"
8424 aros_object_format="elf_i386"
8425 aros_flavour="emulation"
8426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8427 aros_nominal_depth=8
8428 gcc_target_cpu="i386"
8431 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8433 esac
8434 aros_target_genmap="-Wl,-M -Xlinker >"
8435 aros_flavour="emulation"
8436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8439 openbsd*)
8440 aros_target_arch="openbsd"
8441 aros_target_family="unix"
8442 case "$target_cpu" in
8443 *i?86*)
8444 aros_target_cpu="i386"
8445 aros_object_format="elf_i386"
8446 aros_flavour="emulation"
8447 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8448 gcc_target_cpu="i386"
8451 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8453 esac
8454 aros_target_genmap="-Wl,-M -Xlinker >"
8455 aros_target_nm_flags="-u"
8456 aros_flavour="emulation"
8459 solaris*)
8460 aros_target_arch="solaris"
8461 aros_target_family="unix"
8462 case "$target_cpu" in
8463 *i?86*)
8464 aros_target_cpu="i386"
8465 aros_object_format="elf_i386"
8466 aros_flavour="emulation"
8467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8468 aros_nominal_depth=8
8469 gcc_target_cpu="i386"
8471 *sparc*)
8472 aros_target_cpu="sparc"
8473 aros_object_format="elf_sparc"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8475 gcc_target_cpu="sparc"
8478 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8480 esac
8481 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8482 aros_flavour="emulation"
8485 morphos*)
8486 aros_target_arch="morphos"
8487 aros_shared_default="no"
8488 aros_target_cpu="ppc"
8489 aros_object_format="elf_ppc"
8490 aros_flavour="nativecompat"
8491 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8492 gcc_target_cpu="ppc"
8495 sam440)
8496 aros_target_arch="sam440"
8497 aros_shared_default="no"
8498 aros_target_cpu="ppc"
8499 aros_object_format="elf32ppc"
8500 aros_flavour="ppcnative"
8501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8502 aros_kernel_ldflags=""
8503 aros_nominal_width=1024
8504 aros_nominal_height=768
8505 aros_nominal_depth=24
8506 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8507 gcc_target_cpu="powerpc"
8510 efika)
8511 aros_target_arch="efika"
8512 aros_shared_default="no"
8513 aros_target_cpu="arm"
8514 aros_object_format="armelf_aros"
8515 aros_flavour="standalone"
8516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8517 aros_kernel_ldflags=""
8518 aros_nominal_width=1024
8519 aros_nominal_height=600
8520 aros_arch_libs="-laeabi"
8521 gcc_default_cpu="armv7-a"
8522 gcc_default_fpu="vfpv3"
8523 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8524 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8525 aros_optimization_cflags="$aros_optimization_cflags -Os"
8526 case "$target_cpu" in
8527 *armhf*)
8528 gcc_default_float_abi="hard"
8529 target_cpu=arm
8530 aros_target_cpu=arm
8532 *arm*)
8533 gcc_default_float_abi="softfp"
8536 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8538 esac
8541 chrp)
8542 aros_target_arch="chrp"
8543 aros_shared_default="no"
8544 aros_target_cpu="ppc"
8545 aros_object_format="elf32ppc"
8546 aros_flavour="ppcnative"
8547 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8548 aros_kernel_ldflags=""
8549 aros_nominal_width=640
8550 aros_nominal_height=480
8551 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8552 gcc_target_cpu="powerpc"
8553 case "$aros_target_variant" in
8554 efika)
8555 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8557 esac
8560 r*pi)
8561 aros_flavour="standalone"
8562 aros_target_arch="raspi"
8564 aros_shared_default="no"
8566 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8568 case "$target_cpu" in
8569 *aarch64*)
8570 aros_target_cpu="aarch64"
8571 gcc_default_cpu="aarch64"
8572 aros_object_format="aarch64elf_aros"
8574 *armhf*)
8575 aros_target_cpu="arm"
8576 gcc_default_cpu="armv6zk"
8577 gcc_default_cpu_tune="arm1176jzf-s"
8578 aros_object_format="armelf_aros"
8579 aros_config_cflags="$aros_config_cflags -marm"
8580 aros_config_aflags="$aros_config_aflags -marm"
8581 aros_kernel_cflags="$aros_kernel_cflags -marm"
8582 aros_target_cflags="$aros_kernel_cflags -marm"
8583 aros_target_mkdep="$aros_target_mkdep -Darm"
8584 aros_arch_libs="-laeabi"
8586 *arm*)
8587 aros_target_cpu="arm"
8588 gcc_default_cpu="armv6zk"
8589 gcc_default_cpu_tune="arm1176jzf-s"
8590 aros_object_format="armelf_aros"
8591 aros_config_cflags="$aros_config_cflags -marm"
8592 aros_config_aflags="$aros_config_aflags -marm"
8593 aros_kernel_cflags="$aros_kernel_cflags -marm"
8594 aros_target_cflags="$aros_kernel_cflags -marm"
8595 aros_target_mkdep="$aros_target_mkdep -Darm"
8596 aros_arch_libs="-laeabi"
8599 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8601 esac
8603 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8604 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8605 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8606 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8608 case "$aros_target_variant" in
8609 smp)
8610 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8612 esac
8615 stm32f7_discovery)
8616 aros_flavour="standalone"
8617 aros_target_arch="stm32f7_discovery"
8618 aros_target_cpu="arm"
8619 aros_target_cpu_mode="thumb2"
8620 aros_object_format="armelf_aros"
8621 aros_shared_default="no"
8623 # stm32f7 has DSP opcode support
8624 gcc_default_cpu="armv7e-m"
8625 # gcc_default_cpu="armv7-m"
8626 gcc_default_cpu_tune="cortex-m7"
8627 gcc_default_fpu="fpv4-sp-d16"
8628 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8629 # gcc_default_fpu="fpv5-sp-d16"
8630 gcc_default_float_abi="hard"
8632 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8635 amiga*)
8636 aros_target_arch="amiga"
8637 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8638 aros_shared_default="no"
8640 case "$target_cpu" in
8641 *m68k*)
8642 # Check whether --enable-amigaos_compliance was given.
8643 if test "${enable_amigaos_compliance+set}" = set; then :
8644 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8647 aros_enable_mmu=no
8648 aros_target_cpu="m68k"
8649 aros_object_format="m68kelf"
8650 aros_flavour="standcompat"
8651 gcc_target_cpu="m68000"
8652 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8653 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8654 aros_optimization_cflags="$aros_optimization_cflags -Os"
8655 aros_config_aflags="$aros_config_aflags"
8656 aros_target_strip_flags="-R.comment --strip-debug"
8657 aros_nominal_width=640
8658 aros_nominal_height=256
8659 aros_nominal_depth=2
8661 *ppc*)
8662 aros_cpu="ppc"
8663 aros_flavour="native"
8664 gcc_target_cpu="ppc"
8667 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8669 esac
8672 mingw*)
8673 aros_target_arch="mingw32"
8674 aros_shared_default="no"
8675 aros_flavour="emulation"
8676 aros_shared_cflags=""
8677 need_crosstools="yes"
8678 need_dlopen="no"
8679 rescomp="windres"
8680 case "$target_cpu" in
8681 *i?86*)
8682 aros_target_cpu="i386"
8683 aros_object_format="elf_i386"
8684 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8685 aros_nominal_depth=8
8686 gcc_target_cpu="i386"
8688 kernel_tool_prefix="i386-mingw32-"
8690 *x86_64*)
8691 aros_target_cpu="x86_64"
8692 aros_object_format="elf_x86_64"
8693 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8694 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8695 aros_nominal_depth=8
8696 kernel_tool_prefix="x86_64-w64-mingw32-"
8698 *arm*)
8699 aros_target_cpu="arm"
8700 aros_object_format="armelf_aros"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8702 aros_arch_libs="-laeabi"
8703 aros_nominal_depth=8
8704 gcc_target_cpu="arm"
8705 gcc_default_float_abi="soft"
8706 kernel_tool_prefix="arm-mingw32ce-"
8707 aros_nominal_width=160
8708 aros_nominal_height=160
8711 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8713 esac
8714 if test $host_os = "cygwin"; then
8715 aros_kernel_cflags="-mno-cygwin"
8718 pp*)
8719 aros_target_arch="pp"
8720 aros_shared_default="no"
8721 case "$target_cpu" in
8722 *m68k*)
8723 aros_target_cpu="m68k"
8724 aros_object_format="m68kelf"
8725 aros_flavour="palmnative"
8726 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8727 aros_nominal_width=160
8728 aros_nominal_height=160
8729 aros_nominal_depth=1
8730 aros_target_ar_flags="cru"
8731 aros_compiler_libs="-lgcc1"
8732 aros_shared_default=no
8733 aros_shared_cflags="-fpic"
8734 aros_shared_aflags=""
8735 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8736 aros_kernel_ldflags="-Wl,-rpath,./lib"
8737 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8738 aros_debug_aflags=""
8739 aros_debug_ldflags="$aros_symbols_debug"
8740 aros_mungwall_debug="0"
8741 aros_modules_debug="0"
8742 gcc_target_cpu="mc68000"
8743 ignore_undefined_symbols="-ius"
8746 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8748 esac
8751 mac*)
8752 aros_target_arch="mac"
8753 aros_shared_default="no"
8754 case "$target_cpu" in
8755 *m68k*)
8756 aros_target_cpu="m68k"
8757 aros_object_format="m68kelf"
8758 aros_flavour="mac68knative"
8759 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8760 aros_nominal_width=512
8761 aros_nominal_height=384
8762 aros_nominal_depth=8
8763 aros_target_ar_flags="cru"
8764 aros_compiler_libs="-lgcc1"
8765 aros_shared_default=no
8766 aros_shared_cflags="-fpic"
8767 aros_shared_aflags=""
8768 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8769 aros_kernel_ldflags="-Wl,-rpath,./lib"
8770 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8771 aros_debug_aflags=""
8772 aros_debug_ldflags="$aros_symbols_debug"
8773 aros_mungwall_debug="0"
8774 aros_modules_debug="0"
8775 gcc_target_cpu="mc68000"
8776 ignore_undefined_symbols="-ius"
8779 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8781 esac
8785 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8787 esac
8789 #-----------------------------------------------------------------------------
8790 crosstools_guess="yes"
8791 aros_target_toolchain="no"
8792 aros_config_sysroot=""
8793 aros_kernel_sysroot=""
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8796 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8798 # Check whether --with-kernel-toolchain-prefix was given.
8799 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8800 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8804 $as_echo "$kernel_tool_prefix" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8807 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8809 # Check whether --with-elf-toolchain-prefix was given.
8810 if test "${with_elf_toolchain_prefix+set}" = set; then :
8811 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8812 crosstools_guess="no"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8816 $as_echo "$elf_tool_prefix" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8819 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8821 # Check whether --with-aros-toolchain was given.
8822 if test "${with_aros_toolchain+set}" = set; then :
8823 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8824 crosstools_guess="no"
8827 if test "$aros_tool_prefix" = "yes" ; then
8828 aros_tool_prefix=$aros_target_cpu-aros-
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8831 $as_echo "$aros_tool_prefix" >&6; }
8833 #-----------------------------------------------------------------------------
8834 # Checking if we should build crosstools..
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8836 $as_echo_n "checking whether to build crosstools... " >&6; }
8837 # Check whether --enable-crosstools was given.
8838 if test "${enable_crosstools+set}" = set; then :
8839 enableval=$enable_crosstools; crosstools="$enableval"
8840 else
8841 crosstools="$crosstools_guess"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8845 $as_echo "$crosstools" >&6; }
8847 if test "${crosstools}" = "yes"; then
8848 if test "${crosstools_guess}" = "no"; then
8849 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8853 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8854 aros_target_toolchain="yes"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8858 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8860 # Check whether --with-aros-toolchain-install was given.
8861 if test "${with_aros_toolchain_install+set}" = set; then :
8862 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8865 if test "x$aros_toolchain_install" = "x"; then
8866 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8867 else
8868 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8869 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8870 if test "$crosstools_guess" = "no" ; then
8871 toolchain_needs_sysroot=yes
8873 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8874 aros_kernel_sysroot = $aros_config_sysroot
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8879 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8882 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8883 if test "$toolchain_needs_sysroot" = "yes" ; then
8884 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8887 $as_echo "$toolchain_needs_sysroot" >&6; }
8889 #-----------------------------------------------------------------------------
8890 if test "$aros_toolchain" = "gnu" ; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8892 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8895 # Check whether --with-binutils-version was given.
8896 if test "${with_binutils_version+set}" = set; then :
8897 withval=$with_binutils_version; use_binutils_version="$withval"
8898 else
8899 use_binutils_version=""
8902 if test "$use_binutils_version" = ""; then
8903 target_binutils_version="$default_binutils_version"
8904 else
8905 target_binutils_version="$use_binutils_version"
8907 if test "$aros_toolchain" = "gnu" ; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8909 $as_echo "$target_binutils_version" >&6; }
8913 # Helper to identify gcc version
8916 #-----------------------------------------------------------------------------
8917 if test "$aros_toolchain" = "gnu" ; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8919 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8922 # Check whether --with-gcc-version was given.
8923 if test "${with_gcc_version+set}" = set; then :
8924 withval=$with_gcc_version; use_gcc_version="$withval"
8925 else
8926 use_gcc_version=""
8929 if test "$use_gcc_version" = ""; then
8930 if test "${crosstools}" = "no"; then
8931 if test "x$aros_toolchain_install" != "x"; then
8933 target_gcc_version=""
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8935 $as_echo_n "checking gcc version... " >&6; }
8936 if ${ax_cv_gcc_version+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8940 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8941 if test "x$ax_cv_gcc_version" = "x"; then :
8943 ax_cv_gcc_version=""
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8949 $as_echo "$ax_cv_gcc_version" >&6; }
8950 target_gcc_version=$ax_cv_gcc_version
8955 if test "$use_gcc_version" = ""; then
8956 target_gcc_version="$default_gcc_version"
8958 else
8959 target_gcc_version="$use_gcc_version"
8961 if test "$aros_toolchain" = "gnu" ; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8963 $as_echo "$target_gcc_version" >&6; }
8965 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8966 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8967 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8969 gcc_fix_bitfields="false"
8970 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8971 gcc_fix_bitfields="true"
8972 else
8973 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8974 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8975 gcc_fix_bitfields="true"
8980 if test "$gcc_fix_bitfields" = "true" ; then
8981 case "$aros_target_cpu" in
8982 *x86_64*)
8983 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8984 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8986 i386)
8987 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8988 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8990 esac
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8995 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8996 # Check whether --enable-objc was given.
8997 if test "${enable_objc+set}" = set; then :
8998 enableval=$enable_objc; objc="$enableval"
8999 else
9000 objc="no"
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9004 $as_echo "$objc" >&6; }
9005 if test "x$objc" = "xyes"; then
9006 objc_target="$objc"
9007 else
9008 objc_target="no-objc"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9012 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9013 # Check whether --enable-java was given.
9014 if test "${enable_java+set}" = set; then :
9015 enableval=$enable_java; java="$enableval"
9016 else
9017 java="no"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9021 $as_echo "$java" >&6; }
9022 if test "x$java" != "xno"; then
9023 java_target="$java"
9024 else
9025 java_target="no-java"
9028 spec_obj_format="-m $aros_object_format"
9029 # Now process extra architecture-specific options.
9030 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9031 # as well as floating-point ABI.
9032 case "$aros_target_cpu" in
9033 *x86_64*)
9034 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9036 arm*)
9037 if test "$gcc_default_cpu" = ""; then
9038 gcc_default_cpu="armv6"
9040 if test "$gcc_default_fpu" = ""; then
9041 gcc_default_fpu="vfp"
9043 if test "$gcc_default_float_abi" = ""; then
9044 if test "$target_cpu" = "armhf"; then
9045 gcc_default_float_abi="hard"
9046 else
9047 gcc_default_float_abi="softfp"
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9052 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9054 # Check whether --with-cpu was given.
9055 if test "${with_cpu+set}" = set; then :
9056 withval=$with_cpu; aros_gcc_cpu="$withval"
9057 else
9058 aros_gcc_cpu=$gcc_default_cpu
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9062 $as_echo "$aros_gcc_cpu" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9065 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9067 # Check whether --with-fpu was given.
9068 if test "${with_fpu+set}" = set; then :
9069 withval=$with_fpu; aros_gcc_fpu="$withval"
9070 else
9071 aros_gcc_fpu=$gcc_default_fpu
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9075 $as_echo "$aros_gcc_fpu" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9078 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9080 # Check whether --with-float was given.
9081 if test "${with_float+set}" = set; then :
9082 withval=$with_float; aros_gcc_float_abi="$withval"
9083 else
9084 aros_gcc_float_abi=$gcc_default_float_abi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9088 $as_echo "$aros_gcc_float_abi" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9091 $as_echo_n "checking Which ARM mode to use... " >&6; }
9092 if test "$aros_target_cpu_mode" = ""; then
9093 aros_target_cpu_mode="arm32"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9095 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9096 else
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9098 $as_echo "$aros_target_cpu_mode" >&6; }
9101 case "$aros_target_cpu_mode" in
9102 arm32)
9103 gcc_default_mode="arm"
9104 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9106 arm64)
9107 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9109 thumb)
9110 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9112 thumb1)
9113 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9115 thumb2)
9116 gcc_default_mode="thumb"
9117 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9118 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9121 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9123 esac
9125 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9126 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9128 i386)
9129 aros_isa_flags="-m32 -march=i486"
9130 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9131 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9133 esac
9135 # Some architectures may need custom ELF specs.
9136 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9137 elf_specs_in=config/${aros_object_format}-specs.in
9138 else
9139 elf_specs_in=config/elf-specs.in
9142 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9143 # Since we override specs, we may need to put these defines there
9144 if test "$gcc_target_cpu" != ""; then
9145 gcc_target_cpu="-D__${gcc_target_cpu}__"
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9149 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9151 # Check whether --with-portssources was given.
9152 if test "${with_portssources+set}" = set; then :
9153 withval=$with_portssources; with_portssrcdir=$withval
9154 else
9155 with_portssrcdir="default"
9158 if test "$with_portssrcdir" = "default"; then
9159 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9160 else
9161 AROS_PORTSSRCDIR="$with_portssrcdir"
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9164 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9167 $as_echo_n "checking which bootloader to use... " >&6; }
9169 # Check whether --with-bootloader was given.
9170 if test "${with_bootloader+set}" = set; then :
9171 withval=$with_bootloader; target_bootloader=$withval
9172 else
9173 target_bootloader=$target_bootloader
9176 if test "$target_bootloader" = "none"; then
9177 aros_target_bootloader=""
9178 else
9179 aros_target_bootloader="$target_bootloader"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9182 $as_echo "$target_bootloader" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9185 $as_echo_n "checking which icon-set to use... " >&6; }
9187 # Check whether --with-iconset was given.
9188 if test "${with_iconset+set}" = set; then :
9189 withval=$with_iconset; target_iconset=$withval
9190 else
9191 target_iconset="default"
9194 if test "$target_iconset" = "default"; then
9195 aros_target_iconset="Gorilla"
9196 target_iconset="default (Gorilla)"
9197 else
9198 aros_target_iconset="$target_iconset"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9201 $as_echo "$target_iconset" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9204 $as_echo_n "checking which GUI Theme to use... " >&6; }
9206 # Check whether --with-theme was given.
9207 if test "${with_theme+set}" = set; then :
9208 withval=$with_theme; target_guitheme=$withval
9209 else
9210 target_guitheme="default"
9213 if test "$target_guitheme" = "default"; then
9214 aros_target_guitheme="Ice"
9215 else
9216 aros_target_guitheme="$target_guitheme"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9219 $as_echo "$aros_target_guitheme" >&6; }
9221 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9222 # for target code)
9223 cross_compiling=no
9225 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9226 cross_compiling=yes
9229 if test "$aros_host_cpu" == "x86_64" ; then
9230 if test "$aros_target_cpu" == "i386" ; then
9231 cross_compiling=no
9235 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9236 if test "$aros_host_arch" != "$aros_target_arch" ; then
9237 cross_compiling=yes
9239 else
9240 if test "$host_cc_elf" = "no" ; then
9241 cross_compiling=yes
9245 if test "$cross_compiling" = "no" ; then
9246 kernel_tool_prefix=""
9247 if test "$host_cc_elf" = "yes" ; then
9248 elf_tool_prefix=""
9252 if test "$kernel_tool_version" != ""; then
9253 kernel_tool_version="-$kernel_tool_version"
9256 #######################################################################
9257 ## Compute what toolchains to use, and their paths ##
9258 #######################################################################
9260 # This takes, as input:
9261 # crosstools {yes,no}
9262 # kernel_tool_version {"",[version]}
9263 # target_tool_version {"",[version]}
9264 # kernel_tool_prefix {none,[some-arch-os-]}
9265 # gnu-toolchain -:
9266 # target_tool_prefix ${aros_target_cpu}-aros-
9267 # aros_tool_prefix ${aros_target_cpu}-aros-
9269 # The output is
9270 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9271 # Where the 'kernel' binaries are located
9272 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9273 # Where the 'target' binaries are located
9274 # (not the symlink farm - that is aros_target_*!)
9276 # The rules are:
9277 # if crosstools then
9278 # if kernel_tools_prefix = "no-kernel-prefix-"
9279 # aros_kernel_* = crosstools cc paths
9280 # aros_kernel_cc = elf cc wrapper around crosstools cc
9281 # else
9282 # VALIDATE(${kernel_tools_prefix}*)
9283 # aros_kernel_* = ${kernel_tools_prefix}*
9284 # if ${kernel_tools_prefix}cc is an AROS gcc
9285 # aros_kernel_cc = ${kernel_tools_prefix}cc
9286 # else
9287 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9288 # fi
9289 # fi
9291 # orig_target_* = aros built crosstools
9292 # orig_target_cc = elf cc wrapper around crosstools cc
9293 # else
9294 # VALIDATE(${kernel_tools_prefix}*)
9296 # orig_target_* = aros_kernel_*
9297 # if aros_kernel_cc is an AROS gcc
9298 # orig_target_cc = aros_kernel_cc
9299 # else
9300 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9301 # fi
9302 # fi
9304 if test "$aros_toolchain" = "gnu" ; then
9305 target_tool_prefix="${aros_target_cpu}-aros-"
9306 elif test "$aros_toolchain" = "llvm" ; then
9307 target_tool_prefix="bin/"
9310 if test "$kernel_tool_prefix" != "" ; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9312 $as_echo_n "checking which kernel tools... " >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9314 $as_echo "$kernel_tool_prefix" >&6; };
9317 if test "$kernel_tool_prefix" = "none" ; then
9318 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9319 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9321 else
9322 # Kernel tools required - find them
9323 # Note that 'normally', aros_kernel_* overrides will be
9324 # empty, unless specified in the per-arch sections above.
9325 if test "x$aros_kernel_cpp" = "x"; then
9326 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9329 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
9330 if test "$cross_compiling" = "yes" ; then
9331 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9332 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 case $aros_kernel_cpp in
9339 [\\/]* | ?:[\\/]*)
9340 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9354 done
9355 done
9356 IFS=$as_save_IFS
9359 esac
9361 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9362 if test -n "$aros_kernel_cpp"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9364 $as_echo "$aros_kernel_cpp" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9371 else
9372 if test "$GCC" = "yes"; then
9373 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9374 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9375 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 case $aros_kernel_cpp in
9382 [\\/]* | ?:[\\/]*)
9383 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in `dirname $aros_gcc_cpp`
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9397 done
9398 done
9399 IFS=$as_save_IFS
9402 esac
9404 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9405 if test -n "$aros_kernel_cpp"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9407 $as_echo "$aros_kernel_cpp" >&6; }
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9415 if test "$aros_kernel_cpp" = ""; then
9416 # Extract the first word of "cpp", so it can be a program name with args.
9417 set dummy cpp; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $aros_kernel_cpp in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9435 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9444 esac
9446 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9447 if test -n "$aros_kernel_cpp"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9449 $as_echo "$aros_kernel_cpp" >&6; }
9450 else
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9458 else
9459 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9460 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 case $aros_kernel_cpp in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9482 done
9483 done
9484 IFS=$as_save_IFS
9487 esac
9489 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9490 if test -n "$aros_kernel_cpp"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9492 $as_echo "$aros_kernel_cpp" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9501 req_avail=yes
9502 if test "$aros_kernel_cpp" = ""; then
9503 req_avail=no
9505 if test "$aros_kernel_cpp" = "no"; then
9506 req_avail=no
9508 if test "$req_avail" = "no"; then
9509 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9511 if test "x$aros_kernel_cc" = "x"; then
9512 aros_kernel_cc=${kernel_tool_prefix}${CC}
9515 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9516 if test "$cross_compiling" = "yes" ; then
9517 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9518 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 case $aros_kernel_cc in
9525 [\\/]* | ?:[\\/]*)
9526 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9540 done
9541 done
9542 IFS=$as_save_IFS
9545 esac
9547 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9548 if test -n "$aros_kernel_cc"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9550 $as_echo "$aros_kernel_cc" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9557 else
9558 if test "$GCC" = "yes"; then
9559 aros_gcc_cc=`$CC -print-prog-name=cc`
9560 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9561 set dummy `basename $aros_gcc_cc`; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 case $aros_kernel_cc in
9568 [\\/]* | ?:[\\/]*)
9569 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in `dirname $aros_gcc_cc`
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9583 done
9584 done
9585 IFS=$as_save_IFS
9588 esac
9590 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9591 if test -n "$aros_kernel_cc"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9593 $as_echo "$aros_kernel_cc" >&6; }
9594 else
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9601 if test "$aros_kernel_cc" = ""; then
9602 # Extract the first word of "cc", so it can be a program name with args.
9603 set dummy cc; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 case $aros_kernel_cc in
9610 [\\/]* | ?:[\\/]*)
9611 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9625 done
9626 done
9627 IFS=$as_save_IFS
9630 esac
9632 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9633 if test -n "$aros_kernel_cc"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9635 $as_echo "$aros_kernel_cc" >&6; }
9636 else
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9644 else
9645 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9646 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 case $aros_kernel_cc in
9653 [\\/]* | ?:[\\/]*)
9654 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9673 esac
9675 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9676 if test -n "$aros_kernel_cc"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9678 $as_echo "$aros_kernel_cc" >&6; }
9679 else
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9687 req_avail=yes
9688 if test "$aros_kernel_cc" = ""; then
9689 req_avail=no
9691 if test "$aros_kernel_cc" = "no"; then
9692 req_avail=no
9694 if test "$req_avail" = "no"; then
9695 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9697 if test "x$aros_kernel_cxx" = "x"; then
9698 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9701 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9702 if test "$cross_compiling" = "yes" ; then
9703 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9704 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 case $aros_kernel_cxx in
9711 [\\/]* | ?:[\\/]*)
9712 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in $PATH
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9726 done
9727 done
9728 IFS=$as_save_IFS
9731 esac
9733 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9734 if test -n "$aros_kernel_cxx"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9736 $as_echo "$aros_kernel_cxx" >&6; }
9737 else
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9743 else
9744 if test "$GCC" = "yes"; then
9745 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9746 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9747 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 case $aros_kernel_cxx in
9754 [\\/]* | ?:[\\/]*)
9755 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in `dirname $aros_gcc_cxx`
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9769 done
9770 done
9771 IFS=$as_save_IFS
9774 esac
9776 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9777 if test -n "$aros_kernel_cxx"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9779 $as_echo "$aros_kernel_cxx" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9787 if test "$aros_kernel_cxx" = ""; then
9788 # Extract the first word of "cxx", so it can be a program name with args.
9789 set dummy cxx; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 case $aros_kernel_cxx in
9796 [\\/]* | ?:[\\/]*)
9797 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9811 done
9812 done
9813 IFS=$as_save_IFS
9816 esac
9818 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9819 if test -n "$aros_kernel_cxx"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9821 $as_echo "$aros_kernel_cxx" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9830 else
9831 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9832 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 case $aros_kernel_cxx in
9839 [\\/]* | ?:[\\/]*)
9840 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9859 esac
9861 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9862 if test -n "$aros_kernel_cxx"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9864 $as_echo "$aros_kernel_cxx" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9873 # If it's set, make sure it's really there
9874 if test "x$aros_kernel_cxx" != "x" ; then
9875 req_avail=yes
9876 if test "$aros_kernel_cxx" = ""; then
9877 req_avail=no
9879 if test "$aros_kernel_cxx" = "no"; then
9880 req_avail=no
9882 if test "$req_avail" = "no"; then
9883 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9887 if test "$aros_kernel_ld" = ""; then
9888 if test "$cross_compiling" = "yes" ; then
9889 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9890 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 case $aros_kernel_ld in
9897 [\\/]* | ?:[\\/]*)
9898 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9917 esac
9919 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9920 if test -n "$aros_kernel_ld"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9922 $as_echo "$aros_kernel_ld" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 else
9930 if test "$GCC" = "yes"; then
9931 aros_gcc_ld=`$CC -print-prog-name=ld`
9932 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9933 set dummy `basename $aros_gcc_ld`; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 case $aros_kernel_ld in
9940 [\\/]* | ?:[\\/]*)
9941 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in `dirname $aros_gcc_ld`
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9951 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9955 done
9956 done
9957 IFS=$as_save_IFS
9960 esac
9962 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9963 if test -n "$aros_kernel_ld"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9965 $as_echo "$aros_kernel_ld" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 if test "$aros_kernel_ld" = ""; then
9974 # Extract the first word of "ld", so it can be a program name with args.
9975 set dummy ld; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 case $aros_kernel_ld in
9982 [\\/]* | ?:[\\/]*)
9983 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9993 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 break 2
9997 done
9998 done
9999 IFS=$as_save_IFS
10002 esac
10004 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10005 if test -n "$aros_kernel_ld"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10007 $as_echo "$aros_kernel_ld" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10016 else
10017 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10018 set dummy $aros_kernel_ld; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 case $aros_kernel_ld in
10025 [\\/]* | ?:[\\/]*)
10026 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10045 esac
10047 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10048 if test -n "$aros_kernel_ld"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10050 $as_echo "$aros_kernel_ld" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10059 req_avail=yes
10060 if test "$aros_kernel_ld" = ""; then
10061 req_avail=no
10063 if test "$aros_kernel_ld" = "no"; then
10064 req_avail=no
10066 if test "$req_avail" = "no"; then
10067 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10070 if test "$aros_kernel_as" = ""; then
10071 if test "$cross_compiling" = "yes" ; then
10072 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10073 set dummy ${kernel_tool_prefix}as; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_aros_kernel_as+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 case $aros_kernel_as in
10080 [\\/]* | ?:[\\/]*)
10081 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10095 done
10096 done
10097 IFS=$as_save_IFS
10100 esac
10102 aros_kernel_as=$ac_cv_path_aros_kernel_as
10103 if test -n "$aros_kernel_as"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10105 $as_echo "$aros_kernel_as" >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10112 else
10113 if test "$GCC" = "yes"; then
10114 aros_gcc_as=`$CC -print-prog-name=as`
10115 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10116 set dummy `basename $aros_gcc_as`; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_path_aros_kernel_as+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 case $aros_kernel_as in
10123 [\\/]* | ?:[\\/]*)
10124 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in `dirname $aros_gcc_as`
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10138 done
10139 done
10140 IFS=$as_save_IFS
10143 esac
10145 aros_kernel_as=$ac_cv_path_aros_kernel_as
10146 if test -n "$aros_kernel_as"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10148 $as_echo "$aros_kernel_as" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10156 if test "$aros_kernel_as" = ""; then
10157 # Extract the first word of "as", so it can be a program name with args.
10158 set dummy as; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_path_aros_kernel_as+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 case $aros_kernel_as in
10165 [\\/]* | ?:[\\/]*)
10166 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170 for as_dir in $PATH
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10176 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 break 2
10180 done
10181 done
10182 IFS=$as_save_IFS
10185 esac
10187 aros_kernel_as=$ac_cv_path_aros_kernel_as
10188 if test -n "$aros_kernel_as"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10190 $as_echo "$aros_kernel_as" >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10199 else
10200 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10201 set dummy $aros_kernel_as; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if ${ac_cv_path_aros_kernel_as+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 case $aros_kernel_as in
10208 [\\/]* | ?:[\\/]*)
10209 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10215 IFS=$as_save_IFS
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10219 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 break 2
10223 done
10224 done
10225 IFS=$as_save_IFS
10228 esac
10230 aros_kernel_as=$ac_cv_path_aros_kernel_as
10231 if test -n "$aros_kernel_as"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10233 $as_echo "$aros_kernel_as" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10242 req_avail=yes
10243 if test "$aros_kernel_as" = ""; then
10244 req_avail=no
10246 if test "$aros_kernel_as" = "no"; then
10247 req_avail=no
10249 if test "$req_avail" = "no"; then
10250 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10253 if test "$aros_kernel_ar" = ""; then
10254 if test "$cross_compiling" = "yes" ; then
10255 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10256 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 case $aros_kernel_ar in
10263 [\\/]* | ?:[\\/]*)
10264 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10283 esac
10285 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10286 if test -n "$aros_kernel_ar"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10288 $as_echo "$aros_kernel_ar" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10295 else
10296 if test "$GCC" = "yes"; then
10297 aros_gcc_ar=`$CC -print-prog-name=ar`
10298 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10299 set dummy `basename $aros_gcc_ar`; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 case $aros_kernel_ar in
10306 [\\/]* | ?:[\\/]*)
10307 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in `dirname $aros_gcc_ar`
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10321 done
10322 done
10323 IFS=$as_save_IFS
10326 esac
10328 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10329 if test -n "$aros_kernel_ar"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10331 $as_echo "$aros_kernel_ar" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10339 if test "$aros_kernel_ar" = ""; then
10340 # Extract the first word of "ar", so it can be a program name with args.
10341 set dummy ar; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 case $aros_kernel_ar in
10348 [\\/]* | ?:[\\/]*)
10349 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10363 done
10364 done
10365 IFS=$as_save_IFS
10368 esac
10370 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10371 if test -n "$aros_kernel_ar"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10373 $as_echo "$aros_kernel_ar" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10382 else
10383 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10384 set dummy $aros_kernel_ar; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 case $aros_kernel_ar in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10408 IFS=$as_save_IFS
10411 esac
10413 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10414 if test -n "$aros_kernel_ar"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10416 $as_echo "$aros_kernel_ar" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10425 req_avail=yes
10426 if test "$aros_kernel_ar" = ""; then
10427 req_avail=no
10429 if test "$aros_kernel_ar" = "no"; then
10430 req_avail=no
10432 if test "$req_avail" = "no"; then
10433 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10436 if test "$aros_kernel_ranlib" = ""; then
10437 if test "$cross_compiling" = "yes" ; then
10438 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10439 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 case $aros_kernel_ranlib in
10446 [\\/]* | ?:[\\/]*)
10447 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10461 done
10462 done
10463 IFS=$as_save_IFS
10466 esac
10468 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10469 if test -n "$aros_kernel_ranlib"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10471 $as_echo "$aros_kernel_ranlib" >&6; }
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10478 else
10479 if test "$GCC" = "yes"; then
10480 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10481 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10482 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 case $aros_kernel_ranlib in
10489 [\\/]* | ?:[\\/]*)
10490 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in `dirname $aros_gcc_ranlib`
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10504 done
10505 done
10506 IFS=$as_save_IFS
10509 esac
10511 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10512 if test -n "$aros_kernel_ranlib"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10514 $as_echo "$aros_kernel_ranlib" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$aros_kernel_ranlib" = ""; then
10523 # Extract the first word of "ranlib", so it can be a program name with args.
10524 set dummy ranlib; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 case $aros_kernel_ranlib in
10531 [\\/]* | ?:[\\/]*)
10532 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10551 esac
10553 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10554 if test -n "$aros_kernel_ranlib"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10556 $as_echo "$aros_kernel_ranlib" >&6; }
10557 else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10565 else
10566 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10567 set dummy $aros_kernel_ranlib; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 case $aros_kernel_ranlib in
10574 [\\/]* | ?:[\\/]*)
10575 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10594 esac
10596 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10597 if test -n "$aros_kernel_ranlib"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10599 $as_echo "$aros_kernel_ranlib" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10608 req_avail=yes
10609 if test "$aros_kernel_ranlib" = ""; then
10610 req_avail=no
10612 if test "$aros_kernel_ranlib" = "no"; then
10613 req_avail=no
10615 if test "$req_avail" = "no"; then
10616 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10619 if test "$aros_kernel_nm" = ""; then
10620 if test "$cross_compiling" = "yes" ; then
10621 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10622 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 case $aros_kernel_nm in
10629 [\\/]* | ?:[\\/]*)
10630 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10649 esac
10651 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10652 if test -n "$aros_kernel_nm"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10654 $as_echo "$aros_kernel_nm" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10661 else
10662 if test "$GCC" = "yes"; then
10663 aros_gcc_nm=`$CC -print-prog-name=nm`
10664 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10665 set dummy `basename $aros_gcc_nm`; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 case $aros_kernel_nm in
10672 [\\/]* | ?:[\\/]*)
10673 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in `dirname $aros_gcc_nm`
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 break 2
10687 done
10688 done
10689 IFS=$as_save_IFS
10692 esac
10694 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10695 if test -n "$aros_kernel_nm"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10697 $as_echo "$aros_kernel_nm" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 if test "$aros_kernel_nm" = ""; then
10706 # Extract the first word of "nm", so it can be a program name with args.
10707 set dummy nm; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 case $aros_kernel_nm in
10714 [\\/]* | ?:[\\/]*)
10715 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10729 done
10730 done
10731 IFS=$as_save_IFS
10734 esac
10736 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10737 if test -n "$aros_kernel_nm"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10739 $as_echo "$aros_kernel_nm" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10748 else
10749 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10750 set dummy $aros_kernel_nm; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 case $aros_kernel_nm in
10757 [\\/]* | ?:[\\/]*)
10758 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10777 esac
10779 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10780 if test -n "$aros_kernel_nm"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10782 $as_echo "$aros_kernel_nm" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10791 req_avail=yes
10792 if test "$aros_kernel_nm" = ""; then
10793 req_avail=no
10795 if test "$aros_kernel_nm" = "no"; then
10796 req_avail=no
10798 if test "$req_avail" = "no"; then
10799 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10802 if test "$aros_kernel_strip" = ""; then
10803 if test "$cross_compiling" = "yes" ; then
10804 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10805 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $aros_kernel_strip in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10827 done
10828 done
10829 IFS=$as_save_IFS
10832 esac
10834 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10835 if test -n "$aros_kernel_strip"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10837 $as_echo "$aros_kernel_strip" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10844 else
10845 if test "$GCC" = "yes"; then
10846 aros_gcc_strip=`$CC -print-prog-name=strip`
10847 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10848 set dummy `basename $aros_gcc_strip`; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 case $aros_kernel_strip in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in `dirname $aros_gcc_strip`
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10875 esac
10877 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10878 if test -n "$aros_kernel_strip"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10880 $as_echo "$aros_kernel_strip" >&6; }
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10888 if test "$aros_kernel_strip" = ""; then
10889 # Extract the first word of "strip", so it can be a program name with args.
10890 set dummy strip; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 case $aros_kernel_strip in
10897 [\\/]* | ?:[\\/]*)
10898 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10912 done
10913 done
10914 IFS=$as_save_IFS
10917 esac
10919 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10920 if test -n "$aros_kernel_strip"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10922 $as_echo "$aros_kernel_strip" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10931 else
10932 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10933 set dummy $aros_kernel_strip; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 case $aros_kernel_strip in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10951 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10960 esac
10962 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10963 if test -n "$aros_kernel_strip"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10965 $as_echo "$aros_kernel_strip" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10974 req_avail=yes
10975 if test "$aros_kernel_strip" = ""; then
10976 req_avail=no
10978 if test "$aros_kernel_strip" = "no"; then
10979 req_avail=no
10981 if test "$req_avail" = "no"; then
10982 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10985 # Objcopy and objdump are not required for the kernel
10986 # toolchain on many architectures.
10987 # So we'll look for them, but not make them strictly required.
10989 if test "$aros_kernel_objcopy" = ""; then
10990 if test "$cross_compiling" = "yes" ; then
10991 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10992 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 case $aros_kernel_objcopy in
10999 [\\/]* | ?:[\\/]*)
11000 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11014 done
11015 done
11016 IFS=$as_save_IFS
11019 esac
11021 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11022 if test -n "$aros_kernel_objcopy"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11024 $as_echo "$aros_kernel_objcopy" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11031 else
11032 if test "$GCC" = "yes"; then
11033 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11034 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11035 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 case $aros_kernel_objcopy in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in `dirname $aros_gcc_objcopy`
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11057 done
11058 done
11059 IFS=$as_save_IFS
11062 esac
11064 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11065 if test -n "$aros_kernel_objcopy"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11067 $as_echo "$aros_kernel_objcopy" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11075 if test "$aros_kernel_objcopy" = ""; then
11076 # Extract the first word of "objcopy", so it can be a program name with args.
11077 set dummy objcopy; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 case $aros_kernel_objcopy in
11084 [\\/]* | ?:[\\/]*)
11085 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11099 done
11100 done
11101 IFS=$as_save_IFS
11104 esac
11106 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11107 if test -n "$aros_kernel_objcopy"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11109 $as_echo "$aros_kernel_objcopy" >&6; }
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11118 else
11119 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11120 set dummy $aros_kernel_objcopy; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 case $aros_kernel_objcopy in
11127 [\\/]* | ?:[\\/]*)
11128 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11142 done
11143 done
11144 IFS=$as_save_IFS
11147 esac
11149 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11150 if test -n "$aros_kernel_objcopy"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11152 $as_echo "$aros_kernel_objcopy" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11162 if test "$aros_kernel_objdump" = ""; then
11163 if test "$cross_compiling" = "yes" ; then
11164 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11165 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 case $aros_kernel_objdump in
11172 [\\/]* | ?:[\\/]*)
11173 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11187 done
11188 done
11189 IFS=$as_save_IFS
11192 esac
11194 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11195 if test -n "$aros_kernel_objdump"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11197 $as_echo "$aros_kernel_objdump" >&6; }
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11204 else
11205 if test "$GCC" = "yes"; then
11206 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11207 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11208 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 case $aros_kernel_objdump in
11215 [\\/]* | ?:[\\/]*)
11216 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in `dirname $aros_gcc_objdump`
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11230 done
11231 done
11232 IFS=$as_save_IFS
11235 esac
11237 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11238 if test -n "$aros_kernel_objdump"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11240 $as_echo "$aros_kernel_objdump" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11248 if test "$aros_kernel_objdump" = ""; then
11249 # Extract the first word of "objdump", so it can be a program name with args.
11250 set dummy objdump; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 case $aros_kernel_objdump in
11257 [\\/]* | ?:[\\/]*)
11258 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11268 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11272 done
11273 done
11274 IFS=$as_save_IFS
11277 esac
11279 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11280 if test -n "$aros_kernel_objdump"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11282 $as_echo "$aros_kernel_objdump" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11291 else
11292 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11293 set dummy $aros_kernel_objdump; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 case $aros_kernel_objdump in
11300 [\\/]* | ?:[\\/]*)
11301 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11315 done
11316 done
11317 IFS=$as_save_IFS
11320 esac
11322 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11323 if test -n "$aros_kernel_objdump"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11325 $as_echo "$aros_kernel_objdump" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11334 if test "x${crosstools}" != "xyes" ; then
11335 req_avail=yes
11336 if test "$aros_kernel_objcopy" = ""; then
11337 req_avail=no
11339 if test "$aros_kernel_objcopy" = "no"; then
11340 req_avail=no
11342 if test "$req_avail" = "no"; then
11343 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11345 req_avail=yes
11346 if test "$aros_kernel_objdump" = ""; then
11347 req_avail=no
11349 if test "$aros_kernel_objdump" = "no"; then
11350 req_avail=no
11352 if test "$req_avail" = "no"; then
11353 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11359 $as_echo_n "checking which target tools to use... " >&6; }
11360 if test "$aros_target_toolchain" = "yes"; then
11361 if test "$aros_toolchain" = "llvm" ; then
11362 msg_result="llvm"
11363 else
11364 msg_result=$target_tool_prefix
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11367 $as_echo "$msg_result" >&6; }
11368 # We are building AROS crosstools
11369 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11370 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11371 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11372 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11373 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11374 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11375 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11376 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11377 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11378 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11379 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11380 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11381 else
11382 # Determine whether AROS or ELF tools should be used
11383 if test "$aros_tool_prefix" = "none"; then
11384 aros_tool_prefix="${elf_tool_prefix}"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11388 $as_echo "$aros_tool_prefix" >&6; }
11389 # We are *not* building AROS crosstools - use the AROS or ELF tools
11391 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11392 if test "$cross_compiling" = "yes" ; then
11393 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11394 set dummy ${target_tool_prefix}cpp; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_path_orig_target_cpp+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 case $orig_target_cpp in
11401 [\\/]* | ?:[\\/]*)
11402 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11416 done
11417 done
11418 IFS=$as_save_IFS
11421 esac
11423 orig_target_cpp=$ac_cv_path_orig_target_cpp
11424 if test -n "$orig_target_cpp"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11426 $as_echo "$orig_target_cpp" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11433 else
11434 if test "$GCC" = "yes"; then
11435 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11436 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11437 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_orig_target_cpp+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $orig_target_cpp in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in `dirname $aros_gcc_cpp`
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 orig_target_cpp=$ac_cv_path_orig_target_cpp
11467 if test -n "$orig_target_cpp"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11469 $as_echo "$orig_target_cpp" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11477 if test "$orig_target_cpp" = ""; then
11478 # Extract the first word of "cpp", so it can be a program name with args.
11479 set dummy cpp; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_path_orig_target_cpp+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 case $orig_target_cpp in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11506 esac
11508 orig_target_cpp=$ac_cv_path_orig_target_cpp
11509 if test -n "$orig_target_cpp"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11511 $as_echo "$orig_target_cpp" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11520 else
11521 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11522 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if ${ac_cv_path_orig_target_cpp+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 case $orig_target_cpp in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11544 done
11545 done
11546 IFS=$as_save_IFS
11549 esac
11551 orig_target_cpp=$ac_cv_path_orig_target_cpp
11552 if test -n "$orig_target_cpp"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11554 $as_echo "$orig_target_cpp" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11563 req_avail=yes
11564 if test "$orig_target_cpp" = ""; then
11565 req_avail=no
11567 if test "$orig_target_cpp" = "no"; then
11568 req_avail=no
11570 if test "$req_avail" = "no"; then
11571 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11574 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11575 if test "$cross_compiling" = "yes" ; then
11576 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11577 set dummy ${target_tool_prefix}gcc; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if ${ac_cv_path_orig_target_cc+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 case $orig_target_cc in
11584 [\\/]* | ?:[\\/]*)
11585 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11599 done
11600 done
11601 IFS=$as_save_IFS
11604 esac
11606 orig_target_cc=$ac_cv_path_orig_target_cc
11607 if test -n "$orig_target_cc"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11609 $as_echo "$orig_target_cc" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11616 else
11617 if test "$GCC" = "yes"; then
11618 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11619 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11620 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622 $as_echo_n "checking for $ac_word... " >&6; }
11623 if ${ac_cv_path_orig_target_cc+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 case $orig_target_cc in
11627 [\\/]* | ?:[\\/]*)
11628 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in `dirname $aros_gcc_gcc`
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11642 done
11643 done
11644 IFS=$as_save_IFS
11647 esac
11649 orig_target_cc=$ac_cv_path_orig_target_cc
11650 if test -n "$orig_target_cc"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11652 $as_echo "$orig_target_cc" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11660 if test "$orig_target_cc" = ""; then
11661 # Extract the first word of "gcc", so it can be a program name with args.
11662 set dummy gcc; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_orig_target_cc+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 case $orig_target_cc in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11684 done
11685 done
11686 IFS=$as_save_IFS
11689 esac
11691 orig_target_cc=$ac_cv_path_orig_target_cc
11692 if test -n "$orig_target_cc"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11694 $as_echo "$orig_target_cc" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11703 else
11704 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11705 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_path_orig_target_cc+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 case $orig_target_cc in
11712 [\\/]* | ?:[\\/]*)
11713 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11727 done
11728 done
11729 IFS=$as_save_IFS
11732 esac
11734 orig_target_cc=$ac_cv_path_orig_target_cc
11735 if test -n "$orig_target_cc"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11737 $as_echo "$orig_target_cc" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11746 req_avail=yes
11747 if test "$orig_target_cc" = ""; then
11748 req_avail=no
11750 if test "$orig_target_cc" = "no"; then
11751 req_avail=no
11753 if test "$req_avail" = "no"; then
11754 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11757 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11758 if test "$cross_compiling" = "yes" ; then
11759 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11760 set dummy ${target_tool_prefix}g++; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_path_orig_target_cxx+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 case $orig_target_cxx in
11767 [\\/]* | ?:[\\/]*)
11768 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11782 done
11783 done
11784 IFS=$as_save_IFS
11787 esac
11789 orig_target_cxx=$ac_cv_path_orig_target_cxx
11790 if test -n "$orig_target_cxx"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11792 $as_echo "$orig_target_cxx" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11799 else
11800 if test "$GCC" = "yes"; then
11801 aros_gcc_g++=`$CC -print-prog-name=g++`
11802 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11803 set dummy `basename $aros_gcc_g++`; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_orig_target_cxx+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $orig_target_cxx in
11810 [\\/]* | ?:[\\/]*)
11811 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in `dirname $aros_gcc_g++`
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11825 done
11826 done
11827 IFS=$as_save_IFS
11830 esac
11832 orig_target_cxx=$ac_cv_path_orig_target_cxx
11833 if test -n "$orig_target_cxx"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11835 $as_echo "$orig_target_cxx" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11843 if test "$orig_target_cxx" = ""; then
11844 # Extract the first word of "g++", so it can be a program name with args.
11845 set dummy g++; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_orig_target_cxx+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 case $orig_target_cxx in
11852 [\\/]* | ?:[\\/]*)
11853 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
11861 for ac_exec_ext in '' $ac_executable_extensions; do
11862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865 break 2
11867 done
11868 done
11869 IFS=$as_save_IFS
11872 esac
11874 orig_target_cxx=$ac_cv_path_orig_target_cxx
11875 if test -n "$orig_target_cxx"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11877 $as_echo "$orig_target_cxx" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11886 else
11887 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11888 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_path_orig_target_cxx+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 case $orig_target_cxx in
11895 [\\/]* | ?:[\\/]*)
11896 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11910 done
11911 done
11912 IFS=$as_save_IFS
11915 esac
11917 orig_target_cxx=$ac_cv_path_orig_target_cxx
11918 if test -n "$orig_target_cxx"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11920 $as_echo "$orig_target_cxx" >&6; }
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11929 req_avail=yes
11930 if test "$orig_target_cxx" = ""; then
11931 req_avail=no
11933 if test "$orig_target_cxx" = "no"; then
11934 req_avail=no
11936 if test "$req_avail" = "no"; then
11937 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11940 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
11941 if test "$cross_compiling" = "yes" ; then
11942 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11943 set dummy ${target_tool_prefix}gcc; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if ${ac_cv_path_orig_target_ld+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 case $orig_target_ld in
11950 [\\/]* | ?:[\\/]*)
11951 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11970 esac
11972 orig_target_ld=$ac_cv_path_orig_target_ld
11973 if test -n "$orig_target_ld"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11975 $as_echo "$orig_target_ld" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 else
11983 if test "$GCC" = "yes"; then
11984 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11985 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11986 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_orig_target_ld+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 case $orig_target_ld in
11993 [\\/]* | ?:[\\/]*)
11994 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in `dirname $aros_gcc_gcc`
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12013 esac
12015 orig_target_ld=$ac_cv_path_orig_target_ld
12016 if test -n "$orig_target_ld"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12018 $as_echo "$orig_target_ld" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test "$orig_target_ld" = ""; then
12027 # Extract the first word of "gcc", so it can be a program name with args.
12028 set dummy gcc; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_path_orig_target_ld+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 case $orig_target_ld in
12035 [\\/]* | ?:[\\/]*)
12036 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12050 done
12051 done
12052 IFS=$as_save_IFS
12055 esac
12057 orig_target_ld=$ac_cv_path_orig_target_ld
12058 if test -n "$orig_target_ld"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12060 $as_echo "$orig_target_ld" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12069 else
12070 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12071 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_path_orig_target_ld+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 case $orig_target_ld in
12078 [\\/]* | ?:[\\/]*)
12079 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12093 done
12094 done
12095 IFS=$as_save_IFS
12098 esac
12100 orig_target_ld=$ac_cv_path_orig_target_ld
12101 if test -n "$orig_target_ld"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12103 $as_echo "$orig_target_ld" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12112 req_avail=yes
12113 if test "$orig_target_ld" = ""; then
12114 req_avail=no
12116 if test "$orig_target_ld" = "no"; then
12117 req_avail=no
12119 if test "$req_avail" = "no"; then
12120 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12123 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12124 if test "$cross_compiling" = "yes" ; then
12125 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12126 set dummy ${target_tool_prefix}as; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if ${ac_cv_path_orig_target_as+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 case $orig_target_as in
12133 [\\/]* | ?:[\\/]*)
12134 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12148 done
12149 done
12150 IFS=$as_save_IFS
12153 esac
12155 orig_target_as=$ac_cv_path_orig_target_as
12156 if test -n "$orig_target_as"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12158 $as_echo "$orig_target_as" >&6; }
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12165 else
12166 if test "$GCC" = "yes"; then
12167 aros_gcc_as=`$CC -print-prog-name=as`
12168 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12169 set dummy `basename $aros_gcc_as`; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_path_orig_target_as+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 case $orig_target_as in
12176 [\\/]* | ?:[\\/]*)
12177 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in `dirname $aros_gcc_as`
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12191 done
12192 done
12193 IFS=$as_save_IFS
12196 esac
12198 orig_target_as=$ac_cv_path_orig_target_as
12199 if test -n "$orig_target_as"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12201 $as_echo "$orig_target_as" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12209 if test "$orig_target_as" = ""; then
12210 # Extract the first word of "as", so it can be a program name with args.
12211 set dummy as; ac_word=$2
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213 $as_echo_n "checking for $ac_word... " >&6; }
12214 if ${ac_cv_path_orig_target_as+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216 else
12217 case $orig_target_as in
12218 [\\/]* | ?:[\\/]*)
12219 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
12228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12229 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12233 done
12234 done
12235 IFS=$as_save_IFS
12238 esac
12240 orig_target_as=$ac_cv_path_orig_target_as
12241 if test -n "$orig_target_as"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12243 $as_echo "$orig_target_as" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12252 else
12253 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12254 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256 $as_echo_n "checking for $ac_word... " >&6; }
12257 if ${ac_cv_path_orig_target_as+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 case $orig_target_as in
12261 [\\/]* | ?:[\\/]*)
12262 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12276 done
12277 done
12278 IFS=$as_save_IFS
12281 esac
12283 orig_target_as=$ac_cv_path_orig_target_as
12284 if test -n "$orig_target_as"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12286 $as_echo "$orig_target_as" >&6; }
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12295 req_avail=yes
12296 if test "$orig_target_as" = ""; then
12297 req_avail=no
12299 if test "$orig_target_as" = "no"; then
12300 req_avail=no
12302 if test "$req_avail" = "no"; then
12303 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12306 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12307 if test "$cross_compiling" = "yes" ; then
12308 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12309 set dummy ${target_tool_prefix}ar; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_path_orig_target_ar+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 case $orig_target_ar in
12316 [\\/]* | ?:[\\/]*)
12317 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12327 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12331 done
12332 done
12333 IFS=$as_save_IFS
12336 esac
12338 orig_target_ar=$ac_cv_path_orig_target_ar
12339 if test -n "$orig_target_ar"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12341 $as_echo "$orig_target_ar" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12348 else
12349 if test "$GCC" = "yes"; then
12350 aros_gcc_ar=`$CC -print-prog-name=ar`
12351 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12352 set dummy `basename $aros_gcc_ar`; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_path_orig_target_ar+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 case $orig_target_ar in
12359 [\\/]* | ?:[\\/]*)
12360 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in `dirname $aros_gcc_ar`
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12370 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12374 done
12375 done
12376 IFS=$as_save_IFS
12379 esac
12381 orig_target_ar=$ac_cv_path_orig_target_ar
12382 if test -n "$orig_target_ar"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12384 $as_echo "$orig_target_ar" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12392 if test "$orig_target_ar" = ""; then
12393 # Extract the first word of "ar", so it can be a program name with args.
12394 set dummy ar; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if ${ac_cv_path_orig_target_ar+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 case $orig_target_ar in
12401 [\\/]* | ?:[\\/]*)
12402 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12412 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12416 done
12417 done
12418 IFS=$as_save_IFS
12421 esac
12423 orig_target_ar=$ac_cv_path_orig_target_ar
12424 if test -n "$orig_target_ar"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12426 $as_echo "$orig_target_ar" >&6; }
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12435 else
12436 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12437 set dummy ${aros_tool_prefix}${toolchain_ar}; ac_word=$2
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439 $as_echo_n "checking for $ac_word... " >&6; }
12440 if ${ac_cv_path_orig_target_ar+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 case $orig_target_ar in
12444 [\\/]* | ?:[\\/]*)
12445 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12459 done
12460 done
12461 IFS=$as_save_IFS
12464 esac
12466 orig_target_ar=$ac_cv_path_orig_target_ar
12467 if test -n "$orig_target_ar"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12469 $as_echo "$orig_target_ar" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12478 req_avail=yes
12479 if test "$orig_target_ar" = ""; then
12480 req_avail=no
12482 if test "$orig_target_ar" = "no"; then
12483 req_avail=no
12485 if test "$req_avail" = "no"; then
12486 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12489 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12490 if test "$cross_compiling" = "yes" ; then
12491 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12492 set dummy ${target_tool_prefix}ar; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 case $orig_target_ranlib in
12499 [\\/]* | ?:[\\/]*)
12500 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 break 2
12514 done
12515 done
12516 IFS=$as_save_IFS
12519 esac
12521 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12522 if test -n "$orig_target_ranlib"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12524 $as_echo "$orig_target_ranlib" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12531 else
12532 if test "$GCC" = "yes"; then
12533 aros_gcc_ar=`$CC -print-prog-name=ar`
12534 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12535 set dummy `basename $aros_gcc_ar`; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 case $orig_target_ranlib in
12542 [\\/]* | ?:[\\/]*)
12543 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in `dirname $aros_gcc_ar`
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12553 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12557 done
12558 done
12559 IFS=$as_save_IFS
12562 esac
12564 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12565 if test -n "$orig_target_ranlib"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12567 $as_echo "$orig_target_ranlib" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 if test "$orig_target_ranlib" = ""; then
12576 # Extract the first word of "ar", so it can be a program name with args.
12577 set dummy ar; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $orig_target_ranlib in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12599 done
12600 done
12601 IFS=$as_save_IFS
12604 esac
12606 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12607 if test -n "$orig_target_ranlib"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12609 $as_echo "$orig_target_ranlib" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12618 else
12619 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12620 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 case $orig_target_ranlib in
12627 [\\/]* | ?:[\\/]*)
12628 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12634 IFS=$as_save_IFS
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12638 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 break 2
12642 done
12643 done
12644 IFS=$as_save_IFS
12647 esac
12649 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12650 if test -n "$orig_target_ranlib"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12652 $as_echo "$orig_target_ranlib" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12661 req_avail=yes
12662 if test "$orig_target_ranlib" = ""; then
12663 req_avail=no
12665 if test "$orig_target_ranlib" = "no"; then
12666 req_avail=no
12668 if test "$req_avail" = "no"; then
12669 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12672 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12673 if test "$cross_compiling" = "yes" ; then
12674 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12675 set dummy ${target_tool_prefix}nm; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_path_orig_target_nm+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $orig_target_nm in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12702 esac
12704 orig_target_nm=$ac_cv_path_orig_target_nm
12705 if test -n "$orig_target_nm"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12707 $as_echo "$orig_target_nm" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12714 else
12715 if test "$GCC" = "yes"; then
12716 aros_gcc_nm=`$CC -print-prog-name=nm`
12717 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12718 set dummy `basename $aros_gcc_nm`; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_orig_target_nm+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 case $orig_target_nm in
12725 [\\/]* | ?:[\\/]*)
12726 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in `dirname $aros_gcc_nm`
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12740 done
12741 done
12742 IFS=$as_save_IFS
12745 esac
12747 orig_target_nm=$ac_cv_path_orig_target_nm
12748 if test -n "$orig_target_nm"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12750 $as_echo "$orig_target_nm" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12758 if test "$orig_target_nm" = ""; then
12759 # Extract the first word of "nm", so it can be a program name with args.
12760 set dummy nm; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_nm+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $orig_target_nm in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12787 esac
12789 orig_target_nm=$ac_cv_path_orig_target_nm
12790 if test -n "$orig_target_nm"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12792 $as_echo "$orig_target_nm" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12801 else
12802 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12803 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if ${ac_cv_path_orig_target_nm+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 case $orig_target_nm in
12810 [\\/]* | ?:[\\/]*)
12811 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $PATH
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12821 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12825 done
12826 done
12827 IFS=$as_save_IFS
12830 esac
12832 orig_target_nm=$ac_cv_path_orig_target_nm
12833 if test -n "$orig_target_nm"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12835 $as_echo "$orig_target_nm" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12844 req_avail=yes
12845 if test "$orig_target_nm" = ""; then
12846 req_avail=no
12848 if test "$orig_target_nm" = "no"; then
12849 req_avail=no
12851 if test "$req_avail" = "no"; then
12852 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12855 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12856 if test "$cross_compiling" = "yes" ; then
12857 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12858 set dummy ${target_tool_prefix}strip; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_orig_target_strip+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 case $orig_target_strip in
12865 [\\/]* | ?:[\\/]*)
12866 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 break 2
12880 done
12881 done
12882 IFS=$as_save_IFS
12885 esac
12887 orig_target_strip=$ac_cv_path_orig_target_strip
12888 if test -n "$orig_target_strip"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12890 $as_echo "$orig_target_strip" >&6; }
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12897 else
12898 if test "$GCC" = "yes"; then
12899 aros_gcc_strip=`$CC -print-prog-name=strip`
12900 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12901 set dummy `basename $aros_gcc_strip`; ac_word=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if ${ac_cv_path_orig_target_strip+:} false; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 case $orig_target_strip in
12908 [\\/]* | ?:[\\/]*)
12909 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in `dirname $aros_gcc_strip`
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12919 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12923 done
12924 done
12925 IFS=$as_save_IFS
12928 esac
12930 orig_target_strip=$ac_cv_path_orig_target_strip
12931 if test -n "$orig_target_strip"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12933 $as_echo "$orig_target_strip" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12941 if test "$orig_target_strip" = ""; then
12942 # Extract the first word of "strip", so it can be a program name with args.
12943 set dummy strip; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_path_orig_target_strip+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 case $orig_target_strip in
12950 [\\/]* | ?:[\\/]*)
12951 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12957 IFS=$as_save_IFS
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 break 2
12965 done
12966 done
12967 IFS=$as_save_IFS
12970 esac
12972 orig_target_strip=$ac_cv_path_orig_target_strip
12973 if test -n "$orig_target_strip"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12975 $as_echo "$orig_target_strip" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12984 else
12985 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
12986 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_path_orig_target_strip+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 case $orig_target_strip in
12993 [\\/]* | ?:[\\/]*)
12994 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13004 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13008 done
13009 done
13010 IFS=$as_save_IFS
13013 esac
13015 orig_target_strip=$ac_cv_path_orig_target_strip
13016 if test -n "$orig_target_strip"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13018 $as_echo "$orig_target_strip" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13027 req_avail=yes
13028 if test "$orig_target_strip" = ""; then
13029 req_avail=no
13031 if test "$orig_target_strip" = "no"; then
13032 req_avail=no
13034 if test "$req_avail" = "no"; then
13035 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13038 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13039 if test "$cross_compiling" = "yes" ; then
13040 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13041 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 case $orig_target_objcopy in
13048 [\\/]* | ?:[\\/]*)
13049 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13059 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13063 done
13064 done
13065 IFS=$as_save_IFS
13068 esac
13070 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13071 if test -n "$orig_target_objcopy"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13073 $as_echo "$orig_target_objcopy" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13080 else
13081 if test "$GCC" = "yes"; then
13082 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13083 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13084 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 case $orig_target_objcopy in
13091 [\\/]* | ?:[\\/]*)
13092 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in `dirname $aros_gcc_objcopy`
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13106 done
13107 done
13108 IFS=$as_save_IFS
13111 esac
13113 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13114 if test -n "$orig_target_objcopy"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13116 $as_echo "$orig_target_objcopy" >&6; }
13117 else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13124 if test "$orig_target_objcopy" = ""; then
13125 # Extract the first word of "objcopy", so it can be a program name with args.
13126 set dummy objcopy; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 case $orig_target_objcopy in
13133 [\\/]* | ?:[\\/]*)
13134 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 break 2
13148 done
13149 done
13150 IFS=$as_save_IFS
13153 esac
13155 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13156 if test -n "$orig_target_objcopy"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13158 $as_echo "$orig_target_objcopy" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13167 else
13168 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13169 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 case $orig_target_objcopy in
13176 [\\/]* | ?:[\\/]*)
13177 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13191 done
13192 done
13193 IFS=$as_save_IFS
13196 esac
13198 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13199 if test -n "$orig_target_objcopy"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13201 $as_echo "$orig_target_objcopy" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13210 req_avail=yes
13211 if test "$orig_target_objcopy" = ""; then
13212 req_avail=no
13214 if test "$orig_target_objcopy" = "no"; then
13215 req_avail=no
13217 if test "$req_avail" = "no"; then
13218 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13221 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13222 if test "$cross_compiling" = "yes" ; then
13223 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13224 set dummy ${target_tool_prefix}objdump; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if ${ac_cv_path_orig_target_objdump+:} false; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 case $orig_target_objdump in
13231 [\\/]* | ?:[\\/]*)
13232 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13242 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13246 done
13247 done
13248 IFS=$as_save_IFS
13251 esac
13253 orig_target_objdump=$ac_cv_path_orig_target_objdump
13254 if test -n "$orig_target_objdump"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13256 $as_echo "$orig_target_objdump" >&6; }
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13263 else
13264 if test "$GCC" = "yes"; then
13265 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13266 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13267 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if ${ac_cv_path_orig_target_objdump+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 case $orig_target_objdump in
13274 [\\/]* | ?:[\\/]*)
13275 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in `dirname $aros_gcc_objdump`
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13294 esac
13296 orig_target_objdump=$ac_cv_path_orig_target_objdump
13297 if test -n "$orig_target_objdump"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13299 $as_echo "$orig_target_objdump" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13307 if test "$orig_target_objdump" = ""; then
13308 # Extract the first word of "objdump", so it can be a program name with args.
13309 set dummy objdump; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if ${ac_cv_path_orig_target_objdump+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 case $orig_target_objdump in
13316 [\\/]* | ?:[\\/]*)
13317 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13327 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13331 done
13332 done
13333 IFS=$as_save_IFS
13336 esac
13338 orig_target_objdump=$ac_cv_path_orig_target_objdump
13339 if test -n "$orig_target_objdump"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13341 $as_echo "$orig_target_objdump" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13350 else
13351 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13352 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_path_orig_target_objdump+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 case $orig_target_objdump in
13359 [\\/]* | ?:[\\/]*)
13360 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13370 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13374 done
13375 done
13376 IFS=$as_save_IFS
13379 esac
13381 orig_target_objdump=$ac_cv_path_orig_target_objdump
13382 if test -n "$orig_target_objdump"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13384 $as_echo "$orig_target_objdump" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13393 req_avail=yes
13394 if test "$orig_target_objdump" = ""; then
13395 req_avail=no
13397 if test "$orig_target_objdump" = "no"; then
13398 req_avail=no
13400 if test "$req_avail" = "no"; then
13401 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13405 if test "$kernel_tool_prefix" = "none" ; then
13406 # No kernel tools specified
13407 # Assume target tools == kernel tools with ELF wrapper
13408 aros_kernel_cc=$orig_target_cc
13409 aros_kernel_cxx=$orig_target_cxx
13410 aros_kernel_cpp=$orig_target_cpp
13411 aros_kernel_ld=$orig_target_ld
13412 aros_kernel_as=$orig_target_as
13413 aros_kernel_ar=$orig_target_ar
13414 aros_kernel_ranlib=$orig_target_ranlib
13415 aros_kernel_nm=$orig_target_nm
13416 aros_kernel_strip=$orig_target_strip
13417 aros_kernel_objcopy=$orig_target_objcopy
13418 aros_kernel_objdump=$orig_target_objdump
13419 use_kernel_cc_wrapper=yes
13422 # At this point, all aros_kernel_* and aros_target_*
13423 # tools should be set up correctly
13425 CC="$aros_kernel_cc $kernel_tool_flags"
13426 CPP="$aros_kernel_cpp"
13428 #-----------------------------------------------------------------------------
13430 # Find all the tools we need to compile. This could be cross-compiling
13431 # though! If that is the case we use the GNU form of the target and
13432 # simply add this to the front of the binary name. This is rather simple,
13433 # but it should work under most circumstances.
13435 # The default tools are to use the same as the host, but only if the
13436 # host and target CPU are the same. With GCC this is normally enough.
13439 aros_cc_pre=""
13440 aros_shared_ld="$aros_host_ld"
13442 aros_target_mkdep="$aros_host_mkdep"
13444 # The default tools executables to be linked to.
13445 if test "$rescomp" != ""; then
13446 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13447 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 case $aros_kernel_rescomp in
13454 [\\/]* | ?:[\\/]*)
13455 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13469 done
13470 done
13471 IFS=$as_save_IFS
13474 esac
13476 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13477 if test -n "$aros_kernel_rescomp"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13479 $as_echo "$aros_kernel_rescomp" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13486 req_avail=yes
13487 if test "$aros_kernel_rescomp" = ""; then
13488 req_avail=no
13490 if test "$aros_kernel_rescomp" = "no"; then
13491 req_avail=no
13493 if test "$req_avail" = "no"; then
13494 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13498 # Set up the sources for the symlink farm
13499 if test "$crosstools" = "yes"; then
13500 crosstools_target=tools-crosstools
13503 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13504 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13506 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13507 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13508 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13509 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13510 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13511 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13512 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13514 # aros_cc_pre is a variable that is added to the front of the compiler name
13515 # in the generated aros-gcc shell script. We need this to enable the cache
13516 # to work across cleaned builds. Also, support DISTCC using the correct
13517 # environment variable.
13520 if test "x${DISTCC}" != "x" ; then
13521 if test "x${CCACHE}" != "x" ; then
13522 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13523 else
13524 aros_cc_pre="${DISTCC} "
13526 else
13527 if test "x${CCACHE}" != "x" ; then
13528 aros_cc_pre="${CCACHE} "
13532 aros_target_nostdinc_cflags=-nostdinc
13534 aros_target_nostartup_ldflags=-nostartfiles
13536 aros_target_nix_ldflags=-nix
13538 aros_target_detach_ldflags=-detach
13540 aros_target_nostdlib_ldflags=-nostdlib
13543 # Target tools
13545 if test "$aros_target_toolchain" != "yes"; then
13546 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13547 if test "$GCC" = "yes"; then
13548 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13550 else
13551 # We do not know which c compiler version we are going to build and what we need to know
13552 # here is different for different versions so this will be set later during the
13553 # build of crosstools.
13554 if test "$aros_toolchain" = "gnu" ; then
13555 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13556 elif test "$aros_toolchain" = "llvm" ; then
13557 prefix="$AROS_CROSSTOOLSDIR/bin/"
13559 aros_target_cc_path=@aros_target_cc_path@
13561 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13562 aros_target_cc="${prefix}${toolchain_c_compiler}"
13563 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13564 aros_target_as="${prefix}${toolchain_as}"
13565 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_ld}"
13566 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13567 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13568 aros_target_objdump="${prefix}${toolchain_objdump}"
13569 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13570 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13571 aros_target_strip="${prefix}${toolchain_strip}"
13572 aros_plain_nm="${prefix}${toolchain_nm}"
13573 aros_plain_ar="${prefix}${toolchain_ar}"
13575 # Check whether --enable-includes was given.
13576 if test "${enable_includes+set}" = set; then :
13577 enableval=$enable_includes; aros_target_incl=$enable_includes
13578 else
13579 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13583 if test "$aros_kernel_includes" = ""; then
13584 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13585 aros_kernel_includes="-isystem $aros_target_incl"
13589 if test "$aros_kernel_includes" != "" ; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13591 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13592 if test "$aros_kernel_cc_includes" = "" ; then
13593 # Try to guess where the directory is.
13594 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13595 if test -d $aros_kernel_cc_includes; then
13596 # Check if there is also an include-fixed directory and add it
13597 # to kernel compiler's include path as it may contain some of
13598 # the headers we need.
13599 if test -d "$aros_kernel_cc_includes"-fixed; then
13600 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13602 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13603 case ${host_cpu} in
13604 i[3456]86)
13605 host_cpu_glibc=i386
13608 host_cpu_glibc=${host_cpu}
13610 esac
13611 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13612 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13614 else
13615 # The directory doesn't exist, we need to do some more work.
13616 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13618 # These are the headers we're looking for.
13619 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13620 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13621 zutil.h stdint.h"
13623 dirs=
13624 for h in $headers; do
13625 # Which other headers are needed by each of the above?
13626 deps=$(echo "#include <$h>" | \
13627 $aros_kernel_cc -E -M - 2>/dev/null | \
13628 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13630 # Copy all the needed headers to a directory beneath gendir.
13631 for d in $deps; do
13632 h=$(basename $d)
13633 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13634 sed -n "s,^.*/include\(/.*\),\1,p")
13635 ! test -d $dir && mkdir -p $dir
13636 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13637 done
13638 done
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13642 $as_echo "$aros_kernel_cc_includes" >&6; }
13643 # Adding -nostdinc to kernel includes as they are always used together.
13644 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13647 if test "$crosstools" != "yes"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13649 $as_echo_n "checking for the target compiler's include path... " >&6; }
13650 if test "$aros_target_cc_includes" = "" ; then
13651 #try to guess where the directory is
13652 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13653 if ! test -d $aros_target_cc_includes; then
13654 #the directory doesn't exist, we need to do some more work
13655 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13657 #these are the headers we're looking for
13658 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13659 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13660 zutil.h"
13662 dirs=
13663 for h in $headers; do
13664 #which other headers each of the above headers needs?
13665 deps=$(echo "#include <$h>" | \
13666 $orig_target_cc -E -M - 2>/dev/null | \
13667 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13669 #copy all the needed headers to a directory beneath gendir
13670 for d in $deps; do
13671 h=$(basename $d)
13672 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13673 sed -n "s,^.*/include\(/.*\),\1,p")
13674 ! test -d $dir && mkdir -p $dir
13675 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13676 done
13677 done
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13681 $as_echo "$aros_target_cc_includes" >&6; }
13682 else
13683 # We do not know which c compiler version we are going to build and what we need to know
13684 # here is different for different versions so this will be set later during the
13685 # build of crosstools.
13686 aros_target_cc_includes=@aros_target_cc_includes@
13690 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13691 # On GCC >= 4.0 -iquote should be used
13694 save_cc="$CC"
13695 save_cflags="$CFLAGS"
13696 CFLAGS="-iquote."
13697 kernel_cflags_iquote=$host_cflags_iquote
13698 kernel_cflags_iquote_end=$host_cflags_iquote_end
13699 if test "x-$cross_compiling" = "x-yes"; then
13700 CC="$aros_kernel_cc"
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13702 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13703 if test "x-$crosstools" != "x-yes"; then
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13708 main ()
13712 return 0;
13714 _ACEOF
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716 use_no_stack_protector="yes"
13717 else
13718 use_no_stack_protector="no"
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 else
13722 # we do know it is supported for the smallest version of gcc we are going to build
13723 # we assume it's also supported by later versions
13724 use_no_stack_protector=yes
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13727 $as_echo "$use_no_stack_protector" >&6; }
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13729 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13730 if test "x-$crosstools" != "x-yes"; then
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13735 main ()
13739 return 0;
13741 _ACEOF
13742 if ac_fn_c_try_compile "$LINENO"; then :
13743 has_iquote="yes"
13744 else
13745 has_iquote="no"
13747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748 else
13749 # we do know it is supported for the smallest version of gcc we are going to build
13750 # we assume it's also supported by later versions
13751 has_iquote=yes
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13754 $as_echo "$has_iquote" >&6; }
13755 if test "x-$has_iquote" = "x-yes" ; then
13756 kernel_cflags_iquote=-iquote
13757 kernel_cflags_iquote_end=
13758 else
13759 kernel_cflags_iquote=-I
13760 kernel_cflags_iquote_end=-I-
13763 if test "x-$use_no_stack_protector" = "x-yes" ; then
13764 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13767 #-----------------------------------------------------------------------------
13769 # Check if we can explicitly choose older version of symbol hashing
13771 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13772 CC="$aros_kernel_cc"
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13774 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13779 main ()
13783 return 0;
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 use_hash_style="yes"
13788 else
13789 use_hash_style="no"
13791 rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13794 $as_echo "$use_hash_style" >&6; }
13795 if test "x-$use_hash_style" = "x-yes" ; then
13796 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13798 CC="$save_cc"
13799 CFLAGS="$save_cflags"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13808 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13810 # Check whether --with-resolution was given.
13811 if test "${with_resolution+set}" = set; then :
13812 withval=$with_resolution; resolution=$withval
13813 else
13814 resolution=none
13817 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13818 if test "$resolution" = "yes" ; then
13819 resolution="none"
13821 if test "$resolution" = "no" ; then
13822 resolution="none"
13824 if test "$resolution" != "none" ; then
13825 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13826 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13827 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13830 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13831 aros_cv_nominal_width=$aros_nominal_width
13832 aros_cv_nominal_height=$aros_nominal_height
13833 aros_cv_nominal_depth=$aros_nominal_depth
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13836 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13838 # Check whether --with-serial-debug was given.
13839 if test "${with_serial_debug+set}" = set; then :
13840 withval=$with_serial_debug; serial_debug=$withval
13841 else
13842 serial_debug=none
13845 if test "$aros_serial_debug" = 0 ; then
13846 serial_debug_forced=""
13847 if test "$serial_debug" = "yes" ; then
13848 serial_debug="1"
13850 if test "$serial_debug" = "no" ; then
13851 serial_debug="none"
13853 else
13854 serial_debug_forced="(forced)"
13855 serial_debug=$aros_serial_debug
13857 if test "$serial_debug" != "none" ; then
13858 aros_serial_debug=$serial_debug
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13860 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13867 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13868 # Check whether --enable-palm_debug_hack was given.
13869 if test "${enable_palm_debug_hack+set}" = set; then :
13870 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13871 else
13872 palm_debug_hack="no"
13875 if test "$palm_debug_hack" = "yes" ; then
13876 aros_palm_debug_hack="1"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13879 $as_echo "$palm_debug_hack" >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
13882 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
13883 # Check whether --enable-usb30_code was given.
13884 if test "${enable_usb30_code+set}" = set; then :
13885 enableval=$enable_usb30_code; usb30_code="yes"
13886 else
13887 usb30_code="no"
13890 if test "$usb30_code" = "yes" ; then
13891 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13892 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13895 $as_echo "$usb30_code" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
13898 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
13899 # Check whether --enable-nesting_supervisor was given.
13900 if test "${enable_nesting_supervisor+set}" = set; then :
13901 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13902 else
13903 nesting_supervisor="no"
13906 if test "$nesting_supervisor" = "yes" ; then
13907 aros_nesting_supervisor="1"
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13910 $as_echo "$nesting_supervisor" >&6; }
13912 if test "$aros_enable_mmu" = "" ; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
13914 $as_echo_n "checking whether MMU support is enabled... " >&6; }
13915 # Check whether --enable-mmu was given.
13916 if test "${enable_mmu+set}" = set; then :
13917 enableval=$enable_mmu; aros_enable_mmu=$enableval
13918 else
13919 aros_enable_mmu="yes"
13922 if test "$aros_enable_mmu" = "" ; then
13923 aros_enable_mmu="yes"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13926 $as_echo "$aros_enable_mmu" >&6; }
13928 if test "$aros_enable_mmu" = "no" ; then
13929 aros_enable_mmu="0"
13930 else
13931 aros_enable_mmu="1"
13935 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13937 if test "x-$need_dlopen" != "x-no" ; then
13938 save_libs="$LIBS"
13939 LIBS=""
13940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13941 if test "x$ac_cv_func_dlopen" = xyes; then :
13942 have_dl="yes"
13943 else
13944 have_dl="no"
13947 if test "x-$have_dl" = "x-no" ; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13950 if ${ac_cv_lib_dl_dlopen+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 ac_check_lib_save_LIBS=$LIBS
13954 LIBS="-ldl $LIBS"
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char dlopen ();
13966 main ()
13968 return dlopen ();
13970 return 0;
13972 _ACEOF
13973 if ac_fn_c_try_link "$LINENO"; then :
13974 ac_cv_lib_dl_dlopen=yes
13975 else
13976 ac_cv_lib_dl_dlopen=no
13978 rm -f core conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13980 LIBS=$ac_check_lib_save_LIBS
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13984 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13985 have_dl="yes"
13986 aros_host_ldflags="$aros_host_ldflags -ldl"
13987 else
13988 have_dl="no"
13992 if test "x-$have_dl" = "x-no" ; then
13993 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13995 LIBS="$save_libs"
13999 # Check whether --enable-x11_hidd was given.
14000 if test "${enable_x11_hidd+set}" = set; then :
14001 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14002 else
14003 x11_hidd="$need_x11"
14006 case "x-$x11_hidd" in
14007 x-yes|x-no|x-auto) ;;
14008 *) x11_hidd="$need_x11" ;;
14009 esac
14011 ENABLE_X11=0
14013 if test "x-$x11_hidd" != "x-no" ; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14016 $as_echo_n "checking for X... " >&6; }
14019 # Check whether --with-x was given.
14020 if test "${with_x+set}" = set; then :
14021 withval=$with_x;
14024 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14025 if test "x$with_x" = xno; then
14026 # The user explicitly disabled X.
14027 have_x=disabled
14028 else
14029 case $x_includes,$x_libraries in #(
14030 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14031 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 # One or both of the vars are not set, and there is no cached value.
14035 ac_x_includes=no ac_x_libraries=no
14036 rm -f -r conftest.dir
14037 if mkdir conftest.dir; then
14038 cd conftest.dir
14039 cat >Imakefile <<'_ACEOF'
14040 incroot:
14041 @echo incroot='${INCROOT}'
14042 usrlibdir:
14043 @echo usrlibdir='${USRLIBDIR}'
14044 libdir:
14045 @echo libdir='${LIBDIR}'
14046 _ACEOF
14047 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14049 for ac_var in incroot usrlibdir libdir; do
14050 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14051 done
14052 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14053 for ac_extension in a so sl dylib la dll; do
14054 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14055 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14056 ac_im_usrlibdir=$ac_im_libdir; break
14058 done
14059 # Screen out bogus values from the imake configuration. They are
14060 # bogus both because they are the default anyway, and because
14061 # using them would break gcc on systems where it needs fixed includes.
14062 case $ac_im_incroot in
14063 /usr/include) ac_x_includes= ;;
14064 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14065 esac
14066 case $ac_im_usrlibdir in
14067 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14068 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14069 esac
14071 cd ..
14072 rm -f -r conftest.dir
14075 # Standard set of common directories for X headers.
14076 # Check X11 before X11Rn because it is often a symlink to the current release.
14077 ac_x_header_dirs='
14078 /usr/X11/include
14079 /usr/X11R7/include
14080 /usr/X11R6/include
14081 /usr/X11R5/include
14082 /usr/X11R4/include
14084 /usr/include/X11
14085 /usr/include/X11R7
14086 /usr/include/X11R6
14087 /usr/include/X11R5
14088 /usr/include/X11R4
14090 /usr/local/X11/include
14091 /usr/local/X11R7/include
14092 /usr/local/X11R6/include
14093 /usr/local/X11R5/include
14094 /usr/local/X11R4/include
14096 /usr/local/include/X11
14097 /usr/local/include/X11R7
14098 /usr/local/include/X11R6
14099 /usr/local/include/X11R5
14100 /usr/local/include/X11R4
14102 /usr/X386/include
14103 /usr/x386/include
14104 /usr/XFree86/include/X11
14106 /usr/include
14107 /usr/local/include
14108 /usr/unsupported/include
14109 /usr/athena/include
14110 /usr/local/x11r5/include
14111 /usr/lpp/Xamples/include
14113 /usr/openwin/include
14114 /usr/openwin/share/include'
14116 if test "$ac_x_includes" = no; then
14117 # Guess where to find include files, by looking for Xlib.h.
14118 # First, try using that file with no special directory specified.
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <X11/Xlib.h>
14122 _ACEOF
14123 if ac_fn_c_try_cpp "$LINENO"; then :
14124 # We can compile using X headers with no special include directory.
14125 ac_x_includes=
14126 else
14127 for ac_dir in $ac_x_header_dirs; do
14128 if test -r "$ac_dir/X11/Xlib.h"; then
14129 ac_x_includes=$ac_dir
14130 break
14132 done
14134 rm -f conftest.err conftest.i conftest.$ac_ext
14135 fi # $ac_x_includes = no
14137 if test "$ac_x_libraries" = no; then
14138 # Check for the libraries.
14139 # See if we find them without any special options.
14140 # Don't add to $LIBS permanently.
14141 ac_save_LIBS=$LIBS
14142 LIBS="-lX11 $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <X11/Xlib.h>
14147 main ()
14149 XrmInitialize ()
14151 return 0;
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 LIBS=$ac_save_LIBS
14156 # We can link X programs with no special library path.
14157 ac_x_libraries=
14158 else
14159 LIBS=$ac_save_LIBS
14160 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14162 # Don't even attempt the hair of trying to link an X program!
14163 for ac_extension in a so sl dylib la dll; do
14164 if test -r "$ac_dir/libX11.$ac_extension"; then
14165 ac_x_libraries=$ac_dir
14166 break 2
14168 done
14169 done
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14173 fi # $ac_x_libraries = no
14175 case $ac_x_includes,$ac_x_libraries in #(
14176 no,* | *,no | *\'*)
14177 # Didn't find X, or a directory has "'" in its name.
14178 ac_cv_have_x="have_x=no";; #(
14180 # Record where we found X for the cache.
14181 ac_cv_have_x="have_x=yes\
14182 ac_x_includes='$ac_x_includes'\
14183 ac_x_libraries='$ac_x_libraries'"
14184 esac
14186 ;; #(
14187 *) have_x=yes;;
14188 esac
14189 eval "$ac_cv_have_x"
14190 fi # $with_x != no
14192 if test "$have_x" != yes; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14194 $as_echo "$have_x" >&6; }
14195 no_x=yes
14196 else
14197 # If each of the values was on the command line, it overrides each guess.
14198 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14199 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14200 # Update the cache value to reflect the command line values.
14201 ac_cv_have_x="have_x=yes\
14202 ac_x_includes='$x_includes'\
14203 ac_x_libraries='$x_libraries'"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14205 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14208 if test "$no_x" = yes; then
14209 # Not all programs may use this symbol, but it does not hurt to define it.
14211 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
14213 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14214 else
14215 if test -n "$x_includes"; then
14216 X_CFLAGS="$X_CFLAGS -I$x_includes"
14219 # It would also be nice to do this for all -L options, not just this one.
14220 if test -n "$x_libraries"; then
14221 X_LIBS="$X_LIBS -L$x_libraries"
14222 # For Solaris; some versions of Sun CC require a space after -R and
14223 # others require no space. Words are not sufficient . . . .
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
14225 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
14226 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
14227 ac_xsave_c_werror_flag=$ac_c_werror_flag
14228 ac_c_werror_flag=yes
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14233 main ()
14237 return 0;
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14243 X_LIBS="$X_LIBS -R$x_libraries"
14244 else
14245 LIBS="$ac_xsave_LIBS -R $x_libraries"
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14250 main ()
14254 return 0;
14256 _ACEOF
14257 if ac_fn_c_try_link "$LINENO"; then :
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14259 $as_echo "yes" >&6; }
14260 X_LIBS="$X_LIBS -R $x_libraries"
14261 else
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
14263 $as_echo "neither works" >&6; }
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 ac_c_werror_flag=$ac_xsave_c_werror_flag
14271 LIBS=$ac_xsave_LIBS
14274 # Check for system-dependent libraries X programs must link with.
14275 # Do this before checking for the system-independent R6 libraries
14276 # (-lICE), since we may need -lsocket or whatever for X linking.
14278 if test "$ISC" = yes; then
14279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14280 else
14281 # Martyn Johnson says this is needed for Ultrix, if the X
14282 # libraries were built with DECnet support. And Karl Berry says
14283 # the Alpha needs dnet_stub (dnet does not exist).
14284 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14291 #ifdef __cplusplus
14292 extern "C"
14293 #endif
14294 char XOpenDisplay ();
14296 main ()
14298 return XOpenDisplay ();
14300 return 0;
14302 _ACEOF
14303 if ac_fn_c_try_link "$LINENO"; then :
14305 else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14307 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14308 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-ldnet $LIBS"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 char dnet_ntoa ();
14324 main ()
14326 return dnet_ntoa ();
14328 return 0;
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 ac_cv_lib_dnet_dnet_ntoa=yes
14333 else
14334 ac_cv_lib_dnet_dnet_ntoa=no
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14341 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14342 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
14343 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14346 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14348 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14349 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-ldnet_stub $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char dnet_ntoa ();
14365 main ()
14367 return dnet_ntoa ();
14369 return 0;
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_lib_dnet_stub_dnet_ntoa=yes
14374 else
14375 ac_cv_lib_dnet_stub_dnet_ntoa=no
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14382 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14383 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
14384 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14389 rm -f core conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS="$ac_xsave_LIBS"
14393 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14394 # to get the SysV transport functions.
14395 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14396 # needs -lnsl.
14397 # The nsl library prevents programs from opening the X display
14398 # on Irix 5.2, according to T.E. Dickey.
14399 # The functions gethostbyname, getservbyname, and inet_addr are
14400 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14401 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14402 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14406 if test $ac_cv_func_gethostbyname = no; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14408 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14409 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-lnsl $LIBS"
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14420 #ifdef __cplusplus
14421 extern "C"
14422 #endif
14423 char gethostbyname ();
14425 main ()
14427 return gethostbyname ();
14429 return 0;
14431 _ACEOF
14432 if ac_fn_c_try_link "$LINENO"; then :
14433 ac_cv_lib_nsl_gethostbyname=yes
14434 else
14435 ac_cv_lib_nsl_gethostbyname=no
14437 rm -f core conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext conftest.$ac_ext
14439 LIBS=$ac_check_lib_save_LIBS
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14442 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14443 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14447 if test $ac_cv_lib_nsl_gethostbyname = no; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14449 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14450 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lbsd $LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char gethostbyname ();
14466 main ()
14468 return gethostbyname ();
14470 return 0;
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_bsd_gethostbyname=yes
14475 else
14476 ac_cv_lib_bsd_gethostbyname=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14483 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14484 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
14485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14491 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14492 # socket/setsockopt and other routines are undefined under SCO ODT
14493 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14494 # on later versions), says Simon Leinen: it contains gethostby*
14495 # variants that don't use the name server (or something). -lsocket
14496 # must be given before -lnsl if both are needed. We assume that
14497 # if connect needs -lnsl, so does gethostbyname.
14498 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14499 if test "x$ac_cv_func_connect" = xyes; then :
14503 if test $ac_cv_func_connect = no; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14505 $as_echo_n "checking for connect in -lsocket... " >&6; }
14506 if ${ac_cv_lib_socket_connect+:} false; then :
14507 $as_echo_n "(cached) " >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 char connect ();
14522 main ()
14524 return connect ();
14526 return 0;
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 ac_cv_lib_socket_connect=yes
14531 else
14532 ac_cv_lib_socket_connect=no
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14539 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14540 if test "x$ac_cv_lib_socket_connect" = xyes; then :
14541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14546 # Guillermo Gomez says -lposix is necessary on A/UX.
14547 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
14548 if test "x$ac_cv_func_remove" = xyes; then :
14552 if test $ac_cv_func_remove = no; then
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14554 $as_echo_n "checking for remove in -lposix... " >&6; }
14555 if ${ac_cv_lib_posix_remove+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 ac_check_lib_save_LIBS=$LIBS
14559 LIBS="-lposix $LIBS"
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char remove ();
14571 main ()
14573 return remove ();
14575 return 0;
14577 _ACEOF
14578 if ac_fn_c_try_link "$LINENO"; then :
14579 ac_cv_lib_posix_remove=yes
14580 else
14581 ac_cv_lib_posix_remove=no
14583 rm -f core conftest.err conftest.$ac_objext \
14584 conftest$ac_exeext conftest.$ac_ext
14585 LIBS=$ac_check_lib_save_LIBS
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14588 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14589 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14596 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14597 if test "x$ac_cv_func_shmat" = xyes; then :
14601 if test $ac_cv_func_shmat = no; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14603 $as_echo_n "checking for shmat in -lipc... " >&6; }
14604 if ${ac_cv_lib_ipc_shmat+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 ac_check_lib_save_LIBS=$LIBS
14608 LIBS="-lipc $LIBS"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char shmat ();
14620 main ()
14622 return shmat ();
14624 return 0;
14626 _ACEOF
14627 if ac_fn_c_try_link "$LINENO"; then :
14628 ac_cv_lib_ipc_shmat=yes
14629 else
14630 ac_cv_lib_ipc_shmat=no
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 LIBS=$ac_check_lib_save_LIBS
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14637 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14638 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14645 # Check for libraries that X11R6 Xt/Xaw programs need.
14646 ac_save_LDFLAGS=$LDFLAGS
14647 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14648 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14649 # check for ICE first), but we must link in the order -lSM -lICE or
14650 # we get undefined symbols. So assume we have SM if we have ICE.
14651 # These have to be linked with before -lX11, unlike the other
14652 # libraries we check for below, so use a different variable.
14653 # John Interrante, Karl Berry
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14655 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14656 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 ac_check_lib_save_LIBS=$LIBS
14660 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14664 /* Override any GCC internal prototype to avoid an error.
14665 Use char because int might match the return type of a GCC
14666 builtin and then its argument prototype would still apply. */
14667 #ifdef __cplusplus
14668 extern "C"
14669 #endif
14670 char IceConnectionNumber ();
14672 main ()
14674 return IceConnectionNumber ();
14676 return 0;
14678 _ACEOF
14679 if ac_fn_c_try_link "$LINENO"; then :
14680 ac_cv_lib_ICE_IceConnectionNumber=yes
14681 else
14682 ac_cv_lib_ICE_IceConnectionNumber=no
14684 rm -f core conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14694 LDFLAGS=$ac_save_LDFLAGS
14699 if test "x-$no_x" = "x-yes" ; then
14701 if test "x-$x11_hidd" != "x-auto" ; then
14702 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14705 else
14706 host_x_gfx=yes
14707 ENABLE_X11=1
14709 aros_host_x11_cflags="$X_CFLAGS"
14710 aros_host_x11_ldflags="$X_LIBS -lX11"
14712 # Check whether --enable-x11_shm was given.
14713 if test "${enable_x11_shm+set}" = set; then :
14714 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14715 else
14716 x11_hidd_shm="auto"
14719 case "x-$x11_hidd_shm" in
14720 x-yes|x-no|x-auto) ;;
14721 *) x11_hidd_shm="auto" ;;
14722 esac
14724 have_xshm=no
14726 if test "x-$x11_hidd_shm" != "x-no" ; then
14728 for ac_header in sys/ipc.h
14729 do :
14730 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_SYS_IPC_H 1
14734 _ACEOF
14738 done
14740 for ac_header in sys/shm.h
14741 do :
14742 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14743 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14744 cat >>confdefs.h <<_ACEOF
14745 #define HAVE_SYS_SHM_H 1
14746 _ACEOF
14750 done
14753 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14755 save_cflags="$CFLAGS"
14756 save_ldflags="$LDFLAGS"
14757 CFLAGS="$CFLAGS $X_CFLAGS"
14758 LDFLAGS="$LDFLAGS $X_LIBS"
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14760 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14761 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 ac_check_lib_save_LIBS=$LIBS
14765 LIBS="-lXext $LIBS"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14769 /* Override any GCC internal prototype to avoid an error.
14770 Use char because int might match the return type of a GCC
14771 builtin and then its argument prototype would still apply. */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 char XShmQueryExtension ();
14777 main ()
14779 return XShmQueryExtension ();
14781 return 0;
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"; then :
14785 ac_cv_lib_Xext_XShmQueryExtension=yes
14786 else
14787 ac_cv_lib_Xext_XShmQueryExtension=no
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14794 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14795 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14796 have_xshm=yes
14799 CFLAGS="$save_cflags"
14800 LDFLAGS="$save_ldflags"
14804 if test "x-$have_xshm" = "x-yes" ; then
14805 DO_XSHM_SUPPORT="1"
14806 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14807 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14808 else
14809 DO_XSHM_SUPPORT="0"
14813 # Check whether --enable-x11_vidmode was given.
14814 if test "${enable_x11_vidmode+set}" = set; then :
14815 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14816 else
14817 x11_hidd_vidmode="auto"
14820 case "x-$x11_hidd_vidmode" in
14821 x-yes|x-no|x-auto) ;;
14822 *) x11_hidd_vidmode="auto" ;;
14823 esac
14825 have_vidmode=no
14827 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14829 save_cflags="$CFLAGS"
14830 save_ldflags="$LDFLAGS"
14831 CFLAGS="$CFLAGS $X_CFLAGS"
14832 LDFLAGS="$LDFLAGS $X_LIBS"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14834 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14835 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 ac_check_lib_save_LIBS=$LIBS
14839 LIBS="-lXxf86vm $LIBS"
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14843 /* Override any GCC internal prototype to avoid an error.
14844 Use char because int might match the return type of a GCC
14845 builtin and then its argument prototype would still apply. */
14846 #ifdef __cplusplus
14847 extern "C"
14848 #endif
14849 char XF86VidModeQueryExtension ();
14851 main ()
14853 return XF86VidModeQueryExtension ();
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14860 else
14861 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14863 rm -f core conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14868 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14869 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14870 have_vidmode=yes
14873 CFLAGS="$save_cflags"
14874 LDFLAGS="$save_ldflags"
14877 if test "x-$have_vidmode" = "x-yes" ; then
14878 DO_VIDMODE_SUPPORT="1"
14879 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14880 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14881 else
14882 DO_VIDMODE_SUPPORT="0"
14887 # Check whether --enable-sdl_hidd was given.
14888 if test "${enable_sdl_hidd+set}" = set; then :
14889 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14890 else
14891 sdl_hidd="auto"
14894 case "x-$sdl_hidd" in
14895 x-yes|x-no|x-auto) ;;
14896 *) sdl_hidd="auto" ;;
14897 esac
14899 if test "x-$sdl_hidd" != "x-no" ; then
14901 SDL_VERSION=1.2.5
14903 # Check whether --with-sdl-prefix was given.
14904 if test "${with_sdl_prefix+set}" = set; then :
14905 withval=$with_sdl_prefix; sdl_prefix="$withval"
14906 else
14907 sdl_prefix=""
14911 # Check whether --with-sdl-exec-prefix was given.
14912 if test "${with_sdl_exec_prefix+set}" = set; then :
14913 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14914 else
14915 sdl_exec_prefix=""
14918 # Check whether --enable-sdltest was given.
14919 if test "${enable_sdltest+set}" = set; then :
14920 enableval=$enable_sdltest;
14921 else
14922 enable_sdltest=yes
14926 if test x$sdl_exec_prefix != x ; then
14927 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14928 if test x${SDL_CONFIG+set} != xset ; then
14929 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14932 if test x$sdl_prefix != x ; then
14933 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14934 if test x${SDL_CONFIG+set} != xset ; then
14935 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14939 as_save_PATH="$PATH"
14940 if test "x$prefix" != xNONE; then
14941 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14943 # Extract the first word of "sdl-config", so it can be a program name with args.
14944 set dummy sdl-config; ac_word=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946 $as_echo_n "checking for $ac_word... " >&6; }
14947 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 case $SDL_CONFIG in
14951 [\\/]* | ?:[\\/]*)
14952 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14966 done
14967 done
14968 IFS=$as_save_IFS
14970 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14972 esac
14974 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14975 if test -n "$SDL_CONFIG"; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14977 $as_echo "$SDL_CONFIG" >&6; }
14978 else
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980 $as_echo "no" >&6; }
14984 PATH="$as_save_PATH"
14985 min_sdl_version=$SDL_VERSION
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14987 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14988 no_sdl=""
14989 if test "$SDL_CONFIG" = "no" ; then
14990 no_sdl=yes
14991 else
14992 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14993 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14995 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14997 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14999 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15001 if test "x$enable_sdltest" = "xyes" ; then
15002 ac_save_CFLAGS="$CFLAGS"
15003 ac_save_CXXFLAGS="$CXXFLAGS"
15004 ac_save_LIBS="$LIBS"
15005 CFLAGS="$CFLAGS $SDL_CFLAGS"
15006 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15007 LIBS="$LIBS $SDL_LIBS"
15008 rm -f conf.sdltest
15009 if test "$cross_compiling" = yes; then :
15010 echo $ac_n "cross compiling; assumed OK... $ac_c"
15011 else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15015 #include <stdio.h>
15016 #include <stdlib.h>
15017 #include <string.h>
15018 #include "SDL.h"
15020 char*
15021 my_strdup (char *str)
15023 char *new_str;
15025 if (str)
15027 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15028 strcpy (new_str, str);
15030 else
15031 new_str = NULL;
15033 return new_str;
15036 int main (int argc, char *argv[])
15038 int major, minor, micro;
15039 char *tmp_version;
15041 /* This hangs on some systems (?)
15042 system ("touch conf.sdltest");
15044 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15046 /* HP/UX 9 (%@#!) writes to sscanf strings */
15047 tmp_version = my_strdup("$min_sdl_version");
15048 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15049 printf("%s, bad version string\n", "$min_sdl_version");
15050 exit(1);
15053 if (($sdl_major_version > major) ||
15054 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15055 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15057 return 0;
15059 else
15061 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15062 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
15063 printf("*** best to upgrade to the required version.\n");
15064 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
15065 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
15066 printf("*** config.cache before re-running configure\n");
15067 return 1;
15072 _ACEOF
15073 if ac_fn_c_try_run "$LINENO"; then :
15075 else
15076 no_sdl=yes
15078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15079 conftest.$ac_objext conftest.beam conftest.$ac_ext
15082 CFLAGS="$ac_save_CFLAGS"
15083 CXXFLAGS="$ac_save_CXXFLAGS"
15084 LIBS="$ac_save_LIBS"
15087 if test "x$no_sdl" = x ; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15089 $as_echo "yes" >&6; }
15090 have_sdl="yes"
15091 else
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15094 if test "$SDL_CONFIG" = "no" ; then
15095 echo "*** The sdl-config script installed by SDL could not be found"
15096 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
15097 echo "*** your path, or set the SDL_CONFIG environment variable to the"
15098 echo "*** full path to sdl-config."
15099 else
15100 if test -f conf.sdltest ; then
15102 else
15103 echo "*** Could not run SDL test program, checking why..."
15104 CFLAGS="$CFLAGS $SDL_CFLAGS"
15105 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15106 LIBS="$LIBS $SDL_LIBS"
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15110 #include <stdio.h>
15111 #include "SDL.h"
15113 int main(int argc, char *argv[])
15114 { return 0; }
15115 #undef main
15116 #define main K_and_R_C_main
15119 main ()
15121 return 0;
15123 return 0;
15125 _ACEOF
15126 if ac_fn_c_try_link "$LINENO"; then :
15127 echo "*** The test program compiled, but did not run. This usually means"
15128 echo "*** that the run-time linker is not finding SDL or finding the wrong"
15129 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
15130 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15131 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15132 echo "*** is required on your system"
15133 echo "***"
15134 echo "*** If you have an old version installed, it is best to remove it, although"
15135 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15136 else
15137 echo "*** The test program failed to compile or link. See the file config.log for the"
15138 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
15139 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
15140 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
15142 rm -f core conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144 CFLAGS="$ac_save_CFLAGS"
15145 CXXFLAGS="$ac_save_CXXFLAGS"
15146 LIBS="$ac_save_LIBS"
15149 SDL_CFLAGS=""
15150 SDL_LIBS=""
15151 have_sdl="no"
15155 rm -f conf.sdltest
15158 if test "x-$have_sdl" != "x-yes" ; then
15160 if test "x-$sdl_hidd" != "x-auto" ; then
15161 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
15164 else
15165 host_sdl_gfx=yes
15166 aros_host_sdl_cflags=$SDL_CFLAGS
15167 aros_host_sdl_libs=$SDL_LIBS
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
15175 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
15176 # Check whether --enable-dbus was given.
15177 if test "${enable_dbus+set}" = set; then :
15178 enableval=$enable_dbus; dbus="yes"
15179 else
15180 dbus="no"
15183 if test "$dbus" = "yes" ; then
15184 ENABLE_DBUS=1
15185 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
15186 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
15187 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
15188 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
15189 else
15190 ENABLE_DBUS=0
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
15193 $as_echo "$dbus" >&6; }
15195 if test "$use_kernel_cc_wrapper" = "yes" ; then
15196 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
15200 # Generic
15213 # Compatability with other Amiga-like operation systems
15216 # Host related
15245 # Target Related
15317 # Hosted Graphics Related
15335 # Native version related
15339 # Palm native version related
15342 # Unix/Hosted version related
15345 # MMU related
15348 # Apple iOS related
15353 # ARM default GCC target related
15360 # Android related
15365 # DBUS related
15372 #X11 related
15375 # Debug related
15381 # Collect-aros stuff: "-ius" to ignore undefined symbols
15384 # C compiler related
15389 #ObjC compiler related
15392 #Java related
15395 # USB3.0 code
15398 case "$aros_flavour" in
15399 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15400 aros_flavour="emulation" ;;
15401 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15402 aros_flavour="emulation" ;;
15403 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15404 aros_flavour="standalone";;
15405 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15406 aros_flavour="standalone";;
15407 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15408 aros_flavour="native" ;;
15409 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15410 aros_flavour="native" ;;
15411 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15412 aros_flavour="linklib" ;;
15413 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15414 aros_flavour="palmnative" ;;
15415 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15416 aros_flavour="mac68knative" ;;
15417 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15418 aros_flavour="ppcnative" ;;
15419 esac
15421 if test ! -d ${aros_inc_dir} ; then
15422 ${MKDIR} ${aros_inc_dir}
15424 if test ! -d ${aros_geninc_dir} ; then
15425 ${MKDIR} ${aros_geninc_dir}
15427 if test ! -d ${aros_hostcfg_dir} ; then
15428 ${MKDIR} ${aros_hostcfg_dir}
15430 if test ! -d ${aros_targetcfg_dir} ; then
15431 ${MKDIR} ${aros_targetcfg_dir}
15433 if test ! -d ${aros_tools_dir} ; then
15434 ${MKDIR} ${aros_tools_dir}
15436 if test ! -d ${aros_scripts_dir} ; then
15437 ${MKDIR} ${aros_scripts_dir}
15440 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15443 # Generic build tools (metamake, etc)
15444 ac_config_commands="$ac_config_commands genmf-executable-support"
15446 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"
15449 # Binutils
15450 ac_config_commands="$ac_config_commands binutils-support"
15452 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
15455 # Bare Elf support script and spec
15456 if test "${use_kernel_cc_wrapper}" = "yes"; then
15457 ac_config_commands="$ac_config_commands elf-compiler-support"
15459 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"
15463 # Host compiler support scripts and spec
15464 if test "${aros_target_toolchain}" = "no"; then
15465 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15467 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"
15471 # Android support
15472 if test "$aros_target_variant" == "android"; then
15473 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15477 # cmake helper
15478 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15481 cat >confcache <<\_ACEOF
15482 # This file is a shell script that caches the results of configure
15483 # tests run on this system so they can be shared between configure
15484 # scripts and configure runs, see configure's option --config-cache.
15485 # It is not useful on other systems. If it contains results you don't
15486 # want to keep, you may remove or edit it.
15488 # config.status only pays attention to the cache file if you give it
15489 # the --recheck option to rerun configure.
15491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15493 # following values.
15495 _ACEOF
15497 # The following way of writing the cache mishandles newlines in values,
15498 # but we know of no workaround that is simple, portable, and efficient.
15499 # So, we kill variables containing newlines.
15500 # Ultrix sh set writes to stderr and can't be redirected directly,
15501 # and sets the high bit in the cache file unless we assign to the vars.
15503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15504 eval ac_val=\$$ac_var
15505 case $ac_val in #(
15506 *${as_nl}*)
15507 case $ac_var in #(
15508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15510 esac
15511 case $ac_var in #(
15512 _ | IFS | as_nl) ;; #(
15513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15514 *) { eval $ac_var=; unset $ac_var;} ;;
15515 esac ;;
15516 esac
15517 done
15519 (set) 2>&1 |
15520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15521 *${as_nl}ac_space=\ *)
15522 # `set' does not quote correctly, so add quotes: double-quote
15523 # substitution turns \\\\ into \\, and sed turns \\ into \.
15524 sed -n \
15525 "s/'/'\\\\''/g;
15526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15527 ;; #(
15529 # `set' quotes correctly as required by POSIX, so do not add quotes.
15530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15532 esac |
15533 sort
15535 sed '
15536 /^ac_cv_env_/b end
15537 t clear
15538 :clear
15539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15540 t end
15541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15542 :end' >>confcache
15543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15544 if test -w "$cache_file"; then
15545 if test "x$cache_file" != "x/dev/null"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15547 $as_echo "$as_me: updating cache $cache_file" >&6;}
15548 if test ! -f "$cache_file" || test -h "$cache_file"; then
15549 cat confcache >"$cache_file"
15550 else
15551 case $cache_file in #(
15552 */* | ?:*)
15553 mv -f confcache "$cache_file"$$ &&
15554 mv -f "$cache_file"$$ "$cache_file" ;; #(
15556 mv -f confcache "$cache_file" ;;
15557 esac
15560 else
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15565 rm -f confcache
15567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15568 # Let make expand exec_prefix.
15569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15571 DEFS=-DHAVE_CONFIG_H
15573 ac_libobjs=
15574 ac_ltlibobjs=
15576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15577 # 1. Remove the extension, and $U if already installed.
15578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15581 # will be set to the directory where LIBOBJS objects are built.
15582 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15583 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15584 done
15585 LIBOBJS=$ac_libobjs
15587 LTLIBOBJS=$ac_ltlibobjs
15591 : "${CONFIG_STATUS=./config.status}"
15592 ac_write_fail=0
15593 ac_clean_files_save=$ac_clean_files
15594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15597 as_write_fail=0
15598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15599 #! $SHELL
15600 # Generated by $as_me.
15601 # Run this file to recreate the current configuration.
15602 # Compiler output produced by configure, useful for debugging
15603 # configure, is in config.log if it exists.
15605 debug=false
15606 ac_cs_recheck=false
15607 ac_cs_silent=false
15609 SHELL=\${CONFIG_SHELL-$SHELL}
15610 export SHELL
15611 _ASEOF
15612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15613 ## -------------------- ##
15614 ## M4sh Initialization. ##
15615 ## -------------------- ##
15617 # Be more Bourne compatible
15618 DUALCASE=1; export DUALCASE # for MKS sh
15619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15620 emulate sh
15621 NULLCMD=:
15622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15623 # is contrary to our usage. Disable this feature.
15624 alias -g '${1+"$@"}'='"$@"'
15625 setopt NO_GLOB_SUBST
15626 else
15627 case `(set -o) 2>/dev/null` in #(
15628 *posix*) :
15629 set -o posix ;; #(
15630 *) :
15632 esac
15636 as_nl='
15638 export as_nl
15639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15643 # Prefer a ksh shell builtin over an external printf program on Solaris,
15644 # but without wasting forks for bash or zsh.
15645 if test -z "$BASH_VERSION$ZSH_VERSION" \
15646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15647 as_echo='print -r --'
15648 as_echo_n='print -rn --'
15649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15650 as_echo='printf %s\n'
15651 as_echo_n='printf %s'
15652 else
15653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15655 as_echo_n='/usr/ucb/echo -n'
15656 else
15657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15658 as_echo_n_body='eval
15659 arg=$1;
15660 case $arg in #(
15661 *"$as_nl"*)
15662 expr "X$arg" : "X\\(.*\\)$as_nl";
15663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15664 esac;
15665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15667 export as_echo_n_body
15668 as_echo_n='sh -c $as_echo_n_body as_echo'
15670 export as_echo_body
15671 as_echo='sh -c $as_echo_body as_echo'
15674 # The user is always right.
15675 if test "${PATH_SEPARATOR+set}" != set; then
15676 PATH_SEPARATOR=:
15677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15679 PATH_SEPARATOR=';'
15684 # IFS
15685 # We need space, tab and new line, in precisely that order. Quoting is
15686 # there to prevent editors from complaining about space-tab.
15687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15688 # splitting by setting IFS to empty value.)
15689 IFS=" "" $as_nl"
15691 # Find who we are. Look in the path if we contain no directory separator.
15692 as_myself=
15693 case $0 in #((
15694 *[\\/]* ) as_myself=$0 ;;
15695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696 for as_dir in $PATH
15698 IFS=$as_save_IFS
15699 test -z "$as_dir" && as_dir=.
15700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15701 done
15702 IFS=$as_save_IFS
15705 esac
15706 # We did not find ourselves, most probably we were run as `sh COMMAND'
15707 # in which case we are not to be found in the path.
15708 if test "x$as_myself" = x; then
15709 as_myself=$0
15711 if test ! -f "$as_myself"; then
15712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15713 exit 1
15716 # Unset variables that we do not need and which cause bugs (e.g. in
15717 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15718 # suppresses any "Segmentation fault" message there. '((' could
15719 # trigger a bug in pdksh 5.2.14.
15720 for as_var in BASH_ENV ENV MAIL MAILPATH
15721 do eval test x\${$as_var+set} = xset \
15722 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15723 done
15724 PS1='$ '
15725 PS2='> '
15726 PS4='+ '
15728 # NLS nuisances.
15729 LC_ALL=C
15730 export LC_ALL
15731 LANGUAGE=C
15732 export LANGUAGE
15734 # CDPATH.
15735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15738 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15739 # ----------------------------------------
15740 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15741 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15742 # script with STATUS, using 1 if that was 0.
15743 as_fn_error ()
15745 as_status=$1; test $as_status -eq 0 && as_status=1
15746 if test "$4"; then
15747 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15750 $as_echo "$as_me: error: $2" >&2
15751 as_fn_exit $as_status
15752 } # as_fn_error
15755 # as_fn_set_status STATUS
15756 # -----------------------
15757 # Set $? to STATUS, without forking.
15758 as_fn_set_status ()
15760 return $1
15761 } # as_fn_set_status
15763 # as_fn_exit STATUS
15764 # -----------------
15765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15766 as_fn_exit ()
15768 set +e
15769 as_fn_set_status $1
15770 exit $1
15771 } # as_fn_exit
15773 # as_fn_unset VAR
15774 # ---------------
15775 # Portably unset VAR.
15776 as_fn_unset ()
15778 { eval $1=; unset $1;}
15780 as_unset=as_fn_unset
15781 # as_fn_append VAR VALUE
15782 # ----------------------
15783 # Append the text in VALUE to the end of the definition contained in VAR. Take
15784 # advantage of any shell optimizations that allow amortized linear growth over
15785 # repeated appends, instead of the typical quadratic growth present in naive
15786 # implementations.
15787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15788 eval 'as_fn_append ()
15790 eval $1+=\$2
15792 else
15793 as_fn_append ()
15795 eval $1=\$$1\$2
15797 fi # as_fn_append
15799 # as_fn_arith ARG...
15800 # ------------------
15801 # Perform arithmetic evaluation on the ARGs, and store the result in the
15802 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15803 # must be portable across $(()) and expr.
15804 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15805 eval 'as_fn_arith ()
15807 as_val=$(( $* ))
15809 else
15810 as_fn_arith ()
15812 as_val=`expr "$@" || test $? -eq 1`
15814 fi # as_fn_arith
15817 if expr a : '\(a\)' >/dev/null 2>&1 &&
15818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15819 as_expr=expr
15820 else
15821 as_expr=false
15824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15825 as_basename=basename
15826 else
15827 as_basename=false
15830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15831 as_dirname=dirname
15832 else
15833 as_dirname=false
15836 as_me=`$as_basename -- "$0" ||
15837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15838 X"$0" : 'X\(//\)$' \| \
15839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15840 $as_echo X/"$0" |
15841 sed '/^.*\/\([^/][^/]*\)\/*$/{
15842 s//\1/
15845 /^X\/\(\/\/\)$/{
15846 s//\1/
15849 /^X\/\(\/\).*/{
15850 s//\1/
15853 s/.*/./; q'`
15855 # Avoid depending upon Character Ranges.
15856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15859 as_cr_digits='0123456789'
15860 as_cr_alnum=$as_cr_Letters$as_cr_digits
15862 ECHO_C= ECHO_N= ECHO_T=
15863 case `echo -n x` in #(((((
15864 -n*)
15865 case `echo 'xy\c'` in
15866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15867 xy) ECHO_C='\c';;
15868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15869 ECHO_T=' ';;
15870 esac;;
15872 ECHO_N='-n';;
15873 esac
15875 rm -f conf$$ conf$$.exe conf$$.file
15876 if test -d conf$$.dir; then
15877 rm -f conf$$.dir/conf$$.file
15878 else
15879 rm -f conf$$.dir
15880 mkdir conf$$.dir 2>/dev/null
15882 if (echo >conf$$.file) 2>/dev/null; then
15883 if ln -s conf$$.file conf$$ 2>/dev/null; then
15884 as_ln_s='ln -s'
15885 # ... but there are two gotchas:
15886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15888 # In both cases, we have to default to `cp -pR'.
15889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15890 as_ln_s='cp -pR'
15891 elif ln conf$$.file conf$$ 2>/dev/null; then
15892 as_ln_s=ln
15893 else
15894 as_ln_s='cp -pR'
15896 else
15897 as_ln_s='cp -pR'
15899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15900 rmdir conf$$.dir 2>/dev/null
15903 # as_fn_mkdir_p
15904 # -------------
15905 # Create "$as_dir" as a directory, including parents if necessary.
15906 as_fn_mkdir_p ()
15909 case $as_dir in #(
15910 -*) as_dir=./$as_dir;;
15911 esac
15912 test -d "$as_dir" || eval $as_mkdir_p || {
15913 as_dirs=
15914 while :; do
15915 case $as_dir in #(
15916 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15917 *) as_qdir=$as_dir;;
15918 esac
15919 as_dirs="'$as_qdir' $as_dirs"
15920 as_dir=`$as_dirname -- "$as_dir" ||
15921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15922 X"$as_dir" : 'X\(//\)[^/]' \| \
15923 X"$as_dir" : 'X\(//\)$' \| \
15924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15925 $as_echo X"$as_dir" |
15926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15927 s//\1/
15930 /^X\(\/\/\)[^/].*/{
15931 s//\1/
15934 /^X\(\/\/\)$/{
15935 s//\1/
15938 /^X\(\/\).*/{
15939 s//\1/
15942 s/.*/./; q'`
15943 test -d "$as_dir" && break
15944 done
15945 test -z "$as_dirs" || eval "mkdir $as_dirs"
15946 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15949 } # as_fn_mkdir_p
15950 if mkdir -p . 2>/dev/null; then
15951 as_mkdir_p='mkdir -p "$as_dir"'
15952 else
15953 test -d ./-p && rmdir ./-p
15954 as_mkdir_p=false
15958 # as_fn_executable_p FILE
15959 # -----------------------
15960 # Test if FILE is an executable regular file.
15961 as_fn_executable_p ()
15963 test -f "$1" && test -x "$1"
15964 } # as_fn_executable_p
15965 as_test_x='test -x'
15966 as_executable_p=as_fn_executable_p
15968 # Sed expression to map a string onto a valid CPP name.
15969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15971 # Sed expression to map a string onto a valid variable name.
15972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15975 exec 6>&1
15976 ## ----------------------------------- ##
15977 ## Main body of $CONFIG_STATUS script. ##
15978 ## ----------------------------------- ##
15979 _ASEOF
15980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 # Save the log message, to keep $0 and so on meaningful, and to
15984 # report actual input values of CONFIG_FILES etc. instead of their
15985 # values after options handling.
15986 ac_log="
15987 This file was extended by $as_me, which was
15988 generated by GNU Autoconf 2.69. Invocation command line was
15990 CONFIG_FILES = $CONFIG_FILES
15991 CONFIG_HEADERS = $CONFIG_HEADERS
15992 CONFIG_LINKS = $CONFIG_LINKS
15993 CONFIG_COMMANDS = $CONFIG_COMMANDS
15994 $ $0 $@
15996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15999 _ACEOF
16001 case $ac_config_files in *"
16002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16003 esac
16005 case $ac_config_headers in *"
16006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16007 esac
16010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16011 # Files that config.status was made for.
16012 config_files="$ac_config_files"
16013 config_headers="$ac_config_headers"
16014 config_commands="$ac_config_commands"
16016 _ACEOF
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 ac_cs_usage="\
16020 \`$as_me' instantiates files and other configuration actions
16021 from templates according to the current configuration. Unless the files
16022 and actions are specified as TAGs, all are instantiated by default.
16024 Usage: $0 [OPTION]... [TAG]...
16026 -h, --help print this help, then exit
16027 -V, --version print version number and configuration settings, then exit
16028 --config print configuration, then exit
16029 -q, --quiet, --silent
16030 do not print progress messages
16031 -d, --debug don't remove temporary files
16032 --recheck update $as_me by reconfiguring in the same conditions
16033 --file=FILE[:TEMPLATE]
16034 instantiate the configuration file FILE
16035 --header=FILE[:TEMPLATE]
16036 instantiate the configuration header FILE
16038 Configuration files:
16039 $config_files
16041 Configuration headers:
16042 $config_headers
16044 Configuration commands:
16045 $config_commands
16047 Report bugs to the package provider."
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16052 ac_cs_version="\\
16053 config.status
16054 configured by $0, generated by GNU Autoconf 2.69,
16055 with options \\"\$ac_cs_config\\"
16057 Copyright (C) 2012 Free Software Foundation, Inc.
16058 This config.status script is free software; the Free Software Foundation
16059 gives unlimited permission to copy, distribute and modify it."
16061 ac_pwd='$ac_pwd'
16062 srcdir='$srcdir'
16063 test -n "\$AWK" || AWK=awk
16064 _ACEOF
16066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16067 # The default lists apply if the user does not specify any file.
16068 ac_need_defaults=:
16069 while test $# != 0
16071 case $1 in
16072 --*=?*)
16073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16075 ac_shift=:
16077 --*=)
16078 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16079 ac_optarg=
16080 ac_shift=:
16083 ac_option=$1
16084 ac_optarg=$2
16085 ac_shift=shift
16087 esac
16089 case $ac_option in
16090 # Handling of the options.
16091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16092 ac_cs_recheck=: ;;
16093 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16094 $as_echo "$ac_cs_version"; exit ;;
16095 --config | --confi | --conf | --con | --co | --c )
16096 $as_echo "$ac_cs_config"; exit ;;
16097 --debug | --debu | --deb | --de | --d | -d )
16098 debug=: ;;
16099 --file | --fil | --fi | --f )
16100 $ac_shift
16101 case $ac_optarg in
16102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16103 '') as_fn_error $? "missing file argument" ;;
16104 esac
16105 as_fn_append CONFIG_FILES " '$ac_optarg'"
16106 ac_need_defaults=false;;
16107 --header | --heade | --head | --hea )
16108 $ac_shift
16109 case $ac_optarg in
16110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16111 esac
16112 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16113 ac_need_defaults=false;;
16114 --he | --h)
16115 # Conflict between --help and --header
16116 as_fn_error $? "ambiguous option: \`$1'
16117 Try \`$0 --help' for more information.";;
16118 --help | --hel | -h )
16119 $as_echo "$ac_cs_usage"; exit ;;
16120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16122 ac_cs_silent=: ;;
16124 # This is an error.
16125 -*) as_fn_error $? "unrecognized option: \`$1'
16126 Try \`$0 --help' for more information." ;;
16128 *) as_fn_append ac_config_targets " $1"
16129 ac_need_defaults=false ;;
16131 esac
16132 shift
16133 done
16135 ac_configure_extra_args=
16137 if $ac_cs_silent; then
16138 exec 6>/dev/null
16139 ac_configure_extra_args="$ac_configure_extra_args --silent"
16142 _ACEOF
16143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16144 if \$ac_cs_recheck; then
16145 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16146 shift
16147 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16148 CONFIG_SHELL='$SHELL'
16149 export CONFIG_SHELL
16150 exec "\$@"
16153 _ACEOF
16154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16155 exec 5>>config.log
16157 echo
16158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16159 ## Running $as_me. ##
16160 _ASBOX
16161 $as_echo "$ac_log"
16162 } >&5
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16167 # INIT-COMMANDS
16169 aros_tools_dir=${aros_tools_dir}
16172 aros_host_exe_suffix=${aros_host_exe_suffix}
16173 aros_tools_dir=${aros_tools_dir}
16174 aros_target_cpu=${aros_target_cpu}
16175 aros_target_arch=${aros_target_arch}
16176 aros_target_suffix=${aros_target_suffix}
16177 orig_target_nm=${orig_target_nm}
16178 orig_target_as=${orig_target_as}
16179 orig_target_ar=${orig_target_ar}
16180 orig_target_ranlib=${orig_target_ranlib}
16181 orig_target_objdump=${orig_target_objdump}
16182 orig_target_objcopy=${orig_target_objcopy}
16183 orig_target_strip=${orig_target_strip}
16184 aros_kernel_ld=${aros_kernel_ld}
16188 aros_host_exe_suffix=${aros_host_exe_suffix}
16189 aros_tools_dir=${aros_tools_dir}
16190 aros_target_cpu=${aros_target_cpu}
16191 aros_target_arch=${aros_target_arch}
16192 aros_target_suffix=${aros_target_suffix}
16193 aros_kernel_ld=${aros_kernel_ld}
16197 aros_host_exe_suffix=${aros_host_exe_suffix}
16198 aros_tools_dir=${aros_tools_dir}
16199 aros_target_cpu=${aros_target_cpu}
16200 aros_target_arch=${aros_target_arch}
16201 aros_target_suffix=${aros_target_suffix}
16205 _ACEOF
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209 # Handling of arguments.
16210 for ac_config_target in $ac_config_targets
16212 case $ac_config_target in
16213 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
16214 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
16215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16216 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
16217 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
16218 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
16219 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
16220 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
16221 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
16222 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
16223 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
16224 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
16225 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
16226 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
16227 "${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" ;;
16228 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
16229 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
16230 "${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" ;;
16231 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
16232 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
16233 "${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" ;;
16234 "${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" ;;
16235 "${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" ;;
16236 "${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" ;;
16237 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
16239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16240 esac
16241 done
16244 # If the user did not use the arguments to specify the items to instantiate,
16245 # then the envvar interface is used. Set only those that are not.
16246 # We use the long form for the default assignment because of an extremely
16247 # bizarre bug on SunOS 4.1.3.
16248 if $ac_need_defaults; then
16249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16254 # Have a temporary directory for convenience. Make it in the build tree
16255 # simply because there is no reason against having it here, and in addition,
16256 # creating and moving files from /tmp can sometimes cause problems.
16257 # Hook for its removal unless debugging.
16258 # Note that there is a small window in which the directory will not be cleaned:
16259 # after its creation but before its name has been assigned to `$tmp'.
16260 $debug ||
16262 tmp= ac_tmp=
16263 trap 'exit_status=$?
16264 : "${ac_tmp:=$tmp}"
16265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16267 trap 'as_fn_exit 1' 1 2 13 15
16269 # Create a (secure) tmp directory for tmp files.
16272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16273 test -d "$tmp"
16274 } ||
16276 tmp=./conf$$-$RANDOM
16277 (umask 077 && mkdir "$tmp")
16278 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16279 ac_tmp=$tmp
16281 # Set up the scripts for CONFIG_FILES section.
16282 # No need to generate them if there are no CONFIG_FILES.
16283 # This happens for instance with `./config.status config.h'.
16284 if test -n "$CONFIG_FILES"; then
16287 ac_cr=`echo X | tr X '\015'`
16288 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16289 # But we know of no other shell where ac_cr would be empty at this
16290 # point, so we can use a bashism as a fallback.
16291 if test "x$ac_cr" = x; then
16292 eval ac_cr=\$\'\\r\'
16294 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16295 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16296 ac_cs_awk_cr='\\r'
16297 else
16298 ac_cs_awk_cr=$ac_cr
16301 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16302 _ACEOF
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16308 echo "_ACEOF"
16309 } >conf$$subs.sh ||
16310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16311 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16312 ac_delim='%!_!# '
16313 for ac_last_try in false false false false false :; do
16314 . ./conf$$subs.sh ||
16315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16318 if test $ac_delim_n = $ac_delim_num; then
16319 break
16320 elif $ac_last_try; then
16321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16322 else
16323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16325 done
16326 rm -f conf$$subs.sh
16328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16329 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16330 _ACEOF
16331 sed -n '
16333 s/^/S["/; s/!.*/"]=/
16336 s/^[^!]*!//
16337 :repl
16338 t repl
16339 s/'"$ac_delim"'$//
16340 t delim
16343 s/\(.\{148\}\)..*/\1/
16344 t more1
16345 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16348 b repl
16349 :more1
16350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16353 s/.\{148\}//
16354 t nl
16355 :delim
16357 s/\(.\{148\}\)..*/\1/
16358 t more2
16359 s/["\\]/\\&/g; s/^/"/; s/$/"/
16362 :more2
16363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16366 s/.\{148\}//
16367 t delim
16368 ' <conf$$subs.awk | sed '
16369 /^[^""]/{
16371 s/\n//
16373 ' >>$CONFIG_STATUS || ac_write_fail=1
16374 rm -f conf$$subs.awk
16375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376 _ACAWK
16377 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16378 for (key in S) S_is_set[key] = 1
16379 FS = "\a"
16383 line = $ 0
16384 nfields = split(line, field, "@")
16385 substed = 0
16386 len = length(field[1])
16387 for (i = 2; i < nfields; i++) {
16388 key = field[i]
16389 keylen = length(key)
16390 if (S_is_set[key]) {
16391 value = S[key]
16392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16393 len += length(value) + length(field[++i])
16394 substed = 1
16395 } else
16396 len += 1 + keylen
16399 print line
16402 _ACAWK
16403 _ACEOF
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16407 else
16409 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16410 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16411 _ACEOF
16413 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16414 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16415 # trailing colons and then remove the whole line if VPATH becomes empty
16416 # (actually we leave an empty line to preserve line numbers).
16417 if test "x$srcdir" = x.; then
16418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16420 s///
16421 s/^/:/
16422 s/[ ]*$/:/
16423 s/:\$(srcdir):/:/g
16424 s/:\${srcdir}:/:/g
16425 s/:@srcdir@:/:/g
16426 s/^:*//
16427 s/:*$//
16429 s/\(=[ ]*\).*/\1/
16431 s/\n//
16432 s/^[^=]*=[ ]*$//
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 fi # test -n "$CONFIG_FILES"
16439 # Set up the scripts for CONFIG_HEADERS section.
16440 # No need to generate them if there are no CONFIG_HEADERS.
16441 # This happens for instance with `./config.status Makefile'.
16442 if test -n "$CONFIG_HEADERS"; then
16443 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16444 BEGIN {
16445 _ACEOF
16447 # Transform confdefs.h into an awk script `defines.awk', embedded as
16448 # here-document in config.status, that substitutes the proper values into
16449 # config.h.in to produce config.h.
16451 # Create a delimiter string that does not exist in confdefs.h, to ease
16452 # handling of long lines.
16453 ac_delim='%!_!# '
16454 for ac_last_try in false false :; do
16455 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16456 if test -z "$ac_tt"; then
16457 break
16458 elif $ac_last_try; then
16459 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16460 else
16461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16463 done
16465 # For the awk script, D is an array of macro values keyed by name,
16466 # likewise P contains macro parameters if any. Preserve backslash
16467 # newline sequences.
16469 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16470 sed -n '
16471 s/.\{148\}/&'"$ac_delim"'/g
16472 t rset
16473 :rset
16474 s/^[ ]*#[ ]*define[ ][ ]*/ /
16475 t def
16477 :def
16478 s/\\$//
16479 t bsnl
16480 s/["\\]/\\&/g
16481 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16482 D["\1"]=" \3"/p
16483 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16485 :bsnl
16486 s/["\\]/\\&/g
16487 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16488 D["\1"]=" \3\\\\\\n"\\/p
16489 t cont
16490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16491 t cont
16493 :cont
16495 s/.\{148\}/&'"$ac_delim"'/g
16496 t clear
16497 :clear
16498 s/\\$//
16499 t bsnlc
16500 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16502 :bsnlc
16503 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16504 b cont
16505 ' <confdefs.h | sed '
16506 s/'"$ac_delim"'/"\\\
16507 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 for (key in D) D_is_set[key] = 1
16511 FS = "\a"
16513 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16514 line = \$ 0
16515 split(line, arg, " ")
16516 if (arg[1] == "#") {
16517 defundef = arg[2]
16518 mac1 = arg[3]
16519 } else {
16520 defundef = substr(arg[1], 2)
16521 mac1 = arg[2]
16523 split(mac1, mac2, "(") #)
16524 macro = mac2[1]
16525 prefix = substr(line, 1, index(line, defundef) - 1)
16526 if (D_is_set[macro]) {
16527 # Preserve the white space surrounding the "#".
16528 print prefix "define", macro P[macro] D[macro]
16529 next
16530 } else {
16531 # Replace #undef with comments. This is necessary, for example,
16532 # in the case of _POSIX_SOURCE, which is predefined and required
16533 # on some systems where configure will not decide to define it.
16534 if (defundef == "undef") {
16535 print "/*", prefix defundef, macro, "*/"
16536 next
16540 { print }
16541 _ACAWK
16542 _ACEOF
16543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16544 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16545 fi # test -n "$CONFIG_HEADERS"
16548 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16549 shift
16550 for ac_tag
16552 case $ac_tag in
16553 :[FHLC]) ac_mode=$ac_tag; continue;;
16554 esac
16555 case $ac_mode$ac_tag in
16556 :[FHL]*:*);;
16557 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16558 :[FH]-) ac_tag=-:-;;
16559 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16560 esac
16561 ac_save_IFS=$IFS
16562 IFS=:
16563 set x $ac_tag
16564 IFS=$ac_save_IFS
16565 shift
16566 ac_file=$1
16567 shift
16569 case $ac_mode in
16570 :L) ac_source=$1;;
16571 :[FH])
16572 ac_file_inputs=
16573 for ac_f
16575 case $ac_f in
16576 -) ac_f="$ac_tmp/stdin";;
16577 *) # Look for the file first in the build tree, then in the source tree
16578 # (if the path is not absolute). The absolute path cannot be DOS-style,
16579 # because $ac_f cannot contain `:'.
16580 test -f "$ac_f" ||
16581 case $ac_f in
16582 [\\/$]*) false;;
16583 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16584 esac ||
16585 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16586 esac
16587 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16588 as_fn_append ac_file_inputs " '$ac_f'"
16589 done
16591 # Let's still pretend it is `configure' which instantiates (i.e., don't
16592 # use $as_me), people would be surprised to read:
16593 # /* config.h. Generated by config.status. */
16594 configure_input='Generated from '`
16595 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16596 `' by configure.'
16597 if test x"$ac_file" != x-; then
16598 configure_input="$ac_file. $configure_input"
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16600 $as_echo "$as_me: creating $ac_file" >&6;}
16602 # Neutralize special characters interpreted by sed in replacement strings.
16603 case $configure_input in #(
16604 *\&* | *\|* | *\\* )
16605 ac_sed_conf_input=`$as_echo "$configure_input" |
16606 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16607 *) ac_sed_conf_input=$configure_input;;
16608 esac
16610 case $ac_tag in
16611 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16613 esac
16615 esac
16617 ac_dir=`$as_dirname -- "$ac_file" ||
16618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16619 X"$ac_file" : 'X\(//\)[^/]' \| \
16620 X"$ac_file" : 'X\(//\)$' \| \
16621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16622 $as_echo X"$ac_file" |
16623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16624 s//\1/
16627 /^X\(\/\/\)[^/].*/{
16628 s//\1/
16631 /^X\(\/\/\)$/{
16632 s//\1/
16635 /^X\(\/\).*/{
16636 s//\1/
16639 s/.*/./; q'`
16640 as_dir="$ac_dir"; as_fn_mkdir_p
16641 ac_builddir=.
16643 case "$ac_dir" in
16644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16647 # A ".." for each directory in $ac_dir_suffix.
16648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16649 case $ac_top_builddir_sub in
16650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16652 esac ;;
16653 esac
16654 ac_abs_top_builddir=$ac_pwd
16655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16656 # for backward compatibility:
16657 ac_top_builddir=$ac_top_build_prefix
16659 case $srcdir in
16660 .) # We are building in place.
16661 ac_srcdir=.
16662 ac_top_srcdir=$ac_top_builddir_sub
16663 ac_abs_top_srcdir=$ac_pwd ;;
16664 [\\/]* | ?:[\\/]* ) # Absolute name.
16665 ac_srcdir=$srcdir$ac_dir_suffix;
16666 ac_top_srcdir=$srcdir
16667 ac_abs_top_srcdir=$srcdir ;;
16668 *) # Relative name.
16669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16670 ac_top_srcdir=$ac_top_build_prefix$srcdir
16671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16672 esac
16673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16676 case $ac_mode in
16679 # CONFIG_FILE
16682 _ACEOF
16684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16685 # If the template does not know about datarootdir, expand it.
16686 # FIXME: This hack should be removed a few years after 2.60.
16687 ac_datarootdir_hack=; ac_datarootdir_seen=
16688 ac_sed_dataroot='
16689 /datarootdir/ {
16693 /@datadir@/p
16694 /@docdir@/p
16695 /@infodir@/p
16696 /@localedir@/p
16697 /@mandir@/p'
16698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16699 *datarootdir*) ac_datarootdir_seen=yes;;
16700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16703 _ACEOF
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 ac_datarootdir_hack='
16706 s&@datadir@&$datadir&g
16707 s&@docdir@&$docdir&g
16708 s&@infodir@&$infodir&g
16709 s&@localedir@&$localedir&g
16710 s&@mandir@&$mandir&g
16711 s&\\\${datarootdir}&$datarootdir&g' ;;
16712 esac
16713 _ACEOF
16715 # Neutralize VPATH when `$srcdir' = `.'.
16716 # Shell code in configure.ac might set extrasub.
16717 # FIXME: do we really want to maintain this feature?
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719 ac_sed_extra="$ac_vpsub
16720 $extrasub
16721 _ACEOF
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16725 s|@configure_input@|$ac_sed_conf_input|;t t
16726 s&@top_builddir@&$ac_top_builddir_sub&;t t
16727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16728 s&@srcdir@&$ac_srcdir&;t t
16729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16730 s&@top_srcdir@&$ac_top_srcdir&;t t
16731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16732 s&@builddir@&$ac_builddir&;t t
16733 s&@abs_builddir@&$ac_abs_builddir&;t t
16734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16735 $ac_datarootdir_hack
16737 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16738 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16741 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16743 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16745 which seems to be undefined. Please make sure it is defined" >&5
16746 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16747 which seems to be undefined. Please make sure it is defined" >&2;}
16749 rm -f "$ac_tmp/stdin"
16750 case $ac_file in
16751 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16752 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16753 esac \
16754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16758 # CONFIG_HEADER
16760 if test x"$ac_file" != x-; then
16762 $as_echo "/* $configure_input */" \
16763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16764 } >"$ac_tmp/config.h" \
16765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16766 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16768 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16769 else
16770 rm -f "$ac_file"
16771 mv "$ac_tmp/config.h" "$ac_file" \
16772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774 else
16775 $as_echo "/* $configure_input */" \
16776 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16777 || as_fn_error $? "could not create -" "$LINENO" 5
16781 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16782 $as_echo "$as_me: executing $ac_file commands" >&6;}
16784 esac
16787 case $ac_file$ac_mode in
16788 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16789 "binutils-support":C)
16790 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16791 mkdir -p $prefix
16792 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16794 chmod a+x ${prefix2}-ld
16796 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16797 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16798 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16799 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16800 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16801 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16802 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16804 "elf-compiler-support":C)
16805 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16806 mkdir -p $prefix
16807 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16809 chmod a+x ${prefix2}-gcc
16811 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16813 "host-compiler-wrapper-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}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16821 esac
16822 done # for ac_tag
16825 as_fn_exit 0
16826 _ACEOF
16827 ac_clean_files=$ac_clean_files_save
16829 test $ac_write_fail = 0 ||
16830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16833 # configure is writing to config.log, and then calls config.status.
16834 # config.status does its own redirection, appending to config.log.
16835 # Unfortunately, on DOS this fails, as config.log is still kept open
16836 # by configure, so config.status won't be able to write to it; its
16837 # output is simply discarded. So we exec the FD to /dev/null,
16838 # effectively closing config.log, so it can be properly (re)opened and
16839 # appended to by config.status. When coming back to configure, we
16840 # need to make the FD available again.
16841 if test "$no_create" != yes; then
16842 ac_cs_success=:
16843 ac_config_status_args=
16844 test "$silent" = yes &&
16845 ac_config_status_args="$ac_config_status_args --quiet"
16846 exec 5>/dev/null
16847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16848 exec 5>>config.log
16849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16850 # would make configure fail if this is the last instruction.
16851 $ac_cs_success || as_fn_exit 1
16853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16860 #XXX compatability...
16861 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16863 if test -n "$aros_shared_cflags" ; then
16864 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16865 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg