Updated. Searching for files and executing them by
[AROS.git] / configure
blob807368dfa898c2ff7f5a1580a6532a2fd6316eb8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 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_config_sysroot
687 aros_shared_ldflags
688 aros_shared_aflags
689 aros_shared_cflags
690 aros_arch_libs
691 aros_compiler_libs
692 spec_obj_format
693 aros_object_format
694 aros_shared_ld
695 aros_shared_default
696 aros_target_nm
697 aros_target_strip
698 aros_target_objcopy
699 aros_target_objdump
700 aros_target_cc_path
701 aros_target_cc_includes
702 aros_target_ld
703 aros_target_as
704 aros_target_cpp
705 aros_target_cxx
706 aros_target_cc
707 aros_plain_ar
708 aros_plain_nm
709 aros_target_ranlib
710 aros_target_ar
711 aros_target_suffix
712 aros_target_variant
713 aros_target_cpu_mode
714 aros_target_cpu
715 aros_target_family
716 aros_target_arch
717 aros_target_bootloader
718 aros_target_iconset
719 aros_target_guitheme
720 aros_tools_dir
721 aros_host_lib_suffix
722 aros_host_exe_suffix
723 aros_host_mkargs
724 aros_host_mkdep
725 aros_host_debug
726 aros_host_ldflags
727 gnu89_inline
728 aros_host_cxxflags
729 aros_host_cflags
730 aros_host_make
731 aros_host_cxx
732 aros_host_cc
733 aros_host_def_cc
734 aros_host_cpp
735 aros_host_cpu
736 aros_host_arch
737 aros_cc_pre
738 aros_amigaos_compliance
739 AROS_PORTSSRCDIR
740 AROS_CROSSTOOLSDIR
741 SRCDIR
742 AROS_BUILDDIR_UNIX
743 AROS_BUILDDIR
744 aros_build_host
745 aros_target_toolchain
746 aros_flavour_uc
747 aros_flavour
748 aros_cpu
749 aros_arch
750 SDL_LIBS
751 SDL_CFLAGS
752 SDL_CONFIG
753 XMKMF
754 aros_cflags_iquote_end
755 aros_cflags_iquote
756 kernel_cflags_iquote_end
757 kernel_cflags_iquote
758 host_cflags_iquote_end
759 host_cflags_iquote
760 aros_toolchain
761 aros_target_nostdlib_ldflags
762 aros_target_detach_ldflags
763 aros_target_nix_ldflags
764 aros_target_nostartup_ldflags
765 aros_target_nostdinc_cflags
766 aros_kernel_rescomp
767 orig_target_objdump
768 orig_target_objcopy
769 orig_target_strip
770 orig_target_nm
771 orig_target_ranlib
772 orig_target_ar
773 orig_target_as
774 orig_target_ld
775 orig_target_cxx
776 orig_target_cc
777 orig_target_cpp
778 aros_kernel_objdump
779 aros_kernel_objcopy
780 aros_kernel_strip
781 aros_kernel_nm
782 aros_kernel_ranlib
783 aros_kernel_ar
784 aros_kernel_as
785 aros_kernel_ld
786 aros_kernel_cxx
787 aros_kernel_cc
788 aros_kernel_cpp
789 target_gcc_version
791 android_tool
792 CCACHE
793 DISTCC
794 LIBOBJS
795 EGREP
796 GREP
798 TEST
801 pkgpyexecdir
802 pyexecdir
803 pkgpythondir
804 pythondir
805 PYTHON_PLATFORM
806 PYTHON_EXEC_PREFIX
807 PYTHON_PREFIX
808 PYTHON_VERSION
809 PYTHON
810 PATCH
811 CHMOD
813 PPMTOILBM
814 PNGTOPNM
815 FLEX
816 BISON
819 UNIQ
820 SORT
821 TOUCH
822 MKDIR
823 ECHO
827 aros_host_strip
828 aros_host_ranlib
829 aros_host_ar
830 aros_host_automake
831 aros_host_autoheader
832 aros_host_autoconf
833 aros_host_aclocal
834 aros_host_ld
835 MMAKE
838 ac_ct_CC
839 CFLAGS
841 OBJEXT
842 EXEEXT
843 ac_ct_CXX
844 CPPFLAGS
845 LDFLAGS
846 CXXFLAGS
848 host_os
849 host_vendor
850 host_cpu
851 host
852 build_os
853 build_vendor
854 build_cpu
855 build
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 with_c_compiler
898 with_cxx_compiler
899 with_toolchain
900 enable_build_type
901 enable_debug
902 enable_distcc
903 enable_ccache
904 with_kernel_gcc_version
905 with_optimization
906 with_paranoia
907 enable_target_variant
908 with_xcode
909 with_sdk_version
910 with_sdk
911 with_ndk
912 with_ndk_version
913 with_apk_version
914 enable_amigaos_compliance
915 with_kernel_toolchain_prefix
916 with_elf_toolchain_prefix
917 with_aros_toolchain
918 enable_crosstools
919 with_aros_toolchain_install
920 with_binutils_version
921 with_gcc_version
922 enable_objc
923 enable_java
924 with_cpu
925 with_fpu
926 with_float
927 with_portssources
928 with_bootloader
929 with_iconset
930 with_theme
931 enable_includes
932 with_resolution
933 with_serial_debug
934 enable_palm_debug_hack
935 enable_usb30_code
936 enable_nesting_supervisor
937 enable_mmu
938 enable_x11_hidd
939 with_x
940 enable_x11_shm
941 enable_x11_vidmode
942 enable_sdl_hidd
943 with_sdl_prefix
944 with_sdl_exec_prefix
945 enable_sdltest
946 enable_dbus
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
952 CXXFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
958 CFLAGS
960 PYTHON
961 XMKMF'
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 ac_unrecognized_opts=
968 ac_unrecognized_sep=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1023 case $ac_option in
1024 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *=) ac_optarg= ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information"
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error $? "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425 test "$silent" = yes && exec 6>/dev/null
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 as_fn_error $? "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 as_fn_error $? "pwd does not report name of working directory"
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$as_myself" ||
1441 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$as_myself" : 'X\(//\)[^/]' \| \
1443 X"$as_myself" : 'X\(//\)$' \| \
1444 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445 $as_echo X"$as_myself" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1454 /^X\(\/\/\)$/{
1455 s//\1/
1458 /^X\(\/\).*/{
1459 s//\1/
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1467 else
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 ac_abs_confdir=`(
1476 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477 pwd)`
1478 # When building in place, set srcdir=.
1479 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 srcdir=.
1482 # Remove unnecessary trailing slashes from srcdir.
1483 # Double slashes in file names in object file debugging info
1484 # mess up M-x gdb in Emacs.
1485 case $srcdir in
1486 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 esac
1488 for ac_var in $ac_precious_vars; do
1489 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_env_${ac_var}_value=\$${ac_var}
1491 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 done
1496 # Report the --help message.
1498 if test "$ac_init_help" = "long"; then
1499 # Omit some internal or obsolete options to make the list less imposing.
1500 # This message is too long to be a string in the A/UX 3.1 sh.
1501 cat <<_ACEOF
1502 \`configure' configures this package to adapt to many kinds of systems.
1504 Usage: $0 [OPTION]... [VAR=VALUE]...
1506 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507 VAR=VALUE. See below for descriptions of some of the useful variables.
1509 Defaults for the options are specified in brackets.
1511 Configuration:
1512 -h, --help display this help and exit
1513 --help=short display options specific to this package
1514 --help=recursive display the short help of all the included packages
1515 -V, --version display version information and exit
1516 -q, --quiet, --silent do not print \`checking ...' messages
1517 --cache-file=FILE cache test results in FILE [disabled]
1518 -C, --config-cache alias for \`--cache-file=config.cache'
1519 -n, --no-create do not create output files
1520 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522 Installation directories:
1523 --prefix=PREFIX install architecture-independent files in PREFIX
1524 [$ac_default_prefix]
1525 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 [PREFIX]
1528 By default, \`make install' will install all the files in
1529 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1530 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531 for instance \`--prefix=\$HOME'.
1533 For better control, use the options below.
1535 Fine tuning of the installation directories:
1536 --bindir=DIR user executables [EPREFIX/bin]
1537 --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 --libexecdir=DIR program executables [EPREFIX/libexec]
1539 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 --libdir=DIR object code libraries [EPREFIX/lib]
1543 --includedir=DIR C header files [PREFIX/include]
1544 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 --infodir=DIR info documentation [DATAROOTDIR/info]
1548 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 --mandir=DIR man documentation [DATAROOTDIR/man]
1550 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1551 --htmldir=DIR html documentation [DOCDIR]
1552 --dvidir=DIR dvi documentation [DOCDIR]
1553 --pdfdir=DIR pdf documentation [DOCDIR]
1554 --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1559 X features:
1560 --x-includes=DIR X include files are in DIR
1561 --x-libraries=DIR X library files are in DIR
1563 System types:
1564 --build=BUILD configure for building on BUILD [guessed]
1565 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1566 _ACEOF
1569 if test -n "$ac_init_help"; then
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-build-type=TYPE
1578 Select the build type. Available types are:
1579 personal, nightly, snapshot, milestone, release. Do
1580 NOT use this option unless you know what you are
1581 doing! (default=personal)
1582 --enable-debug=list Enable different types of debug. Commas or
1583 whitespaces can be used to separate the items in the
1584 list. Available types of debug are: all, none,
1585 messages, stack, mungwall, modules, symbols. If no
1586 list is provided then "all" is assumed.
1587 (default=none)
1588 --enable-distcc Use distcc as a front end to the compiler
1589 (default=no).
1590 --enable-ccache Use ccache as a front end to the compiler
1591 (default=no).
1592 --enable-target-variant=NAME
1593 Enable a specific target variant(default=none)
1594 --enable-amigaos-compliance=VERSION
1595 Enforce userspace AmigaOS compliance to a specific
1596 KickStart version (default=none).
1597 --disable-crosstools Do not build cross-compiler toolchain
1598 --enable-objc Enable Objectve-C support (default=no)
1599 --enable-java Enable Java support (default=no)
1600 --enable-includes=dir Alternative system include directory
1601 --enable-palm-debug-hack
1602 Enable palm debug output hack in palm native
1603 (default=no)
1604 --enable-usb30-code Enable usb3.0 code (default=no)
1605 --enable-nesting-supervisor
1606 Enable nesting supervisor support in unix
1607 (default=no)
1608 --disable-mmu Disable MMU support (default=enabled)
1609 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1610 --enable-x11-shm use X11 shared memory (default=auto)
1611 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1612 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1613 --disable-sdltest Do not try to compile and run a test SDL program
1614 --enable-dbus Enable DBUS support via dbus.library (default=no)
1616 Optional Packages:
1617 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1618 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1619 --with-c-compiler=VERSION
1620 Use specified c compiler for building AROS
1621 --with-cxx-compiler=VERSION
1622 Use specified c++ compiler building AROS
1623 --with-toolchain=family Which toolchain family to crosscompile with
1624 (defaults to gnu)
1625 --with-kernel-gcc-version=VERSION
1626 Use gcc-VERSION for building bootstrap
1627 --with-optimization=FLAGS
1628 Use optimization flags FLAGS (default=-O2).
1629 --with-paranoia=FLAGS CC flags to enable paranoia
1630 --with-xcode=PATH Specify XCode path for iOS targets
1631 (default=/Developer).
1632 --with-sdk-version=VERSION
1633 Use iOS SDK version VERSION (default=4.1).
1634 --with-sdk=PATH Specify Android SDK path
1635 (default=$default_android_sdk).
1636 --with-ndk=PATH Specify Android NDK path (default=none).
1637 --with-sdk-version=LEVEL
1638 Use Android SDK for API LEVEL (default=12).
1639 --with-ndk-version=LEVEL
1640 Use Android NDK for API LEVEL (default=9).
1641 --with-apk-version=(release|debug)
1642 Which version of AROSBootstrap.apk to compile.
1643 Release version needs key for signing, debug version
1644 will only run in emulator. (default=release)
1645 --with-kernel-toolchain-prefix=...
1646 Specify crosscompile toolchain prefix for kernel
1647 objects
1648 --with-elf-toolchain-prefix=...
1649 Specify crosscompile toolchain prefix to wrap for
1650 AROS objects
1651 --with-aros-toolchain=PREFIX
1652 Specify prebuilt AROS toolchain. Use yes for default
1653 name
1654 --with-aros-toolchain-install=DIR
1655 Where to install or search for cross tools binaries
1656 --with-binutils-version=VERSION
1657 Use binutils-VERSION for building AROS
1658 --with-gcc-version=VERSION
1659 Use gcc-VERSION for building AROS
1660 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1661 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1662 --with-float=<spec> Specify floating point ABI
1663 (default=$gcc_default_float_abi).
1664 --with-portssources=DIR Where to download sourcecode for external ports
1665 --with-bootloader=NAME Use a specific bootloader
1666 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1667 --with-theme=NAME Use a specific GUI Theme
1668 --with-resolution=XRESxYRESxDEPTH
1669 Default resolution of the initial WorkbenchScreen
1670 --with-serial-debug Enable serial debug output in native (default=no)
1671 --with-x use the X Window System
1672 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1673 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1675 Some influential environment variables:
1676 CXX C++ compiler command
1677 CXXFLAGS C++ compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 CPP C preprocessor
1686 PYTHON the Python interpreter
1687 XMKMF Path to xmkmf, Makefile generator for X Window System
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1692 Report bugs to the package provider.
1693 _ACEOF
1694 ac_status=$?
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1703 ac_builddir=.
1705 case "$ac_dir" in
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715 esac
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1721 case $srcdir in
1722 .) # We are building in place.
1723 ac_srcdir=.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 esac
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1745 else
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1749 done
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1754 cat <<\_ACEOF
1755 configure
1756 generated by GNU Autoconf 2.69
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1761 _ACEOF
1762 exit
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_cxx_try_compile LINENO
1770 # ----------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_cxx_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1800 ac_retval=1
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_cxx_try_compile
1807 # ac_fn_c_try_compile LINENO
1808 # --------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=1
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_compile
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_cpp ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } > conftest.i && {
1867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=1
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_cpp
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_link ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 test -x conftest$ac_exeext
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_link
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if eval \${$3+:} false; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 else
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1956 else
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1972 else
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.i conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 yes:no: )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 no:yes:* )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2040 ac_status=$?
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_c_try_run
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2089 # ----------------------------------------------------
2090 # Tries to find if the field MEMBER exists in type AGGR, after including
2091 # INCLUDES, setting cache variable VAR accordingly.
2092 ac_fn_c_check_member ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2096 $as_echo_n "checking for $2.$3... " >&6; }
2097 if eval \${$4+:} false; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static $2 ac_aggr;
2107 if (ac_aggr.$3)
2108 return 0;
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$4=yes"
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static $2 ac_aggr;
2123 if (sizeof ac_aggr.$3)
2124 return 0;
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 eval "$4=yes"
2131 else
2132 eval "$4=no"
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 eval ac_res=\$$4
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 } # ac_fn_c_check_member
2145 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2146 # ---------------------------------------------
2147 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2148 # accordingly.
2149 ac_fn_c_check_decl ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 as_decl_name=`echo $2|sed 's/ *(.*//'`
2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2155 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 #ifndef $as_decl_name
2166 #ifdef __cplusplus
2167 (void) $as_decl_use;
2168 #else
2169 (void) $as_decl_name;
2170 #endif
2171 #endif
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$3=yes"
2179 else
2180 eval "$3=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_decl
2191 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2192 # -------------------------------------------
2193 # Tests whether TYPE exists after having included INCLUDES, setting cache
2194 # variable VAR accordingly.
2195 ac_fn_c_check_type ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 eval "$3=no"
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2208 main ()
2210 if (sizeof ($2))
2211 return 0;
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 if (sizeof (($2)))
2224 return 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2231 else
2232 eval "$3=yes"
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_type
2245 # ac_fn_c_check_func LINENO FUNC VAR
2246 # ----------------------------------
2247 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2248 ac_fn_c_check_func ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if eval \${$3+:} false; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2260 #define $2 innocuous_$2
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char $2 (); below.
2264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2265 <limits.h> exists even on freestanding compilers. */
2267 #ifdef __STDC__
2268 # include <limits.h>
2269 #else
2270 # include <assert.h>
2271 #endif
2273 #undef $2
2275 /* Override any GCC internal prototype to avoid an error.
2276 Use char because int might match the return type of a GCC
2277 builtin and then its argument prototype would still apply. */
2278 #ifdef __cplusplus
2279 extern "C"
2280 #endif
2281 char $2 ();
2282 /* The GNU C library defines this for functions which it implements
2283 to always fail with ENOSYS. Some functions are actually named
2284 something starting with __ and the normal name is an alias. */
2285 #if defined __stub_$2 || defined __stub___$2
2286 choke me
2287 #endif
2290 main ()
2292 return $2 ();
2294 return 0;
2296 _ACEOF
2297 if ac_fn_c_try_link "$LINENO"; then :
2298 eval "$3=yes"
2299 else
2300 eval "$3=no"
2302 rm -f core conftest.err conftest.$ac_objext \
2303 conftest$ac_exeext conftest.$ac_ext
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 } # ac_fn_c_check_func
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.69. Invocation command line was
2318 $ $0 $@
2320 _ACEOF
2321 exec 5>>config.log
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2345 _ASUNAME
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354 IFS=$as_save_IFS
2356 } >&5
2358 cat >&5 <<_ACEOF
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2365 _ACEOF
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2379 for ac_arg
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2408 as_fn_append ac_configure_args " '$ac_arg'"
2410 esac
2411 done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2424 echo
2426 $as_echo "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2457 esac |
2458 sort
2460 echo
2462 $as_echo "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2465 echo
2466 for ac_var in $ac_subst_vars
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2476 if test -n "$ac_subst_files"; then
2477 $as_echo "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2480 echo
2481 for ac_var in $ac_subst_files
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2492 if test -s confdefs.h; then
2493 $as_echo "## ----------- ##
2494 ## confdefs.h. ##
2495 ## ----------- ##"
2496 echo
2497 cat confdefs.h
2498 echo
2500 test "$ac_signal" != 0 &&
2501 $as_echo "$as_me: caught signal $ac_signal"
2502 $as_echo "$as_me: exit $exit_status"
2503 } >&5
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 exit $exit_status
2508 for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 done
2511 ac_signal=0
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2516 $as_echo "/* confdefs.h */" > confdefs.h
2518 # Predefined preprocessor variables.
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_NAME "$PACKAGE_NAME"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_STRING "$PACKAGE_STRING"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_URL "$PACKAGE_URL"
2542 _ACEOF
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 ac_site_file1=NONE
2548 ac_site_file2=NONE
2549 if test -n "$CONFIG_SITE"; then
2550 # We do not want a PATH search for config.site.
2551 case $CONFIG_SITE in #((
2552 -*) ac_site_file1=./$CONFIG_SITE;;
2553 */*) ac_site_file1=$CONFIG_SITE;;
2554 *) ac_site_file1=./$CONFIG_SITE;;
2555 esac
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2559 else
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2565 test "x$ac_site_file" = xNONE && continue
2566 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2570 . "$ac_site_file" \
2571 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "failed to load site script $ac_site_file
2574 See \`config.log' for more details" "$LINENO" 5; }
2576 done
2578 if test -r "$cache_file"; then
2579 # Some versions of bash will fail to source /dev/null (special files
2580 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2581 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 case $cache_file in
2585 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586 *) . "./$cache_file";;
2587 esac
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 >$cache_file
2595 as_fn_append ac_header_list " stdlib.h"
2596 as_fn_append ac_header_list " unistd.h"
2597 as_fn_append ac_header_list " sys/param.h"
2598 # Check that the precious variables saved in the cache have kept the same
2599 # value.
2600 ac_cache_corrupted=false
2601 for ac_var in $ac_precious_vars; do
2602 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603 eval ac_new_set=\$ac_env_${ac_var}_set
2604 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605 eval ac_new_val=\$ac_env_${ac_var}_value
2606 case $ac_old_set,$ac_new_set in
2607 set,)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,set)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,);;
2617 if test "x$ac_old_val" != "x$ac_new_val"; then
2618 # differences in whitespace do not lead to failure.
2619 ac_old_val_w=`echo x $ac_old_val`
2620 ac_new_val_w=`echo x $ac_new_val`
2621 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624 ac_cache_corrupted=:
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628 eval $ac_var=\$ac_old_val
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2631 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2633 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2634 fi;;
2635 esac
2636 # Pass precious variables to config.status.
2637 if test "$ac_new_set" = set; then
2638 case $ac_new_val in
2639 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 *) ac_arg=$ac_var=$ac_new_val ;;
2641 esac
2642 case " $ac_configure_args " in
2643 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2644 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 esac
2647 done
2648 if $ac_cache_corrupted; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2655 ## -------------------- ##
2656 ## Main body of script. ##
2657 ## -------------------- ##
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 ac_aux_dir=
2668 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2669 if test -f "$ac_dir/install-sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 break
2673 elif test -f "$ac_dir/install.sh"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 break
2677 elif test -f "$ac_dir/shtool"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 break
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2697 # Check what host we are running on.
2698 # If a target is not suggested, we use this one.
2699 # Note that what we call a target, Autoconf calls a host.
2700 # Make sure we can run config.sub.
2701 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2702 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2705 $as_echo_n "checking build system type... " >&6; }
2706 if ${ac_cv_build+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 ac_build_alias=$build_alias
2710 test "x$ac_build_alias" = x &&
2711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2712 test "x$ac_build_alias" = x &&
2713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2714 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2719 $as_echo "$ac_cv_build" >&6; }
2720 case $ac_cv_build in
2721 *-*-*) ;;
2722 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2723 esac
2724 build=$ac_cv_build
2725 ac_save_IFS=$IFS; IFS='-'
2726 set x $ac_cv_build
2727 shift
2728 build_cpu=$1
2729 build_vendor=$2
2730 shift; shift
2731 # Remember, the first character of IFS is used to create $*,
2732 # except with old shells:
2733 build_os=$*
2734 IFS=$ac_save_IFS
2735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2739 $as_echo_n "checking host system type... " >&6; }
2740 if ${ac_cv_host+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test "x$host_alias" = x; then
2744 ac_cv_host=$ac_cv_build
2745 else
2746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2752 $as_echo "$ac_cv_host" >&6; }
2753 case $ac_cv_host in
2754 *-*-*) ;;
2755 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2756 esac
2757 host=$ac_cv_host
2758 ac_save_IFS=$IFS; IFS='-'
2759 set x $ac_cv_host
2760 shift
2761 host_cpu=$1
2762 host_vendor=$2
2763 shift; shift
2764 # Remember, the first character of IFS is used to create $*,
2765 # except with old shells:
2766 host_os=$*
2767 IFS=$ac_save_IFS
2768 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2772 # Default versions for the gnu tools we build
2773 default_gcc_version="4.6.4"
2774 default_binutils_version="2.23.2"
2775 toolchain_needs_sysroot=no
2777 # The AROS target is slightly different to the normal GNU style
2778 # format. We don't have the middle part, and we reverse the order
2779 # of the $(CPU) and $(OS) bits.
2781 # Don't strip the version of the target yet, it might be
2782 # useful on some systems.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2785 $as_echo_n "checking for AROS style target... " >&6; }
2787 if test "$target" = "NONE" ; then
2788 target=$host_os-$host_cpu
2789 else
2790 if test "$target" = "" ; then
2791 target=$host_os-$host_cpu
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2795 $as_echo "$target" >&6; }
2797 if test "$host_os" = "mingw32" ; then
2798 PWDCMD="pwd -W"
2801 # Don't know where else to put this...
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2803 $as_echo_n "checking building AROS in... " >&6; }
2804 AROS_BUILDDIR=`${PWDCMD-pwd}`
2805 AROS_BUILDDIR_UNIX=${PWD}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2807 $as_echo "$AROS_BUILDDIR" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2810 $as_echo_n "checking AROS source in... " >&6; }
2811 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2812 SRCDIR=${srcpwd}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2814 $as_echo "$SRCDIR" >&6; }
2816 # Parse the target field into something useful.
2818 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2819 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2822 # Some debug output, to be removed again.
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2824 $as_echo_n "checking for target system (debug output)... " >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2826 $as_echo "$target_os" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2828 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2830 $as_echo "$target_cpu" >&6; }
2832 aros_nominal_width=800
2833 aros_nominal_height=600
2834 aros_nominal_depth=4
2837 default_c_compilers="gcc clang cc"
2839 # Check whether --with-c-compiler was given.
2840 if test "${with_c_compiler+set}" = set; then :
2841 withval=$with_c_compiler; use_c_compiler="$withval"
2842 else
2843 use_c_compiler=""
2846 if test "$use_c_compiler" = ""; then
2847 host_c_compilers="$default_c_compilers"
2848 else
2849 host_c_compilers="$use_c_compiler"
2852 default_cxx_compilers="g++ clang++ c++"
2854 # Check whether --with-cxx-compiler was given.
2855 if test "${with_cxx_compiler+set}" = set; then :
2856 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2857 else
2858 use_cxx_compiler=""
2861 if test "$use_cxx_compiler" = ""; then
2862 host_cxx_compilers="$default_cxx_compilers"
2863 else
2864 host_cxx_compilers="$use_cxx_compiler"
2868 # The first step is to find the host binaries.
2869 # Check for a compiler.
2870 # Due to a bug in autoconf check for c++ compiler first.
2871 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2872 ac_ext=cpp
2873 ac_cpp='$CXXCPP $CPPFLAGS'
2874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2877 if test -z "$CXX"; then
2878 if test -n "$CCC"; then
2879 CXX=$CCC
2880 else
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in ${host_cxx_compilers}
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CXX+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CXX"; then
2892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 CXX=$ac_cv_prog_CXX
2912 if test -n "$CXX"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2914 $as_echo "$CXX" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$CXX" && break
2922 done
2924 if test -z "$CXX"; then
2925 ac_ct_CXX=$CXX
2926 for ac_prog in ${host_cxx_compilers}
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_CXX"; then
2936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_CXX="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2956 if test -n "$ac_ct_CXX"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2958 $as_echo "$ac_ct_CXX" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$ac_ct_CXX" && break
2966 done
2968 if test "x$ac_ct_CXX" = x; then
2969 CXX="g++"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CXX=$ac_ct_CXX
2983 # Provide some information about the compiler.
2984 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2985 set X $ac_compile
2986 ac_compiler=$2
2987 for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2996 ac_status=$?
2997 if test -s conftest.err; then
2998 sed '10a\
2999 ... rest of stderr output deleted ...
3000 10q' conftest.err >conftest.er1
3001 cat conftest.er1 >&5
3003 rm -f conftest.er1 conftest.err
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006 done
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3012 main ()
3016 return 0;
3018 _ACEOF
3019 ac_clean_files_save=$ac_clean_files
3020 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3021 # Try to create an executable without -o first, disregard a.out.
3022 # It will help us diagnose broken compilers, and finding out an intuition
3023 # of exeext.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3025 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3026 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028 # The possible output files:
3029 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031 ac_rmfiles=
3032 for ac_file in $ac_files
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037 esac
3038 done
3039 rm -f $ac_rmfiles
3041 if { { ac_try="$ac_link_default"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link_default") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3053 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3054 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3055 # so that the user can short-circuit this test for compilers unknown to
3056 # Autoconf.
3057 for ac_file in $ac_files ''
3059 test -f "$ac_file" || continue
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3063 [ab].out )
3064 # We found the default executable, but exeext='' is most
3065 # certainly right.
3066 break;;
3067 *.* )
3068 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 then :; else
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 # We set ac_cv_exeext here because the later test for it is not
3073 # safe: cross compilers may not add the suffix if given an `-o'
3074 # argument, so we may need to know it at that point already.
3075 # Even if this section looks crufty: it has the advantage of
3076 # actually working.
3077 break;;
3079 break;;
3080 esac
3081 done
3082 test "$ac_cv_exeext" = no && ac_cv_exeext=
3084 else
3085 ac_file=''
3087 if test -z "$ac_file"; then :
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error 77 "C++ compiler cannot create executables
3096 See \`config.log' for more details" "$LINENO" 5; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3102 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3104 $as_echo "$ac_file" >&6; }
3105 ac_exeext=$ac_cv_exeext
3107 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3108 ac_clean_files=$ac_clean_files_save
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3110 $as_echo_n "checking for suffix of executables... " >&6; }
3111 if { { ac_try="$ac_link"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3123 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3124 # work properly (i.e., refer to `conftest.exe'), while it won't with
3125 # `rm'.
3126 for ac_file in conftest.exe conftest conftest.*; do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 break;;
3132 * ) break;;
3133 esac
3134 done
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3139 See \`config.log' for more details" "$LINENO" 5; }
3141 rm -f conftest conftest$ac_cv_exeext
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3143 $as_echo "$ac_cv_exeext" >&6; }
3145 rm -f conftest.$ac_ext
3146 EXEEXT=$ac_cv_exeext
3147 ac_exeext=$EXEEXT
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3150 #include <stdio.h>
3152 main ()
3154 FILE *f = fopen ("conftest.out", "w");
3155 return ferror (f) || fclose (f) != 0;
3158 return 0;
3160 _ACEOF
3161 ac_clean_files="$ac_clean_files conftest.out"
3162 # Check that the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3165 $as_echo_n "checking whether we are cross compiling... " >&6; }
3166 if test "$cross_compiling" != yes; then
3167 { { ac_try="$ac_link"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_link") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }
3178 if { ac_try='./conftest$ac_cv_exeext'
3179 { { case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; }; then
3189 cross_compiling=no
3190 else
3191 if test "$cross_compiling" = maybe; then
3192 cross_compiling=yes
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot run C++ compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details" "$LINENO" 5; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3203 $as_echo "$cross_compiling" >&6; }
3205 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3208 $as_echo_n "checking for suffix of object files... " >&6; }
3209 if ${ac_cv_objext+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 main ()
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.o conftest.obj
3224 if { { ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compile") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 for ac_file in conftest.o conftest.obj conftest.*; do
3236 test -f "$ac_file" || continue;
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 break;;
3241 esac
3242 done
3243 else
3244 $as_echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "cannot compute suffix of object files: cannot compile
3250 See \`config.log' for more details" "$LINENO" 5; }
3252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3255 $as_echo "$ac_cv_objext" >&6; }
3256 OBJEXT=$ac_cv_objext
3257 ac_objext=$OBJEXT
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3259 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3260 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3267 main ()
3269 #ifndef __GNUC__
3270 choke me
3271 #endif
3274 return 0;
3276 _ACEOF
3277 if ac_fn_cxx_try_compile "$LINENO"; then :
3278 ac_compiler_gnu=yes
3279 else
3280 ac_compiler_gnu=no
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3287 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3288 if test $ac_compiler_gnu = yes; then
3289 GXX=yes
3290 else
3291 GXX=
3293 ac_test_CXXFLAGS=${CXXFLAGS+set}
3294 ac_save_CXXFLAGS=$CXXFLAGS
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3296 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3297 if ${ac_cv_prog_cxx_g+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3301 ac_cxx_werror_flag=yes
3302 ac_cv_prog_cxx_g=no
3303 CXXFLAGS="-g"
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3308 main ()
3312 return 0;
3314 _ACEOF
3315 if ac_fn_cxx_try_compile "$LINENO"; then :
3316 ac_cv_prog_cxx_g=yes
3317 else
3318 CXXFLAGS=""
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 if ac_fn_cxx_try_compile "$LINENO"; then :
3332 else
3333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3334 CXXFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 if ac_fn_cxx_try_compile "$LINENO"; then :
3347 ac_cv_prog_cxx_g=yes
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3357 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3358 if test "$ac_test_CXXFLAGS" = set; then
3359 CXXFLAGS=$ac_save_CXXFLAGS
3360 elif test $ac_cv_prog_cxx_g = yes; then
3361 if test "$GXX" = yes; then
3362 CXXFLAGS="-g -O2"
3363 else
3364 CXXFLAGS="-g"
3366 else
3367 if test "$GXX" = yes; then
3368 CXXFLAGS="-O2"
3369 else
3370 CXXFLAGS=
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 if test -n "$ac_tool_prefix"; then
3385 for ac_prog in ${host_c_compilers}
3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3424 test -n "$CC" && break
3425 done
3427 if test -z "$CC"; then
3428 ac_ct_CC=$CC
3429 for ac_prog in ${host_c_compilers}
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432 set dummy $ac_prog; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="$ac_prog"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3452 done
3453 done
3454 IFS=$as_save_IFS
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3468 test -n "$ac_ct_CC" && break
3469 done
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3485 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details" "$LINENO" 5; }
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3492 set X $ac_compile
3493 ac_compiler=$2
3494 for ac_option in --version -v -V -qversion; do
3495 { { ac_try="$ac_compiler $ac_option >&5"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3503 ac_status=$?
3504 if test -s conftest.err; then
3505 sed '10a\
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err >conftest.er1
3508 cat conftest.er1 >&5
3510 rm -f conftest.er1 conftest.err
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 done
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517 if ${ac_cv_c_compiler_gnu+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3526 #ifndef __GNUC__
3527 choke me
3528 #endif
3531 return 0;
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_compiler_gnu=yes
3536 else
3537 ac_compiler_gnu=no
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3546 GCC=yes
3547 else
3548 GCC=
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3554 if ${ac_cv_prog_cc_g+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3565 main ()
3569 return 0;
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_prog_cc_g=yes
3574 else
3575 CFLAGS=""
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3580 main ()
3584 return 0;
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3589 else
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3591 CFLAGS="-g"
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3596 main ()
3600 return 0;
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604 ac_cv_prog_cc_g=yes
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_c_werror_flag=$ac_save_c_werror_flag
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614 $as_echo "$ac_cv_prog_cc_g" >&6; }
3615 if test "$ac_test_CFLAGS" = set; then
3616 CFLAGS=$ac_save_CFLAGS
3617 elif test $ac_cv_prog_cc_g = yes; then
3618 if test "$GCC" = yes; then
3619 CFLAGS="-g -O2"
3620 else
3621 CFLAGS="-g"
3623 else
3624 if test "$GCC" = yes; then
3625 CFLAGS="-O2"
3626 else
3627 CFLAGS=
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632 if ${ac_cv_prog_cc_c89+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 ac_cv_prog_cc_c89=no
3636 ac_save_CC=$CC
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdarg.h>
3640 #include <stdio.h>
3641 struct stat;
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646 char **p;
3647 int i;
3649 return p[i];
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3672 #define FOO(x) 'x'
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 int argc;
3680 char **argv;
3682 main ()
3684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686 return 0;
3688 _ACEOF
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3696 rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC
3703 # AC_CACHE_VAL
3704 case "x$ac_cv_prog_cc_c89" in
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3708 xno)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715 esac
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 aros_host_def_cc="$CC"
3727 case $ac_cv_prog_cc_stdc in #(
3728 no) :
3729 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3730 *) :
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3733 if ${ac_cv_prog_cc_c99+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_cv_prog_cc_c99=no
3737 ac_save_CC=$CC
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <stdarg.h>
3741 #include <stdbool.h>
3742 #include <stdlib.h>
3743 #include <wchar.h>
3744 #include <stdio.h>
3746 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3747 #define debug(...) fprintf (stderr, __VA_ARGS__)
3748 #define showlist(...) puts (#__VA_ARGS__)
3749 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3750 static void
3751 test_varargs_macros (void)
3753 int x = 1234;
3754 int y = 5678;
3755 debug ("Flag");
3756 debug ("X = %d\n", x);
3757 showlist (The first, second, and third items.);
3758 report (x>y, "x is %d but y is %d", x, y);
3761 // Check long long types.
3762 #define BIG64 18446744073709551615ull
3763 #define BIG32 4294967295ul
3764 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3765 #if !BIG_OK
3766 your preprocessor is broken;
3767 #endif
3768 #if BIG_OK
3769 #else
3770 your preprocessor is broken;
3771 #endif
3772 static long long int bignum = -9223372036854775807LL;
3773 static unsigned long long int ubignum = BIG64;
3775 struct incomplete_array
3777 int datasize;
3778 double data[];
3781 struct named_init {
3782 int number;
3783 const wchar_t *name;
3784 double average;
3787 typedef const char *ccp;
3789 static inline int
3790 test_restrict (ccp restrict text)
3792 // See if C++-style comments work.
3793 // Iterate through items via the restricted pointer.
3794 // Also check for declarations in for loops.
3795 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3796 continue;
3797 return 0;
3800 // Check varargs and va_copy.
3801 static void
3802 test_varargs (const char *format, ...)
3804 va_list args;
3805 va_start (args, format);
3806 va_list args_copy;
3807 va_copy (args_copy, args);
3809 const char *str;
3810 int number;
3811 float fnumber;
3813 while (*format)
3815 switch (*format++)
3817 case 's': // string
3818 str = va_arg (args_copy, const char *);
3819 break;
3820 case 'd': // int
3821 number = va_arg (args_copy, int);
3822 break;
3823 case 'f': // float
3824 fnumber = va_arg (args_copy, double);
3825 break;
3826 default:
3827 break;
3830 va_end (args_copy);
3831 va_end (args);
3835 main ()
3838 // Check bool.
3839 _Bool success = false;
3841 // Check restrict.
3842 if (test_restrict ("String literal") == 0)
3843 success = true;
3844 char *restrict newvar = "Another string";
3846 // Check varargs.
3847 test_varargs ("s, d' f .", "string", 65, 34.234);
3848 test_varargs_macros ();
3850 // Check flexible array members.
3851 struct incomplete_array *ia =
3852 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3853 ia->datasize = 10;
3854 for (int i = 0; i < ia->datasize; ++i)
3855 ia->data[i] = i * 1.234;
3857 // Check named initializers.
3858 struct named_init ni = {
3859 .number = 34,
3860 .name = L"Test wide string",
3861 .average = 543.34343,
3864 ni.number = 58;
3866 int dynamic_array[ni.number];
3867 dynamic_array[ni.number - 1] = 543;
3869 // work around unused variable warnings
3870 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3871 || dynamic_array[ni.number - 1] != 543);
3874 return 0;
3876 _ACEOF
3877 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3879 CC="$ac_save_CC $ac_arg"
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_c99=$ac_arg
3883 rm -f core conftest.err conftest.$ac_objext
3884 test "x$ac_cv_prog_cc_c99" != "xno" && break
3885 done
3886 rm -f conftest.$ac_ext
3887 CC=$ac_save_CC
3890 # AC_CACHE_VAL
3891 case "x$ac_cv_prog_cc_c99" in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894 $as_echo "none needed" >&6; } ;;
3895 xno)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897 $as_echo "unsupported" >&6; } ;;
3899 CC="$CC $ac_cv_prog_cc_c99"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3901 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3902 esac
3903 if test "x$ac_cv_prog_cc_c99" != xno; then :
3904 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908 if ${ac_cv_prog_cc_c89+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_cv_prog_cc_c89=no
3912 ac_save_CC=$CC
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <stdarg.h>
3916 #include <stdio.h>
3917 struct stat;
3918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3919 struct buf { int x; };
3920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3921 static char *e (p, i)
3922 char **p;
3923 int i;
3925 return p[i];
3927 static char *f (char * (*g) (char **, int), char **p, ...)
3929 char *s;
3930 va_list v;
3931 va_start (v,p);
3932 s = g (p, va_arg (v,int));
3933 va_end (v);
3934 return s;
3937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3938 function prototypes and stuff, but not '\xHH' hex character constants.
3939 These don't provoke an error unfortunately, instead are silently treated
3940 as 'x'. The following induces an error, until -std is added to get
3941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3942 array size at least. It's necessary to write '\x00'==0 to get something
3943 that's true only with -std. */
3944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3947 inside strings and character constants. */
3948 #define FOO(x) 'x'
3949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3951 int test (int i, double x);
3952 struct s1 {int (*f) (int a);};
3953 struct s2 {int (*f) (double a);};
3954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 int argc;
3956 char **argv;
3958 main ()
3960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3962 return 0;
3964 _ACEOF
3965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968 CC="$ac_save_CC $ac_arg"
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_prog_cc_c89=$ac_arg
3972 rm -f core conftest.err conftest.$ac_objext
3973 test "x$ac_cv_prog_cc_c89" != "xno" && break
3974 done
3975 rm -f conftest.$ac_ext
3976 CC=$ac_save_CC
3979 # AC_CACHE_VAL
3980 case "x$ac_cv_prog_cc_c89" in
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3983 $as_echo "none needed" >&6; } ;;
3984 xno)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986 $as_echo "unsupported" >&6; } ;;
3988 CC="$CC $ac_cv_prog_cc_c89"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3991 esac
3992 if test "x$ac_cv_prog_cc_c89" != xno; then :
3993 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3994 else
3995 ac_cv_prog_cc_stdc=no
4000 esac
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4002 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4003 if ${ac_cv_prog_cc_stdc+:} false; then :
4004 $as_echo_n "(cached) " >&6
4007 case $ac_cv_prog_cc_stdc in #(
4008 no) :
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4010 $as_echo "unsupported" >&6; } ;; #(
4011 '') :
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013 $as_echo "none needed" >&6; } ;; #(
4014 *) :
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4016 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4017 esac
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4025 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4026 # On Suns, sometimes $CPP names a directory.
4027 if test -n "$CPP" && test -d "$CPP"; then
4028 CPP=
4030 if test -z "$CPP"; then
4031 if ${ac_cv_prog_CPP+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 # Double quotes because CPP needs to be expanded
4035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4037 ac_preproc_ok=false
4038 for ac_c_preproc_warn_flag in '' yes
4040 # Use a header file that comes with gcc, so configuring glibc
4041 # with a fresh cross-compiler works.
4042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043 # <limits.h> exists even on freestanding compilers.
4044 # On the NeXT, cc -E runs the code through the compiler's parser,
4045 # not just through cpp. "Syntax error" is here to catch this case.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #ifdef __STDC__
4049 # include <limits.h>
4050 #else
4051 # include <assert.h>
4052 #endif
4053 Syntax error
4054 _ACEOF
4055 if ac_fn_c_try_cpp "$LINENO"; then :
4057 else
4058 # Broken: fails on valid input.
4059 continue
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4063 # OK, works on sane cases. Now check whether nonexistent headers
4064 # can be detected and how.
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <ac_nonexistent.h>
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070 # Broken: success on invalid input.
4071 continue
4072 else
4073 # Passes both tests.
4074 ac_preproc_ok=:
4075 break
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.i conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then :
4083 break
4086 done
4087 ac_cv_prog_CPP=$CPP
4090 CPP=$ac_cv_prog_CPP
4091 else
4092 ac_cv_prog_CPP=$CPP
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4095 $as_echo "$CPP" >&6; }
4096 ac_preproc_ok=false
4097 for ac_c_preproc_warn_flag in '' yes
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #ifdef __STDC__
4108 # include <limits.h>
4109 #else
4110 # include <assert.h>
4111 #endif
4112 Syntax error
4113 _ACEOF
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4116 else
4117 # Broken: fails on valid input.
4118 continue
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4127 _ACEOF
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 # Passes both tests.
4133 ac_preproc_ok=:
4134 break
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4138 done
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.$ac_ext
4141 if $ac_preproc_ok; then :
4143 else
4144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4147 See \`config.log' for more details" "$LINENO" 5; }
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 # Check for a compatible awk
4158 for ac_prog in gawk nawk
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161 set dummy $ac_prog; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_AWK+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$AWK"; then
4168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_AWK="$ac_prog"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 AWK=$ac_cv_prog_AWK
4188 if test -n "$AWK"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4190 $as_echo "$AWK" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 test -n "$AWK" && break
4198 done
4200 if test "$AWK" = ""; then
4201 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4203 # Extract the first word of "mmake", so it can be a program name with args.
4204 set dummy mmake; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_MMAKE+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -n "$MMAKE"; then
4211 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_MMAKE="mmake "
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4226 IFS=$as_save_IFS
4230 MMAKE=$ac_cv_prog_MMAKE
4231 if test -n "$MMAKE"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4233 $as_echo "$MMAKE" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
4242 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
4244 # Check whether --with-toolchain was given.
4245 if test "${with_toolchain+set}" = set; then :
4246 withval=$with_toolchain; aros_toolchain="$withval"
4247 else
4248 aros_toolchain="gnu"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
4252 $as_echo "$aros_toolchain" >&6; }
4254 case "$aros_toolchain" in
4255 *llvm*)
4256 toolchain_needs_sysroot=yes
4257 toolchain_c_compiler="clang"
4258 toolchain_cxx_compiler="clang++"
4259 toolchain_cpp_preprocessor="clang"
4261 *gnu*)
4262 toolchain_c_compiler="gcc"
4263 toolchain_cxx_compiler="g++"
4264 toolchain_cpp_preprocessor="cpp"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
4268 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
4269 toolchain_c_compiler="cc"
4270 toolchain_cxx_compiler="c++"
4271 toolchain_cpp_preprocessor="cpp"
4273 esac
4276 # Perform some default variable assignments. Note all of these will be
4277 # Regenerated from the script, so there is no need to cache them.
4279 aros_build_host=$host
4280 aros_host_cpp="$CPP"
4281 aros_host_cc="$CC"
4282 aros_host_cxx="$CXX"
4283 if test "$GCC" = "yes"; then
4284 aros_gcc_ld=`$CC -print-prog-name=ld`
4285 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4286 set dummy `basename $aros_gcc_ld`; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_path_aros_host_ld+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 case $aros_host_ld in
4293 [\\/]* | ?:[\\/]*)
4294 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in `dirname $aros_gcc_ld`
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4313 esac
4315 aros_host_ld=$ac_cv_path_aros_host_ld
4316 if test -n "$aros_host_ld"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4318 $as_echo "$aros_host_ld" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test "$aros_host_ld" = ""; then
4327 # Extract the first word of "ld", so it can be a program name with args.
4328 set dummy ld; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_path_aros_host_ld+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 case $aros_host_ld in
4335 [\\/]* | ?:[\\/]*)
4336 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4355 esac
4357 aros_host_ld=$ac_cv_path_aros_host_ld
4358 if test -n "$aros_host_ld"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4360 $as_echo "$aros_host_ld" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4368 if test "$aros_host_ld" = ""; then
4369 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4371 aros_host_make="make"
4372 aros_host_cflags="$CFLAGS"
4373 aros_host_cxxflags="$CXXFLAGS"
4374 aros_host_ldflags="$LDFLAGS"
4375 aros_host_debug="-g -O0"
4376 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4377 aros_host_mkargs="--no-print-directory"
4378 aros_host_exe_suffix="$EXEEXT"
4379 aros_host_lib_suffix=""
4381 # Ignore all compliance, AROS ROMs = 0
4382 # KickStart v1.0 = 30
4383 # KickStart v1.3 = 34
4384 # KickStart v2.0 = 37
4385 # KickStart v3.0 = 39
4386 # KickStart v3.1 = 40
4387 # AmigaOS v3.5 = 44
4388 aros_amigaos_compliance=0
4390 for ac_prog in aclocal aclocal19 aclocal-1.9
4392 # Extract the first word of "$ac_prog", so it can be a program name with args.
4393 set dummy $ac_prog; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -n "$aros_host_aclocal"; then
4400 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_aros_host_aclocal="$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4420 if test -n "$aros_host_aclocal"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4422 $as_echo "$aros_host_aclocal" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4429 test -n "$aros_host_aclocal" && break
4430 done
4432 for ac_prog in autoconf autoconf259 autoconf253
4434 # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -n "$aros_host_autoconf"; then
4442 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_aros_host_autoconf="$ac_prog"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4462 if test -n "$aros_host_autoconf"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4464 $as_echo "$aros_host_autoconf" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$aros_host_autoconf" && break
4472 done
4474 for ac_prog in autoheader autoheader259 autoheader253
4476 # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$aros_host_autoheader"; then
4484 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_aros_host_autoheader="$ac_prog"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4504 if test -n "$aros_host_autoheader"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4506 $as_echo "$aros_host_autoheader" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 test -n "$aros_host_autoheader" && break
4514 done
4516 for ac_prog in automake automake19 automake-1.9
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_aros_host_automake+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$aros_host_automake"; then
4526 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_aros_host_automake="$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 aros_host_automake=$ac_cv_prog_aros_host_automake
4546 if test -n "$aros_host_automake"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4548 $as_echo "$aros_host_automake" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$aros_host_automake" && break
4556 done
4559 if test "$aros_host_aclocal" = ""; then
4560 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4562 if test "$aros_host_automake" = ""; then
4563 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4566 case "$aros_host_cc" in
4567 *clang*)
4568 aros_host_cc_pipe=""
4570 *gcc*)
4571 aros_host_cc_pipe="-pipe"
4573 icc)
4574 aros_host_cc_pipe=""
4577 aros_host_cc_pipe=""
4579 esac
4581 aros_kernel_cc_includes=""
4582 aros_target_cc_includes=""
4583 host_cc_elf=yes
4585 # ----------------------------------------------------------------------------------------
4586 # Host-specific defaults
4588 # This is the main host configuration section. It is where the host
4589 # can change the values of any variables it needs to change. We do
4590 # not look at anything that compiles to the target yet, we'll get
4591 # to that later.
4593 case "$host_os" in
4594 aros*)
4595 aros_host_arch="aros"
4596 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4597 case "$host_cpu" in
4598 *i?86*)
4599 aros_host_cpu="i386"
4601 *x86_64*)
4602 aros_host_cpu="x86_64"
4604 *powerpc*)
4605 aros_host_cpu="ppc"
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4609 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4610 aros_host_cpu="$host_cpu"
4612 esac
4615 linux*)
4616 aros_host_arch="linux"
4617 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4618 android_build_os="linux-x86"
4619 android_tool="android"
4620 default_android_sdk="/opt/android-sdk-linux_x86"
4621 case "$host_cpu" in
4622 *i?86*)
4623 aros_host_cpu="i386"
4625 *x86_64*)
4626 aros_host_cpu="x86_64"
4628 *m68k*)
4629 aros_host_cpu="m68k"
4631 *powerpc*)
4632 aros_host_cpu="ppc"
4634 *arm*)
4635 aros_host_cpu="arm"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4639 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4640 aros_host_cpu="$host_cpu"
4642 esac
4645 freebsd*)
4646 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4647 aros_host_make="gmake"
4648 aros_host_arch="freebsd"
4649 aros_host_cpu="i386"
4651 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4653 case $host_os in
4654 freebsd[234]*)
4655 aros_object_format="elf_i386"
4659 aros_object_format="elf_i386_fbsd"
4661 esac
4665 darwin*)
4666 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4667 aros_host_arch="darwin"
4668 host_cc_elf=no
4669 if [ -z ${SED+x} ]; then SED="gsed"; fi
4670 android_build_os="darwin-x86"
4671 android_tool="android"
4672 default_android_sdk="/android-sdk-mac_x86"
4673 case "$host_cpu" in
4674 *i?86*)
4675 aros_host_cpu="i386"
4677 *x86_64*)
4678 aros_host_cpu="x86_64"
4680 *powerpc*)
4681 aros_host_cpu="ppc"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4685 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4686 aros_host_cpu="$host_cpu"
4688 esac
4690 aros_host_ldflags="$aros_host_ldflags -liconv"
4694 dragonfly*)
4695 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4696 aros_host_make="gmake"
4697 aros_host_arch="dragonfly"
4698 case $host_cpu in
4699 *i?86*)
4700 aros_host_cpu="i386"
4702 *amd64*)
4703 aros_host_cpu="x86_64"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4707 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4708 aros_host_cpu="$host_cpu"
4710 esac
4713 netbsd*)
4714 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4715 aros_host_make="gmake"
4716 aros_host_arch="netbsd"
4717 case "$host_cpu" in
4718 *i?86*)
4719 aros_host_cpu="i386"
4721 *m68k*)
4722 aros_host_cpu="m68k"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4726 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4727 aros_host_cpu="$host_cpu"
4729 esac
4730 aros_host_lib_suffix=".0.0"
4733 openbsd*)
4734 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4735 aros_host_make="gmake"
4736 aros_host_arch="openbsd"
4737 case "$host_cpu" in
4738 *i?86*)
4739 aros_host_cpu="i386"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4749 solaris*)
4750 aros_host_arch="solaris"
4751 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4752 case "$host_cpu" in
4753 *i?86*)
4754 aros_host_cpu="i386"
4756 *sparc*)
4757 aros_host_cpu="sparc"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4761 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4762 aros_host_cpu="$host_cpu"
4764 esac
4767 morphos*)
4768 aros_host_arch="morphos"
4769 aros_host_cpu="ppc"
4770 host_cc_elf=no
4773 amiga*)
4774 aros_host_arch="amiga"
4775 host_cc_elf=no
4776 SORT="/gg/bin/sort"
4777 TEST="/gg/bin/test"
4778 UNIQ="/gg/bin/uniq"
4779 FOR="for"
4780 TOUCH="/gg/bin/touch"
4781 case "$host_cpu" in
4782 *m68k*)
4783 aros_host_cpu="m68k"
4785 *powerpc*)
4786 aros_host_cpu="ppc"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4790 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4791 aros_host_cpu="$host_cpu"
4793 esac
4796 cygwin*)
4797 aros_host_arch="cygwin"
4798 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4799 host_cc_elf=no
4800 android_build_os="windows"
4801 android_tool="android.bat"
4802 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4804 case "$host_cpu" in
4805 *i?86*)
4806 aros_host_cpu="i386"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4810 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4811 aros_host_cpu="$host_cpu"
4813 esac
4816 mingw32*)
4817 aros_host_arch="mingw32"
4818 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4819 host_cc_elf=no
4820 android_build_os="windows"
4821 android_tool="android.bat"
4822 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4824 case "$host_cpu" in
4825 *i?86*)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4828 $as_echo_n "checking for Windows native gcc target... " >&6; }
4829 host_cpu=`gcc -dumpmachine`
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4831 $as_echo "$host_cpu" >&6; }
4834 esac
4836 case "$host_cpu" in
4837 *i?86*)
4838 aros_host_cpu="i386"
4841 mingw32*)
4842 aros_host_cpu="i386"
4845 *x86_64*)
4846 aros_host_cpu="x86_64"
4847 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4852 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4853 aros_host_cpu="$host_cpu"
4855 esac
4858 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4860 esac
4862 # Extract the first word of "ar", so it can be a program name with args.
4863 set dummy ar; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_aros_host_ar+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$aros_host_ar"; then
4870 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_aros_host_ar="ar cr"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 aros_host_ar=$ac_cv_prog_aros_host_ar
4890 if test -n "$aros_host_ar"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4892 $as_echo "$aros_host_ar" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 if test "$aros_host_ar" = ""; then
4900 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903 set dummy ranlib; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$aros_host_ranlib"; then
4910 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_aros_host_ranlib="ranlib "
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4930 if test -n "$aros_host_ranlib"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4932 $as_echo "$aros_host_ranlib" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 if test "$aros_host_ranlib" = ""; then
4940 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4942 # Extract the first word of "strip", so it can be a program name with args.
4943 set dummy strip; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_aros_host_strip+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$aros_host_strip"; then
4950 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_aros_host_strip="strip "
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4969 aros_host_strip=$ac_cv_prog_aros_host_strip
4970 if test -n "$aros_host_strip"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4972 $as_echo "$aros_host_strip" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4979 if test "$aros_host_strip" = ""; then
4980 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4983 # Extract the first word of "rm", so it can be a program name with args.
4984 set dummy rm; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_RM+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$RM"; then
4991 ac_cv_prog_RM="$RM" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_RM="rm -rf"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 RM=$ac_cv_prog_RM
5011 if test -n "$RM"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5013 $as_echo "$RM" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 if test "$RM" = ""; then
5021 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5023 # Extract the first word of "cp", so it can be a program name with args.
5024 set dummy cp; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_CP+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$CP"; then
5031 ac_cv_prog_CP="$CP" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_CP="cp "
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 CP=$ac_cv_prog_CP
5051 if test -n "$CP"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5053 $as_echo "$CP" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 if test "$CP" = ""; then
5061 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5063 # Extract the first word of "mv", so it can be a program name with args.
5064 set dummy mv; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_MV+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$MV"; then
5071 ac_cv_prog_MV="$MV" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_MV="mv "
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5084 done
5085 done
5086 IFS=$as_save_IFS
5090 MV=$ac_cv_prog_MV
5091 if test -n "$MV"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5093 $as_echo "$MV" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5100 if test "$MV" = ""; then
5101 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "echo", so it can be a program name with args.
5104 set dummy echo; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ECHO+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$ECHO"; then
5111 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ECHO="echo "
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 ECHO=$ac_cv_prog_ECHO
5131 if test -n "$ECHO"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5133 $as_echo "$ECHO" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 if test "$ECHO" = ""; then
5141 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 # Extract the first word of "mkdir", so it can be a program name with args.
5144 set dummy mkdir; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_MKDIR+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$MKDIR"; then
5151 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_MKDIR="mkdir -p"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 MKDIR=$ac_cv_prog_MKDIR
5171 if test -n "$MKDIR"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5173 $as_echo "$MKDIR" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 if test "$MKDIR" = ""; then
5181 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5183 # Extract the first word of "touch", so it can be a program name with args.
5184 set dummy touch; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_TOUCH+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$TOUCH"; then
5191 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_TOUCH="touch "
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 TOUCH=$ac_cv_prog_TOUCH
5211 if test -n "$TOUCH"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5213 $as_echo "$TOUCH" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 if test "$TOUCH" = ""; then
5221 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5223 # Extract the first word of "sort", so it can be a program name with args.
5224 set dummy sort; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_SORT+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$SORT"; then
5231 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_SORT="sort "
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 SORT=$ac_cv_prog_SORT
5251 if test -n "$SORT"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5253 $as_echo "$SORT" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 if test "$SORT" = ""; then
5261 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5263 # Extract the first word of "uniq", so it can be a program name with args.
5264 set dummy uniq; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_UNIQ+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$UNIQ"; then
5271 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_UNIQ="uniq "
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 UNIQ=$ac_cv_prog_UNIQ
5291 if test -n "$UNIQ"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5293 $as_echo "$UNIQ" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 if test "$UNIQ" = ""; then
5301 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5303 # Extract the first word of "true", so it can be a program name with args.
5304 set dummy true; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_NOP+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$NOP"; then
5311 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_NOP="true "
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5324 done
5325 done
5326 IFS=$as_save_IFS
5330 NOP=$ac_cv_prog_NOP
5331 if test -n "$NOP"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5333 $as_echo "$NOP" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 if test "$NOP" = ""; then
5341 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5343 # Extract the first word of "cat", so it can be a program name with args.
5344 set dummy cat; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_CAT+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$CAT"; then
5351 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_CAT="cat "
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 CAT=$ac_cv_prog_CAT
5371 if test -n "$CAT"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5373 $as_echo "$CAT" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 if test "$CAT" = ""; then
5381 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5383 # Extract the first word of "bison", so it can be a program name with args.
5384 set dummy bison; 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_BISON+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$BISON"; then
5391 ac_cv_prog_BISON="$BISON" # 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_BISON="bison "
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 BISON=$ac_cv_prog_BISON
5411 if test -n "$BISON"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5413 $as_echo "$BISON" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 if test "$BISON" = ""; then
5421 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5423 # Extract the first word of "flex", so it can be a program name with args.
5424 set dummy flex; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_FLEX+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$FLEX"; then
5431 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_FLEX="flex "
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5446 IFS=$as_save_IFS
5450 FLEX=$ac_cv_prog_FLEX
5451 if test -n "$FLEX"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5453 $as_echo "$FLEX" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 if test "$FLEX" = ""; then
5461 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5463 # Extract the first word of "pngtopnm", so it can be a program name with args.
5464 set dummy pngtopnm; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -n "$PNGTOPNM"; then
5471 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_PNGTOPNM="pngtopnm "
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5484 done
5485 done
5486 IFS=$as_save_IFS
5490 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5491 if test -n "$PNGTOPNM"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5493 $as_echo "$PNGTOPNM" >&6; }
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5500 if test "$PNGTOPNM" = ""; then
5501 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5503 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5504 set dummy ppmtoilbm; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$PPMTOILBM"; then
5511 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5530 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5531 if test -n "$PPMTOILBM"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5533 $as_echo "$PPMTOILBM" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5540 if test "$PPMTOILBM" = ""; then
5541 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5543 # Extract the first word of "sed", so it can be a program name with args.
5544 set dummy sed; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_SED+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$SED"; then
5551 ac_cv_prog_SED="$SED" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_SED="sed "
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 SED=$ac_cv_prog_SED
5571 if test -n "$SED"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5573 $as_echo "$SED" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5580 if test "$SED" = ""; then
5581 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5583 # Extract the first word of "chmod", so it can be a program name with args.
5584 set dummy chmod; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_CHMOD+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$CHMOD"; then
5591 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_CHMOD="chmod "
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 CHMOD=$ac_cv_prog_CHMOD
5611 if test -n "$CHMOD"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5613 $as_echo "$CHMOD" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 if test "$CHMOD" = ""; then
5621 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5623 # Extract the first word of "patch", so it can be a program name with args.
5624 set dummy patch; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_PATCH+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$PATCH"; then
5631 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_PATCH="patch "
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 PATCH=$ac_cv_prog_PATCH
5651 if test -n "$PATCH"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5653 $as_echo "$PATCH" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 if test "$PATCH" = ""; then
5661 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5670 if test -n "$PYTHON"; then
5671 # If the user set $PYTHON, use it and don't search something else.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5673 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5674 prog="import sys
5675 # split strings by '.' and convert to numeric. Append some zeros
5676 # because we need at least 4 digits for the hex conversion.
5677 # map returns an iterator in Python 3.0 and a list in 2.x
5678 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5679 minverhex = 0
5680 # xrange is not present in Python 3.0 and range returns an iterator
5681 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5682 sys.exit(sys.hexversion < minverhex)"
5683 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5684 ($PYTHON -c "$prog") >&5 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5695 am_display_PYTHON=$PYTHON
5696 else
5697 # Otherwise, try each interpreter until we find one that satisfies
5698 # VERSION.
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5700 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5701 if ${am_cv_pathless_PYTHON+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5705 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
5706 test "$am_cv_pathless_PYTHON" = none && break
5707 prog="import sys
5708 # split strings by '.' and convert to numeric. Append some zeros
5709 # because we need at least 4 digits for the hex conversion.
5710 # map returns an iterator in Python 3.0 and a list in 2.x
5711 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5712 minverhex = 0
5713 # xrange is not present in Python 3.0 and range returns an iterator
5714 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5715 sys.exit(sys.hexversion < minverhex)"
5716 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5717 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then :
5721 break
5723 done
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5726 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5727 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5728 if test "$am_cv_pathless_PYTHON" = none; then
5729 PYTHON=:
5730 else
5731 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5732 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_path_PYTHON+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 case $PYTHON in
5739 [\\/]* | ?:[\\/]*)
5740 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5754 done
5755 done
5756 IFS=$as_save_IFS
5759 esac
5761 PYTHON=$ac_cv_path_PYTHON
5762 if test -n "$PYTHON"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5764 $as_echo "$PYTHON" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5772 am_display_PYTHON=$am_cv_pathless_PYTHON
5776 if test "$PYTHON" = :; then
5777 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5778 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5782 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5783 if ${am_cv_python_version+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5789 $as_echo "$am_cv_python_version" >&6; }
5790 PYTHON_VERSION=$am_cv_python_version
5794 PYTHON_PREFIX='${prefix}'
5796 PYTHON_EXEC_PREFIX='${exec_prefix}'
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5801 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5802 if ${am_cv_python_platform+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5808 $as_echo "$am_cv_python_platform" >&6; }
5809 PYTHON_PLATFORM=$am_cv_python_platform
5812 # Just factor out some code duplication.
5813 am_python_setup_sysconfig="\
5814 import sys
5815 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5816 # with python 3.x. See automake bug#10227.
5817 try:
5818 import sysconfig
5819 except ImportError:
5820 can_use_sysconfig = 0
5821 else:
5822 can_use_sysconfig = 1
5823 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5824 # <https://github.com/pypa/virtualenv/issues/118>
5825 try:
5826 from platform import python_implementation
5827 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5828 can_use_sysconfig = 0
5829 except ImportError:
5830 pass"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5834 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5835 if ${am_cv_python_pythondir+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test "x$prefix" = xNONE
5839 then
5840 am_py_prefix=$ac_default_prefix
5841 else
5842 am_py_prefix=$prefix
5844 am_cv_python_pythondir=`$PYTHON -c "
5845 $am_python_setup_sysconfig
5846 if can_use_sysconfig:
5847 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5848 else:
5849 from distutils import sysconfig
5850 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5851 sys.stdout.write(sitedir)"`
5852 case $am_cv_python_pythondir in
5853 $am_py_prefix*)
5854 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5855 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5858 case $am_py_prefix in
5859 /usr|/System*) ;;
5861 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5863 esac
5865 esac
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5869 $as_echo "$am_cv_python_pythondir" >&6; }
5870 pythondir=$am_cv_python_pythondir
5874 pkgpythondir=\${pythondir}/$PACKAGE
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5878 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5879 if ${am_cv_python_pyexecdir+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test "x$exec_prefix" = xNONE
5883 then
5884 am_py_exec_prefix=$am_py_prefix
5885 else
5886 am_py_exec_prefix=$exec_prefix
5888 am_cv_python_pyexecdir=`$PYTHON -c "
5889 $am_python_setup_sysconfig
5890 if can_use_sysconfig:
5891 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5892 else:
5893 from distutils import sysconfig
5894 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5895 sys.stdout.write(sitedir)"`
5896 case $am_cv_python_pyexecdir in
5897 $am_py_exec_prefix*)
5898 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5899 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5902 case $am_py_exec_prefix in
5903 /usr|/System*) ;;
5905 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5907 esac
5909 esac
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5913 $as_echo "$am_cv_python_pyexecdir" >&6; }
5914 pyexecdir=$am_cv_python_pyexecdir
5918 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
5928 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
5929 if ${ac_cv_lib_png_png_read_png+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 ac_check_lib_save_LIBS=$LIBS
5933 LIBS="-lpng $LIBS"
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5937 /* Override any GCC internal prototype to avoid an error.
5938 Use char because int might match the return type of a GCC
5939 builtin and then its argument prototype would still apply. */
5940 #ifdef __cplusplus
5941 extern "C"
5942 #endif
5943 char png_read_png ();
5945 main ()
5947 return png_read_png ();
5949 return 0;
5951 _ACEOF
5952 if ac_fn_c_try_link "$LINENO"; then :
5953 ac_cv_lib_png_png_read_png=yes
5954 else
5955 ac_cv_lib_png_png_read_png=no
5957 rm -f core conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
5962 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
5963 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
5964 cat >>confdefs.h <<_ACEOF
5965 #define HAVE_LIBPNG 1
5966 _ACEOF
5968 LIBS="-lpng $LIBS"
5972 if test "$ac_cv_lib_png_png_read_png" = ""; then
5973 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
5976 FOR=for
5978 IF=if
5980 TEST=test
5982 CMP=cmp
5986 # Check for some includes for the X11 HIDD and the kernel
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5990 if ${ac_cv_path_GREP+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if test -z "$GREP"; then
5994 ac_path_GREP_found=false
5995 # Loop through the user's path and test for each of PROGNAME-LIST
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_prog in grep ggrep; do
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6004 as_fn_executable_p "$ac_path_GREP" || continue
6005 # Check for GNU ac_path_GREP and select it if it is found.
6006 # Check for GNU $ac_path_GREP
6007 case `"$ac_path_GREP" --version 2>&1` in
6008 *GNU*)
6009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6011 ac_count=0
6012 $as_echo_n 0123456789 >"conftest.in"
6013 while :
6015 cat "conftest.in" "conftest.in" >"conftest.tmp"
6016 mv "conftest.tmp" "conftest.in"
6017 cp "conftest.in" "conftest.nl"
6018 $as_echo 'GREP' >> "conftest.nl"
6019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6021 as_fn_arith $ac_count + 1 && ac_count=$as_val
6022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6023 # Best one so far, save it but keep looking for a better one
6024 ac_cv_path_GREP="$ac_path_GREP"
6025 ac_path_GREP_max=$ac_count
6027 # 10*(2^10) chars as input seems more than enough
6028 test $ac_count -gt 10 && break
6029 done
6030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6031 esac
6033 $ac_path_GREP_found && break 3
6034 done
6035 done
6036 done
6037 IFS=$as_save_IFS
6038 if test -z "$ac_cv_path_GREP"; then
6039 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6041 else
6042 ac_cv_path_GREP=$GREP
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6047 $as_echo "$ac_cv_path_GREP" >&6; }
6048 GREP="$ac_cv_path_GREP"
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6052 $as_echo_n "checking for egrep... " >&6; }
6053 if ${ac_cv_path_EGREP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6057 then ac_cv_path_EGREP="$GREP -E"
6058 else
6059 if test -z "$EGREP"; then
6060 ac_path_EGREP_found=false
6061 # Loop through the user's path and test for each of PROGNAME-LIST
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_prog in egrep; do
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6070 as_fn_executable_p "$ac_path_EGREP" || continue
6071 # Check for GNU ac_path_EGREP and select it if it is found.
6072 # Check for GNU $ac_path_EGREP
6073 case `"$ac_path_EGREP" --version 2>&1` in
6074 *GNU*)
6075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6077 ac_count=0
6078 $as_echo_n 0123456789 >"conftest.in"
6079 while :
6081 cat "conftest.in" "conftest.in" >"conftest.tmp"
6082 mv "conftest.tmp" "conftest.in"
6083 cp "conftest.in" "conftest.nl"
6084 $as_echo 'EGREP' >> "conftest.nl"
6085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087 as_fn_arith $ac_count + 1 && ac_count=$as_val
6088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6089 # Best one so far, save it but keep looking for a better one
6090 ac_cv_path_EGREP="$ac_path_EGREP"
6091 ac_path_EGREP_max=$ac_count
6093 # 10*(2^10) chars as input seems more than enough
6094 test $ac_count -gt 10 && break
6095 done
6096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097 esac
6099 $ac_path_EGREP_found && break 3
6100 done
6101 done
6102 done
6103 IFS=$as_save_IFS
6104 if test -z "$ac_cv_path_EGREP"; then
6105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6107 else
6108 ac_cv_path_EGREP=$EGREP
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6114 $as_echo "$ac_cv_path_EGREP" >&6; }
6115 EGREP="$ac_cv_path_EGREP"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6119 $as_echo_n "checking for ANSI C header files... " >&6; }
6120 if ${ac_cv_header_stdc+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6126 #include <stdarg.h>
6127 #include <string.h>
6128 #include <float.h>
6131 main ()
6135 return 0;
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_cv_header_stdc=yes
6140 else
6141 ac_cv_header_stdc=no
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 if test $ac_cv_header_stdc = yes; then
6146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <string.h>
6151 _ACEOF
6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153 $EGREP "memchr" >/dev/null 2>&1; then :
6155 else
6156 ac_cv_header_stdc=no
6158 rm -f conftest*
6162 if test $ac_cv_header_stdc = yes; then
6163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <stdlib.h>
6168 _ACEOF
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "free" >/dev/null 2>&1; then :
6172 else
6173 ac_cv_header_stdc=no
6175 rm -f conftest*
6179 if test $ac_cv_header_stdc = yes; then
6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then :
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 #include <ctype.h>
6187 #include <stdlib.h>
6188 #if ((' ' & 0x0FF) == 0x020)
6189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6191 #else
6192 # define ISLOWER(c) \
6193 (('a' <= (c) && (c) <= 'i') \
6194 || ('j' <= (c) && (c) <= 'r') \
6195 || ('s' <= (c) && (c) <= 'z'))
6196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6197 #endif
6199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6201 main ()
6203 int i;
6204 for (i = 0; i < 256; i++)
6205 if (XOR (islower (i), ISLOWER (i))
6206 || toupper (i) != TOUPPER (i))
6207 return 2;
6208 return 0;
6210 _ACEOF
6211 if ac_fn_c_try_run "$LINENO"; then :
6213 else
6214 ac_cv_header_stdc=no
6216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6217 conftest.$ac_objext conftest.beam conftest.$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6223 $as_echo "$ac_cv_header_stdc" >&6; }
6224 if test $ac_cv_header_stdc = yes; then
6226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6232 inttypes.h stdint.h unistd.h
6233 do :
6234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6238 cat >>confdefs.h <<_ACEOF
6239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6244 done
6247 for ac_header in sys/ipc.h sys/shm.h \
6248 sys/mmap.h sys/mman.h sysexits.h \
6249 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6251 do :
6252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6255 cat >>confdefs.h <<_ACEOF
6256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 _ACEOF
6261 done
6264 for ac_header in sys/mount.h
6265 do :
6266 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6268 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6269 cat >>confdefs.h <<_ACEOF
6270 #define HAVE_SYS_MOUNT_H 1
6271 _ACEOF
6275 done
6278 ac_header_dirent=no
6279 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6280 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6282 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6283 if eval \${$as_ac_Header+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <sys/types.h>
6289 #include <$ac_hdr>
6292 main ()
6294 if ((DIR *) 0)
6295 return 0;
6297 return 0;
6299 _ACEOF
6300 if ac_fn_c_try_compile "$LINENO"; then :
6301 eval "$as_ac_Header=yes"
6302 else
6303 eval "$as_ac_Header=no"
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 eval ac_res=\$$as_ac_Header
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6309 $as_echo "$ac_res" >&6; }
6310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6311 cat >>confdefs.h <<_ACEOF
6312 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6313 _ACEOF
6315 ac_header_dirent=$ac_hdr; break
6318 done
6319 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6320 if test $ac_header_dirent = dirent.h; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6322 $as_echo_n "checking for library containing opendir... " >&6; }
6323 if ${ac_cv_search_opendir+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 ac_func_search_save_LIBS=$LIBS
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6330 /* Override any GCC internal prototype to avoid an error.
6331 Use char because int might match the return type of a GCC
6332 builtin and then its argument prototype would still apply. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 char opendir ();
6338 main ()
6340 return opendir ();
6342 return 0;
6344 _ACEOF
6345 for ac_lib in '' dir; do
6346 if test -z "$ac_lib"; then
6347 ac_res="none required"
6348 else
6349 ac_res=-l$ac_lib
6350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6352 if ac_fn_c_try_link "$LINENO"; then :
6353 ac_cv_search_opendir=$ac_res
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext
6357 if ${ac_cv_search_opendir+:} false; then :
6358 break
6360 done
6361 if ${ac_cv_search_opendir+:} false; then :
6363 else
6364 ac_cv_search_opendir=no
6366 rm conftest.$ac_ext
6367 LIBS=$ac_func_search_save_LIBS
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6370 $as_echo "$ac_cv_search_opendir" >&6; }
6371 ac_res=$ac_cv_search_opendir
6372 if test "$ac_res" != no; then :
6373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6379 $as_echo_n "checking for library containing opendir... " >&6; }
6380 if ${ac_cv_search_opendir+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 ac_func_search_save_LIBS=$LIBS
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6387 /* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
6390 #ifdef __cplusplus
6391 extern "C"
6392 #endif
6393 char opendir ();
6395 main ()
6397 return opendir ();
6399 return 0;
6401 _ACEOF
6402 for ac_lib in '' x; do
6403 if test -z "$ac_lib"; then
6404 ac_res="none required"
6405 else
6406 ac_res=-l$ac_lib
6407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6409 if ac_fn_c_try_link "$LINENO"; then :
6410 ac_cv_search_opendir=$ac_res
6412 rm -f core conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext
6414 if ${ac_cv_search_opendir+:} false; then :
6415 break
6417 done
6418 if ${ac_cv_search_opendir+:} false; then :
6420 else
6421 ac_cv_search_opendir=no
6423 rm conftest.$ac_ext
6424 LIBS=$ac_func_search_save_LIBS
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6427 $as_echo "$ac_cv_search_opendir" >&6; }
6428 ac_res=$ac_cv_search_opendir
6429 if test "$ac_res" != no; then :
6430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6437 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6438 if ${ac_cv_header_stat_broken+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6444 #include <sys/stat.h>
6446 #if defined S_ISBLK && defined S_IFDIR
6447 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6448 #endif
6450 #if defined S_ISBLK && defined S_IFCHR
6451 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6452 #endif
6454 #if defined S_ISLNK && defined S_IFREG
6455 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6456 #endif
6458 #if defined S_ISSOCK && defined S_IFREG
6459 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6460 #endif
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 ac_cv_header_stat_broken=no
6465 else
6466 ac_cv_header_stat_broken=yes
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6471 $as_echo "$ac_cv_header_stat_broken" >&6; }
6472 if test $ac_cv_header_stat_broken = yes; then
6474 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6479 $as_echo_n "checking for ANSI C header files... " >&6; }
6480 if ${ac_cv_header_stdc+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 #include <stdlib.h>
6486 #include <stdarg.h>
6487 #include <string.h>
6488 #include <float.h>
6491 main ()
6495 return 0;
6497 _ACEOF
6498 if ac_fn_c_try_compile "$LINENO"; then :
6499 ac_cv_header_stdc=yes
6500 else
6501 ac_cv_header_stdc=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 if test $ac_cv_header_stdc = yes; then
6506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <string.h>
6511 _ACEOF
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "memchr" >/dev/null 2>&1; then :
6515 else
6516 ac_cv_header_stdc=no
6518 rm -f conftest*
6522 if test $ac_cv_header_stdc = yes; then
6523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #include <stdlib.h>
6528 _ACEOF
6529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6530 $EGREP "free" >/dev/null 2>&1; then :
6532 else
6533 ac_cv_header_stdc=no
6535 rm -f conftest*
6539 if test $ac_cv_header_stdc = yes; then
6540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6541 if test "$cross_compiling" = yes; then :
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 #include <ctype.h>
6547 #include <stdlib.h>
6548 #if ((' ' & 0x0FF) == 0x020)
6549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6551 #else
6552 # define ISLOWER(c) \
6553 (('a' <= (c) && (c) <= 'i') \
6554 || ('j' <= (c) && (c) <= 'r') \
6555 || ('s' <= (c) && (c) <= 'z'))
6556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6557 #endif
6559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561 main ()
6563 int i;
6564 for (i = 0; i < 256; i++)
6565 if (XOR (islower (i), ISLOWER (i))
6566 || toupper (i) != TOUPPER (i))
6567 return 2;
6568 return 0;
6570 _ACEOF
6571 if ac_fn_c_try_run "$LINENO"; then :
6573 else
6574 ac_cv_header_stdc=no
6576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6577 conftest.$ac_objext conftest.beam conftest.$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6583 $as_echo "$ac_cv_header_stdc" >&6; }
6584 if test $ac_cv_header_stdc = yes; then
6586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6591 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6592 if ${ac_cv_header_sys_wait_h+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 #include <sys/wait.h>
6599 #ifndef WEXITSTATUS
6600 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6601 #endif
6602 #ifndef WIFEXITED
6603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6604 #endif
6607 main ()
6609 int s;
6610 wait (&s);
6611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 ac_cv_header_sys_wait_h=yes
6618 else
6619 ac_cv_header_sys_wait_h=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6624 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6625 if test $ac_cv_header_sys_wait_h = yes; then
6627 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6632 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6633 if ${ac_cv_header_time+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #include <sys/types.h>
6639 #include <sys/time.h>
6640 #include <time.h>
6643 main ()
6645 if ((struct tm *) 0)
6646 return 0;
6648 return 0;
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"; then :
6652 ac_cv_header_time=yes
6653 else
6654 ac_cv_header_time=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6659 $as_echo "$ac_cv_header_time" >&6; }
6660 if test $ac_cv_header_time = yes; then
6662 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6666 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6667 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6669 cat >>confdefs.h <<_ACEOF
6670 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6671 _ACEOF
6674 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6679 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6680 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6682 cat >>confdefs.h <<_ACEOF
6683 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6684 _ACEOF
6687 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6689 else
6690 case " $LIBOBJS " in
6691 *" fileblocks.$ac_objext "* ) ;;
6692 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6694 esac
6699 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6700 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_STRUCT_STAT_ST_RDEV 1
6704 _ACEOF
6707 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6713 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6714 if ${ac_cv_struct_tm+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <sys/types.h>
6720 #include <time.h>
6723 main ()
6725 struct tm tm;
6726 int *p = &tm.tm_sec;
6727 return !p;
6729 return 0;
6731 _ACEOF
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 ac_cv_struct_tm=time.h
6734 else
6735 ac_cv_struct_tm=sys/time.h
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6740 $as_echo "$ac_cv_struct_tm" >&6; }
6741 if test $ac_cv_struct_tm = sys/time.h; then
6743 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6747 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6748 #include <$ac_cv_struct_tm>
6751 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_STRUCT_TM_TM_ZONE 1
6755 _ACEOF
6760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6762 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6764 else
6765 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6767 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6768 ac_have_decl=1
6769 else
6770 ac_have_decl=0
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_DECL_TZNAME $ac_have_decl
6775 _ACEOF
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6778 $as_echo_n "checking for tzname... " >&6; }
6779 if ${ac_cv_var_tzname+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <time.h>
6785 #if !HAVE_DECL_TZNAME
6786 extern char *tzname[];
6787 #endif
6790 main ()
6792 return tzname[0][0];
6794 return 0;
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 ac_cv_var_tzname=yes
6799 else
6800 ac_cv_var_tzname=no
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6806 $as_echo "$ac_cv_var_tzname" >&6; }
6807 if test $ac_cv_var_tzname = yes; then
6809 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6814 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6815 if test "x$ac_cv_type_off_t" = xyes; then :
6817 else
6819 cat >>confdefs.h <<_ACEOF
6820 #define off_t long int
6821 _ACEOF
6825 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_pid_t" = xyes; then :
6828 else
6830 cat >>confdefs.h <<_ACEOF
6831 #define pid_t int
6832 _ACEOF
6836 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6837 if test "x$ac_cv_type_size_t" = xyes; then :
6839 else
6841 cat >>confdefs.h <<_ACEOF
6842 #define size_t unsigned int
6843 _ACEOF
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6848 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6849 if ${ac_cv_type_uid_t+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <sys/types.h>
6856 _ACEOF
6857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858 $EGREP "uid_t" >/dev/null 2>&1; then :
6859 ac_cv_type_uid_t=yes
6860 else
6861 ac_cv_type_uid_t=no
6863 rm -f conftest*
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6867 $as_echo "$ac_cv_type_uid_t" >&6; }
6868 if test $ac_cv_type_uid_t = no; then
6870 $as_echo "#define uid_t int" >>confdefs.h
6873 $as_echo "#define gid_t int" >>confdefs.h
6878 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6879 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6881 cat >>confdefs.h <<_ACEOF
6882 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6883 _ACEOF
6889 # Look for some functions
6890 for ac_func in getpagesize kqueue statfs statvfs \
6891 clone kse_create rfork_thread thr_create sa_register \
6892 getcontext makecontext setcontext sigaltstack swapcontext
6893 do :
6894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6896 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6897 cat >>confdefs.h <<_ACEOF
6898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6899 _ACEOF
6902 done
6908 for ac_header in $ac_header_list
6909 do :
6910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6911 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6913 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6914 cat >>confdefs.h <<_ACEOF
6915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6916 _ACEOF
6920 done
6929 for ac_func in getpagesize
6930 do :
6931 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6932 if test "x$ac_cv_func_getpagesize" = xyes; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_GETPAGESIZE 1
6935 _ACEOF
6938 done
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6941 $as_echo_n "checking for working mmap... " >&6; }
6942 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test "$cross_compiling" = yes; then :
6946 ac_cv_func_mmap_fixed_mapped=no
6947 else
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 /* malloc might have been renamed as rpl_malloc. */
6952 #undef malloc
6954 /* Thanks to Mike Haertel and Jim Avera for this test.
6955 Here is a matrix of mmap possibilities:
6956 mmap private not fixed
6957 mmap private fixed at somewhere currently unmapped
6958 mmap private fixed at somewhere already mapped
6959 mmap shared not fixed
6960 mmap shared fixed at somewhere currently unmapped
6961 mmap shared fixed at somewhere already mapped
6962 For private mappings, we should verify that changes cannot be read()
6963 back from the file, nor mmap's back from the file at a different
6964 address. (There have been systems where private was not correctly
6965 implemented like the infamous i386 svr4.0, and systems where the
6966 VM page cache was not coherent with the file system buffer cache
6967 like early versions of FreeBSD and possibly contemporary NetBSD.)
6968 For shared mappings, we should conversely verify that changes get
6969 propagated back to all the places they're supposed to be.
6971 Grep wants private fixed already mapped.
6972 The main things grep needs to know about mmap are:
6973 * does it exist and is it safe to write into the mmap'd area
6974 * how to use it (BSD variants) */
6976 #include <fcntl.h>
6977 #include <sys/mman.h>
6979 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6980 char *malloc ();
6981 #endif
6983 /* This mess was copied from the GNU getpagesize.h. */
6984 #ifndef HAVE_GETPAGESIZE
6985 # ifdef _SC_PAGESIZE
6986 # define getpagesize() sysconf(_SC_PAGESIZE)
6987 # else /* no _SC_PAGESIZE */
6988 # ifdef HAVE_SYS_PARAM_H
6989 # include <sys/param.h>
6990 # ifdef EXEC_PAGESIZE
6991 # define getpagesize() EXEC_PAGESIZE
6992 # else /* no EXEC_PAGESIZE */
6993 # ifdef NBPG
6994 # define getpagesize() NBPG * CLSIZE
6995 # ifndef CLSIZE
6996 # define CLSIZE 1
6997 # endif /* no CLSIZE */
6998 # else /* no NBPG */
6999 # ifdef NBPC
7000 # define getpagesize() NBPC
7001 # else /* no NBPC */
7002 # ifdef PAGESIZE
7003 # define getpagesize() PAGESIZE
7004 # endif /* PAGESIZE */
7005 # endif /* no NBPC */
7006 # endif /* no NBPG */
7007 # endif /* no EXEC_PAGESIZE */
7008 # else /* no HAVE_SYS_PARAM_H */
7009 # define getpagesize() 8192 /* punt totally */
7010 # endif /* no HAVE_SYS_PARAM_H */
7011 # endif /* no _SC_PAGESIZE */
7013 #endif /* no HAVE_GETPAGESIZE */
7016 main ()
7018 char *data, *data2, *data3;
7019 const char *cdata2;
7020 int i, pagesize;
7021 int fd, fd2;
7023 pagesize = getpagesize ();
7025 /* First, make a file with some known garbage in it. */
7026 data = (char *) malloc (pagesize);
7027 if (!data)
7028 return 1;
7029 for (i = 0; i < pagesize; ++i)
7030 *(data + i) = rand ();
7031 umask (0);
7032 fd = creat ("conftest.mmap", 0600);
7033 if (fd < 0)
7034 return 2;
7035 if (write (fd, data, pagesize) != pagesize)
7036 return 3;
7037 close (fd);
7039 /* Next, check that the tail of a page is zero-filled. File must have
7040 non-zero length, otherwise we risk SIGBUS for entire page. */
7041 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7042 if (fd2 < 0)
7043 return 4;
7044 cdata2 = "";
7045 if (write (fd2, cdata2, 1) != 1)
7046 return 5;
7047 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7048 if (data2 == MAP_FAILED)
7049 return 6;
7050 for (i = 0; i < pagesize; ++i)
7051 if (*(data2 + i))
7052 return 7;
7053 close (fd2);
7054 if (munmap (data2, pagesize))
7055 return 8;
7057 /* Next, try to mmap the file at a fixed address which already has
7058 something else allocated at it. If we can, also make sure that
7059 we see the same garbage. */
7060 fd = open ("conftest.mmap", O_RDWR);
7061 if (fd < 0)
7062 return 9;
7063 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7065 return 10;
7066 for (i = 0; i < pagesize; ++i)
7067 if (*(data + i) != *(data2 + i))
7068 return 11;
7070 /* Finally, make sure that changes to the mapped area do not
7071 percolate back to the file as seen by read(). (This is a bug on
7072 some variants of i386 svr4.0.) */
7073 for (i = 0; i < pagesize; ++i)
7074 *(data2 + i) = *(data2 + i) + 1;
7075 data3 = (char *) malloc (pagesize);
7076 if (!data3)
7077 return 12;
7078 if (read (fd, data3, pagesize) != pagesize)
7079 return 13;
7080 for (i = 0; i < pagesize; ++i)
7081 if (*(data + i) != *(data3 + i))
7082 return 14;
7083 close (fd);
7084 return 0;
7086 _ACEOF
7087 if ac_fn_c_try_run "$LINENO"; then :
7088 ac_cv_func_mmap_fixed_mapped=yes
7089 else
7090 ac_cv_func_mmap_fixed_mapped=no
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7093 conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7098 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7099 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7101 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7104 rm -f conftest.mmap conftest.txt
7109 aros_config_cflags="-Wall -Werror-implicit-function-declaration -Wno-parentheses"
7110 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7111 aros_config_ldflags=""
7113 aros_shared_default=yes
7115 aros_shared_cflags="-fPIC"
7116 aros_shared_aflags=""
7117 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7118 aros_kernel_ldflags="-Wl,-rpath,./lib"
7120 aros_kernel_ar_flags="cr"
7121 aros_target_ar_flags="cr"
7122 aros_target_nm_flags="-C -ul"
7123 aros_target_strip_flags="--strip-unneeded -R.comment"
7125 aros_compiler_libs=
7126 aros_arch_libs=
7128 aros_target_genmap="-Wl,-Map -Xlinker"
7130 # Native flavour stuff
7131 aros_serial_debug="0"
7133 # Palm native flavour stuff
7134 aros_palm_debug_hack="0"
7136 # Unix flavour stuff
7137 aros_nesting_supervisor="0"
7139 # Collect-aros stuff: "-ius" to ignore undefined symbols
7140 ignore_undefined_symbols=""
7142 # Check for X11 by default
7143 need_x11="auto"
7145 host_x_gfx=no
7146 host_sdl_gfx=no
7147 host_android_gfx=no
7149 #-----------------------------------------------------------------------------
7152 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7153 # it switched on by default, and we use the host compiler, so it compiles AROS
7154 # code with this enabled resulting in link failures as we don't have support
7155 # for it.
7157 # We use two methods to disable it. For the host compiler (used to compile
7158 # some hosted modules), we test to see if the compiler supports stack
7159 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7160 # work on all platforms.
7162 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7163 # (this is done unconditionally, as it should have no effect on compilers
7164 # without the stack protection feature). This may be specific to the way that
7165 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7166 # strong enough to disable it in a generic way though, so we'll live with it
7167 # until another vendor ships GCC with it enabled in a different way, and deal
7168 # with it then.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7172 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7173 save_cflags="$CFLAGS"
7174 CFLAGS="$CFLAGS -fno-stack-protector"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7179 main ()
7183 return 0;
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"; then :
7187 use_no_stack_protector="yes"
7188 else
7189 use_no_stack_protector="no"
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7193 $as_echo "$use_no_stack_protector" >&6; }
7194 if test "x-$use_no_stack_protector" = "x-yes" ; then
7195 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7197 CFLAGS="$save_cflags"
7199 #-----------------------------------------------------------------------------
7201 # Disable pointer-signedness warnings if the compiler recognises the option
7202 # (this only works for the host compiler at the moment)
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7205 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7206 save_cflags="$CFLAGS"
7207 CFLAGS="$CFLAGS -Wno-pointer-sign"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7212 main ()
7216 return 0;
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"; then :
7220 use_no_sign_warning="yes"
7221 else
7222 use_no_sign_warning="no"
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7226 $as_echo "$use_no_sign_warning" >&6; }
7227 if test "x-$use_no_sign_warning" = "x-yes" ; then
7228 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7230 CFLAGS="$save_cflags"
7232 #-----------------------------------------------------------------------------
7234 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7237 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7238 save_cflags="$CFLAGS"
7239 CFLAGS="$CFLAGS -fgnu89-inline"
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7244 main ()
7248 return 0;
7250 _ACEOF
7251 if ac_fn_c_try_compile "$LINENO"; then :
7252 use_gnu89_inline="yes"
7253 else
7254 use_gnu89_inline="no"
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7258 $as_echo "$use_gnu89_inline" >&6; }
7259 if test "x-$use_gnu89_inline" = "x-yes" ; then
7260 gnu89_inline="-fgnu89-inline"
7262 CFLAGS="$save_cflags"
7264 #-----------------------------------------------------------------------------
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7267 $as_echo_n "checking for type of build... " >&6; }
7268 # Check whether --enable-build_type was given.
7269 if test "${enable_build_type+set}" = set; then :
7270 enableval=$enable_build_type; build_type=$enableval
7271 else
7272 build_type="personal"
7276 if test "$build_type" = "nightly"; then
7277 build_type_string="NIGHTLY"
7278 elif test "$build_type" = "snapshot"; then
7279 build_type_string="SNAPSHOT"
7280 elif test "$build_type" = "milestone"; then
7281 build_type_string="MILESTONE"
7282 elif test "$build_type" = "release"; then
7283 build_type_string="RELEASE"
7284 else
7285 build_type_string="PERSONAL"
7286 build_type="personal"
7289 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7292 $as_echo "$build_type" >&6; }
7294 #-----------------------------------------------------------------------------
7295 all_debug_types="messages stack modules mungwall symbols"
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7298 $as_echo_n "checking which debug types to enable... " >&6; }
7299 # Check whether --enable-debug was given.
7300 if test "${enable_debug+set}" = set; then :
7301 enableval=$enable_debug; debug="$enableval"
7302 else
7303 debug=""
7307 if test "$debug" = "" -o "$debug" = "no"; then
7308 debug="none"
7309 elif test "$debug" = "yes"; then
7310 debug="all"
7313 if test "$debug" = "all" ; then
7314 debug="messages stack modules symbols"
7315 for d in $all_debug_types; do
7316 export aros_${d}_debug="1"
7317 done
7318 else
7319 for d in $all_debug_types; do
7320 export aros_${d}_debug="0"
7321 done
7324 if test "$debug" != "none"; then
7325 debug=`echo $debug | sed s/,/\ /g`
7326 for d in $debug; do
7327 found="0"
7328 for d2 in $all_debug_types; do
7329 if test "$d2" = "$d"; then
7330 found="1"
7331 break
7333 done
7334 if test "$found" = "0"; then
7335 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7337 export aros_${d}_debug="1"
7338 done
7339 aros_debug="yes"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7342 $as_echo "$debug" >&6; }
7344 if test "$aros_messages_debug" = "1"; then
7345 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7346 else
7347 aros_messages_debug=""
7349 if test "$aros_symbols_debug" = "1"; then
7350 aros_symbols_debug="-g"
7351 else
7352 aros_symbols_debug=""
7355 # These are the flags to pass when compiling debugged programs
7356 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7357 aros_debug_aflags=""
7358 aros_debug_ldflags="$aros_symbols_debug"
7360 #-----------------------------------------------------------------------------
7361 # Checking for distcc and ccache.
7363 # Always apply the transforms in this particular order. Basically you should
7364 # always run 'ccache distcc compiler' in that order for the best performance.
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7367 $as_echo_n "checking whether to enable distcc... " >&6; }
7368 # Check whether --enable-distcc was given.
7369 if test "${enable_distcc+set}" = set; then :
7370 enableval=$enable_distcc; distcc="$enableval"
7371 else
7372 distcc="no"
7375 if test "$distcc" != "" -a "$distcc" != "no"; then
7376 # AC_CHECK_PROG will print out the result in this case
7377 # Extract the first word of "distcc", so it can be a program name with args.
7378 set dummy distcc; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_path_DISTCC+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 case $DISTCC in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7400 done
7401 done
7402 IFS=$as_save_IFS
7404 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7406 esac
7408 DISTCC=$ac_cv_path_DISTCC
7409 if test -n "$DISTCC"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7411 $as_echo "$DISTCC" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7424 $as_echo_n "checking whether to enable ccache... " >&6; }
7425 # Check whether --enable-ccache was given.
7426 if test "${enable_ccache+set}" = set; then :
7427 enableval=$enable_ccache; ccache="$enableval"
7428 else
7429 ccache="no"
7432 if test "$ccache" != "" -a "$ccache" != "no"; then
7433 # AC_CHECK_PROG will print out the result in this case
7434 # Extract the first word of "ccache", so it can be a program name with args.
7435 set dummy ccache; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_CCACHE+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$CCACHE"; then
7442 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_CCACHE="ccache"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 CCACHE=$ac_cv_prog_CCACHE
7462 if test -n "$CCACHE"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7464 $as_echo "$CCACHE" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7476 #-----------------------------------------------------------------------------
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7478 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7480 # Check whether --with-kernel-gcc-version was given.
7481 if test "${with_kernel_gcc_version+set}" = set; then :
7482 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7483 else
7484 kernel_tool_version=""
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7488 $as_echo "$kernel_tool_version" >&6; }
7490 #-----------------------------------------------------------------------------
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7492 $as_echo_n "checking what optimization flags to use... " >&6; }
7494 # Check whether --with-optimization was given.
7495 if test "${with_optimization+set}" = set; then :
7496 withval=$with_optimization; optimization="$withval"
7497 else
7498 optimization="unknown"
7501 if test "$optimization" = "unknown"; then
7502 if test "$debug" != "none"; then
7503 optimization="-O0"
7504 else
7505 optimization="-O2"
7508 aros_optimization_cflags="$optimization"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7510 $as_echo "$optimization" >&6; }
7512 #-----------------------------------------------------------------------------
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7514 $as_echo_n "checking what paranoia flags to use... " >&6; }
7516 # Check whether --with-paranoia was given.
7517 if test "${with_paranoia+set}" = set; then :
7518 withval=$with_paranoia; paranoia_flags="$withval"
7519 else
7520 paranoia_flags="default"
7523 if test "$paranoia_flags" = "default"; then
7524 paranoia_flags=""
7525 else if test "$paranoia_flags" = "yes"; then
7526 paranoia_flags="-Wall -Werror"
7527 fi fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7529 $as_echo "$paranoia_flags" >&6; }
7530 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7532 #-----------------------------------------------------------------------------
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7534 $as_echo_n "checking what target variant to enable... " >&6; }
7535 # Check whether --enable-target_variant was given.
7536 if test "${enable_target_variant+set}" = set; then :
7537 enableval=$enable_target_variant; target_variant=$enableval
7538 else
7539 target_variant=""
7542 if test "$target_variant" = ""; then
7543 aros_target_variant=""
7544 aros_target_suffix=""
7545 enableval="none"
7546 else
7547 aros_target_variant="$target_variant"
7548 aros_target_suffix="-$target_variant"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7551 $as_echo "$enableval" >&6; }
7553 #-----------------------------------------------------------------------------
7554 # Target-specific defaults. You can override then on a per-target basis.
7556 # Bootloader name. Currently used by PC target.
7557 target_bootloader="none"
7558 ENABLE_EXECSMP=
7560 #-----------------------------------------------------------------------------
7561 # Additional options for some specific targets
7563 case "$aros_target_variant" in
7564 ios)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7566 $as_echo_n "checking XCode path... " >&6; }
7568 # Check whether --with-xcode was given.
7569 if test "${with_xcode+set}" = set; then :
7570 withval=$with_xcode; aros_xcode_path="$withval"
7571 else
7572 aros_xcode_path="/Developer"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7576 $as_echo "$aros_xcode_path" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7579 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7581 # Check whether --with-sdk-version was given.
7582 if test "${with_sdk_version+set}" = set; then :
7583 withval=$with_sdk_version; aros_sdk_version="$withval"
7584 else
7585 aros_sdk_version="4.1"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7589 $as_echo "$aros_sdk_version" >&6; }
7593 "android")
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7595 $as_echo_n "checking Android SDK path... " >&6; }
7597 # Check whether --with-sdk was given.
7598 if test "${with_sdk+set}" = set; then :
7599 withval=$with_sdk; aros_android_sdk="$withval"
7600 else
7601 aros_android_sdk=$default_android_sdk
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7605 $as_echo "$aros_android_sdk" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7608 $as_echo_n "checking Android NDK path... " >&6; }
7610 # Check whether --with-ndk was given.
7611 if test "${with_ndk+set}" = set; then :
7612 withval=$with_ndk; aros_android_ndk="$withval"
7613 else
7614 aros_android_ndk="none"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7618 $as_echo "$aros_android_ndk" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7621 $as_echo_n "checking what Android SDK version to use... " >&6; }
7623 # Check whether --with-sdk-version was given.
7624 if test "${with_sdk_version+set}" = set; then :
7625 withval=$with_sdk_version; aros_sdk_version="$withval"
7626 else
7627 aros_sdk_version="12"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7631 $as_echo "$aros_sdk_version" >&6; }
7633 aros_android_level=android-$aros_sdk_version
7634 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7635 echo "Platform $aros_android_level is not installed in your SDK"
7636 echo "Use --with-sdk-version=<API level number> to select another platform version"
7637 echo "You can check what plaform versions are installed in your SDK"
7638 echo "by examining contents of $aros_android_sdk/platforms directory"
7639 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7642 export PATH="$aros_android_sdk/tools:$PATH"
7643 # Extract the first word of "$android_tool", so it can be a program name with args.
7644 set dummy $android_tool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_path_android_tool+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 case $android_tool in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7666 done
7667 done
7668 IFS=$as_save_IFS
7671 esac
7673 android_tool=$ac_cv_path_android_tool
7674 if test -n "$android_tool"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7676 $as_echo "$android_tool" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7683 if test "$android_tool" = ""; then
7684 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7687 if test "$aros_android_ndk" != "none"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7689 $as_echo_n "checking what Android NDK version to use... " >&6; }
7691 # Check whether --with-ndk-version was given.
7692 if test "${with_ndk_version+set}" = set; then :
7693 withval=$with_ndk_version; aros_ndk_version="$withval"
7694 else
7695 aros_ndk_version="9"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7699 $as_echo "$aros_ndk_version" >&6; }
7702 # Extract the first word of "ant", so it can be a program name with args.
7703 set dummy ant; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_path_ant+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 case $ant in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7730 esac
7732 ant=$ac_cv_path_ant
7733 if test -n "$ant"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7735 $as_echo "$ant" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7742 if test "$ant" = ""; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7744 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7748 $as_echo_n "checking Build debug or release apk... " >&6; }
7750 # Check whether --with-apk-version was given.
7751 if test "${with_apk_version+set}" = set; then :
7752 withval=$with_apk_version; aros_android_antapk=$withval
7753 else
7754 aros_android_antapk=release
7757 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7758 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7761 $as_echo "$aros_android_antapk" >&6; }
7763 if test "$host_os" = "mingw32"; then
7764 android_tool="cmd //c $android_tool"
7767 need_dlopen="no"
7770 esac
7772 #-----------------------------------------------------------------------------
7773 # External toolchains
7774 kernel_tool_prefix="none"
7775 aros_tool_prefix="none"
7776 elf_tool_prefix="${target_cpu}-elf-"
7778 # This is the target configuration switch.
7779 case "$target_os" in
7780 linux*)
7781 aros_target_arch="linux"
7782 aros_target_family="unix"
7783 case "$target_cpu" in
7784 *m68k*)
7785 aros_target_cpu="m68k"
7786 aros_object_format="m68kelf"
7787 aros_flavour="emulcompat"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7789 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7790 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7791 gcc_target_cpu="mc68000"
7793 *i?86*)
7794 aros_target_cpu="i386"
7795 aros_object_format="elf_i386"
7796 aros_flavour="emulation"
7797 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7798 aros_kernel_ldflags="-Wl,-melf_i386"
7799 aros_nominal_depth=8
7800 gcc_target_cpu="i386"
7801 pci_hidd_target="hidd-pci-linux"
7802 android_tool_dir_prefix="x86"
7803 android_tool_prefix="i686-android-linux"
7804 android_ndk_arch="x86"
7806 *x86_64*)
7807 aros_target_cpu="x86_64"
7808 aros_object_format="elf_x86_64"
7809 aros_flavour="emulation"
7810 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7811 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
7812 aros_nominal_depth=8
7813 pci_hidd_target="hidd-pci-linux"
7815 *powerpc*)
7816 aros_target_cpu="ppc"
7817 aros_object_format="elf32ppc"
7818 aros_flavour="emulation"
7819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7820 aros_nominal_depth=8
7821 gcc_target_cpu="ppc"
7823 # TODO
7824 # Same as powerpc, but I need this for the nightly build to work again.
7825 # Actually, the nightly should be made working with powerpc target.
7826 # That just was too much work for the moment, another week or two.
7827 *ppc*)
7828 aros_target_cpu="ppc"
7829 aros_object_format="elf32ppc"
7830 aros_flavour="emulation"
7831 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7832 aros_nominal_depth=8
7833 gcc_target_cpu="ppc"
7835 *armhf*)
7836 aros_target_cpu="arm"
7837 target_cpu="arm"
7838 aros_object_format="armelf_aros"
7839 aros_flavour="emulation"
7840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7841 gcc_target_cpu="arm"
7842 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7843 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7844 aros_arch_libs="-laeabi"
7845 gcc_default_float_abi="hard"
7846 android_tool_dir_prefix="arm-linux-androideabi"
7847 android_tool_prefix="arm-linux-androideabi"
7848 android_ndk_arch="arm"
7849 kernel_tool_prefix="arm-linux-gnueabihf-"
7851 *arm*)
7852 aros_target_cpu="arm"
7853 aros_object_format="armelf_aros"
7854 aros_flavour="emulation"
7855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7856 gcc_target_cpu="arm"
7857 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7858 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7859 aros_arch_libs="-laeabi"
7860 android_tool_dir_prefix="arm-linux-androideabi"
7861 android_tool_prefix="arm-linux-androideabi"
7862 android_ndk_arch="arm"
7863 kernel_tool_prefix="arm-linux-gnueabi-"
7866 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7868 esac
7869 case "$aros_target_variant" in
7870 android)
7872 if test "$android_ndk_arch" = ""; then
7873 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7876 aros_nominal_width=320
7877 aros_nominal_height=480
7878 if test "$aros_android_ndk" = "none"; then
7879 aros_kernel_cflags="-mandroid"
7880 aros_kernel_ldflags="-mandroid"
7881 CFLAGS="-mandroid"
7882 else
7883 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7884 kernel_tool_version=""
7885 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7886 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7887 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7888 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7889 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7891 need_x11=no
7892 host_android_gfx=yes
7893 # Disable implicit PIC mode
7894 aros_target_cflags="$aros_target_cflags -fno-pic"
7895 kernel_tool_prefix="$android_tool_prefix-"
7897 esac
7901 aros_target_arch="pc"
7902 aros_shared_default="no"
7903 target_bootloader="grub2"
7904 case "$target_cpu" in
7905 *i?86*)
7906 aros_target_cpu="i386"
7909 if test "$aros_object_format" = "" ; then
7910 aros_object_format="elf_i386"
7912 aros_flavour="standalone"
7913 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7914 aros_kernel_ldflags="-Wl,-melf_i386"
7915 aros_nominal_width=640
7916 aros_nominal_height=480
7917 gcc_target_cpu="i386"
7919 *x86_64*)
7920 aros_target_cpu="x86_64"
7921 aros_serial_debug=1
7922 if test "$aros_object_format" = "" ; then
7923 aros_object_format="elf_x86_64"
7925 aros_flavour="standalone"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7927 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7928 aros_kernel_ldflags=""
7929 aros_nominal_width=640
7930 aros_nominal_height=480
7931 case "$aros_target_variant" in
7932 smp)
7933 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
7935 esac
7938 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7940 esac
7943 prep)
7944 aros_target_arch="prep"
7945 aros_shared_default="no"
7946 aros_target_cpu="ppc"
7947 aros_object_format="elf32ppc"
7948 aros_flavour="ppcnative"
7949 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7950 aros_kernel_ldflags=""
7951 aros_nominal_width=640
7952 aros_nominal_height=480
7953 gcc_target_cpu="ppc"
7956 freebsd*)
7957 aros_target_arch="freebsd"
7958 aros_target_family="unix"
7959 aros_target_cpu="i386"
7960 aros_flavour="emulation"
7961 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7962 gcc_target_cpu="i386"
7964 aros_target_strip_flags="-x"
7967 darwin*)
7968 aros_target_arch="darwin"
7969 aros_target_family="unix"
7970 aros_flavour="emulation"
7971 case "$target_cpu" in
7972 *i?86*)
7973 aros_ios_platform="iPhoneSimulator"
7974 aros_target_cpu="i386"
7975 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7976 aros_kernel_ldflags=""
7977 aros_macosx_version="10.4"
7978 aros_nominal_depth=8
7979 gcc_target_cpu="i386"
7980 aros_object_format="elf_i386"
7981 aros_kernel_ar_flags="-cr"
7982 aros_target_strip_flags="-x"
7983 kernel_tool_flags="-m32"
7985 *x86_64*)
7986 aros_target_cpu="x86_64"
7987 aros_object_format="elf_x86_64"
7988 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7989 aros_macosx_version="10.6"
7990 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7991 aros_kernel_cflags="-m64"
7992 aros_kernel_ldflags="-m64"
7993 aros_target_cflags="-mcmodel=large"
7994 aros_nominal_depth=8
7995 aros_kernel_ar="ar"
7996 aros_kernel_ar_flags="-cr"
7997 aros_kernel_ld="ld"
7998 aros_kernel_as="as"
7999 aros_kernel_ranlib="ranlib"
8000 aros_kernel_nm="nm"
8001 aros_kernel_strip="strip"
8002 kernel_tool_prefix="i686-apple-darwin10-"
8004 *ppc*)
8005 aros_target_cpu="ppc"
8006 aros_object_format="elf32ppc"
8007 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8008 aros_kernel_ldflags=""
8009 aros_macosx_version="10.0"
8010 aros_nominal_depth=8
8011 gcc_target_cpu="ppc"
8012 aros_kernel_ar="ar"
8013 aros_kernel_ar_flags="-cr"
8014 aros_kernel_ld="ld -arch ppc"
8015 aros_kernel_as="as -arch ppc"
8016 aros_kernel_ranlib="ranlib -arch ppc"
8017 aros_kernel_nm="nm -arch ppc"
8018 aros_kernel_strip="strip -arch ppc"
8019 kernel_tool_prefix="powerpc-apple-darwin10-"
8021 *arm*)
8022 aros_ios_platform="iPhoneOS"
8023 aros_target_cpu="arm"
8024 aros_object_format="armelf_aros"
8025 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8026 aros_arch_libs="-laeabi"
8027 aros_nominal_depth=8
8028 gcc_target_cpu="arm"
8029 aros_kernel_ar="ar"
8030 aros_kernel_ar_flags="-cr"
8031 aros_kernel_ld="ld -arch arm"
8032 aros_kernel_ranlib="ranlib -arch arm"
8033 kernel_tool_prefix="arm-apple-darwin10-"
8034 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8037 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8039 esac
8040 case "$aros_target_variant" in
8041 ios)
8042 aros_ios_version="3.0"
8043 aros_nominal_width=320
8044 aros_nominal_height=480
8045 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8046 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8047 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8048 need_x11=no
8049 # This is here because it may depend on iOS or SDK version
8050 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8051 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8052 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8055 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8056 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8058 esac
8061 dragonfly*)
8062 aros_target_arch="dragonfly"
8063 aros_target_family="unix"
8064 aros_flavour="emulation"
8065 case "$target_cpu" in
8066 *i?86*)
8067 aros_target_cpu="i386"
8068 aros_object_format="elf_i386"
8069 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8071 *x86_64*)
8072 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8073 aros_target_cpu="x86_64"
8074 aros_object_format="elf_x86_64"
8075 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8078 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8080 esac
8083 netbsd*)
8084 aros_target_arch="netbsd"
8085 aros_target_family="unix"
8086 case "$target_cpu" in
8087 *m68k*)
8088 aros_target_cpu="m68k"
8089 aros_object_format="m68kelf"
8090 aros_flavour="emulcompat"
8091 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8092 gcc_target_cpu="mc68000"
8094 *i?86*)
8095 aros_target_cpu="i386"
8096 aros_object_format="elf_i386"
8097 aros_flavour="emulation"
8098 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8099 aros_nominal_depth=8
8100 gcc_target_cpu="i386"
8103 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8105 esac
8106 aros_target_genmap="-Wl,-M -Xlinker >"
8107 aros_flavour="emulation"
8108 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8111 openbsd*)
8112 aros_target_arch="openbsd"
8113 aros_target_family="unix"
8114 case "$target_cpu" in
8115 *i?86*)
8116 aros_target_cpu="i386"
8117 aros_object_format="elf_i386"
8118 aros_flavour="emulation"
8119 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8120 gcc_target_cpu="i386"
8123 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8125 esac
8126 aros_target_genmap="-Wl,-M -Xlinker >"
8127 aros_target_nm_flags="-u"
8128 aros_flavour="emulation"
8131 solaris*)
8132 aros_target_arch="solaris"
8133 aros_target_family="unix"
8134 case "$target_cpu" in
8135 *i?86*)
8136 aros_target_cpu="i386"
8137 aros_object_format="elf_i386"
8138 aros_flavour="emulation"
8139 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8140 aros_nominal_depth=8
8141 gcc_target_cpu="i386"
8143 *sparc*)
8144 aros_target_cpu="sparc"
8145 aros_object_format="elf_sparc"
8146 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8147 gcc_target_cpu="sparc"
8150 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8152 esac
8153 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8154 aros_flavour="emulation"
8157 morphos*)
8158 aros_target_arch="morphos"
8159 aros_shared_default="no"
8160 aros_target_cpu="ppc"
8161 aros_object_format="elf_ppc"
8162 aros_flavour="nativecompat"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8164 gcc_target_cpu="ppc"
8167 sam440)
8168 aros_target_arch="sam440"
8169 aros_shared_default="no"
8170 aros_target_cpu="ppc"
8171 aros_object_format="elf32ppc"
8172 aros_flavour="ppcnative"
8173 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8174 aros_kernel_ldflags=""
8175 aros_nominal_width=1024
8176 aros_nominal_height=768
8177 aros_nominal_depth=24
8178 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8179 gcc_target_cpu="powerpc"
8182 efika)
8183 aros_target_arch="efika"
8184 aros_shared_default="no"
8185 aros_target_cpu="arm"
8186 aros_object_format="armelf_aros"
8187 aros_flavour="standalone"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8189 aros_kernel_ldflags=""
8190 aros_nominal_width=1024
8191 aros_nominal_height=600
8192 aros_arch_libs="-laeabi"
8193 gcc_default_cpu="armv7-a"
8194 gcc_default_fpu="vfpv3"
8195 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8196 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8197 aros_optimization_cflags="$aros_optimization_cflags -Os"
8198 case "$target_cpu" in
8199 *armhf*)
8200 gcc_default_float_abi="hard"
8201 target_cpu=arm
8202 aros_target_cpu=arm
8204 *arm*)
8205 gcc_default_float_abi="softfp"
8208 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8210 esac
8213 chrp)
8214 aros_target_arch="chrp"
8215 aros_shared_default="no"
8216 aros_target_cpu="ppc"
8217 aros_object_format="elf32ppc"
8218 aros_flavour="ppcnative"
8219 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8220 aros_kernel_ldflags=""
8221 aros_nominal_width=640
8222 aros_nominal_height=480
8223 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8224 gcc_target_cpu="powerpc"
8225 case "$aros_target_variant" in
8226 efika)
8227 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8229 esac
8232 r*pi)
8233 aros_flavour="standalone"
8234 aros_target_arch="raspi"
8235 aros_target_cpu="arm"
8236 aros_object_format="armelf_aros"
8237 aros_shared_default="no"
8238 aros_arch_libs="-laeabi"
8240 gcc_default_cpu="armv6zk"
8241 gcc_default_cpu_tune="arm1176jzf-s"
8243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8244 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8245 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8246 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8247 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8248 case "$aros_target_variant" in
8249 smp)
8250 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8252 esac
8255 stm32f7_discovery)
8256 aros_flavour="standalone"
8257 aros_target_arch="stm32f7_discovery"
8258 aros_target_cpu="arm"
8259 aros_target_cpu_mode="thumb2"
8260 aros_object_format="armelf_aros"
8261 aros_shared_default="no"
8263 # stm32f7 has DSP opcode support
8264 gcc_default_cpu="armv7e-m"
8265 # gcc_default_cpu="armv7-m"
8266 gcc_default_cpu_tune="cortex-m7"
8267 gcc_default_fpu="fpv4-sp-d16"
8268 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8269 # gcc_default_fpu="fpv5-sp-d16"
8270 gcc_default_float_abi="hard"
8272 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8275 amiga*)
8276 aros_target_arch="amiga"
8277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8278 aros_shared_default="no"
8280 case "$target_cpu" in
8281 *m68k*)
8282 # Check whether --enable-amigaos_compliance was given.
8283 if test "${enable_amigaos_compliance+set}" = set; then :
8284 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8287 aros_enable_mmu=no
8288 aros_target_cpu="m68k"
8289 aros_object_format="m68kelf"
8290 aros_flavour="standcompat"
8291 gcc_target_cpu="m68000"
8292 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8293 aros_optimization_cflags="$aros_optimization_cflags -Os"
8294 aros_config_aflags="$aros_config_aflags"
8295 aros_target_strip_flags="-R.comment --strip-debug"
8296 aros_nominal_width=640
8297 aros_nominal_height=256
8298 aros_nominal_depth=2
8300 *ppc*)
8301 aros_cpu="ppc"
8302 aros_flavour="native"
8303 gcc_target_cpu="ppc"
8306 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8308 esac
8311 mingw*)
8312 aros_target_arch="mingw32"
8313 aros_shared_default="no"
8314 aros_flavour="emulation"
8315 aros_shared_cflags=""
8316 need_crosstools="yes"
8317 need_dlopen="no"
8318 rescomp="windres"
8319 case "$target_cpu" in
8320 *i?86*)
8321 aros_target_cpu="i386"
8322 aros_object_format="elf_i386"
8323 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8324 aros_nominal_depth=8
8325 gcc_target_cpu="i386"
8327 kernel_tool_prefix="i386-mingw32-"
8329 *x86_64*)
8330 aros_target_cpu="x86_64"
8331 aros_object_format="elf_x86_64"
8332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8333 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8334 aros_nominal_depth=8
8335 kernel_tool_prefix="x86_64-w64-mingw32-"
8337 *arm*)
8338 aros_target_cpu="arm"
8339 aros_object_format="armelf_aros"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8341 aros_arch_libs="-laeabi"
8342 aros_nominal_depth=8
8343 gcc_target_cpu="arm"
8344 gcc_default_float_abi="soft"
8345 kernel_tool_prefix="arm-mingw32ce-"
8346 aros_nominal_width=160
8347 aros_nominal_height=160
8350 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8352 esac
8353 if test $host_os = "cygwin"; then
8354 aros_kernel_cflags="-mno-cygwin"
8357 pp*)
8358 aros_target_arch="pp"
8359 aros_shared_default="no"
8360 case "$target_cpu" in
8361 *m68k*)
8362 aros_target_cpu="m68k"
8363 aros_object_format="m68kelf"
8364 aros_flavour="palmnative"
8365 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8366 aros_nominal_width=160
8367 aros_nominal_height=160
8368 aros_nominal_depth=1
8369 aros_target_ar_flags="cru"
8370 aros_compiler_libs="-lgcc1"
8371 aros_shared_default=no
8372 aros_shared_cflags="-fpic"
8373 aros_shared_aflags=""
8374 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8375 aros_kernel_ldflags="-Wl,-rpath,./lib"
8376 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8377 aros_debug_aflags=""
8378 aros_debug_ldflags="$aros_symbols_debug"
8379 aros_mungwall_debug="0"
8380 aros_modules_debug="0"
8381 gcc_target_cpu="mc68000"
8382 ignore_undefined_symbols="-ius"
8385 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8387 esac
8390 mac*)
8391 aros_target_arch="mac"
8392 aros_shared_default="no"
8393 case "$target_cpu" in
8394 *m68k*)
8395 aros_target_cpu="m68k"
8396 aros_object_format="m68kelf"
8397 aros_flavour="mac68knative"
8398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8399 aros_nominal_width=512
8400 aros_nominal_height=384
8401 aros_nominal_depth=8
8402 aros_target_ar_flags="cru"
8403 aros_compiler_libs="-lgcc1"
8404 aros_shared_default=no
8405 aros_shared_cflags="-fpic"
8406 aros_shared_aflags=""
8407 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8408 aros_kernel_ldflags="-Wl,-rpath,./lib"
8409 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8410 aros_debug_aflags=""
8411 aros_debug_ldflags="$aros_symbols_debug"
8412 aros_mungwall_debug="0"
8413 aros_modules_debug="0"
8414 gcc_target_cpu="mc68000"
8415 ignore_undefined_symbols="-ius"
8418 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8420 esac
8424 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8426 esac
8428 #-----------------------------------------------------------------------------
8429 crosstools_guess="yes"
8430 aros_target_toolchain="no"
8431 aros_config_sysroot=""
8432 aros_kernel_sysroot=""
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8435 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8437 # Check whether --with-kernel-toolchain-prefix was given.
8438 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8439 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8443 $as_echo "$kernel_tool_prefix" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8446 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8448 # Check whether --with-elf-toolchain-prefix was given.
8449 if test "${with_elf_toolchain_prefix+set}" = set; then :
8450 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8451 crosstools_guess="no"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8455 $as_echo "$elf_tool_prefix" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8458 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8460 # Check whether --with-aros-toolchain was given.
8461 if test "${with_aros_toolchain+set}" = set; then :
8462 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8463 crosstools_guess="no"
8466 if test "$aros_tool_prefix" = "yes" ; then
8467 aros_tool_prefix=$aros_target_cpu-aros-
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8470 $as_echo "$aros_tool_prefix" >&6; }
8472 #-----------------------------------------------------------------------------
8473 # Checking if we should build crosstools..
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8475 $as_echo_n "checking whether to build crosstools... " >&6; }
8476 # Check whether --enable-crosstools was given.
8477 if test "${enable_crosstools+set}" = set; then :
8478 enableval=$enable_crosstools; crosstools="$enableval"
8479 else
8480 crosstools="$crosstools_guess"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8484 $as_echo "$crosstools" >&6; }
8486 if test "${crosstools}" = "yes"; then
8487 if test "${crosstools_guess}" = "no"; then
8488 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8492 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8493 aros_target_toolchain="yes"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8497 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8499 # Check whether --with-aros-toolchain-install was given.
8500 if test "${with_aros_toolchain_install+set}" = set; then :
8501 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8504 if test "x$aros_toolchain_install" = "x"; then
8505 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8506 else
8507 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8508 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8509 if test "$crosstools_guess" = "no" ; then
8510 toolchain_needs_sysroot=yes
8512 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8513 aros_kernel_sysroot = $aros_config_sysroot
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8518 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8521 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8522 if test "$toolchain_needs_sysroot" = "yes" ; then
8523 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8526 $as_echo "$toolchain_needs_sysroot" >&6; }
8528 #-----------------------------------------------------------------------------
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8530 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8532 # Check whether --with-binutils-version was given.
8533 if test "${with_binutils_version+set}" = set; then :
8534 withval=$with_binutils_version; use_binutils_version="$withval"
8535 else
8536 use_binutils_version=""
8539 if test "$use_binutils_version" = ""; then
8540 target_binutils_version="$default_binutils_version"
8541 else
8542 target_binutils_version="$use_binutils_version"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8545 $as_echo "$target_binutils_version" >&6; }
8548 # Helper to identify gcc version
8551 #-----------------------------------------------------------------------------
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8553 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8555 # Check whether --with-gcc-version was given.
8556 if test "${with_gcc_version+set}" = set; then :
8557 withval=$with_gcc_version; use_gcc_version="$withval"
8558 else
8559 use_gcc_version=""
8562 if test "$use_gcc_version" = ""; then
8563 if test "${crosstools}" = "no"; then
8564 if test "x$aros_toolchain_install" != "x"; then
8566 target_gcc_version=""
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8568 $as_echo_n "checking gcc version... " >&6; }
8569 if ${ax_cv_gcc_version+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8573 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8574 if test "x$ax_cv_gcc_version" = "x"; then :
8576 ax_cv_gcc_version=""
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8582 $as_echo "$ax_cv_gcc_version" >&6; }
8583 target_gcc_version=$ax_cv_gcc_version
8588 if test "$use_gcc_version" = ""; then
8589 target_gcc_version="$default_gcc_version"
8591 else
8592 target_gcc_version="$use_gcc_version"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8595 $as_echo "$target_gcc_version" >&6; }
8597 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
8598 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
8599 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
8601 gcc_fix_bitfields="false"
8602 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
8603 gcc_fix_bitfields="true"
8604 else
8605 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
8606 if test "$GCC_VERSION_MINOR" -gt "6" ; then
8607 gcc_fix_bitfields="true"
8612 if test "$gcc_fix_bitfields" = "true" ; then
8613 case "$aros_target_cpu" in
8614 *x86_64*)
8615 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8616 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8618 i386)
8619 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
8620 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
8622 esac
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8626 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8627 # Check whether --enable-objc was given.
8628 if test "${enable_objc+set}" = set; then :
8629 enableval=$enable_objc; objc="$enableval"
8630 else
8631 objc="no"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8635 $as_echo "$objc" >&6; }
8636 if test "x$objc" = "xyes"; then
8637 objc_target="$objc"
8638 else
8639 objc_target="no-objc"
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8643 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8644 # Check whether --enable-java was given.
8645 if test "${enable_java+set}" = set; then :
8646 enableval=$enable_java; java="$enableval"
8647 else
8648 java="no"
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8652 $as_echo "$java" >&6; }
8653 if test "x$java" != "xno"; then
8654 java_target="$java"
8655 else
8656 java_target="no-java"
8659 spec_obj_format="-m $aros_object_format"
8660 # Now process extra architecture-specific options.
8661 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8662 # as well as floating-point ABI.
8663 case "$aros_target_cpu" in
8664 *x86_64*)
8665 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8667 arm*)
8668 if test "$gcc_default_cpu" = ""; then
8669 gcc_default_cpu="armv6"
8671 if test "$gcc_default_fpu" = ""; then
8672 gcc_default_fpu="vfp"
8674 if test "$gcc_default_float_abi" = ""; then
8675 if test "$target_cpu" = "armhf"; then
8676 gcc_default_float_abi="hard"
8677 else
8678 gcc_default_float_abi="softfp"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8683 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8685 # Check whether --with-cpu was given.
8686 if test "${with_cpu+set}" = set; then :
8687 withval=$with_cpu; aros_gcc_cpu="$withval"
8688 else
8689 aros_gcc_cpu=$gcc_default_cpu
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8693 $as_echo "$aros_gcc_cpu" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8696 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8698 # Check whether --with-fpu was given.
8699 if test "${with_fpu+set}" = set; then :
8700 withval=$with_fpu; aros_gcc_fpu="$withval"
8701 else
8702 aros_gcc_fpu=$gcc_default_fpu
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8706 $as_echo "$aros_gcc_fpu" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8709 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8711 # Check whether --with-float was given.
8712 if test "${with_float+set}" = set; then :
8713 withval=$with_float; aros_gcc_float_abi="$withval"
8714 else
8715 aros_gcc_float_abi=$gcc_default_float_abi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8719 $as_echo "$aros_gcc_float_abi" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
8722 $as_echo_n "checking Which ARM mode to use... " >&6; }
8723 if test "$aros_target_cpu_mode" = ""; then
8724 aros_target_cpu_mode="arm32"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
8726 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
8729 $as_echo "$aros_target_cpu_mode" >&6; }
8732 case "$aros_target_cpu_mode" in
8733 arm32)
8734 gcc_default_mode="arm"
8735 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8737 arm64)
8738 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
8740 thumb)
8741 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8743 thumb1)
8744 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
8746 thumb2)
8747 gcc_default_mode="thumb"
8748 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
8749 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8752 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
8754 esac
8756 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8757 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8759 i386)
8760 aros_isa_flags="-m32 -march=i486"
8761 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8762 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8764 esac
8766 # Some architectures may need custom ELF specs.
8767 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8768 elf_specs_in=config/${aros_object_format}-specs.in
8769 else
8770 elf_specs_in=config/elf-specs.in
8773 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8774 # Since we override specs, we may need to put these defines there
8775 if test "$gcc_target_cpu" != ""; then
8776 gcc_target_cpu="-D__${gcc_target_cpu}__"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8780 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8782 # Check whether --with-portssources was given.
8783 if test "${with_portssources+set}" = set; then :
8784 withval=$with_portssources; with_portssrcdir=$withval
8785 else
8786 with_portssrcdir="default"
8789 if test "$with_portssrcdir" = "default"; then
8790 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8791 else
8792 AROS_PORTSSRCDIR="$with_portssrcdir"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8795 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8798 $as_echo_n "checking which bootloader to use... " >&6; }
8800 # Check whether --with-bootloader was given.
8801 if test "${with_bootloader+set}" = set; then :
8802 withval=$with_bootloader; target_bootloader=$withval
8803 else
8804 target_bootloader=$target_bootloader
8807 if test "$target_bootloader" = "none"; then
8808 aros_target_bootloader=""
8809 else
8810 aros_target_bootloader="$target_bootloader"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8813 $as_echo "$target_bootloader" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8816 $as_echo_n "checking which icon-set to use... " >&6; }
8818 # Check whether --with-iconset was given.
8819 if test "${with_iconset+set}" = set; then :
8820 withval=$with_iconset; target_iconset=$withval
8821 else
8822 target_iconset="default"
8825 if test "$target_iconset" = "default"; then
8826 aros_target_iconset="Gorilla"
8827 target_iconset="default (Gorilla)"
8828 else
8829 aros_target_iconset="$target_iconset"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8832 $as_echo "$target_iconset" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8835 $as_echo_n "checking which GUI Theme to use... " >&6; }
8837 # Check whether --with-theme was given.
8838 if test "${with_theme+set}" = set; then :
8839 withval=$with_theme; target_guitheme=$withval
8840 else
8841 target_guitheme="default"
8844 if test "$target_guitheme" = "default"; then
8845 aros_target_guitheme="Ice"
8846 else
8847 aros_target_guitheme="$target_guitheme"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8850 $as_echo "$aros_target_guitheme" >&6; }
8852 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8853 # for target code)
8854 cross_compiling=no
8856 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8857 cross_compiling=yes
8860 if test "$aros_host_cpu" == "x86_64" ; then
8861 if test "$aros_target_cpu" == "i386" ; then
8862 cross_compiling=no
8866 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8867 if test "$aros_host_arch" != "$aros_target_arch" ; then
8868 cross_compiling=yes
8870 else
8871 if test "$host_cc_elf" = "no" ; then
8872 cross_compiling=yes
8876 if test "$cross_compiling" = "no" ; then
8877 kernel_tool_prefix=""
8878 if test "$host_cc_elf" = "yes" ; then
8879 elf_tool_prefix=""
8883 if test "$kernel_tool_version" != ""; then
8884 kernel_tool_version="-$kernel_tool_version"
8887 #######################################################################
8888 ## Compute what toolchains to use, and their paths ##
8889 #######################################################################
8891 # This takes, as input:
8892 # crosstools {yes,no}
8893 # kernel_tool_version {"",[version]}
8894 # target_tool_version {"",[version]}
8895 # kernel_tool_prefix {none,[some-arch-os-]}
8896 # gnu-toolchain -:
8897 # target_tool_prefix ${aros_target_cpu}-aros-
8898 # aros_tool_prefix ${aros_target_cpu}-aros-
8900 # The output is
8901 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8902 # Where the 'kernel' binaries are located
8903 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8904 # Where the 'target' binaries are located
8905 # (not the symlink farm - that is aros_target_*!)
8907 # The rules are:
8908 # if crosstools then
8909 # if kernel_tools_prefix = "no-kernel-prefix-"
8910 # aros_kernel_* = crosstools cc paths
8911 # aros_kernel_cc = elf cc wrapper around crosstools cc
8912 # else
8913 # VALIDATE(${kernel_tools_prefix}*)
8914 # aros_kernel_* = ${kernel_tools_prefix}*
8915 # if ${kernel_tools_prefix}cc is an AROS gcc
8916 # aros_kernel_cc = ${kernel_tools_prefix}cc
8917 # else
8918 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8919 # fi
8920 # fi
8922 # orig_target_* = aros built crosstools
8923 # orig_target_cc = elf cc wrapper around crosstools cc
8924 # else
8925 # VALIDATE(${kernel_tools_prefix}*)
8927 # orig_target_* = aros_kernel_*
8928 # if aros_kernel_cc is an AROS gcc
8929 # orig_target_cc = aros_kernel_cc
8930 # else
8931 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8932 # fi
8933 # fi
8935 if test "$aros_toolchain" = "gnu" ; then
8936 target_tool_prefix="${aros_target_cpu}-aros-"
8937 elif test "$aros_toolchain" = "llvm" ; then
8938 target_tool_prefix="bin/"
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8942 $as_echo_n "checking which kernel tools... " >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8944 $as_echo "$kernel_tool_prefix" >&6; };
8946 if test "$kernel_tool_prefix" = "none" ; then
8947 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8948 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8950 else
8951 # Kernel tools required - find them
8952 # Note that 'normally', aros_kernel_* overrides will be
8953 # empty, unless specified in the per-arch sections above.
8954 if test "x$aros_kernel_cpp" = "x"; then
8955 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
8958 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8959 if test "$cross_compiling" = "yes" ; then
8960 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8961 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 case $aros_kernel_cpp in
8968 [\\/]* | ?:[\\/]*)
8969 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8988 esac
8990 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8991 if test -n "$aros_kernel_cpp"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8993 $as_echo "$aros_kernel_cpp" >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9000 else
9001 if test "$GCC" = "yes"; then
9002 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9003 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9004 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 case $aros_kernel_cpp in
9011 [\\/]* | ?:[\\/]*)
9012 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in `dirname $aros_gcc_cpp`
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9026 done
9027 done
9028 IFS=$as_save_IFS
9031 esac
9033 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9034 if test -n "$aros_kernel_cpp"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9036 $as_echo "$aros_kernel_cpp" >&6; }
9037 else
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9044 if test "$aros_kernel_cpp" = ""; then
9045 # Extract the first word of "cpp", so it can be a program name with args.
9046 set dummy cpp; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 case $aros_kernel_cpp in
9053 [\\/]* | ?:[\\/]*)
9054 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9060 IFS=$as_save_IFS
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 break 2
9068 done
9069 done
9070 IFS=$as_save_IFS
9073 esac
9075 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9076 if test -n "$aros_kernel_cpp"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9078 $as_echo "$aros_kernel_cpp" >&6; }
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9087 else
9088 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9089 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 case $aros_kernel_cpp in
9096 [\\/]* | ?:[\\/]*)
9097 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9107 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9111 done
9112 done
9113 IFS=$as_save_IFS
9116 esac
9118 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9119 if test -n "$aros_kernel_cpp"; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9121 $as_echo "$aros_kernel_cpp" >&6; }
9122 else
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9130 if test "$aros_kernel_cpp" = ""; then
9131 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9133 if test "x$aros_kernel_cc" = "x"; then
9134 aros_kernel_cc=${kernel_tool_prefix}${CC}
9137 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9138 if test "$cross_compiling" = "yes" ; then
9139 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9140 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 case $aros_kernel_cc in
9147 [\\/]* | ?:[\\/]*)
9148 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9162 done
9163 done
9164 IFS=$as_save_IFS
9167 esac
9169 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9170 if test -n "$aros_kernel_cc"; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9172 $as_echo "$aros_kernel_cc" >&6; }
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9179 else
9180 if test "$GCC" = "yes"; then
9181 aros_gcc_cc=`$CC -print-prog-name=cc`
9182 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9183 set dummy `basename $aros_gcc_cc`; ac_word=$2
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 $as_echo_n "checking for $ac_word... " >&6; }
9186 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 case $aros_kernel_cc in
9190 [\\/]* | ?:[\\/]*)
9191 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in `dirname $aros_gcc_cc`
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9201 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9205 done
9206 done
9207 IFS=$as_save_IFS
9210 esac
9212 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9213 if test -n "$aros_kernel_cc"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9215 $as_echo "$aros_kernel_cc" >&6; }
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; }
9223 if test "$aros_kernel_cc" = ""; then
9224 # Extract the first word of "cc", so it can be a program name with args.
9225 set dummy cc; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 case $aros_kernel_cc in
9232 [\\/]* | ?:[\\/]*)
9233 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9239 IFS=$as_save_IFS
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 break 2
9247 done
9248 done
9249 IFS=$as_save_IFS
9252 esac
9254 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9255 if test -n "$aros_kernel_cc"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9257 $as_echo "$aros_kernel_cc" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9266 else
9267 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9268 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 case $aros_kernel_cc in
9275 [\\/]* | ?:[\\/]*)
9276 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in $PATH
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9286 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9290 done
9291 done
9292 IFS=$as_save_IFS
9295 esac
9297 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9298 if test -n "$aros_kernel_cc"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9300 $as_echo "$aros_kernel_cc" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9309 if test "$aros_kernel_cc" = ""; then
9310 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9312 if test "x$aros_kernel_cxx" = "x"; then
9313 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9316 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9317 if test "$cross_compiling" = "yes" ; then
9318 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9319 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 case $aros_kernel_cxx in
9326 [\\/]* | ?:[\\/]*)
9327 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9341 done
9342 done
9343 IFS=$as_save_IFS
9346 esac
9348 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9349 if test -n "$aros_kernel_cxx"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9351 $as_echo "$aros_kernel_cxx" >&6; }
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9358 else
9359 if test "$GCC" = "yes"; then
9360 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9361 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9362 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 case $aros_kernel_cxx in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in `dirname $aros_gcc_cxx`
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9384 done
9385 done
9386 IFS=$as_save_IFS
9389 esac
9391 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9392 if test -n "$aros_kernel_cxx"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9394 $as_echo "$aros_kernel_cxx" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 if test "$aros_kernel_cxx" = ""; then
9403 # Extract the first word of "cxx", so it can be a program name with args.
9404 set dummy cxx; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_kernel_cxx in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9422 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9434 if test -n "$aros_kernel_cxx"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9436 $as_echo "$aros_kernel_cxx" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9445 else
9446 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9447 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 case $aros_kernel_cxx in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9465 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9474 esac
9476 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9477 if test -n "$aros_kernel_cxx"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9479 $as_echo "$aros_kernel_cxx" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9488 # If it's set, make sure it's really there
9489 if test "x$aros_kernel_cxx" != "x" ; then
9490 if test "$aros_kernel_cxx" = ""; then
9491 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9495 if test "$aros_kernel_ld" = ""; then
9496 if test "$cross_compiling" = "yes" ; then
9497 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9498 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 case $aros_kernel_ld in
9505 [\\/]* | ?:[\\/]*)
9506 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9516 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518 break 2
9520 done
9521 done
9522 IFS=$as_save_IFS
9525 esac
9527 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9528 if test -n "$aros_kernel_ld"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9530 $as_echo "$aros_kernel_ld" >&6; }
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9537 else
9538 if test "$GCC" = "yes"; then
9539 aros_gcc_ld=`$CC -print-prog-name=ld`
9540 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9541 set dummy `basename $aros_gcc_ld`; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 case $aros_kernel_ld in
9548 [\\/]* | ?:[\\/]*)
9549 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in `dirname $aros_gcc_ld`
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9563 done
9564 done
9565 IFS=$as_save_IFS
9568 esac
9570 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9571 if test -n "$aros_kernel_ld"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9573 $as_echo "$aros_kernel_ld" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9581 if test "$aros_kernel_ld" = ""; then
9582 # Extract the first word of "ld", so it can be a program name with args.
9583 set dummy ld; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 case $aros_kernel_ld in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9601 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9605 done
9606 done
9607 IFS=$as_save_IFS
9610 esac
9612 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9613 if test -n "$aros_kernel_ld"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9615 $as_echo "$aros_kernel_ld" >&6; }
9616 else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9624 else
9625 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9626 set dummy $aros_kernel_ld; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 case $aros_kernel_ld in
9633 [\\/]* | ?:[\\/]*)
9634 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9648 done
9649 done
9650 IFS=$as_save_IFS
9653 esac
9655 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9656 if test -n "$aros_kernel_ld"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9658 $as_echo "$aros_kernel_ld" >&6; }
9659 else
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9667 if test "$aros_kernel_ld" = ""; then
9668 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9671 if test "$aros_kernel_as" = ""; then
9672 if test "$cross_compiling" = "yes" ; then
9673 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9674 set dummy ${kernel_tool_prefix}as; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if ${ac_cv_path_aros_kernel_as+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 case $aros_kernel_as in
9681 [\\/]* | ?:[\\/]*)
9682 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9696 done
9697 done
9698 IFS=$as_save_IFS
9701 esac
9703 aros_kernel_as=$ac_cv_path_aros_kernel_as
9704 if test -n "$aros_kernel_as"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9706 $as_echo "$aros_kernel_as" >&6; }
9707 else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9713 else
9714 if test "$GCC" = "yes"; then
9715 aros_gcc_as=`$CC -print-prog-name=as`
9716 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9717 set dummy `basename $aros_gcc_as`; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_aros_kernel_as+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 case $aros_kernel_as in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in `dirname $aros_gcc_as`
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9744 esac
9746 aros_kernel_as=$ac_cv_path_aros_kernel_as
9747 if test -n "$aros_kernel_as"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9749 $as_echo "$aros_kernel_as" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9757 if test "$aros_kernel_as" = ""; then
9758 # Extract the first word of "as", so it can be a program name with args.
9759 set dummy as; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if ${ac_cv_path_aros_kernel_as+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 case $aros_kernel_as in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9781 done
9782 done
9783 IFS=$as_save_IFS
9786 esac
9788 aros_kernel_as=$ac_cv_path_aros_kernel_as
9789 if test -n "$aros_kernel_as"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9791 $as_echo "$aros_kernel_as" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9800 else
9801 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9802 set dummy $aros_kernel_as; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_aros_kernel_as+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 case $aros_kernel_as in
9809 [\\/]* | ?:[\\/]*)
9810 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9824 done
9825 done
9826 IFS=$as_save_IFS
9829 esac
9831 aros_kernel_as=$ac_cv_path_aros_kernel_as
9832 if test -n "$aros_kernel_as"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9834 $as_echo "$aros_kernel_as" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9843 if test "$aros_kernel_as" = ""; then
9844 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9847 if test "$aros_kernel_ar" = ""; then
9848 if test "$cross_compiling" = "yes" ; then
9849 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9850 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 case $aros_kernel_ar in
9857 [\\/]* | ?:[\\/]*)
9858 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9877 esac
9879 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9880 if test -n "$aros_kernel_ar"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9882 $as_echo "$aros_kernel_ar" >&6; }
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9889 else
9890 if test "$GCC" = "yes"; then
9891 aros_gcc_ar=`$CC -print-prog-name=ar`
9892 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9893 set dummy `basename $aros_gcc_ar`; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 case $aros_kernel_ar in
9900 [\\/]* | ?:[\\/]*)
9901 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in `dirname $aros_gcc_ar`
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9915 done
9916 done
9917 IFS=$as_save_IFS
9920 esac
9922 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9923 if test -n "$aros_kernel_ar"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9925 $as_echo "$aros_kernel_ar" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9933 if test "$aros_kernel_ar" = ""; then
9934 # Extract the first word of "ar", so it can be a program name with args.
9935 set dummy ar; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 case $aros_kernel_ar in
9942 [\\/]* | ?:[\\/]*)
9943 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9962 esac
9964 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9965 if test -n "$aros_kernel_ar"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9967 $as_echo "$aros_kernel_ar" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9976 else
9977 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9978 set dummy $aros_kernel_ar; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 case $aros_kernel_ar in
9985 [\\/]* | ?:[\\/]*)
9986 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10002 IFS=$as_save_IFS
10005 esac
10007 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10008 if test -n "$aros_kernel_ar"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10010 $as_echo "$aros_kernel_ar" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10019 if test "$aros_kernel_ar" = ""; then
10020 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10023 if test "$aros_kernel_ranlib" = ""; then
10024 if test "$cross_compiling" = "yes" ; then
10025 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10026 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 case $aros_kernel_ranlib in
10033 [\\/]* | ?:[\\/]*)
10034 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10048 done
10049 done
10050 IFS=$as_save_IFS
10053 esac
10055 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10056 if test -n "$aros_kernel_ranlib"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10058 $as_echo "$aros_kernel_ranlib" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10065 else
10066 if test "$GCC" = "yes"; then
10067 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10068 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10069 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 case $aros_kernel_ranlib in
10076 [\\/]* | ?:[\\/]*)
10077 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in `dirname $aros_gcc_ranlib`
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10096 esac
10098 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10099 if test -n "$aros_kernel_ranlib"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10101 $as_echo "$aros_kernel_ranlib" >&6; }
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10109 if test "$aros_kernel_ranlib" = ""; then
10110 # Extract the first word of "ranlib", so it can be a program name with args.
10111 set dummy ranlib; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 case $aros_kernel_ranlib in
10118 [\\/]* | ?:[\\/]*)
10119 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10133 done
10134 done
10135 IFS=$as_save_IFS
10138 esac
10140 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10141 if test -n "$aros_kernel_ranlib"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10143 $as_echo "$aros_kernel_ranlib" >&6; }
10144 else
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10152 else
10153 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10154 set dummy $aros_kernel_ranlib; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 case $aros_kernel_ranlib in
10161 [\\/]* | ?:[\\/]*)
10162 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10172 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10178 IFS=$as_save_IFS
10181 esac
10183 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10184 if test -n "$aros_kernel_ranlib"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10186 $as_echo "$aros_kernel_ranlib" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10195 if test "$aros_kernel_ranlib" = ""; then
10196 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10199 if test "$aros_kernel_nm" = ""; then
10200 if test "$cross_compiling" = "yes" ; then
10201 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10202 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 case $aros_kernel_nm in
10209 [\\/]* | ?:[\\/]*)
10210 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10224 done
10225 done
10226 IFS=$as_save_IFS
10229 esac
10231 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10232 if test -n "$aros_kernel_nm"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10234 $as_echo "$aros_kernel_nm" >&6; }
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10241 else
10242 if test "$GCC" = "yes"; then
10243 aros_gcc_nm=`$CC -print-prog-name=nm`
10244 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10245 set dummy `basename $aros_gcc_nm`; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 case $aros_kernel_nm in
10252 [\\/]* | ?:[\\/]*)
10253 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in `dirname $aros_gcc_nm`
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10272 esac
10274 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10275 if test -n "$aros_kernel_nm"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10277 $as_echo "$aros_kernel_nm" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10285 if test "$aros_kernel_nm" = ""; then
10286 # Extract the first word of "nm", so it can be a program name with args.
10287 set dummy nm; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 case $aros_kernel_nm in
10294 [\\/]* | ?:[\\/]*)
10295 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10309 done
10310 done
10311 IFS=$as_save_IFS
10314 esac
10316 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10317 if test -n "$aros_kernel_nm"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10319 $as_echo "$aros_kernel_nm" >&6; }
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10328 else
10329 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10330 set dummy $aros_kernel_nm; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 case $aros_kernel_nm in
10337 [\\/]* | ?:[\\/]*)
10338 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10357 esac
10359 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10360 if test -n "$aros_kernel_nm"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10362 $as_echo "$aros_kernel_nm" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10371 if test "$aros_kernel_nm" = ""; then
10372 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10375 if test "$aros_kernel_strip" = ""; then
10376 if test "$cross_compiling" = "yes" ; then
10377 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10378 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 case $aros_kernel_strip in
10385 [\\/]* | ?:[\\/]*)
10386 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10400 done
10401 done
10402 IFS=$as_save_IFS
10405 esac
10407 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10408 if test -n "$aros_kernel_strip"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10410 $as_echo "$aros_kernel_strip" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10417 else
10418 if test "$GCC" = "yes"; then
10419 aros_gcc_strip=`$CC -print-prog-name=strip`
10420 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10421 set dummy `basename $aros_gcc_strip`; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 case $aros_kernel_strip in
10428 [\\/]* | ?:[\\/]*)
10429 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in `dirname $aros_gcc_strip`
10435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441 break 2
10443 done
10444 done
10445 IFS=$as_save_IFS
10448 esac
10450 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10451 if test -n "$aros_kernel_strip"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10453 $as_echo "$aros_kernel_strip" >&6; }
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10461 if test "$aros_kernel_strip" = ""; then
10462 # Extract the first word of "strip", so it can be a program name with args.
10463 set dummy strip; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 case $aros_kernel_strip in
10470 [\\/]* | ?:[\\/]*)
10471 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10485 done
10486 done
10487 IFS=$as_save_IFS
10490 esac
10492 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10493 if test -n "$aros_kernel_strip"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10495 $as_echo "$aros_kernel_strip" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10504 else
10505 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10506 set dummy $aros_kernel_strip; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 case $aros_kernel_strip in
10513 [\\/]* | ?:[\\/]*)
10514 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10533 esac
10535 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10536 if test -n "$aros_kernel_strip"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10538 $as_echo "$aros_kernel_strip" >&6; }
10539 else
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10547 if test "$aros_kernel_strip" = ""; then
10548 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10551 # Objcopy and objdump are not required for the kernel
10552 # toolchain on many architectures.
10553 # So we'll look for them, but not make them strictly required.
10555 if test "$aros_kernel_objcopy" = ""; then
10556 if test "$cross_compiling" = "yes" ; then
10557 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10558 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $aros_kernel_objcopy in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10588 if test -n "$aros_kernel_objcopy"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10590 $as_echo "$aros_kernel_objcopy" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10597 else
10598 if test "$GCC" = "yes"; then
10599 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10600 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10601 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 case $aros_kernel_objcopy in
10608 [\\/]* | ?:[\\/]*)
10609 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in `dirname $aros_gcc_objcopy`
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10628 esac
10630 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10631 if test -n "$aros_kernel_objcopy"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10633 $as_echo "$aros_kernel_objcopy" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10641 if test "$aros_kernel_objcopy" = ""; then
10642 # Extract the first word of "objcopy", so it can be a program name with args.
10643 set dummy objcopy; ac_word=$2
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 $as_echo_n "checking for $ac_word... " >&6; }
10646 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 case $aros_kernel_objcopy in
10650 [\\/]* | ?:[\\/]*)
10651 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in $PATH
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10661 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10665 done
10666 done
10667 IFS=$as_save_IFS
10670 esac
10672 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10673 if test -n "$aros_kernel_objcopy"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10675 $as_echo "$aros_kernel_objcopy" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10684 else
10685 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10686 set dummy $aros_kernel_objcopy; ac_word=$2
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10688 $as_echo_n "checking for $ac_word... " >&6; }
10689 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 case $aros_kernel_objcopy in
10693 [\\/]* | ?:[\\/]*)
10694 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 for as_dir in $PATH
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
10702 for ac_exec_ext in '' $ac_executable_extensions; do
10703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10704 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 break 2
10708 done
10709 done
10710 IFS=$as_save_IFS
10713 esac
10715 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10716 if test -n "$aros_kernel_objcopy"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10718 $as_echo "$aros_kernel_objcopy" >&6; }
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10728 if test "$aros_kernel_objdump" = ""; then
10729 if test "$cross_compiling" = "yes" ; then
10730 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10731 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 case $aros_kernel_objdump in
10738 [\\/]* | ?:[\\/]*)
10739 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10758 esac
10760 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10761 if test -n "$aros_kernel_objdump"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10763 $as_echo "$aros_kernel_objdump" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10770 else
10771 if test "$GCC" = "yes"; then
10772 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10773 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10774 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 case $aros_kernel_objdump in
10781 [\\/]* | ?:[\\/]*)
10782 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in `dirname $aros_gcc_objdump`
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10796 done
10797 done
10798 IFS=$as_save_IFS
10801 esac
10803 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10804 if test -n "$aros_kernel_objdump"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10806 $as_echo "$aros_kernel_objdump" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10814 if test "$aros_kernel_objdump" = ""; then
10815 # Extract the first word of "objdump", so it can be a program name with args.
10816 set dummy objdump; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 case $aros_kernel_objdump in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10838 done
10839 done
10840 IFS=$as_save_IFS
10843 esac
10845 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10846 if test -n "$aros_kernel_objdump"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10848 $as_echo "$aros_kernel_objdump" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10857 else
10858 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10859 set dummy $aros_kernel_objdump; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 case $aros_kernel_objdump in
10866 [\\/]* | ?:[\\/]*)
10867 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10881 done
10882 done
10883 IFS=$as_save_IFS
10886 esac
10888 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10889 if test -n "$aros_kernel_objdump"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10891 $as_echo "$aros_kernel_objdump" >&6; }
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10900 if test "x${crosstools}" != "xyes" ; then
10901 if test "$aros_kernel_objcopy" = ""; then
10902 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10904 if test "$aros_kernel_objdump" = ""; then
10905 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10911 $as_echo_n "checking which target tools to use... " >&6; }
10912 if test "$aros_target_toolchain" = "yes"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10914 $as_echo "$target_tool_prefix" >&6; }
10915 # We are building AROS crosstools
10916 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10917 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
10918 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
10919 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
10920 orig_target_ld="${tmp_tool_prefix}ld"
10921 orig_target_as="${tmp_tool_prefix}as"
10922 orig_target_ar="${tmp_tool_prefix}ar"
10923 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10924 orig_target_nm="${tmp_tool_prefix}nm"
10925 orig_target_strip="${tmp_tool_prefix}strip"
10926 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10927 orig_target_objdump="${tmp_tool_prefix}objdump"
10928 else
10929 # Determine whether AROS or ELF tools should be used
10930 if test "$aros_tool_prefix" = "none"; then
10931 aros_tool_prefix="${elf_tool_prefix}"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10935 $as_echo "$aros_tool_prefix" >&6; }
10936 # We are *not* building AROS crosstools - use the AROS or ELF tools
10938 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
10939 if test "$cross_compiling" = "yes" ; then
10940 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10941 set dummy ${target_tool_prefix}cpp; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_path_orig_target_cpp+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 case $orig_target_cpp in
10948 [\\/]* | ?:[\\/]*)
10949 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10963 done
10964 done
10965 IFS=$as_save_IFS
10968 esac
10970 orig_target_cpp=$ac_cv_path_orig_target_cpp
10971 if test -n "$orig_target_cpp"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10973 $as_echo "$orig_target_cpp" >&6; }
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10980 else
10981 if test "$GCC" = "yes"; then
10982 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10983 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10984 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_path_orig_target_cpp+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 case $orig_target_cpp in
10991 [\\/]* | ?:[\\/]*)
10992 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in `dirname $aros_gcc_cpp`
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11006 done
11007 done
11008 IFS=$as_save_IFS
11011 esac
11013 orig_target_cpp=$ac_cv_path_orig_target_cpp
11014 if test -n "$orig_target_cpp"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11016 $as_echo "$orig_target_cpp" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11024 if test "$orig_target_cpp" = ""; then
11025 # Extract the first word of "cpp", so it can be a program name with args.
11026 set dummy cpp; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if ${ac_cv_path_orig_target_cpp+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 case $orig_target_cpp in
11033 [\\/]* | ?:[\\/]*)
11034 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11048 done
11049 done
11050 IFS=$as_save_IFS
11053 esac
11055 orig_target_cpp=$ac_cv_path_orig_target_cpp
11056 if test -n "$orig_target_cpp"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11058 $as_echo "$orig_target_cpp" >&6; }
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11067 else
11068 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11069 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_path_orig_target_cpp+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 case $orig_target_cpp in
11076 [\\/]* | ?:[\\/]*)
11077 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11091 done
11092 done
11093 IFS=$as_save_IFS
11096 esac
11098 orig_target_cpp=$ac_cv_path_orig_target_cpp
11099 if test -n "$orig_target_cpp"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11101 $as_echo "$orig_target_cpp" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11110 if test "$orig_target_cpp" = ""; then
11111 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11114 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11115 if test "$cross_compiling" = "yes" ; then
11116 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11117 set dummy ${target_tool_prefix}gcc; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_path_orig_target_cc+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 case $orig_target_cc in
11124 [\\/]* | ?:[\\/]*)
11125 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137 break 2
11139 done
11140 done
11141 IFS=$as_save_IFS
11144 esac
11146 orig_target_cc=$ac_cv_path_orig_target_cc
11147 if test -n "$orig_target_cc"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11149 $as_echo "$orig_target_cc" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11156 else
11157 if test "$GCC" = "yes"; then
11158 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11159 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11160 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_orig_target_cc+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 case $orig_target_cc in
11167 [\\/]* | ?:[\\/]*)
11168 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in `dirname $aros_gcc_gcc`
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11182 done
11183 done
11184 IFS=$as_save_IFS
11187 esac
11189 orig_target_cc=$ac_cv_path_orig_target_cc
11190 if test -n "$orig_target_cc"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11192 $as_echo "$orig_target_cc" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11200 if test "$orig_target_cc" = ""; then
11201 # Extract the first word of "gcc", so it can be a program name with args.
11202 set dummy gcc; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_path_orig_target_cc+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $orig_target_cc in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11224 done
11225 done
11226 IFS=$as_save_IFS
11229 esac
11231 orig_target_cc=$ac_cv_path_orig_target_cc
11232 if test -n "$orig_target_cc"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11234 $as_echo "$orig_target_cc" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11243 else
11244 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11245 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if ${ac_cv_path_orig_target_cc+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 case $orig_target_cc in
11252 [\\/]* | ?:[\\/]*)
11253 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11267 done
11268 done
11269 IFS=$as_save_IFS
11272 esac
11274 orig_target_cc=$ac_cv_path_orig_target_cc
11275 if test -n "$orig_target_cc"; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11277 $as_echo "$orig_target_cc" >&6; }
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280 $as_echo "no" >&6; }
11286 if test "$orig_target_cc" = ""; then
11287 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11290 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11291 if test "$cross_compiling" = "yes" ; then
11292 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11293 set dummy ${target_tool_prefix}g++; 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_orig_target_cxx+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 case $orig_target_cxx in
11300 [\\/]* | ?:[\\/]*)
11301 ac_cv_path_orig_target_cxx="$orig_target_cxx" # 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_orig_target_cxx="$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 orig_target_cxx=$ac_cv_path_orig_target_cxx
11323 if test -n "$orig_target_cxx"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11325 $as_echo "$orig_target_cxx" >&6; }
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11332 else
11333 if test "$GCC" = "yes"; then
11334 aros_gcc_g++=`$CC -print-prog-name=g++`
11335 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11336 set dummy `basename $aros_gcc_g++`; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if ${ac_cv_path_orig_target_cxx+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 case $orig_target_cxx in
11343 [\\/]* | ?:[\\/]*)
11344 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in `dirname $aros_gcc_g++`
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11358 done
11359 done
11360 IFS=$as_save_IFS
11363 esac
11365 orig_target_cxx=$ac_cv_path_orig_target_cxx
11366 if test -n "$orig_target_cxx"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11368 $as_echo "$orig_target_cxx" >&6; }
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11376 if test "$orig_target_cxx" = ""; then
11377 # Extract the first word of "g++", so it can be a program name with args.
11378 set dummy g++; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_path_orig_target_cxx+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $orig_target_cxx in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11400 done
11401 done
11402 IFS=$as_save_IFS
11405 esac
11407 orig_target_cxx=$ac_cv_path_orig_target_cxx
11408 if test -n "$orig_target_cxx"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11410 $as_echo "$orig_target_cxx" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11419 else
11420 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11421 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if ${ac_cv_path_orig_target_cxx+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 case $orig_target_cxx in
11428 [\\/]* | ?:[\\/]*)
11429 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11443 done
11444 done
11445 IFS=$as_save_IFS
11448 esac
11450 orig_target_cxx=$ac_cv_path_orig_target_cxx
11451 if test -n "$orig_target_cxx"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11453 $as_echo "$orig_target_cxx" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11462 if test "$orig_target_cxx" = ""; then
11463 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11466 if test "${aros_tool_prefix}ld" = ""; then
11467 if test "$cross_compiling" = "yes" ; then
11468 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11469 set dummy ${target_tool_prefix}gcc; ac_word=$2
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471 $as_echo_n "checking for $ac_word... " >&6; }
11472 if ${ac_cv_path_orig_target_ld+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 case $orig_target_ld in
11476 [\\/]* | ?:[\\/]*)
11477 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11491 done
11492 done
11493 IFS=$as_save_IFS
11496 esac
11498 orig_target_ld=$ac_cv_path_orig_target_ld
11499 if test -n "$orig_target_ld"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11501 $as_echo "$orig_target_ld" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11508 else
11509 if test "$GCC" = "yes"; then
11510 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11511 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11512 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_orig_target_ld+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 case $orig_target_ld in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in `dirname $aros_gcc_gcc`
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11534 done
11535 done
11536 IFS=$as_save_IFS
11539 esac
11541 orig_target_ld=$ac_cv_path_orig_target_ld
11542 if test -n "$orig_target_ld"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11544 $as_echo "$orig_target_ld" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11552 if test "$orig_target_ld" = ""; then
11553 # Extract the first word of "gcc", so it can be a program name with args.
11554 set dummy gcc; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_path_orig_target_ld+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $orig_target_ld in
11561 [\\/]* | ?:[\\/]*)
11562 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11576 done
11577 done
11578 IFS=$as_save_IFS
11581 esac
11583 orig_target_ld=$ac_cv_path_orig_target_ld
11584 if test -n "$orig_target_ld"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11586 $as_echo "$orig_target_ld" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11595 else
11596 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11597 set dummy ${aros_tool_prefix}ld; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_path_orig_target_ld+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 case $orig_target_ld in
11604 [\\/]* | ?:[\\/]*)
11605 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11619 done
11620 done
11621 IFS=$as_save_IFS
11624 esac
11626 orig_target_ld=$ac_cv_path_orig_target_ld
11627 if test -n "$orig_target_ld"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11629 $as_echo "$orig_target_ld" >&6; }
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11638 if test "$orig_target_ld" = ""; then
11639 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11642 if test "${aros_tool_prefix}as" = ""; then
11643 if test "$cross_compiling" = "yes" ; then
11644 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11645 set dummy ${target_tool_prefix}as; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_path_orig_target_as+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 case $orig_target_as in
11652 [\\/]* | ?:[\\/]*)
11653 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11667 done
11668 done
11669 IFS=$as_save_IFS
11672 esac
11674 orig_target_as=$ac_cv_path_orig_target_as
11675 if test -n "$orig_target_as"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11677 $as_echo "$orig_target_as" >&6; }
11678 else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11684 else
11685 if test "$GCC" = "yes"; then
11686 aros_gcc_as=`$CC -print-prog-name=as`
11687 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11688 set dummy `basename $aros_gcc_as`; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_path_orig_target_as+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 case $orig_target_as in
11695 [\\/]* | ?:[\\/]*)
11696 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in `dirname $aros_gcc_as`
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11706 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11710 done
11711 done
11712 IFS=$as_save_IFS
11715 esac
11717 orig_target_as=$ac_cv_path_orig_target_as
11718 if test -n "$orig_target_as"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11720 $as_echo "$orig_target_as" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11728 if test "$orig_target_as" = ""; then
11729 # Extract the first word of "as", so it can be a program name with args.
11730 set dummy as; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_path_orig_target_as+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 case $orig_target_as in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11752 done
11753 done
11754 IFS=$as_save_IFS
11757 esac
11759 orig_target_as=$ac_cv_path_orig_target_as
11760 if test -n "$orig_target_as"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11762 $as_echo "$orig_target_as" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11771 else
11772 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11773 set dummy ${aros_tool_prefix}as; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_orig_target_as+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case $orig_target_as in
11780 [\\/]* | ?:[\\/]*)
11781 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11800 esac
11802 orig_target_as=$ac_cv_path_orig_target_as
11803 if test -n "$orig_target_as"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11805 $as_echo "$orig_target_as" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11814 if test "$orig_target_as" = ""; then
11815 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11818 if test "${aros_tool_prefix}ar" = ""; then
11819 if test "$cross_compiling" = "yes" ; then
11820 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11821 set dummy ${target_tool_prefix}ar; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_path_orig_target_ar+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 case $orig_target_ar in
11828 [\\/]* | ?:[\\/]*)
11829 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11845 IFS=$as_save_IFS
11848 esac
11850 orig_target_ar=$ac_cv_path_orig_target_ar
11851 if test -n "$orig_target_ar"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11853 $as_echo "$orig_target_ar" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11860 else
11861 if test "$GCC" = "yes"; then
11862 aros_gcc_ar=`$CC -print-prog-name=ar`
11863 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11864 set dummy `basename $aros_gcc_ar`; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_path_orig_target_ar+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 case $orig_target_ar in
11871 [\\/]* | ?:[\\/]*)
11872 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in `dirname $aros_gcc_ar`
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11886 done
11887 done
11888 IFS=$as_save_IFS
11891 esac
11893 orig_target_ar=$ac_cv_path_orig_target_ar
11894 if test -n "$orig_target_ar"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11896 $as_echo "$orig_target_ar" >&6; }
11897 else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11904 if test "$orig_target_ar" = ""; then
11905 # Extract the first word of "ar", so it can be a program name with args.
11906 set dummy ar; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_orig_target_ar+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $orig_target_ar in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11933 esac
11935 orig_target_ar=$ac_cv_path_orig_target_ar
11936 if test -n "$orig_target_ar"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11938 $as_echo "$orig_target_ar" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11947 else
11948 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11949 set dummy ${aros_tool_prefix}ar; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_path_orig_target_ar+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 case $orig_target_ar in
11956 [\\/]* | ?:[\\/]*)
11957 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11971 done
11972 done
11973 IFS=$as_save_IFS
11976 esac
11978 orig_target_ar=$ac_cv_path_orig_target_ar
11979 if test -n "$orig_target_ar"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11981 $as_echo "$orig_target_ar" >&6; }
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11990 if test "$orig_target_ar" = ""; then
11991 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11994 if test "${aros_tool_prefix}ranlib" = ""; then
11995 if test "$cross_compiling" = "yes" ; then
11996 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11997 set dummy ${target_tool_prefix}ar; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 case $orig_target_ranlib in
12004 [\\/]* | ?:[\\/]*)
12005 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12019 done
12020 done
12021 IFS=$as_save_IFS
12024 esac
12026 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12027 if test -n "$orig_target_ranlib"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12029 $as_echo "$orig_target_ranlib" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12036 else
12037 if test "$GCC" = "yes"; then
12038 aros_gcc_ar=`$CC -print-prog-name=ar`
12039 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12040 set dummy `basename $aros_gcc_ar`; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 case $orig_target_ranlib in
12047 [\\/]* | ?:[\\/]*)
12048 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in `dirname $aros_gcc_ar`
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12062 done
12063 done
12064 IFS=$as_save_IFS
12067 esac
12069 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12070 if test -n "$orig_target_ranlib"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12072 $as_echo "$orig_target_ranlib" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12080 if test "$orig_target_ranlib" = ""; then
12081 # Extract the first word of "ar", so it can be a program name with args.
12082 set dummy ar; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 case $orig_target_ranlib in
12089 [\\/]* | ?:[\\/]*)
12090 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12104 done
12105 done
12106 IFS=$as_save_IFS
12109 esac
12111 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12112 if test -n "$orig_target_ranlib"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12114 $as_echo "$orig_target_ranlib" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12123 else
12124 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12125 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 case $orig_target_ranlib in
12132 [\\/]* | ?:[\\/]*)
12133 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12147 done
12148 done
12149 IFS=$as_save_IFS
12152 esac
12154 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12155 if test -n "$orig_target_ranlib"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12157 $as_echo "$orig_target_ranlib" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12166 if test "$orig_target_ranlib" = ""; then
12167 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12170 if test "${aros_tool_prefix}nm" = ""; then
12171 if test "$cross_compiling" = "yes" ; then
12172 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12173 set dummy ${target_tool_prefix}nm; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if ${ac_cv_path_orig_target_nm+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 case $orig_target_nm in
12180 [\\/]* | ?:[\\/]*)
12181 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12195 done
12196 done
12197 IFS=$as_save_IFS
12200 esac
12202 orig_target_nm=$ac_cv_path_orig_target_nm
12203 if test -n "$orig_target_nm"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12205 $as_echo "$orig_target_nm" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12212 else
12213 if test "$GCC" = "yes"; then
12214 aros_gcc_nm=`$CC -print-prog-name=nm`
12215 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12216 set dummy `basename $aros_gcc_nm`; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_path_orig_target_nm+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 case $orig_target_nm in
12223 [\\/]* | ?:[\\/]*)
12224 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in `dirname $aros_gcc_nm`
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12234 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12238 done
12239 done
12240 IFS=$as_save_IFS
12243 esac
12245 orig_target_nm=$ac_cv_path_orig_target_nm
12246 if test -n "$orig_target_nm"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12248 $as_echo "$orig_target_nm" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12256 if test "$orig_target_nm" = ""; then
12257 # Extract the first word of "nm", so it can be a program name with args.
12258 set dummy nm; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_path_orig_target_nm+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 case $orig_target_nm in
12265 [\\/]* | ?:[\\/]*)
12266 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12285 esac
12287 orig_target_nm=$ac_cv_path_orig_target_nm
12288 if test -n "$orig_target_nm"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12290 $as_echo "$orig_target_nm" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12299 else
12300 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12301 set dummy ${aros_tool_prefix}nm; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_path_orig_target_nm+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 case $orig_target_nm in
12308 [\\/]* | ?:[\\/]*)
12309 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12323 done
12324 done
12325 IFS=$as_save_IFS
12328 esac
12330 orig_target_nm=$ac_cv_path_orig_target_nm
12331 if test -n "$orig_target_nm"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12333 $as_echo "$orig_target_nm" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12342 if test "$orig_target_nm" = ""; then
12343 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12346 if test "${aros_tool_prefix}strip" = ""; then
12347 if test "$cross_compiling" = "yes" ; then
12348 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12349 set dummy ${target_tool_prefix}strip; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if ${ac_cv_path_orig_target_strip+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 case $orig_target_strip in
12356 [\\/]* | ?:[\\/]*)
12357 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12371 done
12372 done
12373 IFS=$as_save_IFS
12376 esac
12378 orig_target_strip=$ac_cv_path_orig_target_strip
12379 if test -n "$orig_target_strip"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12381 $as_echo "$orig_target_strip" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12388 else
12389 if test "$GCC" = "yes"; then
12390 aros_gcc_strip=`$CC -print-prog-name=strip`
12391 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12392 set dummy `basename $aros_gcc_strip`; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if ${ac_cv_path_orig_target_strip+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 case $orig_target_strip in
12399 [\\/]* | ?:[\\/]*)
12400 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in `dirname $aros_gcc_strip`
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12414 done
12415 done
12416 IFS=$as_save_IFS
12419 esac
12421 orig_target_strip=$ac_cv_path_orig_target_strip
12422 if test -n "$orig_target_strip"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12424 $as_echo "$orig_target_strip" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12432 if test "$orig_target_strip" = ""; then
12433 # Extract the first word of "strip", so it can be a program name with args.
12434 set dummy strip; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_path_orig_target_strip+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $orig_target_strip in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12456 done
12457 done
12458 IFS=$as_save_IFS
12461 esac
12463 orig_target_strip=$ac_cv_path_orig_target_strip
12464 if test -n "$orig_target_strip"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12466 $as_echo "$orig_target_strip" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12475 else
12476 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12477 set dummy ${aros_tool_prefix}strip; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if ${ac_cv_path_orig_target_strip+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 case $orig_target_strip in
12484 [\\/]* | ?:[\\/]*)
12485 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12499 done
12500 done
12501 IFS=$as_save_IFS
12504 esac
12506 orig_target_strip=$ac_cv_path_orig_target_strip
12507 if test -n "$orig_target_strip"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12509 $as_echo "$orig_target_strip" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12518 if test "$orig_target_strip" = ""; then
12519 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12522 if test "${aros_tool_prefix}objcopy" = ""; then
12523 if test "$cross_compiling" = "yes" ; then
12524 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12525 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 case $orig_target_objcopy in
12532 [\\/]* | ?:[\\/]*)
12533 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12547 done
12548 done
12549 IFS=$as_save_IFS
12552 esac
12554 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12555 if test -n "$orig_target_objcopy"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12557 $as_echo "$orig_target_objcopy" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12564 else
12565 if test "$GCC" = "yes"; then
12566 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12567 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12568 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 case $orig_target_objcopy in
12575 [\\/]* | ?:[\\/]*)
12576 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in `dirname $aros_gcc_objcopy`
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12586 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 break 2
12590 done
12591 done
12592 IFS=$as_save_IFS
12595 esac
12597 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12598 if test -n "$orig_target_objcopy"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12600 $as_echo "$orig_target_objcopy" >&6; }
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12608 if test "$orig_target_objcopy" = ""; then
12609 # Extract the first word of "objcopy", so it can be a program name with args.
12610 set dummy objcopy; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 case $orig_target_objcopy in
12617 [\\/]* | ?:[\\/]*)
12618 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12632 done
12633 done
12634 IFS=$as_save_IFS
12637 esac
12639 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12640 if test -n "$orig_target_objcopy"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12642 $as_echo "$orig_target_objcopy" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12651 else
12652 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12653 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 case $orig_target_objcopy in
12660 [\\/]* | ?:[\\/]*)
12661 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12675 done
12676 done
12677 IFS=$as_save_IFS
12680 esac
12682 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12683 if test -n "$orig_target_objcopy"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12685 $as_echo "$orig_target_objcopy" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12694 if test "$orig_target_objcopy" = ""; then
12695 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12698 if test "${aros_tool_prefix}objdump" = ""; then
12699 if test "$cross_compiling" = "yes" ; then
12700 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12701 set dummy ${target_tool_prefix}objdump; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if ${ac_cv_path_orig_target_objdump+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 case $orig_target_objdump in
12708 [\\/]* | ?:[\\/]*)
12709 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12719 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 break 2
12723 done
12724 done
12725 IFS=$as_save_IFS
12728 esac
12730 orig_target_objdump=$ac_cv_path_orig_target_objdump
12731 if test -n "$orig_target_objdump"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12733 $as_echo "$orig_target_objdump" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12740 else
12741 if test "$GCC" = "yes"; then
12742 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12743 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12744 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if ${ac_cv_path_orig_target_objdump+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 case $orig_target_objdump in
12751 [\\/]* | ?:[\\/]*)
12752 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in `dirname $aros_gcc_objdump`
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12762 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12766 done
12767 done
12768 IFS=$as_save_IFS
12771 esac
12773 orig_target_objdump=$ac_cv_path_orig_target_objdump
12774 if test -n "$orig_target_objdump"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12776 $as_echo "$orig_target_objdump" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12784 if test "$orig_target_objdump" = ""; then
12785 # Extract the first word of "objdump", so it can be a program name with args.
12786 set dummy objdump; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if ${ac_cv_path_orig_target_objdump+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 case $orig_target_objdump in
12793 [\\/]* | ?:[\\/]*)
12794 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12804 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12808 done
12809 done
12810 IFS=$as_save_IFS
12813 esac
12815 orig_target_objdump=$ac_cv_path_orig_target_objdump
12816 if test -n "$orig_target_objdump"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12818 $as_echo "$orig_target_objdump" >&6; }
12819 else
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12827 else
12828 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12829 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_orig_target_objdump+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 case $orig_target_objdump in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12856 esac
12858 orig_target_objdump=$ac_cv_path_orig_target_objdump
12859 if test -n "$orig_target_objdump"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12861 $as_echo "$orig_target_objdump" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12870 if test "$orig_target_objdump" = ""; then
12871 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12875 if test "$kernel_tool_prefix" = "none" ; then
12876 # No kernel tools specified
12877 # Assume target tools == kernel tools with ELF wrapper
12878 aros_kernel_cc=$orig_target_cc
12879 aros_kernel_cxx=$orig_target_cxx
12880 aros_kernel_cpp=$orig_target_cpp
12881 aros_kernel_ld=$orig_target_ld
12882 aros_kernel_as=$orig_target_as
12883 aros_kernel_ar=$orig_target_ar
12884 aros_kernel_ranlib=$orig_target_ranlib
12885 aros_kernel_nm=$orig_target_nm
12886 aros_kernel_strip=$orig_target_strip
12887 aros_kernel_objcopy=$orig_target_objcopy
12888 aros_kernel_objdump=$orig_target_objdump
12889 use_kernel_cc_wrapper=yes
12892 # At this point, all aros_kernel_* and aros_target_*
12893 # tools should be set up correctly
12895 CC="$aros_kernel_cc $kernel_tool_flags"
12896 CPP="$aros_kernel_cpp"
12898 #-----------------------------------------------------------------------------
12900 # Find all the tools we need to compile. This could be cross-compiling
12901 # though! If that is the case we use the GNU form of the target and
12902 # simply add this to the front of the binary name. This is rather simple,
12903 # but it should work under most circumstances.
12905 # The default tools are to use the same as the host, but only if the
12906 # host and target CPU are the same. With GCC this is normally enough.
12909 aros_cc_pre=""
12910 aros_shared_ld="$aros_host_ld"
12912 aros_target_mkdep="$aros_host_mkdep"
12914 # The default tools executables to be linked to.
12915 if test "$rescomp" != ""; then
12916 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12917 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 case $aros_kernel_rescomp in
12924 [\\/]* | ?:[\\/]*)
12925 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12935 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12939 done
12940 done
12941 IFS=$as_save_IFS
12944 esac
12946 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12947 if test -n "$aros_kernel_rescomp"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12949 $as_echo "$aros_kernel_rescomp" >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12956 if test "$aros_kernel_rescomp" = ""; then
12957 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12961 # Set up the sources for the symlink farm
12962 if test "$crosstools" = "yes"; then
12963 crosstools_target=tools-crosstools
12966 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12967 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12969 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
12970 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12971 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12972 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12973 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12974 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12975 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12977 # aros_cc_pre is a variable that is added to the front of the compiler name
12978 # in the generated aros-gcc shell script. We need this to enable the cache
12979 # to work across cleaned builds. Also, support DISTCC using the correct
12980 # environment variable.
12983 if test "x${DISTCC}" != "x" ; then
12984 if test "x${CCACHE}" != "x" ; then
12985 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12986 else
12987 aros_cc_pre="${DISTCC} "
12989 else
12990 if test "x${CCACHE}" != "x" ; then
12991 aros_cc_pre="${CCACHE} "
12995 aros_target_nostdinc_cflags=-nostdinc
12997 aros_target_nostartup_ldflags=-nostartfiles
12999 aros_target_nix_ldflags=-nix
13001 aros_target_detach_ldflags=-detach
13003 aros_target_nostdlib_ldflags=-nostdlib
13006 # Target tools
13008 if test "$aros_target_toolchain" != "yes"; then
13009 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13010 if test "$GCC" = "yes"; then
13011 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13013 else
13014 # We do not know which c compiler version we are going to build and what we need to know
13015 # here is different for different versions so this will be set later during the
13016 # build of crosstools.
13017 if test "$aros_toolchain" = "gnu" ; then
13018 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13019 elif test "$aros_toolchain" = "llvm" ; then
13020 prefix="$AROS_CROSSTOOLSDIR/bin/"
13022 aros_target_cc_path=@aros_target_cc_path@
13024 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13025 aros_target_cc="${prefix}${toolchain_c_compiler}"
13026 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13027 aros_target_as="${prefix}as"
13028 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13029 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13030 aros_target_objcopy="${prefix}objcopy"
13031 aros_target_objdump="${prefix}objdump"
13032 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13033 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13034 aros_target_strip="${prefix}strip"
13035 aros_plain_nm="${prefix}nm"
13036 aros_plain_ar="${prefix}ar"
13038 # Check whether --enable-includes was given.
13039 if test "${enable_includes+set}" = set; then :
13040 enableval=$enable_includes; aros_target_incl=$enable_includes
13041 else
13042 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13046 if test "$aros_kernel_includes" = ""; then
13047 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13048 aros_kernel_includes="-isystem $aros_target_incl"
13052 if test "$aros_kernel_includes" != "" ; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13054 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13055 if test "$aros_kernel_cc_includes" = "" ; then
13056 # Try to guess where the directory is.
13057 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13058 if test -d $aros_kernel_cc_includes; then
13059 # Check if there is also an include-fixed directory and add it
13060 # to kernel compiler's include path as it may contain some of
13061 # the headers we need.
13062 if test -d "$aros_kernel_cc_includes"-fixed; then
13063 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13065 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13066 case ${host_cpu} in
13067 i[3456]86)
13068 host_cpu_glibc=i386
13071 host_cpu_glibc=${host_cpu}
13073 esac
13074 if test -d "/usr/include/${host_cpu_glibc}-linux-gnu"; then
13075 aros_kernel_cc_includes+=" -isystem /usr/include/${host_cpu_glibc}-linux-gnu"
13077 else
13078 # The directory doesn't exist, we need to do some more work.
13079 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13081 # These are the headers we're looking for.
13082 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13083 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13084 zutil.h stdint.h"
13086 dirs=
13087 for h in $headers; do
13088 # Which other headers are needed by each of the above?
13089 deps=$(echo "#include <$h>" | \
13090 $aros_kernel_cc -E -M - 2>/dev/null | \
13091 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13093 # Copy all the needed headers to a directory beneath gendir.
13094 for d in $deps; do
13095 h=$(basename $d)
13096 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13097 sed -n "s,^.*/include\(/.*\),\1,p")
13098 ! test -d $dir && mkdir -p $dir
13099 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13100 done
13101 done
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13105 $as_echo "$aros_kernel_cc_includes" >&6; }
13106 # Adding -nostdinc to kernel includes as they are always used together.
13107 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13110 if test "$crosstools" != "yes"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13112 $as_echo_n "checking for the target compiler's include path... " >&6; }
13113 if test "$aros_target_cc_includes" = "" ; then
13114 #try to guess where the directory is
13115 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13116 if ! test -d $aros_target_cc_includes; then
13117 #the directory doesn't exist, we need to do some more work
13118 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13120 #these are the headers we're looking for
13121 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13122 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13123 zutil.h"
13125 dirs=
13126 for h in $headers; do
13127 #which other headers each of the above headers needs?
13128 deps=$(echo "#include <$h>" | \
13129 $orig_target_cc -E -M - 2>/dev/null | \
13130 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13132 #copy all the needed headers to a directory beneath gendir
13133 for d in $deps; do
13134 h=$(basename $d)
13135 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13136 sed -n "s,^.*/include\(/.*\),\1,p")
13137 ! test -d $dir && mkdir -p $dir
13138 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13139 done
13140 done
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13144 $as_echo "$aros_target_cc_includes" >&6; }
13145 else
13146 # We do not know which c compiler version we are going to build and what we need to know
13147 # here is different for different versions so this will be set later during the
13148 # build of crosstools.
13149 aros_target_cc_includes=@aros_target_cc_includes@
13153 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13154 # On GCC >= 4.0 -iquote should be used
13157 save_cc="$CC"
13158 save_cflags="$CFLAGS"
13159 CFLAGS="-iquote."
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13161 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13162 if test "x-$crosstools" != "x-yes"; then
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13167 main ()
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 has_iquote="yes"
13176 else
13177 has_iquote="no"
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 else
13181 # we do know it is supported for the smallest version of ${toolchain_c_compiler} we are going to build
13182 # we assume it's also supported by later versions
13183 has_iquote=yes
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13186 $as_echo "$has_iquote" >&6; }
13187 if test "x-$has_iquote" = "x-yes" ; then
13188 host_cflags_iquote=-iquote
13189 host_cflags_iquote_end=
13190 else
13191 host_cflags_iquote=-I
13192 host_cflags_iquote_end=-I-
13194 kernel_cflags_iquote=$host_cflags_iquote
13195 kernel_cflags_iquote_end=$host_cflags_iquote_end
13196 if test "x-$cross_compiling" = "x-yes"; then
13197 CC="$aros_kernel_cc"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13199 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13200 if test "x-$crosstools" != "x-yes"; then
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13205 main ()
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_compile "$LINENO"; then :
13213 use_no_stack_protector="yes"
13214 else
13215 use_no_stack_protector="no"
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 else
13219 # we do know it is supported for the smallest version of gcc we are going to build
13220 # we assume it's also supported by later versions
13221 use_no_stack_protector=yes
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13224 $as_echo "$use_no_stack_protector" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13226 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13227 if test "x-$crosstools" != "x-yes"; then
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13232 main ()
13236 return 0;
13238 _ACEOF
13239 if ac_fn_c_try_compile "$LINENO"; then :
13240 has_iquote="yes"
13241 else
13242 has_iquote="no"
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 else
13246 # we do know it is supported for the smallest version of gcc we are going to build
13247 # we assume it's also supported by later versions
13248 has_iquote=yes
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13251 $as_echo "$has_iquote" >&6; }
13252 if test "x-$has_iquote" = "x-yes" ; then
13253 kernel_cflags_iquote=-iquote
13254 kernel_cflags_iquote_end=
13255 else
13256 kernel_cflags_iquote=-I
13257 kernel_cflags_iquote_end=-I-
13260 aros_cflags_iquote=$kernel_cflags_iquote
13261 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13262 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13263 CC="$orig_target_cc"
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13265 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13266 if test "x-$crosstools" != "x-yes"; then
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13271 main ()
13275 return 0;
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 has_iquote="yes"
13280 else
13281 has_iquote="no"
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 else
13285 # we do know it is supported for the smallest version of gcc we are going to build
13286 # we assume it's also supported by later versions
13287 has_iquote=yes
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13290 $as_echo "$has_iquote" >&6; }
13291 if test "x-$has_iquote" = "x-yes" ; then
13292 aros_cflags_iquote=-iquote
13293 aros_cflags_iquote_end=
13294 else
13295 aros_cflags_iquote=-I
13296 aros_cflags_iquote_end=-I-
13299 if test "x-$use_no_stack_protector" = "x-yes" ; then
13300 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13303 #-----------------------------------------------------------------------------
13305 # Check if we can explicitly choose older version of symbol hashing
13307 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13308 CC="$aros_kernel_cc"
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13310 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13315 main ()
13319 return 0;
13321 _ACEOF
13322 if ac_fn_c_try_link "$LINENO"; then :
13323 use_hash_style="yes"
13324 else
13325 use_hash_style="no"
13327 rm -f core conftest.err conftest.$ac_objext \
13328 conftest$ac_exeext conftest.$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13330 $as_echo "$use_hash_style" >&6; }
13331 if test "x-$use_hash_style" = "x-yes" ; then
13332 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13334 CC="$save_cc"
13335 CFLAGS="$save_cflags"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13346 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13348 # Check whether --with-resolution was given.
13349 if test "${with_resolution+set}" = set; then :
13350 withval=$with_resolution; resolution=$withval
13351 else
13352 resolution=none
13355 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13356 if test "$resolution" = "yes" ; then
13357 resolution="none"
13359 if test "$resolution" = "no" ; then
13360 resolution="none"
13362 if test "$resolution" != "none" ; then
13363 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13364 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13365 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13368 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13369 aros_cv_nominal_width=$aros_nominal_width
13370 aros_cv_nominal_height=$aros_nominal_height
13371 aros_cv_nominal_depth=$aros_nominal_depth
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13374 $as_echo_n "checking if serial debug is enabled... " >&6; }
13376 # Check whether --with-serial-debug was given.
13377 if test "${with_serial_debug+set}" = set; then :
13378 withval=$with_serial_debug; serial_debug=$withval
13379 else
13380 serial_debug=none
13383 if test "$aros_serial_debug" = 0 ; then
13384 serial_debug_forced=""
13385 if test "$serial_debug" = "yes" ; then
13386 serial_debug="1"
13388 if test "$serial_debug" = "no" ; then
13389 serial_debug="none"
13391 else
13392 serial_debug_forced="(forced)"
13393 serial_debug=$aros_serial_debug
13395 if test "$serial_debug" != "none" ; then
13396 aros_serial_debug=$serial_debug
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13398 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13405 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13406 # Check whether --enable-palm_debug_hack was given.
13407 if test "${enable_palm_debug_hack+set}" = set; then :
13408 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13409 else
13410 palm_debug_hack="no"
13413 if test "$palm_debug_hack" = "yes" ; then
13414 aros_palm_debug_hack="1"
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13417 $as_echo "$palm_debug_hack" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13420 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13421 # Check whether --enable-usb30_code was given.
13422 if test "${enable_usb30_code+set}" = set; then :
13423 enableval=$enable_usb30_code; usb30_code="yes"
13424 else
13425 usb30_code="no"
13428 if test "$usb30_code" = "yes" ; then
13429 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13430 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13433 $as_echo "$usb30_code" >&6; }
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13436 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13437 # Check whether --enable-nesting_supervisor was given.
13438 if test "${enable_nesting_supervisor+set}" = set; then :
13439 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13440 else
13441 nesting_supervisor="no"
13444 if test "$nesting_supervisor" = "yes" ; then
13445 aros_nesting_supervisor="1"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13448 $as_echo "$nesting_supervisor" >&6; }
13450 if test "$aros_enable_mmu" = "" ; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13452 $as_echo_n "checking if MMU support is enabled... " >&6; }
13453 # Check whether --enable-mmu was given.
13454 if test "${enable_mmu+set}" = set; then :
13455 enableval=$enable_mmu; aros_enable_mmu=$enableval
13456 else
13457 aros_enable_mmu="yes"
13460 if test "$aros_enable_mmu" = "" ; then
13461 aros_enable_mmu="yes"
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13464 $as_echo "$aros_enable_mmu" >&6; }
13466 if test "$aros_enable_mmu" = "no" ; then
13467 aros_enable_mmu="0"
13468 else
13469 aros_enable_mmu="1"
13473 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13475 if test "x-$need_dlopen" != "x-no" ; then
13476 save_libs="$LIBS"
13477 LIBS=""
13478 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13479 if test "x$ac_cv_func_dlopen" = xyes; then :
13480 have_dl="yes"
13481 else
13482 have_dl="no"
13485 if test "x-$have_dl" = "x-no" ; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13487 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13488 if ${ac_cv_lib_dl_dlopen+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 ac_check_lib_save_LIBS=$LIBS
13492 LIBS="-ldl $LIBS"
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13496 /* Override any GCC internal prototype to avoid an error.
13497 Use char because int might match the return type of a GCC
13498 builtin and then its argument prototype would still apply. */
13499 #ifdef __cplusplus
13500 extern "C"
13501 #endif
13502 char dlopen ();
13504 main ()
13506 return dlopen ();
13508 return 0;
13510 _ACEOF
13511 if ac_fn_c_try_link "$LINENO"; then :
13512 ac_cv_lib_dl_dlopen=yes
13513 else
13514 ac_cv_lib_dl_dlopen=no
13516 rm -f core conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13522 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13523 have_dl="yes"
13524 aros_host_ldflags="$aros_host_ldflags -ldl"
13525 else
13526 have_dl="no"
13530 if test "x-$have_dl" = "x-no" ; then
13531 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13533 LIBS="$save_libs"
13537 # Check whether --enable-x11_hidd was given.
13538 if test "${enable_x11_hidd+set}" = set; then :
13539 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13540 else
13541 x11_hidd="$need_x11"
13544 case "x-$x11_hidd" in
13545 x-yes|x-no|x-auto) ;;
13546 *) x11_hidd="$need_x11" ;;
13547 esac
13549 ENABLE_X11=0
13551 if test "x-$x11_hidd" != "x-no" ; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13554 $as_echo_n "checking for X... " >&6; }
13557 # Check whether --with-x was given.
13558 if test "${with_x+set}" = set; then :
13559 withval=$with_x;
13562 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13563 if test "x$with_x" = xno; then
13564 # The user explicitly disabled X.
13565 have_x=disabled
13566 else
13567 case $x_includes,$x_libraries in #(
13568 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13569 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 # One or both of the vars are not set, and there is no cached value.
13573 ac_x_includes=no ac_x_libraries=no
13574 rm -f -r conftest.dir
13575 if mkdir conftest.dir; then
13576 cd conftest.dir
13577 cat >Imakefile <<'_ACEOF'
13578 incroot:
13579 @echo incroot='${INCROOT}'
13580 usrlibdir:
13581 @echo usrlibdir='${USRLIBDIR}'
13582 libdir:
13583 @echo libdir='${LIBDIR}'
13584 _ACEOF
13585 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13586 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13587 for ac_var in incroot usrlibdir libdir; do
13588 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13589 done
13590 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13591 for ac_extension in a so sl dylib la dll; do
13592 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13593 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13594 ac_im_usrlibdir=$ac_im_libdir; break
13596 done
13597 # Screen out bogus values from the imake configuration. They are
13598 # bogus both because they are the default anyway, and because
13599 # using them would break gcc on systems where it needs fixed includes.
13600 case $ac_im_incroot in
13601 /usr/include) ac_x_includes= ;;
13602 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13603 esac
13604 case $ac_im_usrlibdir in
13605 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13606 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13607 esac
13609 cd ..
13610 rm -f -r conftest.dir
13613 # Standard set of common directories for X headers.
13614 # Check X11 before X11Rn because it is often a symlink to the current release.
13615 ac_x_header_dirs='
13616 /usr/X11/include
13617 /usr/X11R7/include
13618 /usr/X11R6/include
13619 /usr/X11R5/include
13620 /usr/X11R4/include
13622 /usr/include/X11
13623 /usr/include/X11R7
13624 /usr/include/X11R6
13625 /usr/include/X11R5
13626 /usr/include/X11R4
13628 /usr/local/X11/include
13629 /usr/local/X11R7/include
13630 /usr/local/X11R6/include
13631 /usr/local/X11R5/include
13632 /usr/local/X11R4/include
13634 /usr/local/include/X11
13635 /usr/local/include/X11R7
13636 /usr/local/include/X11R6
13637 /usr/local/include/X11R5
13638 /usr/local/include/X11R4
13640 /usr/X386/include
13641 /usr/x386/include
13642 /usr/XFree86/include/X11
13644 /usr/include
13645 /usr/local/include
13646 /usr/unsupported/include
13647 /usr/athena/include
13648 /usr/local/x11r5/include
13649 /usr/lpp/Xamples/include
13651 /usr/openwin/include
13652 /usr/openwin/share/include'
13654 if test "$ac_x_includes" = no; then
13655 # Guess where to find include files, by looking for Xlib.h.
13656 # First, try using that file with no special directory specified.
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 #include <X11/Xlib.h>
13660 _ACEOF
13661 if ac_fn_c_try_cpp "$LINENO"; then :
13662 # We can compile using X headers with no special include directory.
13663 ac_x_includes=
13664 else
13665 for ac_dir in $ac_x_header_dirs; do
13666 if test -r "$ac_dir/X11/Xlib.h"; then
13667 ac_x_includes=$ac_dir
13668 break
13670 done
13672 rm -f conftest.err conftest.i conftest.$ac_ext
13673 fi # $ac_x_includes = no
13675 if test "$ac_x_libraries" = no; then
13676 # Check for the libraries.
13677 # See if we find them without any special options.
13678 # Don't add to $LIBS permanently.
13679 ac_save_LIBS=$LIBS
13680 LIBS="-lX11 $LIBS"
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <X11/Xlib.h>
13685 main ()
13687 XrmInitialize ()
13689 return 0;
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 LIBS=$ac_save_LIBS
13694 # We can link X programs with no special library path.
13695 ac_x_libraries=
13696 else
13697 LIBS=$ac_save_LIBS
13698 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13700 # Don't even attempt the hair of trying to link an X program!
13701 for ac_extension in a so sl dylib la dll; do
13702 if test -r "$ac_dir/libX11.$ac_extension"; then
13703 ac_x_libraries=$ac_dir
13704 break 2
13706 done
13707 done
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 fi # $ac_x_libraries = no
13713 case $ac_x_includes,$ac_x_libraries in #(
13714 no,* | *,no | *\'*)
13715 # Didn't find X, or a directory has "'" in its name.
13716 ac_cv_have_x="have_x=no";; #(
13718 # Record where we found X for the cache.
13719 ac_cv_have_x="have_x=yes\
13720 ac_x_includes='$ac_x_includes'\
13721 ac_x_libraries='$ac_x_libraries'"
13722 esac
13724 ;; #(
13725 *) have_x=yes;;
13726 esac
13727 eval "$ac_cv_have_x"
13728 fi # $with_x != no
13730 if test "$have_x" != yes; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13732 $as_echo "$have_x" >&6; }
13733 no_x=yes
13734 else
13735 # If each of the values was on the command line, it overrides each guess.
13736 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13737 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13738 # Update the cache value to reflect the command line values.
13739 ac_cv_have_x="have_x=yes\
13740 ac_x_includes='$x_includes'\
13741 ac_x_libraries='$x_libraries'"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13743 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13747 x_cflags=
13748 for path in $x_libraries
13750 x_cflags="$x_cflags -L$path"
13751 done
13753 for path in $x_includes
13755 x_cflags="$x_cflags -I$path"
13756 done
13758 if test "x-$no_x" = "x-yes" ; then
13760 if test "x-$x11_hidd" != "x-auto" ; then
13761 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13764 else
13765 host_x_gfx=yes
13766 ENABLE_X11=1
13768 # Check whether --enable-x11_shm was given.
13769 if test "${enable_x11_shm+set}" = set; then :
13770 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13771 else
13772 x11_hidd_shm="auto"
13775 case "x-$x11_hidd_shm" in
13776 x-yes|x-no|x-auto) ;;
13777 *) x11_hidd_shm="auto" ;;
13778 esac
13780 have_xshm=no
13782 if test "x-$x11_hidd_shm" != "x-no" ; then
13784 for ac_header in sys/ipc.h
13785 do :
13786 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13787 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_SYS_IPC_H 1
13790 _ACEOF
13794 done
13796 for ac_header in sys/shm.h
13797 do :
13798 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13799 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_SYS_SHM_H 1
13802 _ACEOF
13806 done
13809 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13811 save_cflags="$CFLAGS"
13812 CFLAGS="$CFLAGS $x_cflags"
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13814 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13815 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-lXext $LIBS"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char XShmQueryExtension ();
13831 main ()
13833 return XShmQueryExtension ();
13835 return 0;
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 ac_cv_lib_Xext_XShmQueryExtension=yes
13840 else
13841 ac_cv_lib_Xext_XShmQueryExtension=no
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13848 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13849 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13850 have_xshm=yes
13853 CFLAGS="$save_cflags"
13857 if test "x-$have_xshm" = "x-yes" ; then
13858 DO_XSHM_SUPPORT="1"
13859 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13860 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13861 else
13862 DO_XSHM_SUPPORT="0"
13866 # Check whether --enable-x11_vidmode was given.
13867 if test "${enable_x11_vidmode+set}" = set; then :
13868 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13869 else
13870 x11_hidd_vidmode="auto"
13873 case "x-$x11_hidd_vidmode" in
13874 x-yes|x-no|x-auto) ;;
13875 *) x11_hidd_vidmode="auto" ;;
13876 esac
13878 have_vidmode=no
13880 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13882 save_cflags="$CFLAGS"
13883 CFLAGS="$CFLAGS $x_cflags"
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13885 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13886 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 ac_check_lib_save_LIBS=$LIBS
13890 LIBS="-lXxf86vm $LIBS"
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 /* Override any GCC internal prototype to avoid an error.
13895 Use char because int might match the return type of a GCC
13896 builtin and then its argument prototype would still apply. */
13897 #ifdef __cplusplus
13898 extern "C"
13899 #endif
13900 char XF86VidModeQueryExtension ();
13902 main ()
13904 return XF86VidModeQueryExtension ();
13906 return 0;
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13911 else
13912 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LIBS=$ac_check_lib_save_LIBS
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13919 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13920 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13921 have_vidmode=yes
13924 CFLAGS="$save_cflags"
13927 if test "x-$have_vidmode" = "x-yes" ; then
13928 DO_VIDMODE_SUPPORT="1"
13929 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13930 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13931 else
13932 DO_VIDMODE_SUPPORT="0"
13936 aros_host_x11_includes=$x_includes
13937 aros_host_x11_libdirs=$x_libraries
13941 # Check whether --enable-sdl_hidd was given.
13942 if test "${enable_sdl_hidd+set}" = set; then :
13943 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13944 else
13945 sdl_hidd="auto"
13948 case "x-$sdl_hidd" in
13949 x-yes|x-no|x-auto) ;;
13950 *) sdl_hidd="auto" ;;
13951 esac
13953 if test "x-$sdl_hidd" != "x-no" ; then
13955 SDL_VERSION=1.2.5
13957 # Check whether --with-sdl-prefix was given.
13958 if test "${with_sdl_prefix+set}" = set; then :
13959 withval=$with_sdl_prefix; sdl_prefix="$withval"
13960 else
13961 sdl_prefix=""
13965 # Check whether --with-sdl-exec-prefix was given.
13966 if test "${with_sdl_exec_prefix+set}" = set; then :
13967 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13968 else
13969 sdl_exec_prefix=""
13972 # Check whether --enable-sdltest was given.
13973 if test "${enable_sdltest+set}" = set; then :
13974 enableval=$enable_sdltest;
13975 else
13976 enable_sdltest=yes
13980 if test x$sdl_exec_prefix != x ; then
13981 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13982 if test x${SDL_CONFIG+set} != xset ; then
13983 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13986 if test x$sdl_prefix != x ; then
13987 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13988 if test x${SDL_CONFIG+set} != xset ; then
13989 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13993 as_save_PATH="$PATH"
13994 if test "x$prefix" != xNONE; then
13995 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13997 # Extract the first word of "sdl-config", so it can be a program name with args.
13998 set dummy sdl-config; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000 $as_echo_n "checking for $ac_word... " >&6; }
14001 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 case $SDL_CONFIG in
14005 [\\/]* | ?:[\\/]*)
14006 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14020 done
14021 done
14022 IFS=$as_save_IFS
14024 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14026 esac
14028 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14029 if test -n "$SDL_CONFIG"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14031 $as_echo "$SDL_CONFIG" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14038 PATH="$as_save_PATH"
14039 min_sdl_version=$SDL_VERSION
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14041 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14042 no_sdl=""
14043 if test "$SDL_CONFIG" = "no" ; then
14044 no_sdl=yes
14045 else
14046 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14047 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14049 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14051 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14053 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14055 if test "x$enable_sdltest" = "xyes" ; then
14056 ac_save_CFLAGS="$CFLAGS"
14057 ac_save_CXXFLAGS="$CXXFLAGS"
14058 ac_save_LIBS="$LIBS"
14059 CFLAGS="$CFLAGS $SDL_CFLAGS"
14060 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14061 LIBS="$LIBS $SDL_LIBS"
14062 rm -f conf.sdltest
14063 if test "$cross_compiling" = yes; then :
14064 echo $ac_n "cross compiling; assumed OK... $ac_c"
14065 else
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14069 #include <stdio.h>
14070 #include <stdlib.h>
14071 #include <string.h>
14072 #include "SDL.h"
14074 char*
14075 my_strdup (char *str)
14077 char *new_str;
14079 if (str)
14081 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14082 strcpy (new_str, str);
14084 else
14085 new_str = NULL;
14087 return new_str;
14090 int main (int argc, char *argv[])
14092 int major, minor, micro;
14093 char *tmp_version;
14095 /* This hangs on some systems (?)
14096 system ("touch conf.sdltest");
14098 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14100 /* HP/UX 9 (%@#!) writes to sscanf strings */
14101 tmp_version = my_strdup("$min_sdl_version");
14102 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14103 printf("%s, bad version string\n", "$min_sdl_version");
14104 exit(1);
14107 if (($sdl_major_version > major) ||
14108 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14109 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14111 return 0;
14113 else
14115 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14116 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14117 printf("*** best to upgrade to the required version.\n");
14118 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14119 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14120 printf("*** config.cache before re-running configure\n");
14121 return 1;
14126 _ACEOF
14127 if ac_fn_c_try_run "$LINENO"; then :
14129 else
14130 no_sdl=yes
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14136 CFLAGS="$ac_save_CFLAGS"
14137 CXXFLAGS="$ac_save_CXXFLAGS"
14138 LIBS="$ac_save_LIBS"
14141 if test "x$no_sdl" = x ; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143 $as_echo "yes" >&6; }
14144 have_sdl="yes"
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; }
14148 if test "$SDL_CONFIG" = "no" ; then
14149 echo "*** The sdl-config script installed by SDL could not be found"
14150 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14151 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14152 echo "*** full path to sdl-config."
14153 else
14154 if test -f conf.sdltest ; then
14156 else
14157 echo "*** Could not run SDL test program, checking why..."
14158 CFLAGS="$CFLAGS $SDL_CFLAGS"
14159 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14160 LIBS="$LIBS $SDL_LIBS"
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14164 #include <stdio.h>
14165 #include "SDL.h"
14167 int main(int argc, char *argv[])
14168 { return 0; }
14169 #undef main
14170 #define main K_and_R_C_main
14173 main ()
14175 return 0;
14177 return 0;
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 echo "*** The test program compiled, but did not run. This usually means"
14182 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14183 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14184 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14185 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14186 echo "*** is required on your system"
14187 echo "***"
14188 echo "*** If you have an old version installed, it is best to remove it, although"
14189 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14190 else
14191 echo "*** The test program failed to compile or link. See the file config.log for the"
14192 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14193 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14194 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 CFLAGS="$ac_save_CFLAGS"
14199 CXXFLAGS="$ac_save_CXXFLAGS"
14200 LIBS="$ac_save_LIBS"
14203 SDL_CFLAGS=""
14204 SDL_LIBS=""
14205 have_sdl="no"
14209 rm -f conf.sdltest
14212 if test "x-$have_sdl" != "x-yes" ; then
14214 if test "x-$sdl_hidd" != "x-auto" ; then
14215 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14218 else
14219 host_sdl_gfx=yes
14220 aros_host_sdl_cflags=$SDL_CFLAGS
14221 aros_host_sdl_libs=$SDL_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14229 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14230 # Check whether --enable-dbus was given.
14231 if test "${enable_dbus+set}" = set; then :
14232 enableval=$enable_dbus; dbus="yes"
14233 else
14234 dbus="no"
14237 if test "$dbus" = "yes" ; then
14238 ENABLE_DBUS=1
14239 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14240 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14241 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14242 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14243 else
14244 ENABLE_DBUS=0
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14247 $as_echo "$dbus" >&6; }
14249 if test "$use_kernel_cc_wrapper" = "yes" ; then
14250 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14254 # Generic
14267 # Compatability with other Amiga-like operation systems
14270 # Host related
14299 # Target Related
14370 # Hosted Graphics Related
14388 # Native version related
14392 # Palm native version related
14395 # Unix/Hosted version related
14398 # MMU related
14401 # Apple iOS related
14406 # ARM default GCC target related
14413 # Android related
14418 # DBUS related
14425 #X11 related
14428 # Debug related
14434 # Collect-aros stuff: "-ius" to ignore undefined symbols
14437 # C compiler related
14442 #ObjC compiler related
14445 #Java related
14448 # USB3.0 code
14451 case "$aros_flavour" in
14452 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14453 aros_flavour="emulation" ;;
14454 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14455 aros_flavour="emulation" ;;
14456 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14457 aros_flavour="standalone";;
14458 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14459 aros_flavour="standalone";;
14460 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14461 aros_flavour="native" ;;
14462 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14463 aros_flavour="native" ;;
14464 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14465 aros_flavour="linklib" ;;
14466 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14467 aros_flavour="palmnative" ;;
14468 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14469 aros_flavour="mac68knative" ;;
14470 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14471 aros_flavour="ppcnative" ;;
14472 esac
14474 if test ! -d ${aros_inc_dir} ; then
14475 ${MKDIR} ${aros_inc_dir}
14477 if test ! -d ${aros_geninc_dir} ; then
14478 ${MKDIR} ${aros_geninc_dir}
14480 if test ! -d ${aros_hostcfg_dir} ; then
14481 ${MKDIR} ${aros_hostcfg_dir}
14483 if test ! -d ${aros_targetcfg_dir} ; then
14484 ${MKDIR} ${aros_targetcfg_dir}
14486 if test ! -d ${aros_tools_dir} ; then
14487 ${MKDIR} ${aros_tools_dir}
14489 if test ! -d ${aros_scripts_dir} ; then
14490 ${MKDIR} ${aros_scripts_dir}
14493 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14496 # Generic build tools (metamake, etc)
14497 ac_config_commands="$ac_config_commands genmf-executable-support"
14499 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"
14502 # Binutils
14503 ac_config_commands="$ac_config_commands binutils-support"
14505 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14508 # Bare Elf support script and spec
14509 if test "${use_kernel_cc_wrapper}" = "yes"; then
14510 ac_config_commands="$ac_config_commands elf-compiler-support"
14512 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"
14516 # Host compiler support scripts and spec
14517 if test "${aros_target_toolchain}" = "no"; then
14518 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14520 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"
14524 # Android support
14525 if test "$aros_target_variant" == "android"; then
14526 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14530 # cmake helper
14531 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14534 cat >confcache <<\_ACEOF
14535 # This file is a shell script that caches the results of configure
14536 # tests run on this system so they can be shared between configure
14537 # scripts and configure runs, see configure's option --config-cache.
14538 # It is not useful on other systems. If it contains results you don't
14539 # want to keep, you may remove or edit it.
14541 # config.status only pays attention to the cache file if you give it
14542 # the --recheck option to rerun configure.
14544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14546 # following values.
14548 _ACEOF
14550 # The following way of writing the cache mishandles newlines in values,
14551 # but we know of no workaround that is simple, portable, and efficient.
14552 # So, we kill variables containing newlines.
14553 # Ultrix sh set writes to stderr and can't be redirected directly,
14554 # and sets the high bit in the cache file unless we assign to the vars.
14556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14557 eval ac_val=\$$ac_var
14558 case $ac_val in #(
14559 *${as_nl}*)
14560 case $ac_var in #(
14561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14563 esac
14564 case $ac_var in #(
14565 _ | IFS | as_nl) ;; #(
14566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14567 *) { eval $ac_var=; unset $ac_var;} ;;
14568 esac ;;
14569 esac
14570 done
14572 (set) 2>&1 |
14573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14574 *${as_nl}ac_space=\ *)
14575 # `set' does not quote correctly, so add quotes: double-quote
14576 # substitution turns \\\\ into \\, and sed turns \\ into \.
14577 sed -n \
14578 "s/'/'\\\\''/g;
14579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14580 ;; #(
14582 # `set' quotes correctly as required by POSIX, so do not add quotes.
14583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14585 esac |
14586 sort
14588 sed '
14589 /^ac_cv_env_/b end
14590 t clear
14591 :clear
14592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14593 t end
14594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14595 :end' >>confcache
14596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14597 if test -w "$cache_file"; then
14598 if test "x$cache_file" != "x/dev/null"; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14600 $as_echo "$as_me: updating cache $cache_file" >&6;}
14601 if test ! -f "$cache_file" || test -h "$cache_file"; then
14602 cat confcache >"$cache_file"
14603 else
14604 case $cache_file in #(
14605 */* | ?:*)
14606 mv -f confcache "$cache_file"$$ &&
14607 mv -f "$cache_file"$$ "$cache_file" ;; #(
14609 mv -f confcache "$cache_file" ;;
14610 esac
14613 else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14618 rm -f confcache
14620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14621 # Let make expand exec_prefix.
14622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14624 DEFS=-DHAVE_CONFIG_H
14626 ac_libobjs=
14627 ac_ltlibobjs=
14629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14630 # 1. Remove the extension, and $U if already installed.
14631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14634 # will be set to the directory where LIBOBJS objects are built.
14635 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14636 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14637 done
14638 LIBOBJS=$ac_libobjs
14640 LTLIBOBJS=$ac_ltlibobjs
14644 : "${CONFIG_STATUS=./config.status}"
14645 ac_write_fail=0
14646 ac_clean_files_save=$ac_clean_files
14647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14650 as_write_fail=0
14651 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14652 #! $SHELL
14653 # Generated by $as_me.
14654 # Run this file to recreate the current configuration.
14655 # Compiler output produced by configure, useful for debugging
14656 # configure, is in config.log if it exists.
14658 debug=false
14659 ac_cs_recheck=false
14660 ac_cs_silent=false
14662 SHELL=\${CONFIG_SHELL-$SHELL}
14663 export SHELL
14664 _ASEOF
14665 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14666 ## -------------------- ##
14667 ## M4sh Initialization. ##
14668 ## -------------------- ##
14670 # Be more Bourne compatible
14671 DUALCASE=1; export DUALCASE # for MKS sh
14672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14673 emulate sh
14674 NULLCMD=:
14675 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14676 # is contrary to our usage. Disable this feature.
14677 alias -g '${1+"$@"}'='"$@"'
14678 setopt NO_GLOB_SUBST
14679 else
14680 case `(set -o) 2>/dev/null` in #(
14681 *posix*) :
14682 set -o posix ;; #(
14683 *) :
14685 esac
14689 as_nl='
14691 export as_nl
14692 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14693 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14696 # Prefer a ksh shell builtin over an external printf program on Solaris,
14697 # but without wasting forks for bash or zsh.
14698 if test -z "$BASH_VERSION$ZSH_VERSION" \
14699 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14700 as_echo='print -r --'
14701 as_echo_n='print -rn --'
14702 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14703 as_echo='printf %s\n'
14704 as_echo_n='printf %s'
14705 else
14706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14708 as_echo_n='/usr/ucb/echo -n'
14709 else
14710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14711 as_echo_n_body='eval
14712 arg=$1;
14713 case $arg in #(
14714 *"$as_nl"*)
14715 expr "X$arg" : "X\\(.*\\)$as_nl";
14716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14717 esac;
14718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14720 export as_echo_n_body
14721 as_echo_n='sh -c $as_echo_n_body as_echo'
14723 export as_echo_body
14724 as_echo='sh -c $as_echo_body as_echo'
14727 # The user is always right.
14728 if test "${PATH_SEPARATOR+set}" != set; then
14729 PATH_SEPARATOR=:
14730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14732 PATH_SEPARATOR=';'
14737 # IFS
14738 # We need space, tab and new line, in precisely that order. Quoting is
14739 # there to prevent editors from complaining about space-tab.
14740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14741 # splitting by setting IFS to empty value.)
14742 IFS=" "" $as_nl"
14744 # Find who we are. Look in the path if we contain no directory separator.
14745 as_myself=
14746 case $0 in #((
14747 *[\\/]* ) as_myself=$0 ;;
14748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14751 IFS=$as_save_IFS
14752 test -z "$as_dir" && as_dir=.
14753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14754 done
14755 IFS=$as_save_IFS
14758 esac
14759 # We did not find ourselves, most probably we were run as `sh COMMAND'
14760 # in which case we are not to be found in the path.
14761 if test "x$as_myself" = x; then
14762 as_myself=$0
14764 if test ! -f "$as_myself"; then
14765 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14766 exit 1
14769 # Unset variables that we do not need and which cause bugs (e.g. in
14770 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14771 # suppresses any "Segmentation fault" message there. '((' could
14772 # trigger a bug in pdksh 5.2.14.
14773 for as_var in BASH_ENV ENV MAIL MAILPATH
14774 do eval test x\${$as_var+set} = xset \
14775 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14776 done
14777 PS1='$ '
14778 PS2='> '
14779 PS4='+ '
14781 # NLS nuisances.
14782 LC_ALL=C
14783 export LC_ALL
14784 LANGUAGE=C
14785 export LANGUAGE
14787 # CDPATH.
14788 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14791 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14792 # ----------------------------------------
14793 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14794 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14795 # script with STATUS, using 1 if that was 0.
14796 as_fn_error ()
14798 as_status=$1; test $as_status -eq 0 && as_status=1
14799 if test "$4"; then
14800 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14801 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14803 $as_echo "$as_me: error: $2" >&2
14804 as_fn_exit $as_status
14805 } # as_fn_error
14808 # as_fn_set_status STATUS
14809 # -----------------------
14810 # Set $? to STATUS, without forking.
14811 as_fn_set_status ()
14813 return $1
14814 } # as_fn_set_status
14816 # as_fn_exit STATUS
14817 # -----------------
14818 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14819 as_fn_exit ()
14821 set +e
14822 as_fn_set_status $1
14823 exit $1
14824 } # as_fn_exit
14826 # as_fn_unset VAR
14827 # ---------------
14828 # Portably unset VAR.
14829 as_fn_unset ()
14831 { eval $1=; unset $1;}
14833 as_unset=as_fn_unset
14834 # as_fn_append VAR VALUE
14835 # ----------------------
14836 # Append the text in VALUE to the end of the definition contained in VAR. Take
14837 # advantage of any shell optimizations that allow amortized linear growth over
14838 # repeated appends, instead of the typical quadratic growth present in naive
14839 # implementations.
14840 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14841 eval 'as_fn_append ()
14843 eval $1+=\$2
14845 else
14846 as_fn_append ()
14848 eval $1=\$$1\$2
14850 fi # as_fn_append
14852 # as_fn_arith ARG...
14853 # ------------------
14854 # Perform arithmetic evaluation on the ARGs, and store the result in the
14855 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14856 # must be portable across $(()) and expr.
14857 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14858 eval 'as_fn_arith ()
14860 as_val=$(( $* ))
14862 else
14863 as_fn_arith ()
14865 as_val=`expr "$@" || test $? -eq 1`
14867 fi # as_fn_arith
14870 if expr a : '\(a\)' >/dev/null 2>&1 &&
14871 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14872 as_expr=expr
14873 else
14874 as_expr=false
14877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14878 as_basename=basename
14879 else
14880 as_basename=false
14883 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14884 as_dirname=dirname
14885 else
14886 as_dirname=false
14889 as_me=`$as_basename -- "$0" ||
14890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14891 X"$0" : 'X\(//\)$' \| \
14892 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14893 $as_echo X/"$0" |
14894 sed '/^.*\/\([^/][^/]*\)\/*$/{
14895 s//\1/
14898 /^X\/\(\/\/\)$/{
14899 s//\1/
14902 /^X\/\(\/\).*/{
14903 s//\1/
14906 s/.*/./; q'`
14908 # Avoid depending upon Character Ranges.
14909 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14910 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14911 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14912 as_cr_digits='0123456789'
14913 as_cr_alnum=$as_cr_Letters$as_cr_digits
14915 ECHO_C= ECHO_N= ECHO_T=
14916 case `echo -n x` in #(((((
14917 -n*)
14918 case `echo 'xy\c'` in
14919 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14920 xy) ECHO_C='\c';;
14921 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14922 ECHO_T=' ';;
14923 esac;;
14925 ECHO_N='-n';;
14926 esac
14928 rm -f conf$$ conf$$.exe conf$$.file
14929 if test -d conf$$.dir; then
14930 rm -f conf$$.dir/conf$$.file
14931 else
14932 rm -f conf$$.dir
14933 mkdir conf$$.dir 2>/dev/null
14935 if (echo >conf$$.file) 2>/dev/null; then
14936 if ln -s conf$$.file conf$$ 2>/dev/null; then
14937 as_ln_s='ln -s'
14938 # ... but there are two gotchas:
14939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14941 # In both cases, we have to default to `cp -pR'.
14942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14943 as_ln_s='cp -pR'
14944 elif ln conf$$.file conf$$ 2>/dev/null; then
14945 as_ln_s=ln
14946 else
14947 as_ln_s='cp -pR'
14949 else
14950 as_ln_s='cp -pR'
14952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14953 rmdir conf$$.dir 2>/dev/null
14956 # as_fn_mkdir_p
14957 # -------------
14958 # Create "$as_dir" as a directory, including parents if necessary.
14959 as_fn_mkdir_p ()
14962 case $as_dir in #(
14963 -*) as_dir=./$as_dir;;
14964 esac
14965 test -d "$as_dir" || eval $as_mkdir_p || {
14966 as_dirs=
14967 while :; do
14968 case $as_dir in #(
14969 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14970 *) as_qdir=$as_dir;;
14971 esac
14972 as_dirs="'$as_qdir' $as_dirs"
14973 as_dir=`$as_dirname -- "$as_dir" ||
14974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14975 X"$as_dir" : 'X\(//\)[^/]' \| \
14976 X"$as_dir" : 'X\(//\)$' \| \
14977 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14978 $as_echo X"$as_dir" |
14979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14980 s//\1/
14983 /^X\(\/\/\)[^/].*/{
14984 s//\1/
14987 /^X\(\/\/\)$/{
14988 s//\1/
14991 /^X\(\/\).*/{
14992 s//\1/
14995 s/.*/./; q'`
14996 test -d "$as_dir" && break
14997 done
14998 test -z "$as_dirs" || eval "mkdir $as_dirs"
14999 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15002 } # as_fn_mkdir_p
15003 if mkdir -p . 2>/dev/null; then
15004 as_mkdir_p='mkdir -p "$as_dir"'
15005 else
15006 test -d ./-p && rmdir ./-p
15007 as_mkdir_p=false
15011 # as_fn_executable_p FILE
15012 # -----------------------
15013 # Test if FILE is an executable regular file.
15014 as_fn_executable_p ()
15016 test -f "$1" && test -x "$1"
15017 } # as_fn_executable_p
15018 as_test_x='test -x'
15019 as_executable_p=as_fn_executable_p
15021 # Sed expression to map a string onto a valid CPP name.
15022 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15024 # Sed expression to map a string onto a valid variable name.
15025 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15028 exec 6>&1
15029 ## ----------------------------------- ##
15030 ## Main body of $CONFIG_STATUS script. ##
15031 ## ----------------------------------- ##
15032 _ASEOF
15033 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15036 # Save the log message, to keep $0 and so on meaningful, and to
15037 # report actual input values of CONFIG_FILES etc. instead of their
15038 # values after options handling.
15039 ac_log="
15040 This file was extended by $as_me, which was
15041 generated by GNU Autoconf 2.69. Invocation command line was
15043 CONFIG_FILES = $CONFIG_FILES
15044 CONFIG_HEADERS = $CONFIG_HEADERS
15045 CONFIG_LINKS = $CONFIG_LINKS
15046 CONFIG_COMMANDS = $CONFIG_COMMANDS
15047 $ $0 $@
15049 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15052 _ACEOF
15054 case $ac_config_files in *"
15055 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15056 esac
15058 case $ac_config_headers in *"
15059 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15060 esac
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064 # Files that config.status was made for.
15065 config_files="$ac_config_files"
15066 config_headers="$ac_config_headers"
15067 config_commands="$ac_config_commands"
15069 _ACEOF
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 ac_cs_usage="\
15073 \`$as_me' instantiates files and other configuration actions
15074 from templates according to the current configuration. Unless the files
15075 and actions are specified as TAGs, all are instantiated by default.
15077 Usage: $0 [OPTION]... [TAG]...
15079 -h, --help print this help, then exit
15080 -V, --version print version number and configuration settings, then exit
15081 --config print configuration, then exit
15082 -q, --quiet, --silent
15083 do not print progress messages
15084 -d, --debug don't remove temporary files
15085 --recheck update $as_me by reconfiguring in the same conditions
15086 --file=FILE[:TEMPLATE]
15087 instantiate the configuration file FILE
15088 --header=FILE[:TEMPLATE]
15089 instantiate the configuration header FILE
15091 Configuration files:
15092 $config_files
15094 Configuration headers:
15095 $config_headers
15097 Configuration commands:
15098 $config_commands
15100 Report bugs to the package provider."
15102 _ACEOF
15103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15104 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15105 ac_cs_version="\\
15106 config.status
15107 configured by $0, generated by GNU Autoconf 2.69,
15108 with options \\"\$ac_cs_config\\"
15110 Copyright (C) 2012 Free Software Foundation, Inc.
15111 This config.status script is free software; the Free Software Foundation
15112 gives unlimited permission to copy, distribute and modify it."
15114 ac_pwd='$ac_pwd'
15115 srcdir='$srcdir'
15116 test -n "\$AWK" || AWK=awk
15117 _ACEOF
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120 # The default lists apply if the user does not specify any file.
15121 ac_need_defaults=:
15122 while test $# != 0
15124 case $1 in
15125 --*=?*)
15126 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15127 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15128 ac_shift=:
15130 --*=)
15131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15132 ac_optarg=
15133 ac_shift=:
15136 ac_option=$1
15137 ac_optarg=$2
15138 ac_shift=shift
15140 esac
15142 case $ac_option in
15143 # Handling of the options.
15144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15145 ac_cs_recheck=: ;;
15146 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15147 $as_echo "$ac_cs_version"; exit ;;
15148 --config | --confi | --conf | --con | --co | --c )
15149 $as_echo "$ac_cs_config"; exit ;;
15150 --debug | --debu | --deb | --de | --d | -d )
15151 debug=: ;;
15152 --file | --fil | --fi | --f )
15153 $ac_shift
15154 case $ac_optarg in
15155 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15156 '') as_fn_error $? "missing file argument" ;;
15157 esac
15158 as_fn_append CONFIG_FILES " '$ac_optarg'"
15159 ac_need_defaults=false;;
15160 --header | --heade | --head | --hea )
15161 $ac_shift
15162 case $ac_optarg in
15163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15164 esac
15165 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15166 ac_need_defaults=false;;
15167 --he | --h)
15168 # Conflict between --help and --header
15169 as_fn_error $? "ambiguous option: \`$1'
15170 Try \`$0 --help' for more information.";;
15171 --help | --hel | -h )
15172 $as_echo "$ac_cs_usage"; exit ;;
15173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15175 ac_cs_silent=: ;;
15177 # This is an error.
15178 -*) as_fn_error $? "unrecognized option: \`$1'
15179 Try \`$0 --help' for more information." ;;
15181 *) as_fn_append ac_config_targets " $1"
15182 ac_need_defaults=false ;;
15184 esac
15185 shift
15186 done
15188 ac_configure_extra_args=
15190 if $ac_cs_silent; then
15191 exec 6>/dev/null
15192 ac_configure_extra_args="$ac_configure_extra_args --silent"
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15197 if \$ac_cs_recheck; then
15198 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15199 shift
15200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15201 CONFIG_SHELL='$SHELL'
15202 export CONFIG_SHELL
15203 exec "\$@"
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15208 exec 5>>config.log
15210 echo
15211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15212 ## Running $as_me. ##
15213 _ASBOX
15214 $as_echo "$ac_log"
15215 } >&5
15217 _ACEOF
15218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15220 # INIT-COMMANDS
15222 aros_tools_dir=${aros_tools_dir}
15225 aros_host_exe_suffix=${aros_host_exe_suffix}
15226 aros_tools_dir=${aros_tools_dir}
15227 aros_target_cpu=${aros_target_cpu}
15228 aros_target_arch=${aros_target_arch}
15229 aros_target_suffix=${aros_target_suffix}
15230 orig_target_nm=${orig_target_nm}
15231 orig_target_as=${orig_target_as}
15232 orig_target_ar=${orig_target_ar}
15233 orig_target_ranlib=${orig_target_ranlib}
15234 orig_target_objdump=${orig_target_objdump}
15235 orig_target_objcopy=${orig_target_objcopy}
15236 orig_target_strip=${orig_target_strip}
15237 aros_kernel_ld=${aros_kernel_ld}
15241 aros_host_exe_suffix=${aros_host_exe_suffix}
15242 aros_tools_dir=${aros_tools_dir}
15243 aros_target_cpu=${aros_target_cpu}
15244 aros_target_arch=${aros_target_arch}
15245 aros_target_suffix=${aros_target_suffix}
15246 aros_kernel_ld=${aros_kernel_ld}
15250 aros_host_exe_suffix=${aros_host_exe_suffix}
15251 aros_tools_dir=${aros_tools_dir}
15252 aros_target_cpu=${aros_target_cpu}
15253 aros_target_arch=${aros_target_arch}
15254 aros_target_suffix=${aros_target_suffix}
15258 _ACEOF
15260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 # Handling of arguments.
15263 for ac_config_target in $ac_config_targets
15265 case $ac_config_target in
15266 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15267 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15269 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15270 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15271 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15272 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15273 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15274 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15275 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15276 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15277 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15278 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15279 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15280 "${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" ;;
15281 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15282 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15283 "${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" ;;
15284 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15285 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15286 "${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" ;;
15287 "${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" ;;
15288 "${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" ;;
15289 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
15290 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15293 esac
15294 done
15297 # If the user did not use the arguments to specify the items to instantiate,
15298 # then the envvar interface is used. Set only those that are not.
15299 # We use the long form for the default assignment because of an extremely
15300 # bizarre bug on SunOS 4.1.3.
15301 if $ac_need_defaults; then
15302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15307 # Have a temporary directory for convenience. Make it in the build tree
15308 # simply because there is no reason against having it here, and in addition,
15309 # creating and moving files from /tmp can sometimes cause problems.
15310 # Hook for its removal unless debugging.
15311 # Note that there is a small window in which the directory will not be cleaned:
15312 # after its creation but before its name has been assigned to `$tmp'.
15313 $debug ||
15315 tmp= ac_tmp=
15316 trap 'exit_status=$?
15317 : "${ac_tmp:=$tmp}"
15318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15320 trap 'as_fn_exit 1' 1 2 13 15
15322 # Create a (secure) tmp directory for tmp files.
15325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15326 test -d "$tmp"
15327 } ||
15329 tmp=./conf$$-$RANDOM
15330 (umask 077 && mkdir "$tmp")
15331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15332 ac_tmp=$tmp
15334 # Set up the scripts for CONFIG_FILES section.
15335 # No need to generate them if there are no CONFIG_FILES.
15336 # This happens for instance with `./config.status config.h'.
15337 if test -n "$CONFIG_FILES"; then
15340 ac_cr=`echo X | tr X '\015'`
15341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15342 # But we know of no other shell where ac_cr would be empty at this
15343 # point, so we can use a bashism as a fallback.
15344 if test "x$ac_cr" = x; then
15345 eval ac_cr=\$\'\\r\'
15347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15349 ac_cs_awk_cr='\\r'
15350 else
15351 ac_cs_awk_cr=$ac_cr
15354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15355 _ACEOF
15359 echo "cat >conf$$subs.awk <<_ACEOF" &&
15360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15361 echo "_ACEOF"
15362 } >conf$$subs.sh ||
15363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15365 ac_delim='%!_!# '
15366 for ac_last_try in false false false false false :; do
15367 . ./conf$$subs.sh ||
15368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15371 if test $ac_delim_n = $ac_delim_num; then
15372 break
15373 elif $ac_last_try; then
15374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15375 else
15376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15378 done
15379 rm -f conf$$subs.sh
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15383 _ACEOF
15384 sed -n '
15386 s/^/S["/; s/!.*/"]=/
15389 s/^[^!]*!//
15390 :repl
15391 t repl
15392 s/'"$ac_delim"'$//
15393 t delim
15396 s/\(.\{148\}\)..*/\1/
15397 t more1
15398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15401 b repl
15402 :more1
15403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15406 s/.\{148\}//
15407 t nl
15408 :delim
15410 s/\(.\{148\}\)..*/\1/
15411 t more2
15412 s/["\\]/\\&/g; s/^/"/; s/$/"/
15415 :more2
15416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15419 s/.\{148\}//
15420 t delim
15421 ' <conf$$subs.awk | sed '
15422 /^[^""]/{
15424 s/\n//
15426 ' >>$CONFIG_STATUS || ac_write_fail=1
15427 rm -f conf$$subs.awk
15428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429 _ACAWK
15430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15431 for (key in S) S_is_set[key] = 1
15432 FS = "\a"
15436 line = $ 0
15437 nfields = split(line, field, "@")
15438 substed = 0
15439 len = length(field[1])
15440 for (i = 2; i < nfields; i++) {
15441 key = field[i]
15442 keylen = length(key)
15443 if (S_is_set[key]) {
15444 value = S[key]
15445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15446 len += length(value) + length(field[++i])
15447 substed = 1
15448 } else
15449 len += 1 + keylen
15452 print line
15455 _ACAWK
15456 _ACEOF
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15460 else
15462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15464 _ACEOF
15466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15468 # trailing colons and then remove the whole line if VPATH becomes empty
15469 # (actually we leave an empty line to preserve line numbers).
15470 if test "x$srcdir" = x.; then
15471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15473 s///
15474 s/^/:/
15475 s/[ ]*$/:/
15476 s/:\$(srcdir):/:/g
15477 s/:\${srcdir}:/:/g
15478 s/:@srcdir@:/:/g
15479 s/^:*//
15480 s/:*$//
15482 s/\(=[ ]*\).*/\1/
15484 s/\n//
15485 s/^[^=]*=[ ]*$//
15489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490 fi # test -n "$CONFIG_FILES"
15492 # Set up the scripts for CONFIG_HEADERS section.
15493 # No need to generate them if there are no CONFIG_HEADERS.
15494 # This happens for instance with `./config.status Makefile'.
15495 if test -n "$CONFIG_HEADERS"; then
15496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15497 BEGIN {
15498 _ACEOF
15500 # Transform confdefs.h into an awk script `defines.awk', embedded as
15501 # here-document in config.status, that substitutes the proper values into
15502 # config.h.in to produce config.h.
15504 # Create a delimiter string that does not exist in confdefs.h, to ease
15505 # handling of long lines.
15506 ac_delim='%!_!# '
15507 for ac_last_try in false false :; do
15508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15509 if test -z "$ac_tt"; then
15510 break
15511 elif $ac_last_try; then
15512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15513 else
15514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15516 done
15518 # For the awk script, D is an array of macro values keyed by name,
15519 # likewise P contains macro parameters if any. Preserve backslash
15520 # newline sequences.
15522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15523 sed -n '
15524 s/.\{148\}/&'"$ac_delim"'/g
15525 t rset
15526 :rset
15527 s/^[ ]*#[ ]*define[ ][ ]*/ /
15528 t def
15530 :def
15531 s/\\$//
15532 t bsnl
15533 s/["\\]/\\&/g
15534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15535 D["\1"]=" \3"/p
15536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15538 :bsnl
15539 s/["\\]/\\&/g
15540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15541 D["\1"]=" \3\\\\\\n"\\/p
15542 t cont
15543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15544 t cont
15546 :cont
15548 s/.\{148\}/&'"$ac_delim"'/g
15549 t clear
15550 :clear
15551 s/\\$//
15552 t bsnlc
15553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15555 :bsnlc
15556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15557 b cont
15558 ' <confdefs.h | sed '
15559 s/'"$ac_delim"'/"\\\
15560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 for (key in D) D_is_set[key] = 1
15564 FS = "\a"
15566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15567 line = \$ 0
15568 split(line, arg, " ")
15569 if (arg[1] == "#") {
15570 defundef = arg[2]
15571 mac1 = arg[3]
15572 } else {
15573 defundef = substr(arg[1], 2)
15574 mac1 = arg[2]
15576 split(mac1, mac2, "(") #)
15577 macro = mac2[1]
15578 prefix = substr(line, 1, index(line, defundef) - 1)
15579 if (D_is_set[macro]) {
15580 # Preserve the white space surrounding the "#".
15581 print prefix "define", macro P[macro] D[macro]
15582 next
15583 } else {
15584 # Replace #undef with comments. This is necessary, for example,
15585 # in the case of _POSIX_SOURCE, which is predefined and required
15586 # on some systems where configure will not decide to define it.
15587 if (defundef == "undef") {
15588 print "/*", prefix defundef, macro, "*/"
15589 next
15593 { print }
15594 _ACAWK
15595 _ACEOF
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15598 fi # test -n "$CONFIG_HEADERS"
15601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15602 shift
15603 for ac_tag
15605 case $ac_tag in
15606 :[FHLC]) ac_mode=$ac_tag; continue;;
15607 esac
15608 case $ac_mode$ac_tag in
15609 :[FHL]*:*);;
15610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15611 :[FH]-) ac_tag=-:-;;
15612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15613 esac
15614 ac_save_IFS=$IFS
15615 IFS=:
15616 set x $ac_tag
15617 IFS=$ac_save_IFS
15618 shift
15619 ac_file=$1
15620 shift
15622 case $ac_mode in
15623 :L) ac_source=$1;;
15624 :[FH])
15625 ac_file_inputs=
15626 for ac_f
15628 case $ac_f in
15629 -) ac_f="$ac_tmp/stdin";;
15630 *) # Look for the file first in the build tree, then in the source tree
15631 # (if the path is not absolute). The absolute path cannot be DOS-style,
15632 # because $ac_f cannot contain `:'.
15633 test -f "$ac_f" ||
15634 case $ac_f in
15635 [\\/$]*) false;;
15636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15637 esac ||
15638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15639 esac
15640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15641 as_fn_append ac_file_inputs " '$ac_f'"
15642 done
15644 # Let's still pretend it is `configure' which instantiates (i.e., don't
15645 # use $as_me), people would be surprised to read:
15646 # /* config.h. Generated by config.status. */
15647 configure_input='Generated from '`
15648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15649 `' by configure.'
15650 if test x"$ac_file" != x-; then
15651 configure_input="$ac_file. $configure_input"
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15653 $as_echo "$as_me: creating $ac_file" >&6;}
15655 # Neutralize special characters interpreted by sed in replacement strings.
15656 case $configure_input in #(
15657 *\&* | *\|* | *\\* )
15658 ac_sed_conf_input=`$as_echo "$configure_input" |
15659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15660 *) ac_sed_conf_input=$configure_input;;
15661 esac
15663 case $ac_tag in
15664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15666 esac
15668 esac
15670 ac_dir=`$as_dirname -- "$ac_file" ||
15671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672 X"$ac_file" : 'X\(//\)[^/]' \| \
15673 X"$ac_file" : 'X\(//\)$' \| \
15674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15675 $as_echo X"$ac_file" |
15676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677 s//\1/
15680 /^X\(\/\/\)[^/].*/{
15681 s//\1/
15684 /^X\(\/\/\)$/{
15685 s//\1/
15688 /^X\(\/\).*/{
15689 s//\1/
15692 s/.*/./; q'`
15693 as_dir="$ac_dir"; as_fn_mkdir_p
15694 ac_builddir=.
15696 case "$ac_dir" in
15697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15700 # A ".." for each directory in $ac_dir_suffix.
15701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15702 case $ac_top_builddir_sub in
15703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15705 esac ;;
15706 esac
15707 ac_abs_top_builddir=$ac_pwd
15708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15709 # for backward compatibility:
15710 ac_top_builddir=$ac_top_build_prefix
15712 case $srcdir in
15713 .) # We are building in place.
15714 ac_srcdir=.
15715 ac_top_srcdir=$ac_top_builddir_sub
15716 ac_abs_top_srcdir=$ac_pwd ;;
15717 [\\/]* | ?:[\\/]* ) # Absolute name.
15718 ac_srcdir=$srcdir$ac_dir_suffix;
15719 ac_top_srcdir=$srcdir
15720 ac_abs_top_srcdir=$srcdir ;;
15721 *) # Relative name.
15722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15723 ac_top_srcdir=$ac_top_build_prefix$srcdir
15724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15725 esac
15726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15729 case $ac_mode in
15732 # CONFIG_FILE
15735 _ACEOF
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 # If the template does not know about datarootdir, expand it.
15739 # FIXME: This hack should be removed a few years after 2.60.
15740 ac_datarootdir_hack=; ac_datarootdir_seen=
15741 ac_sed_dataroot='
15742 /datarootdir/ {
15746 /@datadir@/p
15747 /@docdir@/p
15748 /@infodir@/p
15749 /@localedir@/p
15750 /@mandir@/p'
15751 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15752 *datarootdir*) ac_datarootdir_seen=yes;;
15753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15755 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15756 _ACEOF
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 ac_datarootdir_hack='
15759 s&@datadir@&$datadir&g
15760 s&@docdir@&$docdir&g
15761 s&@infodir@&$infodir&g
15762 s&@localedir@&$localedir&g
15763 s&@mandir@&$mandir&g
15764 s&\\\${datarootdir}&$datarootdir&g' ;;
15765 esac
15766 _ACEOF
15768 # Neutralize VPATH when `$srcdir' = `.'.
15769 # Shell code in configure.ac might set extrasub.
15770 # FIXME: do we really want to maintain this feature?
15771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15772 ac_sed_extra="$ac_vpsub
15773 $extrasub
15774 _ACEOF
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15778 s|@configure_input@|$ac_sed_conf_input|;t t
15779 s&@top_builddir@&$ac_top_builddir_sub&;t t
15780 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15781 s&@srcdir@&$ac_srcdir&;t t
15782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15783 s&@top_srcdir@&$ac_top_srcdir&;t t
15784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15785 s&@builddir@&$ac_builddir&;t t
15786 s&@abs_builddir@&$ac_abs_builddir&;t t
15787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15788 $ac_datarootdir_hack
15790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15791 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15796 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15798 which seems to be undefined. Please make sure it is defined" >&5
15799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15800 which seems to be undefined. Please make sure it is defined" >&2;}
15802 rm -f "$ac_tmp/stdin"
15803 case $ac_file in
15804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15806 esac \
15807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15811 # CONFIG_HEADER
15813 if test x"$ac_file" != x-; then
15815 $as_echo "/* $configure_input */" \
15816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15817 } >"$ac_tmp/config.h" \
15818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15819 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15822 else
15823 rm -f "$ac_file"
15824 mv "$ac_tmp/config.h" "$ac_file" \
15825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15827 else
15828 $as_echo "/* $configure_input */" \
15829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15830 || as_fn_error $? "could not create -" "$LINENO" 5
15834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15835 $as_echo "$as_me: executing $ac_file commands" >&6;}
15837 esac
15840 case $ac_file$ac_mode in
15841 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15842 "binutils-support":C)
15843 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15844 mkdir -p $prefix
15845 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15847 chmod a+x ${prefix2}-ld
15849 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15850 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15851 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15852 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15853 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15854 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15855 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15857 "elf-compiler-support":C)
15858 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15859 mkdir -p $prefix
15860 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15862 chmod a+x ${prefix2}-gcc
15864 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
15866 "host-compiler-wrapper-support":C)
15867 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15868 mkdir -p $prefix
15869 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15871 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
15874 esac
15875 done # for ac_tag
15878 as_fn_exit 0
15879 _ACEOF
15880 ac_clean_files=$ac_clean_files_save
15882 test $ac_write_fail = 0 ||
15883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15886 # configure is writing to config.log, and then calls config.status.
15887 # config.status does its own redirection, appending to config.log.
15888 # Unfortunately, on DOS this fails, as config.log is still kept open
15889 # by configure, so config.status won't be able to write to it; its
15890 # output is simply discarded. So we exec the FD to /dev/null,
15891 # effectively closing config.log, so it can be properly (re)opened and
15892 # appended to by config.status. When coming back to configure, we
15893 # need to make the FD available again.
15894 if test "$no_create" != yes; then
15895 ac_cs_success=:
15896 ac_config_status_args=
15897 test "$silent" = yes &&
15898 ac_config_status_args="$ac_config_status_args --quiet"
15899 exec 5>/dev/null
15900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15901 exec 5>>config.log
15902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15903 # would make configure fail if this is the last instruction.
15904 $ac_cs_success || as_fn_exit 1
15906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15913 #XXX compatability...
15914 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15916 if test -n "$aros_shared_cflags" ; then
15917 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15918 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg