Comment fixes: typos and spacing.
[AROS.git] / configure
blob08492388a434580479fe71ace3a5c6ad9970ec46
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_float_abi
643 gcc_default_fpu
644 gcc_default_cpu_tune
645 gcc_default_cpu
646 aros_ios_sdk
647 aros_ios_version
648 aros_ios_platform
649 aros_enable_mmu
650 aros_nesting_supervisor
651 aros_palm_debug_hack
652 aros_serial_debug
653 aros_host_sdl_libs
654 aros_host_sdl_cflags
655 aros_host_x11_libdirs
656 aros_host_x11_includes
657 DO_VIDMODE_SUPPORT
658 DO_XSHM_SUPPORT
659 aros_default_wbdepth
660 aros_default_wbheight
661 aros_default_wbwidth
662 oss_library_target
663 pci_hidd_target
664 sdl_hidd_target
665 unixgfx_hidd_target
666 aros_cflags_format_security
667 aros_cflags_strict_overflow
668 aros_cflags_enum_compare
669 aros_cflags_array_bounds
670 aros_cflags_unused_but_set_variable
671 crosstools_cxx_target
672 crosstools_target
673 aros_isa_flags
674 aros_optimization_cflags
675 aros_target_strip_flags
676 aros_target_genmap
677 aros_debug_ldflags
678 aros_debug_aflags
679 aros_debug_cflags
680 aros_target_cflags
681 aros_kernel_ldflags
682 aros_kernel_objcflags
683 aros_kernel_includes
684 aros_kernel_cflags
685 aros_shared_ldflags
686 aros_shared_aflags
687 aros_shared_cflags
688 aros_config_ldflags
689 aros_config_aflags
690 aros_config_cflags
691 aros_config_sysroot
692 aros_arch_libs
693 aros_compiler_libs
694 spec_obj_format
695 aros_object_format
696 aros_shared_ld
697 aros_shared_default
698 aros_target_nm
699 aros_target_strip
700 aros_target_objcopy
701 aros_target_objdump
702 aros_target_cc_path
703 aros_target_cc_includes
704 aros_target_ld
705 aros_target_as
706 aros_target_cpp
707 aros_target_cxx
708 aros_target_cc
709 aros_plain_ar
710 aros_plain_nm
711 aros_target_ranlib
712 aros_target_ar
713 aros_target_suffix
714 aros_target_variant
715 aros_target_cpu
716 aros_target_family
717 aros_target_arch
718 aros_target_bootloader
719 aros_target_iconset
720 aros_target_guitheme
721 aros_tools_dir
722 aros_host_lib_suffix
723 aros_host_exe_suffix
724 aros_host_mkargs
725 aros_host_mkdep
726 aros_host_debug
727 aros_host_ldflags
728 gnu89_inline
729 aros_host_cxxflags
730 aros_host_cflags
731 aros_host_make
732 aros_host_cxx
733 aros_host_cc
734 aros_host_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_target_toolchain
745 aros_flavour_uc
746 aros_flavour
747 aros_cpu
748 aros_arch
749 SDL_LIBS
750 SDL_CFLAGS
751 SDL_CONFIG
752 XMKMF
753 aros_cflags_iquote_end
754 aros_cflags_iquote
755 kernel_cflags_iquote_end
756 kernel_cflags_iquote
757 host_cflags_iquote_end
758 host_cflags_iquote
759 aros_target_nostdlib_ldflags
760 aros_target_detach_ldflags
761 aros_target_nix_ldflags
762 aros_target_nostartup_ldflags
763 aros_target_nostdinc_cflags
764 aros_kernel_rescomp
765 orig_target_objdump
766 orig_target_objcopy
767 orig_target_strip
768 orig_target_nm
769 orig_target_ranlib
770 orig_target_ar
771 orig_target_as
772 orig_target_ld
773 orig_target_cxx
774 orig_target_cc
775 orig_target_cpp
776 aros_kernel_objdump
777 aros_kernel_objcopy
778 aros_kernel_strip
779 aros_kernel_nm
780 aros_kernel_ranlib
781 aros_kernel_ar
782 aros_kernel_as
783 aros_kernel_ld
784 aros_kernel_cxx
785 aros_kernel_cc
786 aros_kernel_cpp
787 target_gcc_version
789 android_tool
790 CCACHE
791 DISTCC
792 LIBOBJS
793 EGREP
794 GREP
796 TEST
799 pkgpyexecdir
800 pyexecdir
801 pkgpythondir
802 pythondir
803 PYTHON_PLATFORM
804 PYTHON_EXEC_PREFIX
805 PYTHON_PREFIX
806 PYTHON_VERSION
807 PYTHON
808 PATCH
809 CHMOD
811 PPMTOILBM
812 PNGTOPNM
813 FLEX
814 BISON
817 UNIQ
818 SORT
819 TOUCH
820 MKDIR
821 ECHO
825 aros_host_strip
826 aros_host_ranlib
827 aros_host_ar
828 aros_host_automake
829 aros_host_autoheader
830 aros_host_autoconf
831 aros_host_aclocal
832 aros_host_ld
833 MMAKE
836 ac_ct_CC
837 CFLAGS
839 OBJEXT
840 EXEEXT
841 ac_ct_CXX
842 CPPFLAGS
843 LDFLAGS
844 CXXFLAGS
846 host_os
847 host_vendor
848 host_cpu
849 host
850 build_os
851 build_vendor
852 build_cpu
853 build
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL'
892 ac_subst_files=''
893 ac_user_opts='
894 enable_option_checking
895 enable_build_type
896 enable_debug
897 enable_distcc
898 enable_ccache
899 with_kernel_gcc_version
900 with_optimization
901 with_paranoia
902 enable_target_variant
903 with_xcode
904 with_sdk_version
905 with_sdk
906 with_ndk
907 with_ndk_version
908 with_apk_version
909 enable_amigaos_compliance
910 with_kernel_toolchain_prefix
911 with_elf_toolchain_prefix
912 with_aros_toolchain
913 enable_crosstools
914 with_aros_toolchain_install
915 with_binutils_version
916 with_gcc_version
917 enable_objc
918 enable_java
919 with_cpu
920 with_fpu
921 with_float
922 with_portssources
923 with_bootloader
924 with_iconset
925 with_theme
926 enable_includes
927 with_resolution
928 with_serial_debug
929 enable_palm_debug_hack
930 enable_usb30_code
931 enable_nesting_supervisor
932 enable_mmu
933 enable_x11_hidd
934 with_x
935 enable_x11_shm
936 enable_x11_vidmode
937 enable_sdl_hidd
938 with_sdl_prefix
939 with_sdl_exec_prefix
940 enable_sdltest
941 enable_dbus
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
947 CXXFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
953 CFLAGS
955 PYTHON
956 XMKMF'
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1018 case $ac_option in
1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *=) ac_optarg= ;;
1021 *) ac_optarg=yes ;;
1022 esac
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1028 ac_dashdash=yes ;;
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information"
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 esac
1365 done
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error $? "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error $? "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error $? "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking ...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 X features:
1555 --x-includes=DIR X include files are in DIR
1556 --x-libraries=DIR X library files are in DIR
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 _ACEOF
1564 if test -n "$ac_init_help"; then
1566 cat <<\_ACEOF
1568 Optional Features:
1569 --disable-option-checking ignore unrecognized --enable/--with options
1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1572 --enable-build-type=TYPE
1573 Select the build type. Available types are:
1574 personal, nightly, snapshot, milestone, release. Do
1575 NOT use this option unless you know what you are
1576 doing! (default=personal)
1577 --enable-debug=list Enable different types of debug. Commas or
1578 whitespaces can be used to separate the items in the
1579 list. Available types of debug are: all, none,
1580 messages, stack, mungwall, modules, symbols. If no
1581 list is provided then "all" is assumed.
1582 (default=none)
1583 --enable-distcc Use distcc as a front end to the compiler
1584 (default=no).
1585 --enable-ccache Use ccache as a front end to the compiler
1586 (default=no).
1587 --enable-target-variant=NAME
1588 Enable a specific target variant(default=none)
1589 --enable-amigaos-compliance=VERSION
1590 Enforce userspace AmigaOS compliance to a specific
1591 KickStart version (default=none).
1592 --disable-crosstools Do not build cross-compiler toolchain
1593 --enable-objc Enable Objectve-C support (default=no)
1594 --enable-java Enable Java support (default=no)
1595 --enable-includes=dir Alternative system include directory
1596 --enable-palm-debug-hack
1597 Enable palm debug output hack in palm native
1598 (default=no)
1599 --enable-usb30-code Enable usb3.0 code (default=no)
1600 --enable-nesting-supervisor
1601 Enable nesting supervisor support in unix
1602 (default=no)
1603 --disable-mmu Disable MMU support (default=enabled)
1604 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1605 --enable-x11-shm use X11 shared memory (default=auto)
1606 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1607 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1608 --disable-sdltest Do not try to compile and run a test SDL program
1609 --enable-dbus Enable DBUS support via dbus.library (default=no)
1611 Optional Packages:
1612 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1613 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1614 --with-kernel-gcc-version=VERSION
1615 Use gcc-VERSION for building bootstrap
1616 --with-optimization=FLAGS
1617 Use optimization flags FLAGS (default=-O2).
1618 --with-paranoia=FLAGS CC flags to enable paranoia
1619 --with-xcode=PATH Specify XCode path for iOS targets
1620 (default=/Developer).
1621 --with-sdk-version=VERSION
1622 Use iOS SDK version VERSION (default=4.1).
1623 --with-sdk=PATH Specify Android SDK path
1624 (default=$default_android_sdk).
1625 --with-ndk=PATH Specify Android NDK path (default=none).
1626 --with-sdk-version=LEVEL
1627 Use Android SDK for API LEVEL (default=12).
1628 --with-ndk-version=LEVEL
1629 Use Android NDK for API LEVEL (default=9).
1630 --with-apk-version=(release|debug)
1631 Which version of AROSBootstrap.apk to compile.
1632 Release version needs key for signing, debug version
1633 will only run in emulator. (default=release)
1634 --with-kernel-toolchain-prefix=...
1635 Specify crosscompile toolchain prefix for kernel
1636 objects
1637 --with-elf-toolchain-prefix=...
1638 Specify crosscompile toolchain prefix to wrap for
1639 AROS objects
1640 --with-aros-toolchain=PREFIX
1641 Specify prebuilt AROS toolchain. Use yes for default
1642 name
1643 --with-aros-toolchain-install=DIR
1644 Where to install or search for cross tools binaries
1645 --with-binutils-version=VERSION
1646 Use binutils-VERSION for building AROS
1647 --with-gcc-version=VERSION
1648 Use gcc-VERSION for building AROS
1649 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1650 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1651 --with-float=<spec> Specify floating point ABI
1652 (default=$gcc_default_float_abi).
1653 --with-portssources=DIR Where to download sourcecode for external ports
1654 --with-bootloader=NAME Use a specific bootloader
1655 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1656 --with-theme=NAME Use a specific GUI Theme
1657 --with-resolution=XRESxYRESxDEPTH
1658 Default resolution of the initial WorkbenchScreen
1659 --with-serial-debug Enable serial debug output in native (default=no)
1660 --with-x use the X Window System
1661 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1662 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1664 Some influential environment variables:
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1668 nonstandard directory <lib dir>
1669 LIBS libraries to pass to the linker, e.g. -l<library>
1670 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1671 you have headers in a nonstandard directory <include dir>
1672 CC C compiler command
1673 CFLAGS C compiler flags
1674 CPP C preprocessor
1675 PYTHON the Python interpreter
1676 XMKMF Path to xmkmf, Makefile generator for X Window System
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1692 ac_builddir=.
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1710 case $srcdir in
1711 .) # We are building in place.
1712 ac_srcdir=.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1734 else
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1738 done
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743 cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.69
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_cxx_try_compile
1796 # ac_fn_c_try_compile LINENO
1797 # --------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } > conftest.i && {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_cpp
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 else
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1945 else
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961 else
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 eval "$3=\$ac_header_compiler"
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_try_run LINENO
2005 # ----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2007 # that executables *can* be run.
2008 ac_fn_c_try_run ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { { ac_try="$ac_link"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>&5
2019 ac_status=$?
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2022 { { case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_try") 2>&5
2029 ac_status=$?
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; }; }; then :
2032 ac_retval=0
2033 else
2034 $as_echo "$as_me: program exited with status $ac_status" >&5
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 ac_retval=$ac_status
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2044 } # ac_fn_c_try_run
2046 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2047 # -------------------------------------------------------
2048 # Tests whether HEADER exists and can be compiled using the include files in
2049 # INCLUDES, setting the cache variable VAR accordingly.
2050 ac_fn_c_check_header_compile ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2061 #include <$2>
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_header_compile
2077 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2078 # ----------------------------------------------------
2079 # Tries to find if the field MEMBER exists in type AGGR, after including
2080 # INCLUDES, setting cache variable VAR accordingly.
2081 ac_fn_c_check_member ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2085 $as_echo_n "checking for $2.$3... " >&6; }
2086 if eval \${$4+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static $2 ac_aggr;
2096 if (ac_aggr.$3)
2097 return 0;
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$4=yes"
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 static $2 ac_aggr;
2112 if (sizeof ac_aggr.$3)
2113 return 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 eval "$4=yes"
2120 else
2121 eval "$4=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$4
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_member
2134 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2135 # ---------------------------------------------
2136 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 # accordingly.
2138 ac_fn_c_check_decl ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 as_decl_name=`echo $2|sed 's/ *(.*//'`
2142 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2144 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 #ifndef $as_decl_name
2155 #ifdef __cplusplus
2156 (void) $as_decl_use;
2157 #else
2158 (void) $as_decl_name;
2159 #endif
2160 #endif
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 eval "$3=yes"
2168 else
2169 eval "$3=no"
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_decl
2180 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2181 # -------------------------------------------
2182 # Tests whether TYPE exists after having included INCLUDES, setting cache
2183 # variable VAR accordingly.
2184 ac_fn_c_check_type ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \${$3+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 eval "$3=no"
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2197 main ()
2199 if (sizeof ($2))
2200 return 0;
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 if (sizeof (($2)))
2213 return 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2220 else
2221 eval "$3=yes"
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_type
2234 # ac_fn_c_check_func LINENO FUNC VAR
2235 # ----------------------------------
2236 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2237 ac_fn_c_check_func ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2247 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2249 #define $2 innocuous_$2
2251 /* System header to define __stub macros and hopefully few prototypes,
2252 which can conflict with char $2 (); below.
2253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2254 <limits.h> exists even on freestanding compilers. */
2256 #ifdef __STDC__
2257 # include <limits.h>
2258 #else
2259 # include <assert.h>
2260 #endif
2262 #undef $2
2264 /* Override any GCC internal prototype to avoid an error.
2265 Use char because int might match the return type of a GCC
2266 builtin and then its argument prototype would still apply. */
2267 #ifdef __cplusplus
2268 extern "C"
2269 #endif
2270 char $2 ();
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined __stub_$2 || defined __stub___$2
2275 choke me
2276 #endif
2279 main ()
2281 return $2 ();
2283 return 0;
2285 _ACEOF
2286 if ac_fn_c_try_link "$LINENO"; then :
2287 eval "$3=yes"
2288 else
2289 eval "$3=no"
2291 rm -f core conftest.err conftest.$ac_objext \
2292 conftest$ac_exeext conftest.$ac_ext
2294 eval ac_res=\$$3
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 } # ac_fn_c_check_func
2300 cat >config.log <<_ACEOF
2301 This file contains any messages produced by compilers while
2302 running configure, to aid debugging if configure makes a mistake.
2304 It was created by $as_me, which was
2305 generated by GNU Autoconf 2.69. Invocation command line was
2307 $ $0 $@
2309 _ACEOF
2310 exec 5>>config.log
2312 cat <<_ASUNAME
2313 ## --------- ##
2314 ## Platform. ##
2315 ## --------- ##
2317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2334 _ASUNAME
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 $as_echo "PATH: $as_dir"
2342 done
2343 IFS=$as_save_IFS
2345 } >&5
2347 cat >&5 <<_ACEOF
2350 ## ----------- ##
2351 ## Core tests. ##
2352 ## ----------- ##
2354 _ACEOF
2357 # Keep a trace of the command line.
2358 # Strip out --no-create and --no-recursion so they do not pile up.
2359 # Strip out --silent because we don't want to record it for future runs.
2360 # Also quote any args containing shell meta-characters.
2361 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_configure_args=
2363 ac_configure_args0=
2364 ac_configure_args1=
2365 ac_must_keep_next=false
2366 for ac_pass in 1 2
2368 for ac_arg
2370 case $ac_arg in
2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373 | -silent | --silent | --silen | --sile | --sil)
2374 continue ;;
2375 *\'*)
2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 esac
2378 case $ac_pass in
2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2381 as_fn_append ac_configure_args1 " '$ac_arg'"
2382 if test $ac_must_keep_next = true; then
2383 ac_must_keep_next=false # Got value, back to normal.
2384 else
2385 case $ac_arg in
2386 *=* | --config-cache | -C | -disable-* | --disable-* \
2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389 | -with-* | --with-* | -without-* | --without-* | --x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 esac
2394 -* ) ac_must_keep_next=true ;;
2395 esac
2397 as_fn_append ac_configure_args " '$ac_arg'"
2399 esac
2400 done
2401 done
2402 { ac_configure_args0=; unset ac_configure_args0;}
2403 { ac_configure_args1=; unset ac_configure_args1;}
2405 # When interrupted or exit'd, cleanup temporary files, and complete
2406 # config.log. We remove comments because anyway the quotes in there
2407 # would cause problems or look ugly.
2408 # WARNING: Use '\'' to represent an apostrophe within the trap.
2409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410 trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2413 echo
2415 $as_echo "## ---------------- ##
2416 ## Cache variables. ##
2417 ## ---------------- ##"
2418 echo
2419 # The following way of writing the cache mishandles newlines in values,
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in #(
2424 *${as_nl}*)
2425 case $ac_var in #(
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 esac
2429 case $ac_var in #(
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2433 esac ;;
2434 esac
2435 done
2436 (set) 2>&1 |
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2439 sed -n \
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 ;; #(
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2446 esac |
2447 sort
2449 echo
2451 $as_echo "## ----------------- ##
2452 ## Output variables. ##
2453 ## ----------------- ##"
2454 echo
2455 for ac_var in $ac_subst_vars
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 $as_echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
2465 if test -n "$ac_subst_files"; then
2466 $as_echo "## ------------------- ##
2467 ## File substitutions. ##
2468 ## ------------------- ##"
2469 echo
2470 for ac_var in $ac_subst_files
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2481 if test -s confdefs.h; then
2482 $as_echo "## ----------- ##
2483 ## confdefs.h. ##
2484 ## ----------- ##"
2485 echo
2486 cat confdefs.h
2487 echo
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2497 for ac_signal in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 done
2500 ac_signal=0
2502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2503 rm -f -r conftest* confdefs.h
2505 $as_echo "/* confdefs.h */" > confdefs.h
2507 # Predefined preprocessor variables.
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_NAME "$PACKAGE_NAME"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_STRING "$PACKAGE_STRING"
2523 _ACEOF
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527 _ACEOF
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_URL "$PACKAGE_URL"
2531 _ACEOF
2534 # Let the site file select an alternate cache file if it wants to.
2535 # Prefer an explicitly selected file to automatically selected ones.
2536 ac_site_file1=NONE
2537 ac_site_file2=NONE
2538 if test -n "$CONFIG_SITE"; then
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1=./$CONFIG_SITE;;
2542 */*) ac_site_file1=$CONFIG_SITE;;
2543 *) ac_site_file1=./$CONFIG_SITE;;
2544 esac
2545 elif test "x$prefix" != xNONE; then
2546 ac_site_file1=$prefix/share/config.site
2547 ac_site_file2=$prefix/etc/config.site
2548 else
2549 ac_site_file1=$ac_default_prefix/share/config.site
2550 ac_site_file2=$ac_default_prefix/etc/config.site
2552 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2554 test "x$ac_site_file" = xNONE && continue
2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2559 . "$ac_site_file" \
2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $? "failed to load site script $ac_site_file
2563 See \`config.log' for more details" "$LINENO" 5; }
2565 done
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2584 as_fn_append ac_header_list " stdlib.h"
2585 as_fn_append ac_header_list " unistd.h"
2586 as_fn_append ac_header_list " sys/param.h"
2587 # Check that the precious variables saved in the cache have kept the same
2588 # value.
2589 ac_cache_corrupted=false
2590 for ac_var in $ac_precious_vars; do
2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592 eval ac_new_set=\$ac_env_${ac_var}_set
2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594 eval ac_new_val=\$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2596 set,)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,set)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,);;
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w=`echo x $ac_old_val`
2609 ac_new_val_w=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted=:
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\$ac_old_val
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 fi;;
2624 esac
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2627 case $ac_new_val in
2628 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg=$ac_var=$ac_new_val ;;
2630 esac
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 esac
2636 done
2637 if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 ## -------------------- ##
2645 ## Main body of script. ##
2646 ## -------------------- ##
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 ac_aux_dir=
2657 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2658 if test -f "$ac_dir/install-sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install-sh -c"
2661 break
2662 elif test -f "$ac_dir/install.sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install.sh -c"
2665 break
2666 elif test -f "$ac_dir/shtool"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/shtool install -c"
2669 break
2671 done
2672 if test -z "$ac_aux_dir"; then
2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2676 # These three variables are undocumented and unsupported,
2677 # and are intended to be withdrawn in a future Autoconf release.
2678 # They can cause serious problems if a builder's source tree is in a directory
2679 # whose full name contains unusual characters.
2680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2686 # Check what host we are running on.
2687 # If a target is not suggested, we use this one.
2688 # Note that what we call a target, Autoconf calls a host.
2689 # Make sure we can run config.sub.
2690 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694 $as_echo_n "checking build system type... " >&6; }
2695 if ${ac_cv_build+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 ac_build_alias=$build_alias
2699 test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701 test "x$ac_build_alias" = x &&
2702 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2703 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708 $as_echo "$ac_cv_build" >&6; }
2709 case $ac_cv_build in
2710 *-*-*) ;;
2711 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2712 esac
2713 build=$ac_cv_build
2714 ac_save_IFS=$IFS; IFS='-'
2715 set x $ac_cv_build
2716 shift
2717 build_cpu=$1
2718 build_vendor=$2
2719 shift; shift
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2722 build_os=$*
2723 IFS=$ac_save_IFS
2724 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728 $as_echo_n "checking host system type... " >&6; }
2729 if ${ac_cv_host+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
2734 else
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2742 case $ac_cv_host in
2743 *-*-*) ;;
2744 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2745 esac
2746 host=$ac_cv_host
2747 ac_save_IFS=$IFS; IFS='-'
2748 set x $ac_cv_host
2749 shift
2750 host_cpu=$1
2751 host_vendor=$2
2752 shift; shift
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2755 host_os=$*
2756 IFS=$ac_save_IFS
2757 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2761 # Default version of gnu tools to use
2762 default_gcc_version="4.6.4"
2763 default_binutils_version="2.23.2"
2765 # The AROS target is slightly different to the normal GNU style
2766 # format. We don't have the middle part, and we reverse the order
2767 # of the $(CPU) and $(OS) bits.
2769 # Don't strip the version of the target yet, it might be
2770 # useful on some systems.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2773 $as_echo_n "checking for AROS style target... " >&6; }
2775 if test "$target" = "NONE" ; then
2776 target=$host_os-$host_cpu
2777 else
2778 if test "$target" = "" ; then
2779 target=$host_os-$host_cpu
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2783 $as_echo "$target" >&6; }
2785 if test "$host_os" = "mingw32" ; then
2786 PWDCMD="pwd -W"
2789 # Don't know where else to put this...
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2791 $as_echo_n "checking building AROS in... " >&6; }
2792 AROS_BUILDDIR=`${PWDCMD-pwd}`
2793 AROS_BUILDDIR_UNIX=${PWD}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2795 $as_echo "$AROS_BUILDDIR" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2798 $as_echo_n "checking AROS source in... " >&6; }
2799 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2800 SRCDIR=${srcpwd}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2802 $as_echo "$SRCDIR" >&6; }
2804 # Parse the target field into something useful.
2806 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2807 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2810 # Some debug output, to be removed again.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2812 $as_echo_n "checking for target system (debug output)... " >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2814 $as_echo "$target_os" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2816 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2818 $as_echo "$target_cpu" >&6; }
2820 aros_default_wbwidth=800
2821 aros_default_wbheight=600
2822 aros_default_wbdepth=4
2825 # The first step is to find the host binaries.
2826 # Check for a compiler.
2827 # Due to a bug in autoconf check for c++ compiler first.
2828 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2829 ac_ext=cpp
2830 ac_cpp='$CXXCPP $CPPFLAGS'
2831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2834 if test -z "$CXX"; then
2835 if test -n "$CCC"; then
2836 CXX=$CCC
2837 else
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CXX+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CXX"; then
2849 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2868 CXX=$ac_cv_prog_CXX
2869 if test -n "$CXX"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2871 $as_echo "$CXX" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2878 test -n "$CXX" && break
2879 done
2881 if test -z "$CXX"; then
2882 ac_ct_CXX=$CXX
2883 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CXX"; then
2893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_ac_ct_CXX="$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2908 IFS=$as_save_IFS
2912 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2913 if test -n "$ac_ct_CXX"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2915 $as_echo "$ac_ct_CXX" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$ac_ct_CXX" && break
2923 done
2925 if test "x$ac_ct_CXX" = x; then
2926 CXX="g++"
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CXX=$ac_ct_CXX
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2942 set X $ac_compile
2943 ac_compiler=$2
2944 for ac_option in --version -v -V -qversion; do
2945 { { ac_try="$ac_compiler $ac_option >&5"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953 ac_status=$?
2954 if test -s conftest.err; then
2955 sed '10a\
2956 ... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
2960 rm -f conftest.er1 conftest.err
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 done
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2969 main ()
2973 return 0;
2975 _ACEOF
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2980 # of exeext.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2982 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988 ac_rmfiles=
2989 for ac_file in $ac_files
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995 done
2996 rm -f $ac_rmfiles
2998 if { { ac_try="$ac_link_default"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3013 # Autoconf.
3014 for ac_file in $ac_files ''
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3036 break;;
3037 esac
3038 done
3039 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041 else
3042 ac_file=''
3044 if test -z "$ac_file"; then :
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error 77 "C++ compiler cannot create executables
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3059 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061 $as_echo "$ac_file" >&6; }
3062 ac_exeext=$ac_cv_exeext
3064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { { ac_try="$ac_link"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 # `rm'.
3083 for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091 done
3092 else
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 $? "cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details" "$LINENO" 5; }
3098 rm -f conftest conftest$ac_cv_exeext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100 $as_echo "$ac_cv_exeext" >&6; }
3102 rm -f conftest.$ac_ext
3103 EXEEXT=$ac_cv_exeext
3104 ac_exeext=$EXEEXT
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107 #include <stdio.h>
3109 main ()
3111 FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3115 return 0;
3117 _ACEOF
3118 ac_clean_files="$ac_clean_files conftest.out"
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 if test "$cross_compiling" != yes; then
3124 { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot run C++ compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details" "$LINENO" 5; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160 $as_echo "$cross_compiling" >&6; }
3162 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if ${ac_cv_objext+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199 done
3200 else
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of object files: cannot compile
3207 See \`config.log' for more details" "$LINENO" 5; }
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3214 ac_objext=$OBJEXT
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3217 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3231 return 0;
3233 _ACEOF
3234 if ac_fn_cxx_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236 else
3237 ac_compiler_gnu=no
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3244 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3246 GXX=yes
3247 else
3248 GXX=
3250 ac_test_CXXFLAGS=${CXXFLAGS+set}
3251 ac_save_CXXFLAGS=$CXXFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3253 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3254 if ${ac_cv_prog_cxx_g+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3258 ac_cxx_werror_flag=yes
3259 ac_cv_prog_cxx_g=no
3260 CXXFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 if ac_fn_cxx_try_compile "$LINENO"; then :
3273 ac_cv_prog_cxx_g=yes
3274 else
3275 CXXFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 if ac_fn_cxx_try_compile "$LINENO"; then :
3289 else
3290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3291 CXXFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 if ac_fn_cxx_try_compile "$LINENO"; then :
3304 ac_cv_prog_cxx_g=yes
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3314 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3315 if test "$ac_test_CXXFLAGS" = set; then
3316 CXXFLAGS=$ac_save_CXXFLAGS
3317 elif test $ac_cv_prog_cxx_g = yes; then
3318 if test "$GXX" = yes; then
3319 CXXFLAGS="-g -O2"
3320 else
3321 CXXFLAGS="-g"
3323 else
3324 if test "$GXX" = yes; then
3325 CXXFLAGS="-O2"
3326 else
3327 CXXFLAGS=
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3365 IFS=$as_save_IFS
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3380 if test -z "$ac_cv_prog_CC"; then
3381 ac_ct_CC=$CC
3382 # Extract the first word of "gcc", so it can be a program name with args.
3383 set dummy gcc; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$ac_ct_CC"; then
3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CC="gcc"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3403 done
3404 done
3405 IFS=$as_save_IFS
3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410 if test -n "$ac_ct_CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412 $as_echo "$ac_ct_CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3418 if test "x$ac_ct_CC" = x; then
3419 CC=""
3420 else
3421 case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427 CC=$ac_ct_CC
3429 else
3430 CC="$ac_cv_prog_CC"
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}cc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}cc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3474 if test -z "$CC"; then
3475 # Extract the first word of "cc", so it can be a program name with args.
3476 set dummy cc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 else
3485 ac_prog_rejected=no
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3494 ac_prog_rejected=yes
3495 continue
3497 ac_cv_prog_CC="cc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3505 if test $ac_prog_rejected = yes; then
3506 # We found a bogon in the path, so make sure we never use it.
3507 set dummy $ac_cv_prog_CC
3508 shift
3509 if test $# != 0; then
3510 # We chose a different compiler from the bogus one.
3511 # However, it has the same basename, so the bogon will be chosen
3512 # first if we set CC to just the basename; use the full file name.
3513 shift
3514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 for ac_prog in cl.exe
3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$CC" && break
3572 done
3574 if test -z "$CC"; then
3575 ac_ct_CC=$CC
3576 for ac_prog in cl.exe
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$ac_ct_CC" && break
3616 done
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "no acceptable C compiler found in \$PATH
3637 See \`config.log' for more details" "$LINENO" 5; }
3639 # Provide some information about the compiler.
3640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3641 set X $ac_compile
3642 ac_compiler=$2
3643 for ac_option in --version -v -V -qversion; do
3644 { { ac_try="$ac_compiler $ac_option >&5"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3652 ac_status=$?
3653 if test -s conftest.err; then
3654 sed '10a\
3655 ... rest of stderr output deleted ...
3656 10q' conftest.err >conftest.er1
3657 cat conftest.er1 >&5
3659 rm -f conftest.er1 conftest.err
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 done
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3666 if ${ac_cv_c_compiler_gnu+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main ()
3675 #ifndef __GNUC__
3676 choke me
3677 #endif
3680 return 0;
3682 _ACEOF
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_compiler_gnu=yes
3685 else
3686 ac_compiler_gnu=no
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696 else
3697 GCC=
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if ${ac_cv_prog_cc_g+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_g=yes
3723 else
3724 CFLAGS=""
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3729 main ()
3733 return 0;
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3738 else
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_c_werror_flag=$ac_save_c_werror_flag
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3763 $as_echo "$ac_cv_prog_cc_g" >&6; }
3764 if test "$ac_test_CFLAGS" = set; then
3765 CFLAGS=$ac_save_CFLAGS
3766 elif test $ac_cv_prog_cc_g = yes; then
3767 if test "$GCC" = yes; then
3768 CFLAGS="-g -O2"
3769 else
3770 CFLAGS="-g"
3772 else
3773 if test "$GCC" = yes; then
3774 CFLAGS="-O2"
3775 else
3776 CFLAGS=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3781 if ${ac_cv_prog_cc_c89+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 ac_cv_prog_cc_c89=no
3785 ac_save_CC=$CC
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <stdarg.h>
3789 #include <stdio.h>
3790 struct stat;
3791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3792 struct buf { int x; };
3793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3794 static char *e (p, i)
3795 char **p;
3796 int i;
3798 return p[i];
3800 static char *f (char * (*g) (char **, int), char **p, ...)
3802 char *s;
3803 va_list v;
3804 va_start (v,p);
3805 s = g (p, va_arg (v,int));
3806 va_end (v);
3807 return s;
3810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3811 function prototypes and stuff, but not '\xHH' hex character constants.
3812 These don't provoke an error unfortunately, instead are silently treated
3813 as 'x'. The following induces an error, until -std is added to get
3814 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3815 array size at least. It's necessary to write '\x00'==0 to get something
3816 that's true only with -std. */
3817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3820 inside strings and character constants. */
3821 #define FOO(x) 'x'
3822 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824 int test (int i, double x);
3825 struct s1 {int (*f) (int a);};
3826 struct s2 {int (*f) (double a);};
3827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 int argc;
3829 char **argv;
3831 main ()
3833 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 return 0;
3837 _ACEOF
3838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3839 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 CC="$ac_save_CC $ac_arg"
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_c89=$ac_arg
3845 rm -f core conftest.err conftest.$ac_objext
3846 test "x$ac_cv_prog_cc_c89" != "xno" && break
3847 done
3848 rm -f conftest.$ac_ext
3849 CC=$ac_save_CC
3852 # AC_CACHE_VAL
3853 case "x$ac_cv_prog_cc_c89" in
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3856 $as_echo "none needed" >&6; } ;;
3857 xno)
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3859 $as_echo "unsupported" >&6; } ;;
3861 CC="$CC $ac_cv_prog_cc_c89"
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3863 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3864 esac
3865 if test "x$ac_cv_prog_cc_c89" != xno; then :
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 case $ac_cv_prog_cc_stdc in #(
3876 no) :
3877 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3878 *) :
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3880 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3881 if ${ac_cv_prog_cc_c99+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 ac_cv_prog_cc_c99=no
3885 ac_save_CC=$CC
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 #include <stdarg.h>
3889 #include <stdbool.h>
3890 #include <stdlib.h>
3891 #include <wchar.h>
3892 #include <stdio.h>
3894 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3895 #define debug(...) fprintf (stderr, __VA_ARGS__)
3896 #define showlist(...) puts (#__VA_ARGS__)
3897 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3898 static void
3899 test_varargs_macros (void)
3901 int x = 1234;
3902 int y = 5678;
3903 debug ("Flag");
3904 debug ("X = %d\n", x);
3905 showlist (The first, second, and third items.);
3906 report (x>y, "x is %d but y is %d", x, y);
3909 // Check long long types.
3910 #define BIG64 18446744073709551615ull
3911 #define BIG32 4294967295ul
3912 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3913 #if !BIG_OK
3914 your preprocessor is broken;
3915 #endif
3916 #if BIG_OK
3917 #else
3918 your preprocessor is broken;
3919 #endif
3920 static long long int bignum = -9223372036854775807LL;
3921 static unsigned long long int ubignum = BIG64;
3923 struct incomplete_array
3925 int datasize;
3926 double data[];
3929 struct named_init {
3930 int number;
3931 const wchar_t *name;
3932 double average;
3935 typedef const char *ccp;
3937 static inline int
3938 test_restrict (ccp restrict text)
3940 // See if C++-style comments work.
3941 // Iterate through items via the restricted pointer.
3942 // Also check for declarations in for loops.
3943 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3944 continue;
3945 return 0;
3948 // Check varargs and va_copy.
3949 static void
3950 test_varargs (const char *format, ...)
3952 va_list args;
3953 va_start (args, format);
3954 va_list args_copy;
3955 va_copy (args_copy, args);
3957 const char *str;
3958 int number;
3959 float fnumber;
3961 while (*format)
3963 switch (*format++)
3965 case 's': // string
3966 str = va_arg (args_copy, const char *);
3967 break;
3968 case 'd': // int
3969 number = va_arg (args_copy, int);
3970 break;
3971 case 'f': // float
3972 fnumber = va_arg (args_copy, double);
3973 break;
3974 default:
3975 break;
3978 va_end (args_copy);
3979 va_end (args);
3983 main ()
3986 // Check bool.
3987 _Bool success = false;
3989 // Check restrict.
3990 if (test_restrict ("String literal") == 0)
3991 success = true;
3992 char *restrict newvar = "Another string";
3994 // Check varargs.
3995 test_varargs ("s, d' f .", "string", 65, 34.234);
3996 test_varargs_macros ();
3998 // Check flexible array members.
3999 struct incomplete_array *ia =
4000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4001 ia->datasize = 10;
4002 for (int i = 0; i < ia->datasize; ++i)
4003 ia->data[i] = i * 1.234;
4005 // Check named initializers.
4006 struct named_init ni = {
4007 .number = 34,
4008 .name = L"Test wide string",
4009 .average = 543.34343,
4012 ni.number = 58;
4014 int dynamic_array[ni.number];
4015 dynamic_array[ni.number - 1] = 543;
4017 // work around unused variable warnings
4018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4019 || dynamic_array[ni.number - 1] != 543);
4022 return 0;
4024 _ACEOF
4025 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_c99=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext
4032 test "x$ac_cv_prog_cc_c99" != "xno" && break
4033 done
4034 rm -f conftest.$ac_ext
4035 CC=$ac_save_CC
4038 # AC_CACHE_VAL
4039 case "x$ac_cv_prog_cc_c99" in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4043 xno)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4047 CC="$CC $ac_cv_prog_cc_c99"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4049 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4050 esac
4051 if test "x$ac_cv_prog_cc_c99" != xno; then :
4052 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if ${ac_cv_prog_cc_c89+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <stdarg.h>
4064 #include <stdio.h>
4065 struct stat;
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4070 char **p;
4071 int i;
4073 return p[i];
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4077 char *s;
4078 va_list v;
4079 va_start (v,p);
4080 s = g (p, va_arg (v,int));
4081 va_end (v);
4082 return s;
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4086 function prototypes and stuff, but not '\xHH' hex character constants.
4087 These don't provoke an error unfortunately, instead are silently treated
4088 as 'x'. The following induces an error, until -std is added to get
4089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4090 array size at least. It's necessary to write '\x00'==0 to get something
4091 that's true only with -std. */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095 inside strings and character constants. */
4096 #define FOO(x) 'x'
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 int argc;
4104 char **argv;
4106 main ()
4108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4110 return 0;
4112 _ACEOF
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c89=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132 xno)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4142 else
4143 ac_cv_prog_cc_stdc=no
4148 esac
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4150 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4151 if ${ac_cv_prog_cc_stdc+:} false; then :
4152 $as_echo_n "(cached) " >&6
4155 case $ac_cv_prog_cc_stdc in #(
4156 no) :
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;; #(
4159 '') :
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;; #(
4162 *) :
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4164 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4165 esac
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4173 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4174 # On Suns, sometimes $CPP names a directory.
4175 if test -n "$CPP" && test -d "$CPP"; then
4176 CPP=
4178 if test -z "$CPP"; then
4179 if ${ac_cv_prog_CPP+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 # Double quotes because CPP needs to be expanded
4183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4185 ac_preproc_ok=false
4186 for ac_c_preproc_warn_flag in '' yes
4188 # Use a header file that comes with gcc, so configuring glibc
4189 # with a fresh cross-compiler works.
4190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191 # <limits.h> exists even on freestanding compilers.
4192 # On the NeXT, cc -E runs the code through the compiler's parser,
4193 # not just through cpp. "Syntax error" is here to catch this case.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #ifdef __STDC__
4197 # include <limits.h>
4198 #else
4199 # include <assert.h>
4200 #endif
4201 Syntax error
4202 _ACEOF
4203 if ac_fn_c_try_cpp "$LINENO"; then :
4205 else
4206 # Broken: fails on valid input.
4207 continue
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: success on invalid input.
4219 continue
4220 else
4221 # Passes both tests.
4222 ac_preproc_ok=:
4223 break
4225 rm -f conftest.err conftest.i conftest.$ac_ext
4227 done
4228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4229 rm -f conftest.i conftest.err conftest.$ac_ext
4230 if $ac_preproc_ok; then :
4231 break
4234 done
4235 ac_cv_prog_CPP=$CPP
4238 CPP=$ac_cv_prog_CPP
4239 else
4240 ac_cv_prog_CPP=$CPP
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4243 $as_echo "$CPP" >&6; }
4244 ac_preproc_ok=false
4245 for ac_c_preproc_warn_flag in '' yes
4247 # Use a header file that comes with gcc, so configuring glibc
4248 # with a fresh cross-compiler works.
4249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 # <limits.h> exists even on freestanding compilers.
4251 # On the NeXT, cc -E runs the code through the compiler's parser,
4252 # not just through cpp. "Syntax error" is here to catch this case.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #ifdef __STDC__
4256 # include <limits.h>
4257 #else
4258 # include <assert.h>
4259 #endif
4260 Syntax error
4261 _ACEOF
4262 if ac_fn_c_try_cpp "$LINENO"; then :
4264 else
4265 # Broken: fails on valid input.
4266 continue
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether nonexistent headers
4271 # can be detected and how.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <ac_nonexistent.h>
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: success on invalid input.
4278 continue
4279 else
4280 # Passes both tests.
4281 ac_preproc_ok=:
4282 break
4284 rm -f conftest.err conftest.i conftest.$ac_ext
4286 done
4287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288 rm -f conftest.i conftest.err conftest.$ac_ext
4289 if $ac_preproc_ok; then :
4291 else
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4295 See \`config.log' for more details" "$LINENO" 5; }
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 # Check for a compatible awk
4306 for ac_prog in gawk nawk
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AWK+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$AWK"; then
4316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_AWK="$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 AWK=$ac_cv_prog_AWK
4336 if test -n "$AWK"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4338 $as_echo "$AWK" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$AWK" && break
4346 done
4348 if test "$AWK" = ""; then
4349 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4351 # Extract the first word of "mmake", so it can be a program name with args.
4352 set dummy mmake; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_MMAKE+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$MMAKE"; then
4359 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_MMAKE="mmake "
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 MMAKE=$ac_cv_prog_MMAKE
4379 if test -n "$MMAKE"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4381 $as_echo "$MMAKE" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4389 # Perform some default variable assignments. Note all of these will be
4390 # Regenerated from the script, so there is no need to cache them.
4392 aros_host_cpp="$CPP"
4393 aros_host_cc="$CC"
4394 aros_host_cxx="$CXX"
4395 if test "$GCC" = "yes"; then
4396 aros_gcc_ld=`$CC -print-prog-name=ld`
4397 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4398 set dummy `basename $aros_gcc_ld`; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_path_aros_host_ld+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 case $aros_host_ld in
4405 [\\/]* | ?:[\\/]*)
4406 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in `dirname $aros_gcc_ld`
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4420 done
4421 done
4422 IFS=$as_save_IFS
4425 esac
4427 aros_host_ld=$ac_cv_path_aros_host_ld
4428 if test -n "$aros_host_ld"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4430 $as_echo "$aros_host_ld" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4438 if test "$aros_host_ld" = ""; then
4439 # Extract the first word of "ld", so it can be a program name with args.
4440 set dummy ld; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_path_aros_host_ld+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 case $aros_host_ld in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4467 esac
4469 aros_host_ld=$ac_cv_path_aros_host_ld
4470 if test -n "$aros_host_ld"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4472 $as_echo "$aros_host_ld" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4480 if test "$aros_host_ld" = ""; then
4481 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4483 aros_host_make="make"
4484 aros_host_cflags="$CFLAGS"
4485 aros_host_cxxflags="$CXXFLAGS"
4486 aros_host_ldflags="$LDFLAGS"
4487 aros_host_debug="-g -O0"
4488 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4489 aros_host_mkargs="--no-print-directory"
4490 aros_host_exe_suffix="$EXEEXT"
4491 aros_host_lib_suffix=""
4493 # Ignore all compliance, AROS ROMs = 0
4494 # KickStart v1.0 = 30
4495 # KickStart v1.3 = 34
4496 # KickStart v2.0 = 37
4497 # KickStart v3.0 = 39
4498 # KickStart v3.1 = 40
4499 # AmigaOS v3.5 = 44
4500 aros_amigaos_compliance=0
4502 for ac_prog in aclocal aclocal19 aclocal-1.9
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$aros_host_aclocal"; then
4512 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_aros_host_aclocal="$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4532 if test -n "$aros_host_aclocal"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4534 $as_echo "$aros_host_aclocal" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4541 test -n "$aros_host_aclocal" && break
4542 done
4544 for ac_prog in autoconf autoconf259 autoconf253
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$aros_host_autoconf"; then
4554 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_aros_host_autoconf="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4574 if test -n "$aros_host_autoconf"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4576 $as_echo "$aros_host_autoconf" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$aros_host_autoconf" && break
4584 done
4586 for ac_prog in autoheader autoheader259 autoheader253
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$aros_host_autoheader"; then
4596 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_aros_host_autoheader="$ac_prog"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4616 if test -n "$aros_host_autoheader"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4618 $as_echo "$aros_host_autoheader" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4625 test -n "$aros_host_autoheader" && break
4626 done
4628 for ac_prog in automake automake19 automake-1.9
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_aros_host_automake+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$aros_host_automake"; then
4638 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_aros_host_automake="$ac_prog"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 aros_host_automake=$ac_cv_prog_aros_host_automake
4658 if test -n "$aros_host_automake"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4660 $as_echo "$aros_host_automake" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4667 test -n "$aros_host_automake" && break
4668 done
4671 if test "$aros_host_aclocal" = ""; then
4672 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4674 if test "$aros_host_automake" = ""; then
4675 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4678 case "$aros_host_cc" in
4679 *clang*)
4680 aros_host_cc_pipe=""
4682 *gcc*)
4683 aros_host_cc_pipe="-pipe"
4685 icc)
4686 aros_host_cc_pipe=""
4689 aros_host_cc_pipe=""
4691 esac
4693 aros_kernel_cc_includes=""
4694 aros_target_cc_includes=""
4695 host_cc_elf=yes
4697 # ----------------------------------------------------------------------------------------
4698 # Host-specific defaults
4700 # This is the main host configuration section. It is where the host
4701 # can change the values of any variables it needs to change. We do
4702 # not look at anything that compiles to the target yet, we'll get
4703 # to that later.
4705 case "$host_os" in
4706 aros*)
4707 aros_host_arch="aros"
4708 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4709 case "$host_cpu" in
4710 *i?86*)
4711 aros_host_cpu="i386"
4713 *x86_64*)
4714 aros_host_cpu="x86_64"
4716 *powerpc*)
4717 aros_host_cpu="ppc"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4721 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4722 aros_host_cpu="$host_cpu"
4724 esac
4727 linux*)
4728 aros_host_arch="linux"
4729 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4730 android_build_os="linux-x86"
4731 android_tool="android"
4732 default_android_sdk="/opt/android-sdk-linux_x86"
4733 case "$host_cpu" in
4734 *i?86*)
4735 aros_host_cpu="i386"
4737 *x86_64*)
4738 aros_host_cpu="x86_64"
4740 *m68k*)
4741 aros_host_cpu="m68k"
4743 *powerpc*)
4744 aros_host_cpu="ppc"
4746 *arm*)
4747 aros_host_cpu="arm"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4751 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4752 aros_host_cpu="$host_cpu"
4754 esac
4757 freebsd*)
4758 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4759 aros_host_make="gmake"
4760 aros_host_arch="freebsd"
4761 aros_host_cpu="i386"
4763 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4765 case $host_os in
4766 freebsd[234]*)
4767 aros_object_format="elf_i386"
4771 aros_object_format="elf_i386_fbsd"
4773 esac
4777 darwin*)
4778 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4779 aros_host_arch="darwin"
4780 host_cc_elf=no
4781 SED="gsed"
4782 android_build_os="darwin-x86"
4783 android_tool="android"
4784 default_android_sdk="/android-sdk-mac_x86"
4785 case "$host_cpu" in
4786 *i?86*)
4787 aros_host_cpu="i386"
4789 *x86_64*)
4790 aros_host_cpu="x86_64"
4792 *powerpc*)
4793 aros_host_cpu="ppc"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4797 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4798 aros_host_cpu="$host_cpu"
4800 esac
4802 aros_host_ldflags="$aros_host_ldflags -liconv"
4806 dragonfly*)
4807 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4808 aros_host_make="gmake"
4809 aros_host_arch="dragonfly"
4810 case $host_cpu in
4811 *i?86*)
4812 aros_host_cpu="i386"
4814 *amd64*)
4815 aros_host_cpu="x86_64"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 netbsd*)
4826 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4827 aros_host_make="gmake"
4828 aros_host_arch="netbsd"
4829 case "$host_cpu" in
4830 *i?86*)
4831 aros_host_cpu="i386"
4833 *m68k*)
4834 aros_host_cpu="m68k"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4842 aros_host_lib_suffix=".0.0"
4845 openbsd*)
4846 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4847 aros_host_make="gmake"
4848 aros_host_arch="openbsd"
4849 case "$host_cpu" in
4850 *i?86*)
4851 aros_host_cpu="i386"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4855 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4856 aros_host_cpu="$host_cpu"
4858 esac
4861 solaris*)
4862 aros_host_arch="solaris"
4863 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4864 case "$host_cpu" in
4865 *i?86*)
4866 aros_host_cpu="i386"
4868 *sparc*)
4869 aros_host_cpu="sparc"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4873 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4874 aros_host_cpu="$host_cpu"
4876 esac
4879 morphos*)
4880 aros_host_arch="morphos"
4881 aros_host_cpu="ppc"
4882 host_cc_elf=no
4885 amiga*)
4886 aros_host_arch="amiga"
4887 host_cc_elf=no
4888 SORT="/gg/bin/sort"
4889 TEST="/gg/bin/test"
4890 UNIQ="/gg/bin/uniq"
4891 FOR="for"
4892 TOUCH="/gg/bin/touch"
4893 case "$host_cpu" in
4894 *m68k*)
4895 aros_host_cpu="m68k"
4897 *powerpc*)
4898 aros_host_cpu="ppc"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4902 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4903 aros_host_cpu="$host_cpu"
4905 esac
4908 cygwin*)
4909 aros_host_arch="cygwin"
4910 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4911 host_cc_elf=no
4912 android_build_os="windows"
4913 android_tool="android.bat"
4914 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4916 case "$host_cpu" in
4917 *i?86*)
4918 aros_host_cpu="i386"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4922 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4923 aros_host_cpu="$host_cpu"
4925 esac
4928 mingw32*)
4929 aros_host_arch="mingw32"
4930 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4931 host_cc_elf=no
4932 android_build_os="windows"
4933 android_tool="android.bat"
4934 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4936 case "$host_cpu" in
4937 *i?86*)
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4940 $as_echo_n "checking for Windows native gcc target... " >&6; }
4941 host_cpu=`gcc -dumpmachine`
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4943 $as_echo "$host_cpu" >&6; }
4946 esac
4948 case "$host_cpu" in
4949 *i?86*)
4950 aros_host_cpu="i386"
4953 mingw32*)
4954 aros_host_cpu="i386"
4957 *x86_64*)
4958 aros_host_cpu="x86_64"
4959 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4964 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4965 aros_host_cpu="$host_cpu"
4967 esac
4970 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4972 esac
4974 # Extract the first word of "ar", so it can be a program name with args.
4975 set dummy ar; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_aros_host_ar+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$aros_host_ar"; then
4982 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_aros_host_ar="ar cr"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
5001 aros_host_ar=$ac_cv_prog_aros_host_ar
5002 if test -n "$aros_host_ar"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
5004 $as_echo "$aros_host_ar" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5011 if test "$aros_host_ar" = ""; then
5012 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
5014 # Extract the first word of "ranlib", so it can be a program name with args.
5015 set dummy ranlib; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$aros_host_ranlib"; then
5022 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_aros_host_ranlib="ranlib "
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5035 done
5036 done
5037 IFS=$as_save_IFS
5041 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5042 if test -n "$aros_host_ranlib"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5044 $as_echo "$aros_host_ranlib" >&6; }
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5051 if test "$aros_host_ranlib" = ""; then
5052 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5054 # Extract the first word of "strip", so it can be a program name with args.
5055 set dummy strip; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_aros_host_strip+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$aros_host_strip"; then
5062 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_aros_host_strip="strip "
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 aros_host_strip=$ac_cv_prog_aros_host_strip
5082 if test -n "$aros_host_strip"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5084 $as_echo "$aros_host_strip" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 if test "$aros_host_strip" = ""; then
5092 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "rm", so it can be a program name with args.
5096 set dummy rm; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_RM+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$RM"; then
5103 ac_cv_prog_RM="$RM" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_RM="rm -rf"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 RM=$ac_cv_prog_RM
5123 if test -n "$RM"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5125 $as_echo "$RM" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 if test "$RM" = ""; then
5133 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "cp", so it can be a program name with args.
5136 set dummy cp; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_CP+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$CP"; then
5143 ac_cv_prog_CP="$CP" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_CP="cp "
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 CP=$ac_cv_prog_CP
5163 if test -n "$CP"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5165 $as_echo "$CP" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 if test "$CP" = ""; then
5173 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "mv", so it can be a program name with args.
5176 set dummy mv; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_MV+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$MV"; then
5183 ac_cv_prog_MV="$MV" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_MV="mv "
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 MV=$ac_cv_prog_MV
5203 if test -n "$MV"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5205 $as_echo "$MV" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 if test "$MV" = ""; then
5213 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5215 # Extract the first word of "echo", so it can be a program name with args.
5216 set dummy echo; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_ECHO+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$ECHO"; then
5223 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ECHO="echo "
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 ECHO=$ac_cv_prog_ECHO
5243 if test -n "$ECHO"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5245 $as_echo "$ECHO" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "$ECHO" = ""; then
5253 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5255 # Extract the first word of "mkdir", so it can be a program name with args.
5256 set dummy mkdir; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_MKDIR+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$MKDIR"; then
5263 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_MKDIR="mkdir -p"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 MKDIR=$ac_cv_prog_MKDIR
5283 if test -n "$MKDIR"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5285 $as_echo "$MKDIR" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 if test "$MKDIR" = ""; then
5293 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5295 # Extract the first word of "touch", so it can be a program name with args.
5296 set dummy touch; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_TOUCH+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$TOUCH"; then
5303 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_TOUCH="touch "
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 TOUCH=$ac_cv_prog_TOUCH
5323 if test -n "$TOUCH"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5325 $as_echo "$TOUCH" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5332 if test "$TOUCH" = ""; then
5333 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5335 # Extract the first word of "sort", so it can be a program name with args.
5336 set dummy sort; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_SORT+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$SORT"; then
5343 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_SORT="sort "
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 SORT=$ac_cv_prog_SORT
5363 if test -n "$SORT"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5365 $as_echo "$SORT" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 if test "$SORT" = ""; then
5373 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5375 # Extract the first word of "uniq", so it can be a program name with args.
5376 set dummy uniq; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_UNIQ+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$UNIQ"; then
5383 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_UNIQ="uniq "
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 UNIQ=$ac_cv_prog_UNIQ
5403 if test -n "$UNIQ"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5405 $as_echo "$UNIQ" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 if test "$UNIQ" = ""; then
5413 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5415 # Extract the first word of "true", so it can be a program name with args.
5416 set dummy true; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_NOP+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$NOP"; then
5423 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_NOP="true "
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 NOP=$ac_cv_prog_NOP
5443 if test -n "$NOP"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5445 $as_echo "$NOP" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5452 if test "$NOP" = ""; then
5453 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5455 # Extract the first word of "cat", so it can be a program name with args.
5456 set dummy cat; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_CAT+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$CAT"; then
5463 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_CAT="cat "
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 CAT=$ac_cv_prog_CAT
5483 if test -n "$CAT"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5485 $as_echo "$CAT" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5492 if test "$CAT" = ""; then
5493 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5495 # Extract the first word of "bison", so it can be a program name with args.
5496 set dummy bison; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_BISON+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$BISON"; then
5503 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_BISON="bison "
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5522 BISON=$ac_cv_prog_BISON
5523 if test -n "$BISON"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5525 $as_echo "$BISON" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 if test "$BISON" = ""; then
5533 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5535 # Extract the first word of "flex", so it can be a program name with args.
5536 set dummy flex; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_FLEX+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$FLEX"; then
5543 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_FLEX="flex "
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5558 IFS=$as_save_IFS
5562 FLEX=$ac_cv_prog_FLEX
5563 if test -n "$FLEX"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5565 $as_echo "$FLEX" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5572 if test "$FLEX" = ""; then
5573 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5575 # Extract the first word of "pngtopnm", so it can be a program name with args.
5576 set dummy pngtopnm; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$PNGTOPNM"; then
5583 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_PNGTOPNM="pngtopnm "
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5603 if test -n "$PNGTOPNM"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5605 $as_echo "$PNGTOPNM" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5612 if test "$PNGTOPNM" = ""; then
5613 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5615 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5616 set dummy ppmtoilbm; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$PPMTOILBM"; then
5623 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5636 done
5637 done
5638 IFS=$as_save_IFS
5642 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5643 if test -n "$PPMTOILBM"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5645 $as_echo "$PPMTOILBM" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5652 if test "$PPMTOILBM" = ""; then
5653 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5655 # Extract the first word of "sed", so it can be a program name with args.
5656 set dummy sed; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_prog_SED+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$SED"; then
5663 ac_cv_prog_SED="$SED" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672 ac_cv_prog_SED="sed "
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5676 done
5677 done
5678 IFS=$as_save_IFS
5682 SED=$ac_cv_prog_SED
5683 if test -n "$SED"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5685 $as_echo "$SED" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5692 if test "$SED" = ""; then
5693 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5695 # Extract the first word of "chmod", so it can be a program name with args.
5696 set dummy chmod; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CHMOD+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$CHMOD"; then
5703 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CHMOD="chmod "
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 CHMOD=$ac_cv_prog_CHMOD
5723 if test -n "$CHMOD"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5725 $as_echo "$CHMOD" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 if test "$CHMOD" = ""; then
5733 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5735 # Extract the first word of "patch", so it can be a program name with args.
5736 set dummy patch; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_PATCH+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$PATCH"; then
5743 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_PATCH="patch "
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5756 done
5757 done
5758 IFS=$as_save_IFS
5762 PATCH=$ac_cv_prog_PATCH
5763 if test -n "$PATCH"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5765 $as_echo "$PATCH" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5772 if test "$PATCH" = ""; then
5773 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5782 if test -n "$PYTHON"; then
5783 # If the user set $PYTHON, use it and don't search something else.
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5785 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5786 prog="import sys
5787 # split strings by '.' and convert to numeric. Append some zeros
5788 # because we need at least 4 digits for the hex conversion.
5789 # map returns an iterator in Python 3.0 and a list in 2.x
5790 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5791 minverhex = 0
5792 # xrange is not present in Python 3.0 and range returns an iterator
5793 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5794 sys.exit(sys.hexversion < minverhex)"
5795 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5796 ($PYTHON -c "$prog") >&5 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; then :
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801 $as_echo "yes" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5807 am_display_PYTHON=$PYTHON
5808 else
5809 # Otherwise, try each interpreter until we find one that satisfies
5810 # VERSION.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5812 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5813 if ${am_cv_pathless_PYTHON+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5817 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
5818 test "$am_cv_pathless_PYTHON" = none && break
5819 prog="import sys
5820 # split strings by '.' and convert to numeric. Append some zeros
5821 # because we need at least 4 digits for the hex conversion.
5822 # map returns an iterator in Python 3.0 and a list in 2.x
5823 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5824 minverhex = 0
5825 # xrange is not present in Python 3.0 and range returns an iterator
5826 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5827 sys.exit(sys.hexversion < minverhex)"
5828 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5829 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; then :
5833 break
5835 done
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5838 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5839 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5840 if test "$am_cv_pathless_PYTHON" = none; then
5841 PYTHON=:
5842 else
5843 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5844 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_path_PYTHON+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 case $PYTHON in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5866 done
5867 done
5868 IFS=$as_save_IFS
5871 esac
5873 PYTHON=$ac_cv_path_PYTHON
5874 if test -n "$PYTHON"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5876 $as_echo "$PYTHON" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5884 am_display_PYTHON=$am_cv_pathless_PYTHON
5888 if test "$PYTHON" = :; then
5889 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5890 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5894 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5895 if ${am_cv_python_version+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5901 $as_echo "$am_cv_python_version" >&6; }
5902 PYTHON_VERSION=$am_cv_python_version
5906 PYTHON_PREFIX='${prefix}'
5908 PYTHON_EXEC_PREFIX='${exec_prefix}'
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5913 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5914 if ${am_cv_python_platform+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5920 $as_echo "$am_cv_python_platform" >&6; }
5921 PYTHON_PLATFORM=$am_cv_python_platform
5924 # Just factor out some code duplication.
5925 am_python_setup_sysconfig="\
5926 import sys
5927 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5928 # with python 3.x. See automake bug#10227.
5929 try:
5930 import sysconfig
5931 except ImportError:
5932 can_use_sysconfig = 0
5933 else:
5934 can_use_sysconfig = 1
5935 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5936 # <https://github.com/pypa/virtualenv/issues/118>
5937 try:
5938 from platform import python_implementation
5939 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5940 can_use_sysconfig = 0
5941 except ImportError:
5942 pass"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5946 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5947 if ${am_cv_python_pythondir+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test "x$prefix" = xNONE
5951 then
5952 am_py_prefix=$ac_default_prefix
5953 else
5954 am_py_prefix=$prefix
5956 am_cv_python_pythondir=`$PYTHON -c "
5957 $am_python_setup_sysconfig
5958 if can_use_sysconfig:
5959 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5960 else:
5961 from distutils import sysconfig
5962 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5963 sys.stdout.write(sitedir)"`
5964 case $am_cv_python_pythondir in
5965 $am_py_prefix*)
5966 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5967 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5970 case $am_py_prefix in
5971 /usr|/System*) ;;
5973 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5975 esac
5977 esac
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5981 $as_echo "$am_cv_python_pythondir" >&6; }
5982 pythondir=$am_cv_python_pythondir
5986 pkgpythondir=\${pythondir}/$PACKAGE
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5990 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5991 if ${am_cv_python_pyexecdir+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test "x$exec_prefix" = xNONE
5995 then
5996 am_py_exec_prefix=$am_py_prefix
5997 else
5998 am_py_exec_prefix=$exec_prefix
6000 am_cv_python_pyexecdir=`$PYTHON -c "
6001 $am_python_setup_sysconfig
6002 if can_use_sysconfig:
6003 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6004 else:
6005 from distutils import sysconfig
6006 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6007 sys.stdout.write(sitedir)"`
6008 case $am_cv_python_pyexecdir in
6009 $am_py_exec_prefix*)
6010 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6011 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6014 case $am_py_exec_prefix in
6015 /usr|/System*) ;;
6017 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6019 esac
6021 esac
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6025 $as_echo "$am_cv_python_pyexecdir" >&6; }
6026 pyexecdir=$am_cv_python_pyexecdir
6030 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6040 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6041 if ${ac_cv_lib_png_png_read_png+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 ac_check_lib_save_LIBS=$LIBS
6045 LIBS="-lpng $LIBS"
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 char png_read_png ();
6057 main ()
6059 return png_read_png ();
6061 return 0;
6063 _ACEOF
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 ac_cv_lib_png_png_read_png=yes
6066 else
6067 ac_cv_lib_png_png_read_png=no
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6074 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6075 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_LIBPNG 1
6078 _ACEOF
6080 LIBS="-lpng $LIBS"
6084 if test "$ac_cv_lib_png_png_read_png" = ""; then
6085 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6088 FOR=for
6090 IF=if
6092 TEST=test
6094 CMP=cmp
6098 # Check for some includes for the X11 HIDD and the kernel
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6102 if ${ac_cv_path_GREP+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -z "$GREP"; then
6106 ac_path_GREP_found=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_prog in grep ggrep; do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6116 as_fn_executable_p "$ac_path_GREP" || continue
6117 # Check for GNU ac_path_GREP and select it if it is found.
6118 # Check for GNU $ac_path_GREP
6119 case `"$ac_path_GREP" --version 2>&1` in
6120 *GNU*)
6121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6123 ac_count=0
6124 $as_echo_n 0123456789 >"conftest.in"
6125 while :
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 $as_echo 'GREP' >> "conftest.nl"
6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133 as_fn_arith $ac_count + 1 && ac_count=$as_val
6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_GREP="$ac_path_GREP"
6137 ac_path_GREP_max=$ac_count
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6141 done
6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6143 esac
6145 $ac_path_GREP_found && break 3
6146 done
6147 done
6148 done
6149 IFS=$as_save_IFS
6150 if test -z "$ac_cv_path_GREP"; then
6151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6153 else
6154 ac_cv_path_GREP=$GREP
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159 $as_echo "$ac_cv_path_GREP" >&6; }
6160 GREP="$ac_cv_path_GREP"
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164 $as_echo_n "checking for egrep... " >&6; }
6165 if ${ac_cv_path_EGREP+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6169 then ac_cv_path_EGREP="$GREP -E"
6170 else
6171 if test -z "$EGREP"; then
6172 ac_path_EGREP_found=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_prog in egrep; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6182 as_fn_executable_p "$ac_path_EGREP" || continue
6183 # Check for GNU ac_path_EGREP and select it if it is found.
6184 # Check for GNU $ac_path_EGREP
6185 case `"$ac_path_EGREP" --version 2>&1` in
6186 *GNU*)
6187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6189 ac_count=0
6190 $as_echo_n 0123456789 >"conftest.in"
6191 while :
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo 'EGREP' >> "conftest.nl"
6197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_EGREP="$ac_path_EGREP"
6203 ac_path_EGREP_max=$ac_count
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6207 done
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209 esac
6211 $ac_path_EGREP_found && break 3
6212 done
6213 done
6214 done
6215 IFS=$as_save_IFS
6216 if test -z "$ac_cv_path_EGREP"; then
6217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6219 else
6220 ac_cv_path_EGREP=$EGREP
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6226 $as_echo "$ac_cv_path_EGREP" >&6; }
6227 EGREP="$ac_cv_path_EGREP"
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231 $as_echo_n "checking for ANSI C header files... " >&6; }
6232 if ${ac_cv_header_stdc+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <stdlib.h>
6238 #include <stdarg.h>
6239 #include <string.h>
6240 #include <float.h>
6243 main ()
6247 return 0;
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 ac_cv_header_stdc=yes
6252 else
6253 ac_cv_header_stdc=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 if test $ac_cv_header_stdc = yes; then
6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <string.h>
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "memchr" >/dev/null 2>&1; then :
6267 else
6268 ac_cv_header_stdc=no
6270 rm -f conftest*
6274 if test $ac_cv_header_stdc = yes; then
6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 #include <stdlib.h>
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev/null 2>&1; then :
6284 else
6285 ac_cv_header_stdc=no
6287 rm -f conftest*
6291 if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then :
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <ctype.h>
6299 #include <stdlib.h>
6300 #if ((' ' & 0x0FF) == 0x020)
6301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6303 #else
6304 # define ISLOWER(c) \
6305 (('a' <= (c) && (c) <= 'i') \
6306 || ('j' <= (c) && (c) <= 'r') \
6307 || ('s' <= (c) && (c) <= 'z'))
6308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309 #endif
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6313 main ()
6315 int i;
6316 for (i = 0; i < 256; i++)
6317 if (XOR (islower (i), ISLOWER (i))
6318 || toupper (i) != TOUPPER (i))
6319 return 2;
6320 return 0;
6322 _ACEOF
6323 if ac_fn_c_try_run "$LINENO"; then :
6325 else
6326 ac_cv_header_stdc=no
6328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329 conftest.$ac_objext conftest.beam conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335 $as_echo "$ac_cv_header_stdc" >&6; }
6336 if test $ac_cv_header_stdc = yes; then
6338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6344 inttypes.h stdint.h unistd.h
6345 do :
6346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6356 done
6359 for ac_header in sys/ipc.h sys/shm.h \
6360 sys/mmap.h sys/mman.h sysexits.h \
6361 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6363 do :
6364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6367 cat >>confdefs.h <<_ACEOF
6368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6369 _ACEOF
6373 done
6376 for ac_header in sys/mount.h
6377 do :
6378 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6380 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6381 cat >>confdefs.h <<_ACEOF
6382 #define HAVE_SYS_MOUNT_H 1
6383 _ACEOF
6387 done
6390 ac_header_dirent=no
6391 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6392 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6394 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6395 if eval \${$as_ac_Header+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <sys/types.h>
6401 #include <$ac_hdr>
6404 main ()
6406 if ((DIR *) 0)
6407 return 0;
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 eval "$as_ac_Header=yes"
6414 else
6415 eval "$as_ac_Header=no"
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 eval ac_res=\$$as_ac_Header
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421 $as_echo "$ac_res" >&6; }
6422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6423 cat >>confdefs.h <<_ACEOF
6424 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6425 _ACEOF
6427 ac_header_dirent=$ac_hdr; break
6430 done
6431 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6432 if test $ac_header_dirent = dirent.h; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6434 $as_echo_n "checking for library containing opendir... " >&6; }
6435 if ${ac_cv_search_opendir+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 ac_func_search_save_LIBS=$LIBS
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6442 /* Override any GCC internal prototype to avoid an error.
6443 Use char because int might match the return type of a GCC
6444 builtin and then its argument prototype would still apply. */
6445 #ifdef __cplusplus
6446 extern "C"
6447 #endif
6448 char opendir ();
6450 main ()
6452 return opendir ();
6454 return 0;
6456 _ACEOF
6457 for ac_lib in '' dir; do
6458 if test -z "$ac_lib"; then
6459 ac_res="none required"
6460 else
6461 ac_res=-l$ac_lib
6462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6464 if ac_fn_c_try_link "$LINENO"; then :
6465 ac_cv_search_opendir=$ac_res
6467 rm -f core conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext
6469 if ${ac_cv_search_opendir+:} false; then :
6470 break
6472 done
6473 if ${ac_cv_search_opendir+:} false; then :
6475 else
6476 ac_cv_search_opendir=no
6478 rm conftest.$ac_ext
6479 LIBS=$ac_func_search_save_LIBS
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6482 $as_echo "$ac_cv_search_opendir" >&6; }
6483 ac_res=$ac_cv_search_opendir
6484 if test "$ac_res" != no; then :
6485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6491 $as_echo_n "checking for library containing opendir... " >&6; }
6492 if ${ac_cv_search_opendir+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 ac_func_search_save_LIBS=$LIBS
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6499 /* Override any GCC internal prototype to avoid an error.
6500 Use char because int might match the return type of a GCC
6501 builtin and then its argument prototype would still apply. */
6502 #ifdef __cplusplus
6503 extern "C"
6504 #endif
6505 char opendir ();
6507 main ()
6509 return opendir ();
6511 return 0;
6513 _ACEOF
6514 for ac_lib in '' x; do
6515 if test -z "$ac_lib"; then
6516 ac_res="none required"
6517 else
6518 ac_res=-l$ac_lib
6519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 ac_cv_search_opendir=$ac_res
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext
6526 if ${ac_cv_search_opendir+:} false; then :
6527 break
6529 done
6530 if ${ac_cv_search_opendir+:} false; then :
6532 else
6533 ac_cv_search_opendir=no
6535 rm conftest.$ac_ext
6536 LIBS=$ac_func_search_save_LIBS
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6539 $as_echo "$ac_cv_search_opendir" >&6; }
6540 ac_res=$ac_cv_search_opendir
6541 if test "$ac_res" != no; then :
6542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6549 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6550 if ${ac_cv_header_stat_broken+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 #include <sys/types.h>
6556 #include <sys/stat.h>
6558 #if defined S_ISBLK && defined S_IFDIR
6559 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6560 #endif
6562 #if defined S_ISBLK && defined S_IFCHR
6563 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6564 #endif
6566 #if defined S_ISLNK && defined S_IFREG
6567 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6568 #endif
6570 #if defined S_ISSOCK && defined S_IFREG
6571 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6572 #endif
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 ac_cv_header_stat_broken=no
6577 else
6578 ac_cv_header_stat_broken=yes
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6583 $as_echo "$ac_cv_header_stat_broken" >&6; }
6584 if test $ac_cv_header_stat_broken = yes; then
6586 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6591 $as_echo_n "checking for ANSI C header files... " >&6; }
6592 if ${ac_cv_header_stdc+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <stdlib.h>
6598 #include <stdarg.h>
6599 #include <string.h>
6600 #include <float.h>
6603 main ()
6607 return 0;
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 ac_cv_header_stdc=yes
6612 else
6613 ac_cv_header_stdc=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 if test $ac_cv_header_stdc = yes; then
6618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <string.h>
6623 _ACEOF
6624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6625 $EGREP "memchr" >/dev/null 2>&1; then :
6627 else
6628 ac_cv_header_stdc=no
6630 rm -f conftest*
6634 if test $ac_cv_header_stdc = yes; then
6635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #include <stdlib.h>
6640 _ACEOF
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "free" >/dev/null 2>&1; then :
6644 else
6645 ac_cv_header_stdc=no
6647 rm -f conftest*
6651 if test $ac_cv_header_stdc = yes; then
6652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6653 if test "$cross_compiling" = yes; then :
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 #include <ctype.h>
6659 #include <stdlib.h>
6660 #if ((' ' & 0x0FF) == 0x020)
6661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6663 #else
6664 # define ISLOWER(c) \
6665 (('a' <= (c) && (c) <= 'i') \
6666 || ('j' <= (c) && (c) <= 'r') \
6667 || ('s' <= (c) && (c) <= 'z'))
6668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6669 #endif
6671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6673 main ()
6675 int i;
6676 for (i = 0; i < 256; i++)
6677 if (XOR (islower (i), ISLOWER (i))
6678 || toupper (i) != TOUPPER (i))
6679 return 2;
6680 return 0;
6682 _ACEOF
6683 if ac_fn_c_try_run "$LINENO"; then :
6685 else
6686 ac_cv_header_stdc=no
6688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6689 conftest.$ac_objext conftest.beam conftest.$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6695 $as_echo "$ac_cv_header_stdc" >&6; }
6696 if test $ac_cv_header_stdc = yes; then
6698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6703 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6704 if ${ac_cv_header_sys_wait_h+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #include <sys/types.h>
6710 #include <sys/wait.h>
6711 #ifndef WEXITSTATUS
6712 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6713 #endif
6714 #ifndef WIFEXITED
6715 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6716 #endif
6719 main ()
6721 int s;
6722 wait (&s);
6723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6725 return 0;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"; then :
6729 ac_cv_header_sys_wait_h=yes
6730 else
6731 ac_cv_header_sys_wait_h=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6736 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6737 if test $ac_cv_header_sys_wait_h = yes; then
6739 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6744 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6745 if ${ac_cv_header_time+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <sys/time.h>
6752 #include <time.h>
6755 main ()
6757 if ((struct tm *) 0)
6758 return 0;
6760 return 0;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 ac_cv_header_time=yes
6765 else
6766 ac_cv_header_time=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6771 $as_echo "$ac_cv_header_time" >&6; }
6772 if test $ac_cv_header_time = yes; then
6774 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6778 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6779 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6783 _ACEOF
6786 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6791 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6792 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6796 _ACEOF
6799 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6801 else
6802 case " $LIBOBJS " in
6803 *" fileblocks.$ac_objext "* ) ;;
6804 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6806 esac
6811 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6812 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6814 cat >>confdefs.h <<_ACEOF
6815 #define HAVE_STRUCT_STAT_ST_RDEV 1
6816 _ACEOF
6819 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6825 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6826 if ${ac_cv_struct_tm+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <time.h>
6835 main ()
6837 struct tm tm;
6838 int *p = &tm.tm_sec;
6839 return !p;
6841 return 0;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 ac_cv_struct_tm=time.h
6846 else
6847 ac_cv_struct_tm=sys/time.h
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6852 $as_echo "$ac_cv_struct_tm" >&6; }
6853 if test $ac_cv_struct_tm = sys/time.h; then
6855 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6859 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6860 #include <$ac_cv_struct_tm>
6863 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_STRUCT_TM_TM_ZONE 1
6867 _ACEOF
6872 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6874 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6876 else
6877 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6879 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6880 ac_have_decl=1
6881 else
6882 ac_have_decl=0
6885 cat >>confdefs.h <<_ACEOF
6886 #define HAVE_DECL_TZNAME $ac_have_decl
6887 _ACEOF
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6890 $as_echo_n "checking for tzname... " >&6; }
6891 if ${ac_cv_var_tzname+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <time.h>
6897 #if !HAVE_DECL_TZNAME
6898 extern char *tzname[];
6899 #endif
6902 main ()
6904 return tzname[0][0];
6906 return 0;
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910 ac_cv_var_tzname=yes
6911 else
6912 ac_cv_var_tzname=no
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6918 $as_echo "$ac_cv_var_tzname" >&6; }
6919 if test $ac_cv_var_tzname = yes; then
6921 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6926 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6927 if test "x$ac_cv_type_off_t" = xyes; then :
6929 else
6931 cat >>confdefs.h <<_ACEOF
6932 #define off_t long int
6933 _ACEOF
6937 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6938 if test "x$ac_cv_type_pid_t" = xyes; then :
6940 else
6942 cat >>confdefs.h <<_ACEOF
6943 #define pid_t int
6944 _ACEOF
6948 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6949 if test "x$ac_cv_type_size_t" = xyes; then :
6951 else
6953 cat >>confdefs.h <<_ACEOF
6954 #define size_t unsigned int
6955 _ACEOF
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6960 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6961 if ${ac_cv_type_uid_t+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 #include <sys/types.h>
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "uid_t" >/dev/null 2>&1; then :
6971 ac_cv_type_uid_t=yes
6972 else
6973 ac_cv_type_uid_t=no
6975 rm -f conftest*
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6979 $as_echo "$ac_cv_type_uid_t" >&6; }
6980 if test $ac_cv_type_uid_t = no; then
6982 $as_echo "#define uid_t int" >>confdefs.h
6985 $as_echo "#define gid_t int" >>confdefs.h
6990 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6991 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6995 _ACEOF
7001 # Look for some functions
7002 for ac_func in getpagesize kqueue statfs statvfs \
7003 clone kse_create rfork_thread thr_create sa_register \
7004 getcontext makecontext setcontext sigaltstack swapcontext
7005 do :
7006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7011 _ACEOF
7014 done
7020 for ac_header in $ac_header_list
7021 do :
7022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7026 cat >>confdefs.h <<_ACEOF
7027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7028 _ACEOF
7032 done
7041 for ac_func in getpagesize
7042 do :
7043 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7044 if test "x$ac_cv_func_getpagesize" = xyes; then :
7045 cat >>confdefs.h <<_ACEOF
7046 #define HAVE_GETPAGESIZE 1
7047 _ACEOF
7050 done
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7053 $as_echo_n "checking for working mmap... " >&6; }
7054 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test "$cross_compiling" = yes; then :
7058 ac_cv_func_mmap_fixed_mapped=no
7059 else
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 /* malloc might have been renamed as rpl_malloc. */
7064 #undef malloc
7066 /* Thanks to Mike Haertel and Jim Avera for this test.
7067 Here is a matrix of mmap possibilities:
7068 mmap private not fixed
7069 mmap private fixed at somewhere currently unmapped
7070 mmap private fixed at somewhere already mapped
7071 mmap shared not fixed
7072 mmap shared fixed at somewhere currently unmapped
7073 mmap shared fixed at somewhere already mapped
7074 For private mappings, we should verify that changes cannot be read()
7075 back from the file, nor mmap's back from the file at a different
7076 address. (There have been systems where private was not correctly
7077 implemented like the infamous i386 svr4.0, and systems where the
7078 VM page cache was not coherent with the file system buffer cache
7079 like early versions of FreeBSD and possibly contemporary NetBSD.)
7080 For shared mappings, we should conversely verify that changes get
7081 propagated back to all the places they're supposed to be.
7083 Grep wants private fixed already mapped.
7084 The main things grep needs to know about mmap are:
7085 * does it exist and is it safe to write into the mmap'd area
7086 * how to use it (BSD variants) */
7088 #include <fcntl.h>
7089 #include <sys/mman.h>
7091 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7092 char *malloc ();
7093 #endif
7095 /* This mess was copied from the GNU getpagesize.h. */
7096 #ifndef HAVE_GETPAGESIZE
7097 # ifdef _SC_PAGESIZE
7098 # define getpagesize() sysconf(_SC_PAGESIZE)
7099 # else /* no _SC_PAGESIZE */
7100 # ifdef HAVE_SYS_PARAM_H
7101 # include <sys/param.h>
7102 # ifdef EXEC_PAGESIZE
7103 # define getpagesize() EXEC_PAGESIZE
7104 # else /* no EXEC_PAGESIZE */
7105 # ifdef NBPG
7106 # define getpagesize() NBPG * CLSIZE
7107 # ifndef CLSIZE
7108 # define CLSIZE 1
7109 # endif /* no CLSIZE */
7110 # else /* no NBPG */
7111 # ifdef NBPC
7112 # define getpagesize() NBPC
7113 # else /* no NBPC */
7114 # ifdef PAGESIZE
7115 # define getpagesize() PAGESIZE
7116 # endif /* PAGESIZE */
7117 # endif /* no NBPC */
7118 # endif /* no NBPG */
7119 # endif /* no EXEC_PAGESIZE */
7120 # else /* no HAVE_SYS_PARAM_H */
7121 # define getpagesize() 8192 /* punt totally */
7122 # endif /* no HAVE_SYS_PARAM_H */
7123 # endif /* no _SC_PAGESIZE */
7125 #endif /* no HAVE_GETPAGESIZE */
7128 main ()
7130 char *data, *data2, *data3;
7131 const char *cdata2;
7132 int i, pagesize;
7133 int fd, fd2;
7135 pagesize = getpagesize ();
7137 /* First, make a file with some known garbage in it. */
7138 data = (char *) malloc (pagesize);
7139 if (!data)
7140 return 1;
7141 for (i = 0; i < pagesize; ++i)
7142 *(data + i) = rand ();
7143 umask (0);
7144 fd = creat ("conftest.mmap", 0600);
7145 if (fd < 0)
7146 return 2;
7147 if (write (fd, data, pagesize) != pagesize)
7148 return 3;
7149 close (fd);
7151 /* Next, check that the tail of a page is zero-filled. File must have
7152 non-zero length, otherwise we risk SIGBUS for entire page. */
7153 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7154 if (fd2 < 0)
7155 return 4;
7156 cdata2 = "";
7157 if (write (fd2, cdata2, 1) != 1)
7158 return 5;
7159 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7160 if (data2 == MAP_FAILED)
7161 return 6;
7162 for (i = 0; i < pagesize; ++i)
7163 if (*(data2 + i))
7164 return 7;
7165 close (fd2);
7166 if (munmap (data2, pagesize))
7167 return 8;
7169 /* Next, try to mmap the file at a fixed address which already has
7170 something else allocated at it. If we can, also make sure that
7171 we see the same garbage. */
7172 fd = open ("conftest.mmap", O_RDWR);
7173 if (fd < 0)
7174 return 9;
7175 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7176 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7177 return 10;
7178 for (i = 0; i < pagesize; ++i)
7179 if (*(data + i) != *(data2 + i))
7180 return 11;
7182 /* Finally, make sure that changes to the mapped area do not
7183 percolate back to the file as seen by read(). (This is a bug on
7184 some variants of i386 svr4.0.) */
7185 for (i = 0; i < pagesize; ++i)
7186 *(data2 + i) = *(data2 + i) + 1;
7187 data3 = (char *) malloc (pagesize);
7188 if (!data3)
7189 return 12;
7190 if (read (fd, data3, pagesize) != pagesize)
7191 return 13;
7192 for (i = 0; i < pagesize; ++i)
7193 if (*(data + i) != *(data3 + i))
7194 return 14;
7195 close (fd);
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_run "$LINENO"; then :
7200 ac_cv_func_mmap_fixed_mapped=yes
7201 else
7202 ac_cv_func_mmap_fixed_mapped=no
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7205 conftest.$ac_objext conftest.beam conftest.$ac_ext
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7210 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7211 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7213 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7216 rm -f conftest.mmap conftest.txt
7221 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7222 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7223 aros_config_ldflags=""
7225 aros_shared_default=yes
7227 aros_shared_cflags="-fPIC"
7228 aros_shared_aflags=""
7229 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7230 aros_kernel_ldflags="-Wl,-rpath,./lib"
7232 aros_kernel_ar_flags="cr"
7233 aros_target_ar_flags="cr"
7234 aros_target_nm_flags="-C -ul"
7235 aros_target_strip_flags="--strip-unneeded -R.comment"
7237 aros_compiler_libs=
7238 aros_arch_libs=
7240 aros_target_genmap="-Wl,-Map -Xlinker"
7242 # Native flavour stuff
7243 aros_serial_debug="0"
7245 # Palm native flavour stuff
7246 aros_palm_debug_hack="0"
7248 # Unix flavour stuff
7249 aros_nesting_supervisor="0"
7251 # Collect-aros stuff: "-ius" to ignore undefined symbols
7252 ignore_undefined_symbols=""
7254 # Check for X11 by default
7255 need_x11="auto"
7257 #-----------------------------------------------------------------------------
7260 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7261 # it switched on by default, and we use the host compiler, so it compiles AROS
7262 # code with this enabled resulting in link failures as we don't have support
7263 # for it.
7265 # We use two methods to disable it. For the host compiler (used to compile
7266 # some hosted modules), we test to see if the compiler supports stack
7267 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7268 # work on all platforms.
7270 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7271 # (this is done unconditionally, as it should have no effect on compilers
7272 # without the stack protection feature). This may be specific to the way that
7273 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7274 # strong enough to disable it in a generic way though, so we'll live with it
7275 # until another vendor ships GCC with it enabled in a different way, and deal
7276 # with it then.
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7280 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7281 save_cflags="$CFLAGS"
7282 CFLAGS="$CFLAGS -fno-stack-protector"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7287 main ()
7291 return 0;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 use_no_stack_protector="yes"
7296 else
7297 use_no_stack_protector="no"
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7301 $as_echo "$use_no_stack_protector" >&6; }
7302 if test "x-$use_no_stack_protector" = "x-yes" ; then
7303 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7305 CFLAGS="$save_cflags"
7307 #-----------------------------------------------------------------------------
7309 # Disable pointer-signedness warnings if the compiler recognises the option
7310 # (this only works for the host compiler at the moment)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7313 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7314 save_cflags="$CFLAGS"
7315 CFLAGS="$CFLAGS -Wno-pointer-sign"
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7320 main ()
7324 return 0;
7326 _ACEOF
7327 if ac_fn_c_try_compile "$LINENO"; then :
7328 use_no_sign_warning="yes"
7329 else
7330 use_no_sign_warning="no"
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7334 $as_echo "$use_no_sign_warning" >&6; }
7335 if test "x-$use_no_sign_warning" = "x-yes" ; then
7336 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7338 CFLAGS="$save_cflags"
7340 #-----------------------------------------------------------------------------
7342 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7345 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7346 save_cflags="$CFLAGS"
7347 CFLAGS="$CFLAGS -fgnu89-inline"
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7352 main ()
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 use_gnu89_inline="yes"
7361 else
7362 use_gnu89_inline="no"
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7366 $as_echo "$use_gnu89_inline" >&6; }
7367 if test "x-$use_gnu89_inline" = "x-yes" ; then
7368 gnu89_inline="-fgnu89-inline"
7370 CFLAGS="$save_cflags"
7372 #-----------------------------------------------------------------------------
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7375 $as_echo_n "checking for type of build... " >&6; }
7376 # Check whether --enable-build_type was given.
7377 if test "${enable_build_type+set}" = set; then :
7378 enableval=$enable_build_type; build_type=$enableval
7379 else
7380 build_type="personal"
7384 if test "$build_type" = "nightly"; then
7385 build_type_string="NIGHTLY"
7386 elif test "$build_type" = "snapshot"; then
7387 build_type_string="SNAPSHOT"
7388 elif test "$build_type" = "milestone"; then
7389 build_type_string="MILESTONE"
7390 elif test "$build_type" = "release"; then
7391 build_type_string="RELEASE"
7392 else
7393 build_type_string="PERSONAL"
7394 build_type="personal"
7397 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7400 $as_echo "$build_type" >&6; }
7402 #-----------------------------------------------------------------------------
7403 all_debug_types="messages stack modules mungwall symbols"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7406 $as_echo_n "checking which debug types to enable... " >&6; }
7407 # Check whether --enable-debug was given.
7408 if test "${enable_debug+set}" = set; then :
7409 enableval=$enable_debug; debug="$enableval"
7410 else
7411 debug=""
7415 if test "$debug" = "" -o "$debug" = "no"; then
7416 debug="none"
7417 elif test "$debug" = "yes"; then
7418 debug="all"
7421 if test "$debug" = "all" ; then
7422 debug="messages stack modules symbols"
7423 for d in $all_debug_types; do
7424 export aros_${d}_debug="1"
7425 done
7426 else
7427 for d in $all_debug_types; do
7428 export aros_${d}_debug="0"
7429 done
7432 if test "$debug" != "none"; then
7433 debug=`echo $debug | sed s/,/\ /g`
7434 for d in $debug; do
7435 found="0"
7436 for d2 in $all_debug_types; do
7437 if test "$d2" = "$d"; then
7438 found="1"
7439 break
7441 done
7442 if test "$found" = "0"; then
7443 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7445 export aros_${d}_debug="1"
7446 done
7447 aros_debug="yes"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7450 $as_echo "$debug" >&6; }
7452 if test "$aros_messages_debug" = "1"; then
7453 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7454 else
7455 aros_messages_debug=""
7457 if test "$aros_symbols_debug" = "1"; then
7458 aros_symbols_debug="-g"
7459 else
7460 aros_symbols_debug=""
7463 # These are the flags to pass when compiling debugged programs
7464 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7465 aros_debug_aflags=""
7466 aros_debug_ldflags="$aros_symbols_debug"
7468 #-----------------------------------------------------------------------------
7469 # Checking for distcc and ccache.
7471 # Always apply the transforms in this particular order. Basically you should
7472 # always run 'ccache distcc compiler' in that order for the best performance.
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7475 $as_echo_n "checking whether to enable distcc... " >&6; }
7476 # Check whether --enable-distcc was given.
7477 if test "${enable_distcc+set}" = set; then :
7478 enableval=$enable_distcc; distcc="$enableval"
7479 else
7480 distcc="no"
7483 if test "$distcc" != "" -a "$distcc" != "no"; then
7484 # AC_CHECK_PROG will print out the result in this case
7485 # Extract the first word of "distcc", so it can be a program name with args.
7486 set dummy distcc; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_DISTCC+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 case $DISTCC in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7510 IFS=$as_save_IFS
7512 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7514 esac
7516 DISTCC=$ac_cv_path_DISTCC
7517 if test -n "$DISTCC"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7519 $as_echo "$DISTCC" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7532 $as_echo_n "checking whether to enable ccache... " >&6; }
7533 # Check whether --enable-ccache was given.
7534 if test "${enable_ccache+set}" = set; then :
7535 enableval=$enable_ccache; ccache="$enableval"
7536 else
7537 ccache="no"
7540 if test "$ccache" != "" -a "$ccache" != "no"; then
7541 # AC_CHECK_PROG will print out the result in this case
7542 # Extract the first word of "ccache", so it can be a program name with args.
7543 set dummy ccache; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_CCACHE+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$CCACHE"; then
7550 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_CCACHE="ccache"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7565 IFS=$as_save_IFS
7569 CCACHE=$ac_cv_prog_CCACHE
7570 if test -n "$CCACHE"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7572 $as_echo "$CCACHE" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7584 #-----------------------------------------------------------------------------
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7586 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7588 # Check whether --with-kernel-gcc-version was given.
7589 if test "${with_kernel_gcc_version+set}" = set; then :
7590 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7591 else
7592 kernel_tool_version=""
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7596 $as_echo "$kernel_tool_version" >&6; }
7598 #-----------------------------------------------------------------------------
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7600 $as_echo_n "checking what optimization flags to use... " >&6; }
7602 # Check whether --with-optimization was given.
7603 if test "${with_optimization+set}" = set; then :
7604 withval=$with_optimization; optimization="$withval"
7605 else
7606 optimization="unknown"
7609 if test "$optimization" = "unknown"; then
7610 if test "$debug" != "none"; then
7611 optimization="-O0"
7612 else
7613 optimization="-O2"
7616 aros_optimization_cflags="$optimization"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7618 $as_echo "$optimization" >&6; }
7620 #-----------------------------------------------------------------------------
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7622 $as_echo_n "checking what paranoia flags to use... " >&6; }
7624 # Check whether --with-paranoia was given.
7625 if test "${with_paranoia+set}" = set; then :
7626 withval=$with_paranoia; paranoia_flags="$withval"
7627 else
7628 paranoia_flags="default"
7631 if test "$paranoia_flags" = "default"; then
7632 paranoia_flags=""
7633 else if test "$paranoia_flags" = "yes"; then
7634 paranoia_flags="-Wall -Werror"
7635 fi fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7637 $as_echo "$paranoia_flags" >&6; }
7638 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7640 #-----------------------------------------------------------------------------
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7642 $as_echo_n "checking what target variant to enable... " >&6; }
7643 # Check whether --enable-target_variant was given.
7644 if test "${enable_target_variant+set}" = set; then :
7645 enableval=$enable_target_variant; target_variant=$enableval
7646 else
7647 target_variant=""
7650 if test "$target_variant" = ""; then
7651 aros_target_variant=""
7652 aros_target_suffix=""
7653 enableval="none"
7654 else
7655 aros_target_variant="$target_variant"
7656 aros_target_suffix="-$target_variant"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7659 $as_echo "$enableval" >&6; }
7661 #-----------------------------------------------------------------------------
7662 # Target-specific defaults. You can override then on a per-target basis.
7664 # Bootloader name. Currently used by PC target.
7665 target_bootloader="none"
7667 #-----------------------------------------------------------------------------
7668 # Additional options for some specific targets
7670 case "$aros_target_variant" in
7671 ios)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7673 $as_echo_n "checking XCode path... " >&6; }
7675 # Check whether --with-xcode was given.
7676 if test "${with_xcode+set}" = set; then :
7677 withval=$with_xcode; aros_xcode_path="$withval"
7678 else
7679 aros_xcode_path="/Developer"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7683 $as_echo "$aros_xcode_path" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7686 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7688 # Check whether --with-sdk-version was given.
7689 if test "${with_sdk_version+set}" = set; then :
7690 withval=$with_sdk_version; aros_sdk_version="$withval"
7691 else
7692 aros_sdk_version="4.1"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7696 $as_echo "$aros_sdk_version" >&6; }
7700 "android")
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7702 $as_echo_n "checking Android SDK path... " >&6; }
7704 # Check whether --with-sdk was given.
7705 if test "${with_sdk+set}" = set; then :
7706 withval=$with_sdk; aros_android_sdk="$withval"
7707 else
7708 aros_android_sdk=$default_android_sdk
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7712 $as_echo "$aros_android_sdk" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7715 $as_echo_n "checking Android NDK path... " >&6; }
7717 # Check whether --with-ndk was given.
7718 if test "${with_ndk+set}" = set; then :
7719 withval=$with_ndk; aros_android_ndk="$withval"
7720 else
7721 aros_android_ndk="none"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7725 $as_echo "$aros_android_ndk" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7728 $as_echo_n "checking what Android SDK version to use... " >&6; }
7730 # Check whether --with-sdk-version was given.
7731 if test "${with_sdk_version+set}" = set; then :
7732 withval=$with_sdk_version; aros_sdk_version="$withval"
7733 else
7734 aros_sdk_version="12"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7738 $as_echo "$aros_sdk_version" >&6; }
7740 aros_android_level=android-$aros_sdk_version
7741 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7742 echo "Platform $aros_android_level is not installed in your SDK"
7743 echo "Use --with-sdk-version=<API level number> to select another platform version"
7744 echo "You can check what plaform versions are installed in your SDK"
7745 echo "by examining contents of $aros_android_sdk/platforms directory"
7746 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7749 export PATH="$aros_android_sdk/tools:$PATH"
7750 # Extract the first word of "$android_tool", so it can be a program name with args.
7751 set dummy $android_tool; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_path_android_tool+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $android_tool in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7778 esac
7780 android_tool=$ac_cv_path_android_tool
7781 if test -n "$android_tool"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7783 $as_echo "$android_tool" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 if test "$android_tool" = ""; then
7791 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7794 if test "$aros_android_ndk" != "none"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7796 $as_echo_n "checking what Android NDK version to use... " >&6; }
7798 # Check whether --with-ndk-version was given.
7799 if test "${with_ndk_version+set}" = set; then :
7800 withval=$with_ndk_version; aros_ndk_version="$withval"
7801 else
7802 aros_ndk_version="9"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7806 $as_echo "$aros_ndk_version" >&6; }
7809 # Extract the first word of "ant", so it can be a program name with args.
7810 set dummy ant; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_path_ant+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 case $ant in
7817 [\\/]* | ?:[\\/]*)
7818 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7837 esac
7839 ant=$ac_cv_path_ant
7840 if test -n "$ant"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7842 $as_echo "$ant" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 if test "$ant" = ""; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7851 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7855 $as_echo_n "checking Build debug or release apk... " >&6; }
7857 # Check whether --with-apk-version was given.
7858 if test "${with_apk_version+set}" = set; then :
7859 withval=$with_apk_version; aros_android_antapk=$withval
7860 else
7861 aros_android_antapk=release
7864 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7865 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7868 $as_echo "$aros_android_antapk" >&6; }
7870 if test "$host_os" = "mingw32"; then
7871 android_tool="cmd //c $android_tool"
7874 need_dlopen="no"
7877 esac
7879 #-----------------------------------------------------------------------------
7880 # External toolchains
7881 kernel_tool_prefix="none"
7882 aros_tool_prefix="none"
7883 elf_tool_prefix="${target_cpu}-elf-"
7885 # This is the target configuration switch.
7886 case "$target_os" in
7887 linux*)
7888 aros_target_arch="linux"
7889 aros_target_family="unix"
7890 case "$target_cpu" in
7891 *m68k*)
7892 aros_target_cpu="m68k"
7893 aros_object_format="m68kelf"
7894 aros_flavour="emulcompat"
7895 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7896 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7897 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7898 gcc_target_cpu="mc68000"
7900 *i?86*)
7901 aros_target_cpu="i386"
7902 aros_object_format="elf_i386"
7903 aros_flavour="emulation"
7904 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7905 aros_kernel_ldflags="-Wl,-melf_i386"
7906 aros_default_wbdepth=8
7907 gcc_target_cpu="i386"
7908 pci_hidd_target="hidd-pci-linux"
7909 android_tool_dir_prefix="x86"
7910 android_tool_prefix="i686-android-linux"
7911 android_ndk_arch="x86"
7913 *x86_64*)
7914 aros_target_cpu="x86_64"
7915 aros_object_format="elf_x86_64"
7916 aros_flavour="emulation"
7917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7918 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7919 aros_default_wbdepth=8
7920 pci_hidd_target="hidd-pci-linux"
7922 *powerpc*)
7923 aros_target_cpu="ppc"
7924 aros_object_format="elf32ppc"
7925 aros_flavour="emulation"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7927 aros_default_wbdepth=8
7928 gcc_target_cpu="ppc"
7930 # TODO
7931 # Same as powerpc, but I need this for the nightly build to work again.
7932 # Actually, the nightly should be made working with powerpc target.
7933 # That just was too much work for the moment, another week or two.
7934 *ppc*)
7935 aros_target_cpu="ppc"
7936 aros_object_format="elf32ppc"
7937 aros_flavour="emulation"
7938 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7939 aros_default_wbdepth=8
7940 gcc_target_cpu="ppc"
7942 *armhf*)
7943 aros_target_cpu="arm"
7944 target_cpu="arm"
7945 aros_object_format="armelf_aros"
7946 aros_flavour="emulation"
7947 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7948 gcc_target_cpu="arm"
7949 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7950 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7951 aros_arch_libs="-laeabi"
7952 gcc_default_float_abi="hard"
7953 android_tool_dir_prefix="arm-linux-androideabi"
7954 android_tool_prefix="arm-linux-androideabi"
7955 android_ndk_arch="arm"
7956 kernel_tool_prefix="arm-linux-gnueabihf-"
7958 *arm*)
7959 aros_target_cpu="arm"
7960 aros_object_format="armelf_aros"
7961 aros_flavour="emulation"
7962 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7963 gcc_target_cpu="arm"
7964 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7965 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7966 aros_arch_libs="-laeabi"
7967 android_tool_dir_prefix="arm-linux-androideabi"
7968 android_tool_prefix="arm-linux-androideabi"
7969 android_ndk_arch="arm"
7970 kernel_tool_prefix="arm-linux-gnueabi-"
7973 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7975 esac
7976 case "$aros_target_variant" in
7977 android)
7979 if test "$android_ndk_arch" = ""; then
7980 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7983 aros_default_wbwidth=320
7984 aros_default_wbheight=480
7985 if test "$aros_android_ndk" = "none"; then
7986 aros_kernel_cflags="-mandroid"
7987 aros_kernel_ldflags="-mandroid"
7988 CFLAGS="-mandroid"
7989 else
7990 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7991 kernel_tool_version=""
7992 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7993 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7994 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7995 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7996 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7998 need_x11=no
7999 unixgfx_hidd_target=kernel-hidd-androidgfx
8000 # Disable implicit PIC mode
8001 aros_target_cflags="$aros_target_cflags -fno-pic"
8002 kernel_tool_prefix="$android_tool_prefix-"
8004 esac
8008 aros_target_arch="pc"
8009 aros_shared_default="no"
8010 target_bootloader="grub2"
8011 case "$target_cpu" in
8012 *i?86*)
8013 aros_target_cpu="i386"
8016 if test "$aros_object_format" = "" ; then
8017 aros_object_format="elf_i386"
8019 aros_flavour="standalone"
8020 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8021 aros_kernel_ldflags="-Wl,-melf_i386"
8022 aros_default_wbwidth=640
8023 aros_default_wbheight=480
8024 gcc_target_cpu="i386"
8026 *x86_64*)
8027 aros_target_cpu="x86_64"
8028 aros_serial_debug=1
8029 if test "$aros_object_format" = "" ; then
8030 aros_object_format="elf_x86_64"
8032 aros_flavour="standalone"
8033 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8034 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8035 aros_kernel_ldflags=""
8036 aros_default_wbwidth=640
8037 aros_default_wbheight=480
8040 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8042 esac
8045 prep)
8046 aros_target_arch="prep"
8047 aros_shared_default="no"
8048 aros_target_cpu="ppc"
8049 aros_object_format="elf32ppc"
8050 aros_flavour="ppcnative"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8052 aros_kernel_ldflags=""
8053 aros_default_wbwidth=640
8054 aros_default_wbheight=480
8055 gcc_target_cpu="ppc"
8058 freebsd*)
8059 aros_target_arch="freebsd"
8060 aros_target_family="unix"
8061 aros_target_cpu="i386"
8062 aros_flavour="emulation"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8064 gcc_target_cpu="i386"
8066 aros_target_strip_flags="-x"
8069 darwin*)
8070 aros_target_arch="darwin"
8071 aros_target_family="unix"
8072 aros_flavour="emulation"
8073 case "$target_cpu" in
8074 *i?86*)
8075 aros_ios_platform="iPhoneSimulator"
8076 aros_target_cpu="i386"
8077 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8078 aros_kernel_ldflags=""
8079 aros_macosx_version="10.4"
8080 aros_default_wbdepth=8
8081 gcc_target_cpu="i386"
8082 aros_object_format="elf_i386"
8083 aros_kernel_ar_flags="-cr"
8084 aros_target_strip_flags="-x"
8085 kernel_tool_flags="-m32"
8087 *x86_64*)
8088 aros_target_cpu="x86_64"
8089 aros_object_format="elf_x86_64"
8090 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8091 aros_macosx_version="10.6"
8092 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8093 aros_kernel_cflags="-m64"
8094 aros_kernel_ldflags="-m64"
8095 aros_target_cflags="-mcmodel=large"
8096 aros_default_wbdepth=8
8097 aros_kernel_ar="ar"
8098 aros_kernel_ar_flags="-cr"
8099 aros_kernel_ld="ld"
8100 aros_kernel_as="as"
8101 aros_kernel_ranlib="ranlib"
8102 aros_kernel_nm="nm"
8103 aros_kernel_strip="strip"
8104 kernel_tool_prefix="i686-apple-darwin10-"
8106 *ppc*)
8107 aros_target_cpu="ppc"
8108 aros_object_format="elf32ppc"
8109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8110 aros_kernel_ldflags=""
8111 aros_macosx_version="10.0"
8112 aros_default_wbdepth=8
8113 gcc_target_cpu="ppc"
8114 aros_kernel_ar="ar"
8115 aros_kernel_ar_flags="-cr"
8116 aros_kernel_ld="ld -arch ppc"
8117 aros_kernel_as="as -arch ppc"
8118 aros_kernel_ranlib="ranlib -arch ppc"
8119 aros_kernel_nm="nm -arch ppc"
8120 aros_kernel_strip="strip -arch ppc"
8121 kernel_tool_prefix="powerpc-apple-darwin10-"
8123 *arm*)
8124 aros_ios_platform="iPhoneOS"
8125 aros_target_cpu="arm"
8126 aros_object_format="armelf_aros"
8127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8128 aros_arch_libs="-laeabi"
8129 aros_default_wbdepth=8
8130 gcc_target_cpu="arm"
8131 aros_kernel_ar="ar"
8132 aros_kernel_ar_flags="-cr"
8133 aros_kernel_ld="ld -arch arm"
8134 aros_kernel_ranlib="ranlib -arch arm"
8135 kernel_tool_prefix="arm-apple-darwin10-"
8136 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8139 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8141 esac
8142 case "$aros_target_variant" in
8143 ios)
8144 aros_ios_version="3.0"
8145 aros_default_wbwidth=320
8146 aros_default_wbheight=480
8147 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8148 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8149 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8150 need_x11=no
8151 # This is here because it may depend on iOS or SDK version
8152 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8153 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8154 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8157 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8158 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8160 esac
8163 dragonfly*)
8164 aros_target_arch="dragonfly"
8165 aros_target_family="unix"
8166 aros_flavour="emulation"
8167 case "$target_cpu" in
8168 *i?86*)
8169 aros_target_cpu="i386"
8170 aros_object_format="elf_i386"
8171 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8173 *x86_64*)
8174 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8175 aros_target_cpu="x86_64"
8176 aros_object_format="elf_x86_64"
8177 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8180 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8182 esac
8185 netbsd*)
8186 aros_target_arch="netbsd"
8187 aros_target_family="unix"
8188 case "$target_cpu" in
8189 *m68k*)
8190 aros_target_cpu="m68k"
8191 aros_object_format="m68kelf"
8192 aros_flavour="emulcompat"
8193 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8194 gcc_target_cpu="mc68000"
8196 *i?86*)
8197 aros_target_cpu="i386"
8198 aros_object_format="elf_i386"
8199 aros_flavour="emulation"
8200 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8201 aros_default_wbdepth=8
8202 gcc_target_cpu="i386"
8205 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8207 esac
8208 aros_target_genmap="-Wl,-M -Xlinker >"
8209 aros_flavour="emulation"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8213 openbsd*)
8214 aros_target_arch="openbsd"
8215 aros_target_family="unix"
8216 case "$target_cpu" in
8217 *i?86*)
8218 aros_target_cpu="i386"
8219 aros_object_format="elf_i386"
8220 aros_flavour="emulation"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8222 gcc_target_cpu="i386"
8225 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8227 esac
8228 aros_target_genmap="-Wl,-M -Xlinker >"
8229 aros_target_nm_flags="-u"
8230 aros_flavour="emulation"
8233 solaris*)
8234 aros_target_arch="solaris"
8235 aros_target_family="unix"
8236 case "$target_cpu" in
8237 *i?86*)
8238 aros_target_cpu="i386"
8239 aros_object_format="elf_i386"
8240 aros_flavour="emulation"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8242 aros_default_wbdepth=8
8243 gcc_target_cpu="i386"
8245 *sparc*)
8246 aros_target_cpu="sparc"
8247 aros_object_format="elf_sparc"
8248 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8249 gcc_target_cpu="sparc"
8252 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8254 esac
8255 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8256 aros_flavour="emulation"
8259 morphos*)
8260 aros_target_arch="morphos"
8261 aros_shared_default="no"
8262 aros_target_cpu="ppc"
8263 aros_object_format="elf_ppc"
8264 aros_flavour="nativecompat"
8265 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8266 gcc_target_cpu="ppc"
8269 sam440)
8270 aros_target_arch="sam440"
8271 aros_shared_default="no"
8272 aros_target_cpu="ppc"
8273 aros_object_format="elf32ppc"
8274 aros_flavour="ppcnative"
8275 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8276 aros_kernel_ldflags=""
8277 aros_default_wbwidth=1024
8278 aros_default_wbheight=768
8279 aros_default_wbdepth=24
8280 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8281 gcc_target_cpu="powerpc"
8284 efika)
8285 aros_target_arch="efika"
8286 aros_shared_default="no"
8287 aros_target_cpu="arm"
8288 aros_object_format="armelf_aros"
8289 aros_flavour="standalone"
8290 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8291 aros_kernel_ldflags=""
8292 aros_default_wbwidth=1024
8293 aros_default_wbheight=600
8294 aros_arch_libs="-laeabi"
8295 gcc_default_cpu="armv7-a"
8296 gcc_default_fpu="vfpv3"
8297 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8298 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8299 aros_optimization_cflags="$aros_optimization_cflags -Os"
8300 case "$target_cpu" in
8301 *armhf*)
8302 gcc_default_float_abi="hard"
8303 target_cpu=arm
8304 aros_target_cpu=arm
8306 *arm*)
8307 gcc_default_float_abi="softfp"
8310 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8312 esac
8315 chrp)
8316 aros_target_arch="chrp"
8317 aros_shared_default="no"
8318 aros_target_cpu="ppc"
8319 aros_object_format="elf32ppc"
8320 aros_flavour="ppcnative"
8321 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8322 aros_kernel_ldflags=""
8323 aros_default_wbwidth=640
8324 aros_default_wbheight=480
8325 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8326 gcc_target_cpu="powerpc"
8327 case "$aros_target_variant" in
8328 efika)
8329 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8331 esac
8334 r*pi)
8335 aros_flavour="standalone"
8336 aros_target_arch="raspi"
8337 aros_target_cpu="arm"
8338 aros_object_format="armelf_aros"
8339 aros_shared_default="no"
8340 aros_arch_libs="-laeabi"
8342 gcc_default_cpu="armv6"
8343 gcc_default_cpu_tune="arm1176jzf-s"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8346 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8348 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8349 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8352 sun4i)
8353 aros_flavour="standalone"
8354 aros_target_arch="sun4i"
8355 aros_target_cpu="arm"
8356 aros_object_format="armelf_aros"
8357 aros_shared_default="no"
8358 aros_arch_libs="-laeabi"
8360 gcc_default_cpu="armv7-a"
8361 gcc_default_fpu="neon"
8362 gcc_default_cpu_tune="cortex-a8"
8363 gcc_default_float_abi="hard"
8365 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8366 aros_optimization_cflags=""
8367 aros_config_cflags="$aros_config_cflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8368 aros_config_aflags="$aros_config_aflags -mcpu=cortex-a8 -mtune=cortex-a8 -fno-strict-aliasing"
8371 amiga*)
8372 aros_target_arch="amiga"
8373 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8374 aros_shared_default="no"
8376 case "$target_cpu" in
8377 *m68k*)
8378 # Check whether --enable-amigaos_compliance was given.
8379 if test "${enable_amigaos_compliance+set}" = set; then :
8380 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8383 aros_enable_mmu=no
8384 aros_target_cpu="m68k"
8385 aros_object_format="m68kelf"
8386 aros_flavour="standcompat"
8387 gcc_target_cpu="m68000"
8388 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -DNOLIBINLINE"
8389 aros_optimization_cflags="$aros_optimization_cflags -Os"
8390 aros_config_aflags="$aros_config_aflags"
8391 aros_target_strip_flags="-R.comment --strip-debug"
8392 aros_default_wbwidth=640
8393 aros_default_wbheight=256
8394 aros_default_wbdepth=2
8396 *ppc*)
8397 aros_cpu="ppc"
8398 aros_flavour="native"
8399 gcc_target_cpu="ppc"
8402 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8404 esac
8407 mingw*)
8408 aros_target_arch="mingw32"
8409 aros_shared_default="no"
8410 aros_flavour="emulation"
8411 aros_shared_cflags=""
8412 need_crosstools="yes"
8413 need_dlopen="no"
8414 rescomp="windres"
8415 case "$target_cpu" in
8416 *i?86*)
8417 aros_target_cpu="i386"
8418 aros_object_format="elf_i386"
8419 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8420 aros_default_wbdepth=8
8421 gcc_target_cpu="i386"
8423 kernel_tool_prefix="i386-mingw32-"
8425 *x86_64*)
8426 aros_target_cpu="x86_64"
8427 aros_object_format="elf_x86_64"
8428 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8429 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8430 aros_default_wbdepth=8
8431 kernel_tool_prefix="x86_64-w64-mingw32-"
8433 *arm*)
8434 aros_target_cpu="arm"
8435 aros_object_format="armelf_aros"
8436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8437 aros_arch_libs="-laeabi"
8438 aros_default_wbdepth=8
8439 gcc_target_cpu="arm"
8440 gcc_default_float_abi="soft"
8441 kernel_tool_prefix="arm-mingw32ce-"
8442 aros_default_wbwidth=160
8443 aros_default_wbheight=160
8446 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8448 esac
8449 if test $host_os = "cygwin"; then
8450 aros_kernel_cflags="-mno-cygwin"
8453 pp*)
8454 aros_target_arch="pp"
8455 aros_shared_default="no"
8456 case "$target_cpu" in
8457 *m68k*)
8458 aros_target_cpu="m68k"
8459 aros_object_format="m68kelf"
8460 aros_flavour="palmnative"
8461 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8462 aros_default_wbwidth=160
8463 aros_default_wbheight=160
8464 aros_default_wbdepth=1
8465 aros_target_ar_flags="cru"
8466 aros_compiler_libs="-lgcc1"
8467 aros_shared_default=no
8468 aros_shared_cflags="-fpic"
8469 aros_shared_aflags=""
8470 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8471 aros_kernel_ldflags="-Wl,-rpath,./lib"
8472 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8473 aros_debug_aflags=""
8474 aros_debug_ldflags="$aros_symbols_debug"
8475 aros_mungwall_debug="0"
8476 aros_modules_debug="0"
8477 gcc_target_cpu="mc68000"
8478 ignore_undefined_symbols="-ius"
8481 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8483 esac
8486 mac*)
8487 aros_target_arch="mac"
8488 aros_shared_default="no"
8489 case "$target_cpu" in
8490 *m68k*)
8491 aros_target_cpu="m68k"
8492 aros_object_format="m68kelf"
8493 aros_flavour="mac68knative"
8494 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8495 aros_default_wbwidth=512
8496 aros_default_wbheight=384
8497 aros_default_wbdepth=8
8498 aros_target_ar_flags="cru"
8499 aros_compiler_libs="-lgcc1"
8500 aros_shared_default=no
8501 aros_shared_cflags="-fpic"
8502 aros_shared_aflags=""
8503 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8504 aros_kernel_ldflags="-Wl,-rpath,./lib"
8505 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8506 aros_debug_aflags=""
8507 aros_debug_ldflags="$aros_symbols_debug"
8508 aros_mungwall_debug="0"
8509 aros_modules_debug="0"
8510 gcc_target_cpu="mc68000"
8511 ignore_undefined_symbols="-ius"
8514 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8516 esac
8520 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8522 esac
8524 #-----------------------------------------------------------------------------
8525 crosstools_guess="yes"
8526 aros_target_toolchain="no"
8527 aros_config_sysroot=""
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8530 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8532 # Check whether --with-kernel-toolchain-prefix was given.
8533 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8534 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8538 $as_echo "$kernel_tool_prefix" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8541 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8543 # Check whether --with-elf-toolchain-prefix was given.
8544 if test "${with_elf_toolchain_prefix+set}" = set; then :
8545 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8546 crosstools_guess="no"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8550 $as_echo "$elf_tool_prefix" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8553 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8555 # Check whether --with-aros-toolchain was given.
8556 if test "${with_aros_toolchain+set}" = set; then :
8557 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8558 crosstools_guess="no"
8561 if test "$aros_tool_prefix" = "yes" ; then
8562 aros_tool_prefix=$aros_target_cpu-aros-
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8565 $as_echo "$aros_tool_prefix" >&6; }
8567 #-----------------------------------------------------------------------------
8568 # Checking if we should build crosstools..
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8570 $as_echo_n "checking whether to build crosstools... " >&6; }
8571 # Check whether --enable-crosstools was given.
8572 if test "${enable_crosstools+set}" = set; then :
8573 enableval=$enable_crosstools; crosstools="$enableval"
8574 else
8575 crosstools="$crosstools_guess"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8579 $as_echo "$crosstools" >&6; }
8581 if test "${crosstools}" = "yes"; then
8582 if test "${crosstools_guess}" = "no"; then
8583 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8587 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8588 aros_target_toolchain="yes"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8592 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8594 # Check whether --with-aros-toolchain-install was given.
8595 if test "${with_aros_toolchain_install+set}" = set; then :
8596 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8599 if test "x$aros_toolchain_install" = "x"; then
8600 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8601 else
8602 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8603 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8604 if test "$crosstools_guess" = "no" ; then
8605 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8609 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8611 #-----------------------------------------------------------------------------
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8613 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8615 # Check whether --with-binutils-version was given.
8616 if test "${with_binutils_version+set}" = set; then :
8617 withval=$with_binutils_version; use_binutils_version="$withval"
8618 else
8619 use_binutils_version=""
8622 if test "$use_binutils_version" = ""; then
8623 target_binutils_version="$default_binutils_version"
8624 else
8625 target_binutils_version="$use_binutils_version"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8628 $as_echo "$target_binutils_version" >&6; }
8631 # Helper to identify gcc version
8634 #-----------------------------------------------------------------------------
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8636 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8638 # Check whether --with-gcc-version was given.
8639 if test "${with_gcc_version+set}" = set; then :
8640 withval=$with_gcc_version; use_gcc_version="$withval"
8641 else
8642 use_gcc_version=""
8645 if test "$use_gcc_version" = ""; then
8646 if test "${crosstools}" = "no"; then
8647 if test "x$aros_toolchain_install" != "x"; then
8649 target_gcc_version=""
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8651 $as_echo_n "checking gcc version... " >&6; }
8652 if ${ax_cv_gcc_version+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8656 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8657 if test "x$ax_cv_gcc_version" = "x"; then :
8659 ax_cv_gcc_version=""
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8665 $as_echo "$ax_cv_gcc_version" >&6; }
8666 target_gcc_version=$ax_cv_gcc_version
8671 if test "$use_gcc_version" = ""; then
8672 target_gcc_version="$default_gcc_version"
8674 else
8675 target_gcc_version="$use_gcc_version"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8678 $as_echo "$target_gcc_version" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
8681 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
8682 # Check whether --enable-objc was given.
8683 if test "${enable_objc+set}" = set; then :
8684 enableval=$enable_objc; objc="$enableval"
8685 else
8686 objc="no"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8690 $as_echo "$objc" >&6; }
8691 if test "x$objc" = "xyes"; then
8692 objc_target="$objc"
8693 else
8694 objc_target="no-objc"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
8698 $as_echo_n "checking whether to enable Java suppport... " >&6; }
8699 # Check whether --enable-java was given.
8700 if test "${enable_java+set}" = set; then :
8701 enableval=$enable_java; java="$enableval"
8702 else
8703 java="no"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
8707 $as_echo "$java" >&6; }
8708 if test "x$java" != "xno"; then
8709 java_target="$java"
8710 else
8711 java_target="no-java"
8714 spec_obj_format="-m $aros_object_format"
8715 # Now process extra architecture-specific options.
8716 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8717 # as well as floating-point ABI.
8718 case "$aros_target_cpu" in
8719 *x86_64*)
8720 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8722 arm*)
8723 if test "$gcc_default_cpu" = ""; then
8724 gcc_default_cpu="armv6"
8726 if test "$gcc_default_fpu" = ""; then
8727 gcc_default_fpu="vfp"
8729 if test "$gcc_default_float_abi" = ""; then
8730 if test "$target_cpu" = "armhf"; then
8731 gcc_default_float_abi="hard"
8732 else
8733 gcc_default_float_abi="softfp"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8738 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8740 # Check whether --with-cpu was given.
8741 if test "${with_cpu+set}" = set; then :
8742 withval=$with_cpu; aros_gcc_cpu="$withval"
8743 else
8744 aros_gcc_cpu=$gcc_default_cpu
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8748 $as_echo "$aros_gcc_cpu" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8751 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8753 # Check whether --with-fpu was given.
8754 if test "${with_fpu+set}" = set; then :
8755 withval=$with_fpu; aros_gcc_fpu="$withval"
8756 else
8757 aros_gcc_fpu=$gcc_default_fpu
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8761 $as_echo "$aros_gcc_fpu" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8764 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8766 # Check whether --with-float was given.
8767 if test "${with_float+set}" = set; then :
8768 withval=$with_float; aros_gcc_float_abi="$withval"
8769 else
8770 aros_gcc_float_abi=$gcc_default_float_abi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8774 $as_echo "$aros_gcc_float_abi" >&6; }
8776 aros_isa_flags="-marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
8777 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
8778 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
8780 i386)
8781 aros_isa_flags="-m32 -march=i486"
8782 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
8783 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8785 esac
8787 # Some architectures may need custom ELF specs.
8788 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8789 elf_specs_in=config/${aros_object_format}-specs.in
8790 else
8791 elf_specs_in=config/elf-specs.in
8794 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8795 # Since we override specs, we may need to put these defines there
8796 if test "$gcc_target_cpu" != ""; then
8797 gcc_target_cpu="-D__${gcc_target_cpu}__"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8801 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8803 # Check whether --with-portssources was given.
8804 if test "${with_portssources+set}" = set; then :
8805 withval=$with_portssources; with_portssrcdir=$withval
8806 else
8807 with_portssrcdir="default"
8810 if test "$with_portssrcdir" = "default"; then
8811 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8812 else
8813 AROS_PORTSSRCDIR="$with_portssrcdir"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8816 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8819 $as_echo_n "checking which bootloader to use... " >&6; }
8821 # Check whether --with-bootloader was given.
8822 if test "${with_bootloader+set}" = set; then :
8823 withval=$with_bootloader; target_bootloader=$withval
8824 else
8825 target_bootloader=$target_bootloader
8828 if test "$target_bootloader" = "none"; then
8829 aros_target_bootloader=""
8830 else
8831 aros_target_bootloader="$target_bootloader"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8834 $as_echo "$target_bootloader" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8837 $as_echo_n "checking which icon-set to use... " >&6; }
8839 # Check whether --with-iconset was given.
8840 if test "${with_iconset+set}" = set; then :
8841 withval=$with_iconset; target_iconset=$withval
8842 else
8843 target_iconset="default"
8846 if test "$target_iconset" = "default"; then
8847 aros_target_iconset="Gorilla"
8848 target_iconset="default (Gorilla)"
8849 else
8850 aros_target_iconset="$target_iconset"
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8853 $as_echo "$target_iconset" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8856 $as_echo_n "checking which GUI Theme to use... " >&6; }
8858 # Check whether --with-theme was given.
8859 if test "${with_theme+set}" = set; then :
8860 withval=$with_theme; target_guitheme=$withval
8861 else
8862 target_guitheme="default"
8865 if test "$target_guitheme" = "default"; then
8866 aros_target_guitheme="Ice"
8867 else
8868 aros_target_guitheme="$target_guitheme"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8871 $as_echo "$aros_target_guitheme" >&6; }
8873 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8874 # for target code)
8875 cross_compiling=no
8877 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8878 cross_compiling=yes
8881 if test "$aros_host_cpu" == "x86_64" ; then
8882 if test "$aros_target_cpu" == "i386" ; then
8883 cross_compiling=no
8887 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8888 if test "$aros_host_arch" != "$aros_target_arch" ; then
8889 cross_compiling=yes
8891 else
8892 if test "$host_cc_elf" = "no" ; then
8893 cross_compiling=yes
8897 if test "$cross_compiling" = "no" ; then
8898 kernel_tool_prefix=""
8899 if test "$host_cc_elf" = "yes" ; then
8900 elf_tool_prefix=""
8904 if test "$kernel_tool_version" != ""; then
8905 kernel_tool_version="-$kernel_tool_version"
8908 #######################################################################
8909 ## Compute what toolchains to use, and their paths ##
8910 #######################################################################
8912 # This takes, as input:
8913 # crosstools {yes,no}
8914 # kernel_tool_version {"",[version]}
8915 # target_tool_version {"",[version]}
8916 # kernel_tool_prefix {none,[some-arch-os-]}
8917 # target_tool_prefix ${aros_target_cpu}-aros-
8918 # aros_tool_prefix ${aros_target_cpu}-aros-
8920 # The output is
8921 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8922 # Where the 'kernel' binaries are located
8923 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8924 # Where the 'target' binaries are located
8925 # (not the symlink farm - that is aros_target_*!)
8927 # The rules are:
8928 # if crosstools then
8929 # if kernel_tools_prefix = "no-kernel-prefix-"
8930 # aros_kernel_* = crosstools cc paths
8931 # aros_kernel_cc = elf cc wrapper around crosstools cc
8932 # else
8933 # VALIDATE(${kernel_tools_prefix}*)
8934 # aros_kernel_* = ${kernel_tools_prefix}*
8935 # if ${kernel_tools_prefix}cc is an AROS gcc
8936 # aros_kernel_cc = ${kernel_tools_prefix}cc
8937 # else
8938 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8939 # fi
8940 # fi
8942 # orig_target_* = aros built crosstools
8943 # orig_target_cc = elf cc wrapper around crosstools cc
8944 # else
8945 # VALIDATE(${kernel_tools_prefix}*)
8947 # orig_target_* = aros_kernel_*
8948 # if aros_kernel_cc is an AROS gcc
8949 # orig_target_cc = aros_kernel_cc
8950 # else
8951 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8952 # fi
8953 # fi
8955 target_tool_prefix="${aros_target_cpu}-aros-"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8958 $as_echo_n "checking which kernel tools... " >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8960 $as_echo "$kernel_tool_prefix" >&6; };
8962 if test "$kernel_tool_prefix" = "none" ; then
8963 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8964 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8966 else
8967 # Kernel tools required - find them
8968 # Note that 'normally', aros_kernel_* overrides will be
8969 # empty, unless specified in the per-arch sections above.
8970 if test "x$aros_kernel_cpp" = "x"; then
8971 aros_kernel_cpp=${kernel_tool_prefix}cpp
8974 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8975 if test "$cross_compiling" = "yes" ; then
8976 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8977 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 case $aros_kernel_cpp in
8984 [\\/]* | ?:[\\/]*)
8985 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8999 done
9000 done
9001 IFS=$as_save_IFS
9004 esac
9006 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9007 if test -n "$aros_kernel_cpp"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9009 $as_echo "$aros_kernel_cpp" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9016 else
9017 if test "$GCC" = "yes"; then
9018 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9019 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9020 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 case $aros_kernel_cpp in
9027 [\\/]* | ?:[\\/]*)
9028 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in `dirname $aros_gcc_cpp`
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9047 esac
9049 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9050 if test -n "$aros_kernel_cpp"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9052 $as_echo "$aros_kernel_cpp" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9060 if test "$aros_kernel_cpp" = ""; then
9061 # Extract the first word of "cpp", so it can be a program name with args.
9062 set dummy cpp; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 case $aros_kernel_cpp in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9089 esac
9091 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9092 if test -n "$aros_kernel_cpp"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9094 $as_echo "$aros_kernel_cpp" >&6; }
9095 else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9103 else
9104 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9105 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 case $aros_kernel_cpp in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9132 esac
9134 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9135 if test -n "$aros_kernel_cpp"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9137 $as_echo "$aros_kernel_cpp" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9146 if test "$aros_kernel_cpp" = ""; then
9147 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9149 if test "x$aros_kernel_cc" = "x"; then
9150 aros_kernel_cc=${kernel_tool_prefix}gcc
9153 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9154 if test "$cross_compiling" = "yes" ; then
9155 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9156 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 case $aros_kernel_cc in
9163 [\\/]* | ?:[\\/]*)
9164 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9180 IFS=$as_save_IFS
9183 esac
9185 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9186 if test -n "$aros_kernel_cc"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9188 $as_echo "$aros_kernel_cc" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9195 else
9196 if test "$GCC" = "yes"; then
9197 aros_gcc_cc=`$CC -print-prog-name=cc`
9198 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9199 set dummy `basename $aros_gcc_cc`; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 case $aros_kernel_cc in
9206 [\\/]* | ?:[\\/]*)
9207 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in `dirname $aros_gcc_cc`
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9221 done
9222 done
9223 IFS=$as_save_IFS
9226 esac
9228 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9229 if test -n "$aros_kernel_cc"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9231 $as_echo "$aros_kernel_cc" >&6; }
9232 else
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9239 if test "$aros_kernel_cc" = ""; then
9240 # Extract the first word of "cc", so it can be a program name with args.
9241 set dummy cc; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 case $aros_kernel_cc in
9248 [\\/]* | ?:[\\/]*)
9249 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9263 done
9264 done
9265 IFS=$as_save_IFS
9268 esac
9270 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9271 if test -n "$aros_kernel_cc"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9273 $as_echo "$aros_kernel_cc" >&6; }
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9282 else
9283 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9284 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286 $as_echo_n "checking for $ac_word... " >&6; }
9287 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 case $aros_kernel_cc in
9291 [\\/]* | ?:[\\/]*)
9292 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9311 esac
9313 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9314 if test -n "$aros_kernel_cc"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9316 $as_echo "$aros_kernel_cc" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9325 if test "$aros_kernel_cc" = ""; then
9326 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9328 if test "x$aros_kernel_cxx" = "x"; then
9329 aros_kernel_cxx=${kernel_tool_prefix}g++
9332 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9333 if test "$cross_compiling" = "yes" ; then
9334 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9335 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 case $aros_kernel_cxx in
9342 [\\/]* | ?:[\\/]*)
9343 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9359 IFS=$as_save_IFS
9362 esac
9364 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9365 if test -n "$aros_kernel_cxx"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9367 $as_echo "$aros_kernel_cxx" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9374 else
9375 if test "$GCC" = "yes"; then
9376 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9377 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9378 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 case $aros_kernel_cxx in
9385 [\\/]* | ?:[\\/]*)
9386 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in `dirname $aros_gcc_cxx`
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9400 done
9401 done
9402 IFS=$as_save_IFS
9405 esac
9407 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9408 if test -n "$aros_kernel_cxx"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9410 $as_echo "$aros_kernel_cxx" >&6; }
9411 else
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9418 if test "$aros_kernel_cxx" = ""; then
9419 # Extract the first word of "cxx", so it can be a program name with args.
9420 set dummy cxx; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $aros_kernel_cxx in
9427 [\\/]* | ?:[\\/]*)
9428 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9442 done
9443 done
9444 IFS=$as_save_IFS
9447 esac
9449 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9450 if test -n "$aros_kernel_cxx"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9452 $as_echo "$aros_kernel_cxx" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9461 else
9462 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9463 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 case $aros_kernel_cxx in
9470 [\\/]* | ?:[\\/]*)
9471 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9485 done
9486 done
9487 IFS=$as_save_IFS
9490 esac
9492 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9493 if test -n "$aros_kernel_cxx"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9495 $as_echo "$aros_kernel_cxx" >&6; }
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9504 # If it's set, make sure it's really there
9505 if test "x$aros_kernel_cxx" != "x" ; then
9506 if test "$aros_kernel_cxx" = ""; then
9507 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9511 if test "$aros_kernel_ld" = ""; then
9512 if test "$cross_compiling" = "yes" ; then
9513 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9514 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 case $aros_kernel_ld in
9521 [\\/]* | ?:[\\/]*)
9522 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9536 done
9537 done
9538 IFS=$as_save_IFS
9541 esac
9543 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9544 if test -n "$aros_kernel_ld"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9546 $as_echo "$aros_kernel_ld" >&6; }
9547 else
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9553 else
9554 if test "$GCC" = "yes"; then
9555 aros_gcc_ld=`$CC -print-prog-name=ld`
9556 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9557 set dummy `basename $aros_gcc_ld`; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 case $aros_kernel_ld in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in `dirname $aros_gcc_ld`
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9584 esac
9586 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9587 if test -n "$aros_kernel_ld"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9589 $as_echo "$aros_kernel_ld" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9597 if test "$aros_kernel_ld" = ""; then
9598 # Extract the first word of "ld", so it can be a program name with args.
9599 set dummy ld; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 case $aros_kernel_ld in
9606 [\\/]* | ?:[\\/]*)
9607 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9617 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9626 esac
9628 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9629 if test -n "$aros_kernel_ld"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9631 $as_echo "$aros_kernel_ld" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9640 else
9641 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9642 set dummy $aros_kernel_ld; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_kernel_ld in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9672 if test -n "$aros_kernel_ld"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9674 $as_echo "$aros_kernel_ld" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9683 if test "$aros_kernel_ld" = ""; then
9684 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9687 if test "$aros_kernel_as" = ""; then
9688 if test "$cross_compiling" = "yes" ; then
9689 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9690 set dummy ${kernel_tool_prefix}as; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_path_aros_kernel_as+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 case $aros_kernel_as in
9697 [\\/]* | ?:[\\/]*)
9698 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9712 done
9713 done
9714 IFS=$as_save_IFS
9717 esac
9719 aros_kernel_as=$ac_cv_path_aros_kernel_as
9720 if test -n "$aros_kernel_as"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9722 $as_echo "$aros_kernel_as" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 else
9730 if test "$GCC" = "yes"; then
9731 aros_gcc_as=`$CC -print-prog-name=as`
9732 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9733 set dummy `basename $aros_gcc_as`; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_path_aros_kernel_as+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 case $aros_kernel_as in
9740 [\\/]* | ?:[\\/]*)
9741 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in `dirname $aros_gcc_as`
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9760 esac
9762 aros_kernel_as=$ac_cv_path_aros_kernel_as
9763 if test -n "$aros_kernel_as"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9765 $as_echo "$aros_kernel_as" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9773 if test "$aros_kernel_as" = ""; then
9774 # Extract the first word of "as", so it can be a program name with args.
9775 set dummy as; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_path_aros_kernel_as+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 case $aros_kernel_as in
9782 [\\/]* | ?:[\\/]*)
9783 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9793 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9797 done
9798 done
9799 IFS=$as_save_IFS
9802 esac
9804 aros_kernel_as=$ac_cv_path_aros_kernel_as
9805 if test -n "$aros_kernel_as"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9807 $as_echo "$aros_kernel_as" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9816 else
9817 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9818 set dummy $aros_kernel_as; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_path_aros_kernel_as+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 case $aros_kernel_as in
9825 [\\/]* | ?:[\\/]*)
9826 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9836 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9845 esac
9847 aros_kernel_as=$ac_cv_path_aros_kernel_as
9848 if test -n "$aros_kernel_as"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9850 $as_echo "$aros_kernel_as" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9859 if test "$aros_kernel_as" = ""; then
9860 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9863 if test "$aros_kernel_ar" = ""; then
9864 if test "$cross_compiling" = "yes" ; then
9865 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9866 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 case $aros_kernel_ar in
9873 [\\/]* | ?:[\\/]*)
9874 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9893 esac
9895 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9896 if test -n "$aros_kernel_ar"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9898 $as_echo "$aros_kernel_ar" >&6; }
9899 else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9905 else
9906 if test "$GCC" = "yes"; then
9907 aros_gcc_ar=`$CC -print-prog-name=ar`
9908 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9909 set dummy `basename $aros_gcc_ar`; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 case $aros_kernel_ar in
9916 [\\/]* | ?:[\\/]*)
9917 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in `dirname $aros_gcc_ar`
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9927 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9931 done
9932 done
9933 IFS=$as_save_IFS
9936 esac
9938 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9939 if test -n "$aros_kernel_ar"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9941 $as_echo "$aros_kernel_ar" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9949 if test "$aros_kernel_ar" = ""; then
9950 # Extract the first word of "ar", so it can be a program name with args.
9951 set dummy ar; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 case $aros_kernel_ar in
9958 [\\/]* | ?:[\\/]*)
9959 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9973 done
9974 done
9975 IFS=$as_save_IFS
9978 esac
9980 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9981 if test -n "$aros_kernel_ar"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9983 $as_echo "$aros_kernel_ar" >&6; }
9984 else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9992 else
9993 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9994 set dummy $aros_kernel_ar; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 case $aros_kernel_ar in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10021 esac
10023 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10024 if test -n "$aros_kernel_ar"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10026 $as_echo "$aros_kernel_ar" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10035 if test "$aros_kernel_ar" = ""; then
10036 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10039 if test "$aros_kernel_ranlib" = ""; then
10040 if test "$cross_compiling" = "yes" ; then
10041 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10042 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 case $aros_kernel_ranlib in
10049 [\\/]* | ?:[\\/]*)
10050 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10069 esac
10071 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10072 if test -n "$aros_kernel_ranlib"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10074 $as_echo "$aros_kernel_ranlib" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10081 else
10082 if test "$GCC" = "yes"; then
10083 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10084 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10085 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 case $aros_kernel_ranlib in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in `dirname $aros_gcc_ranlib`
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10112 esac
10114 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10115 if test -n "$aros_kernel_ranlib"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10117 $as_echo "$aros_kernel_ranlib" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10125 if test "$aros_kernel_ranlib" = ""; then
10126 # Extract the first word of "ranlib", so it can be a program name with args.
10127 set dummy ranlib; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 case $aros_kernel_ranlib in
10134 [\\/]* | ?:[\\/]*)
10135 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10149 done
10150 done
10151 IFS=$as_save_IFS
10154 esac
10156 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10157 if test -n "$aros_kernel_ranlib"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10159 $as_echo "$aros_kernel_ranlib" >&6; }
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10168 else
10169 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10170 set dummy $aros_kernel_ranlib; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 case $aros_kernel_ranlib in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10197 esac
10199 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10200 if test -n "$aros_kernel_ranlib"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10202 $as_echo "$aros_kernel_ranlib" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10211 if test "$aros_kernel_ranlib" = ""; then
10212 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10215 if test "$aros_kernel_nm" = ""; then
10216 if test "$cross_compiling" = "yes" ; then
10217 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10218 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 case $aros_kernel_nm in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10240 done
10241 done
10242 IFS=$as_save_IFS
10245 esac
10247 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10248 if test -n "$aros_kernel_nm"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10250 $as_echo "$aros_kernel_nm" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10257 else
10258 if test "$GCC" = "yes"; then
10259 aros_gcc_nm=`$CC -print-prog-name=nm`
10260 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10261 set dummy `basename $aros_gcc_nm`; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $aros_kernel_nm in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in `dirname $aros_gcc_nm`
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10279 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10288 esac
10290 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10291 if test -n "$aros_kernel_nm"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10293 $as_echo "$aros_kernel_nm" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10301 if test "$aros_kernel_nm" = ""; then
10302 # Extract the first word of "nm", so it can be a program name with args.
10303 set dummy nm; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 case $aros_kernel_nm in
10310 [\\/]* | ?:[\\/]*)
10311 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10325 done
10326 done
10327 IFS=$as_save_IFS
10330 esac
10332 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10333 if test -n "$aros_kernel_nm"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10335 $as_echo "$aros_kernel_nm" >&6; }
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10344 else
10345 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10346 set dummy $aros_kernel_nm; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 case $aros_kernel_nm in
10353 [\\/]* | ?:[\\/]*)
10354 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10368 done
10369 done
10370 IFS=$as_save_IFS
10373 esac
10375 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10376 if test -n "$aros_kernel_nm"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10378 $as_echo "$aros_kernel_nm" >&6; }
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10387 if test "$aros_kernel_nm" = ""; then
10388 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10391 if test "$aros_kernel_strip" = ""; then
10392 if test "$cross_compiling" = "yes" ; then
10393 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10394 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 case $aros_kernel_strip in
10401 [\\/]* | ?:[\\/]*)
10402 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10421 esac
10423 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10424 if test -n "$aros_kernel_strip"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10426 $as_echo "$aros_kernel_strip" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10433 else
10434 if test "$GCC" = "yes"; then
10435 aros_gcc_strip=`$CC -print-prog-name=strip`
10436 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10437 set dummy `basename $aros_gcc_strip`; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 case $aros_kernel_strip in
10444 [\\/]* | ?:[\\/]*)
10445 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in `dirname $aros_gcc_strip`
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10459 done
10460 done
10461 IFS=$as_save_IFS
10464 esac
10466 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10467 if test -n "$aros_kernel_strip"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10469 $as_echo "$aros_kernel_strip" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10477 if test "$aros_kernel_strip" = ""; then
10478 # Extract the first word of "strip", so it can be a program name with args.
10479 set dummy strip; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 case $aros_kernel_strip in
10486 [\\/]* | ?:[\\/]*)
10487 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10497 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10501 done
10502 done
10503 IFS=$as_save_IFS
10506 esac
10508 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10509 if test -n "$aros_kernel_strip"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10511 $as_echo "$aros_kernel_strip" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10520 else
10521 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10522 set dummy $aros_kernel_strip; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 case $aros_kernel_strip in
10529 [\\/]* | ?:[\\/]*)
10530 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10544 done
10545 done
10546 IFS=$as_save_IFS
10549 esac
10551 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10552 if test -n "$aros_kernel_strip"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10554 $as_echo "$aros_kernel_strip" >&6; }
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10563 if test "$aros_kernel_strip" = ""; then
10564 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10567 # Objcopy and objdump are not required for the kernel
10568 # toolchain on many architectures.
10569 # So we'll look for them, but not make them strictly required.
10571 if test "$aros_kernel_objcopy" = ""; then
10572 if test "$cross_compiling" = "yes" ; then
10573 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10574 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 case $aros_kernel_objcopy in
10581 [\\/]* | ?:[\\/]*)
10582 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10601 esac
10603 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10604 if test -n "$aros_kernel_objcopy"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10606 $as_echo "$aros_kernel_objcopy" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10613 else
10614 if test "$GCC" = "yes"; then
10615 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10616 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10617 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 case $aros_kernel_objcopy in
10624 [\\/]* | ?:[\\/]*)
10625 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in `dirname $aros_gcc_objcopy`
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10639 done
10640 done
10641 IFS=$as_save_IFS
10644 esac
10646 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10647 if test -n "$aros_kernel_objcopy"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10649 $as_echo "$aros_kernel_objcopy" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10657 if test "$aros_kernel_objcopy" = ""; then
10658 # Extract the first word of "objcopy", so it can be a program name with args.
10659 set dummy objcopy; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 case $aros_kernel_objcopy in
10666 [\\/]* | ?:[\\/]*)
10667 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10681 done
10682 done
10683 IFS=$as_save_IFS
10686 esac
10688 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10689 if test -n "$aros_kernel_objcopy"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10691 $as_echo "$aros_kernel_objcopy" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10700 else
10701 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10702 set dummy $aros_kernel_objcopy; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 case $aros_kernel_objcopy in
10709 [\\/]* | ?:[\\/]*)
10710 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10724 done
10725 done
10726 IFS=$as_save_IFS
10729 esac
10731 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10732 if test -n "$aros_kernel_objcopy"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10734 $as_echo "$aros_kernel_objcopy" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10744 if test "$aros_kernel_objdump" = ""; then
10745 if test "$cross_compiling" = "yes" ; then
10746 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10747 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $aros_kernel_objdump in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10774 esac
10776 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10777 if test -n "$aros_kernel_objdump"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10779 $as_echo "$aros_kernel_objdump" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10786 else
10787 if test "$GCC" = "yes"; then
10788 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10789 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10790 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 case $aros_kernel_objdump in
10797 [\\/]* | ?:[\\/]*)
10798 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in `dirname $aros_gcc_objdump`
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10808 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10812 done
10813 done
10814 IFS=$as_save_IFS
10817 esac
10819 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10820 if test -n "$aros_kernel_objdump"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10822 $as_echo "$aros_kernel_objdump" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10830 if test "$aros_kernel_objdump" = ""; then
10831 # Extract the first word of "objdump", so it can be a program name with args.
10832 set dummy objdump; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 case $aros_kernel_objdump in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10854 done
10855 done
10856 IFS=$as_save_IFS
10859 esac
10861 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10862 if test -n "$aros_kernel_objdump"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10864 $as_echo "$aros_kernel_objdump" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10873 else
10874 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10875 set dummy $aros_kernel_objdump; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 case $aros_kernel_objdump in
10882 [\\/]* | ?:[\\/]*)
10883 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10897 done
10898 done
10899 IFS=$as_save_IFS
10902 esac
10904 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10905 if test -n "$aros_kernel_objdump"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10907 $as_echo "$aros_kernel_objdump" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10916 if test "x${crosstools}" != "xyes" ; then
10917 if test "$aros_kernel_objcopy" = ""; then
10918 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10920 if test "$aros_kernel_objdump" = ""; then
10921 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10927 $as_echo_n "checking which target tools to use... " >&6; }
10928 if test "$aros_target_toolchain" = "yes"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10930 $as_echo "$target_tool_prefix" >&6; }
10931 # We are building AROS crosstools
10932 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10933 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10934 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10935 orig_target_cpp="${tmp_tool_prefix}cpp"
10936 orig_target_ld="${tmp_tool_prefix}ld"
10937 orig_target_as="${tmp_tool_prefix}as"
10938 orig_target_ar="${tmp_tool_prefix}ar"
10939 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10940 orig_target_nm="${tmp_tool_prefix}nm"
10941 orig_target_strip="${tmp_tool_prefix}strip"
10942 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10943 orig_target_objdump="${tmp_tool_prefix}objdump"
10944 else
10945 # Determine whether AROS or ELF tools should be used
10946 if test "$aros_tool_prefix" = "none"; then
10947 aros_tool_prefix="${elf_tool_prefix}"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10951 $as_echo "$aros_tool_prefix" >&6; }
10952 # We are *not* building AROS crosstools - use the AROS or ELF tools
10954 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10955 if test "$cross_compiling" = "yes" ; then
10956 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10957 set dummy ${target_tool_prefix}cpp; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path_orig_target_cpp+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $orig_target_cpp in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10979 done
10980 done
10981 IFS=$as_save_IFS
10984 esac
10986 orig_target_cpp=$ac_cv_path_orig_target_cpp
10987 if test -n "$orig_target_cpp"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10989 $as_echo "$orig_target_cpp" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10996 else
10997 if test "$GCC" = "yes"; then
10998 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10999 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11000 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002 $as_echo_n "checking for $ac_word... " >&6; }
11003 if ${ac_cv_path_orig_target_cpp+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 case $orig_target_cpp in
11007 [\\/]* | ?:[\\/]*)
11008 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in `dirname $aros_gcc_cpp`
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11022 done
11023 done
11024 IFS=$as_save_IFS
11027 esac
11029 orig_target_cpp=$ac_cv_path_orig_target_cpp
11030 if test -n "$orig_target_cpp"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11032 $as_echo "$orig_target_cpp" >&6; }
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11040 if test "$orig_target_cpp" = ""; then
11041 # Extract the first word of "cpp", so it can be a program name with args.
11042 set dummy cpp; ac_word=$2
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11044 $as_echo_n "checking for $ac_word... " >&6; }
11045 if ${ac_cv_path_orig_target_cpp+:} false; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 case $orig_target_cpp in
11049 [\\/]* | ?:[\\/]*)
11050 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11064 done
11065 done
11066 IFS=$as_save_IFS
11069 esac
11071 orig_target_cpp=$ac_cv_path_orig_target_cpp
11072 if test -n "$orig_target_cpp"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11074 $as_echo "$orig_target_cpp" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11083 else
11084 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11085 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if ${ac_cv_path_orig_target_cpp+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 case $orig_target_cpp in
11092 [\\/]* | ?:[\\/]*)
11093 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11107 done
11108 done
11109 IFS=$as_save_IFS
11112 esac
11114 orig_target_cpp=$ac_cv_path_orig_target_cpp
11115 if test -n "$orig_target_cpp"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11117 $as_echo "$orig_target_cpp" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11126 if test "$orig_target_cpp" = ""; then
11127 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11130 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11131 if test "$cross_compiling" = "yes" ; then
11132 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11133 set dummy ${target_tool_prefix}gcc; ac_word=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if ${ac_cv_path_orig_target_cc+:} false; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 case $orig_target_cc in
11140 [\\/]* | ?:[\\/]*)
11141 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11155 done
11156 done
11157 IFS=$as_save_IFS
11160 esac
11162 orig_target_cc=$ac_cv_path_orig_target_cc
11163 if test -n "$orig_target_cc"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11165 $as_echo "$orig_target_cc" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11172 else
11173 if test "$GCC" = "yes"; then
11174 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11175 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11176 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_orig_target_cc+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 case $orig_target_cc in
11183 [\\/]* | ?:[\\/]*)
11184 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in `dirname $aros_gcc_gcc`
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11198 done
11199 done
11200 IFS=$as_save_IFS
11203 esac
11205 orig_target_cc=$ac_cv_path_orig_target_cc
11206 if test -n "$orig_target_cc"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11208 $as_echo "$orig_target_cc" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11216 if test "$orig_target_cc" = ""; then
11217 # Extract the first word of "gcc", so it can be a program name with args.
11218 set dummy gcc; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_path_orig_target_cc+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 case $orig_target_cc in
11225 [\\/]* | ?:[\\/]*)
11226 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11240 done
11241 done
11242 IFS=$as_save_IFS
11245 esac
11247 orig_target_cc=$ac_cv_path_orig_target_cc
11248 if test -n "$orig_target_cc"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11250 $as_echo "$orig_target_cc" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11259 else
11260 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11261 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_path_orig_target_cc+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 case $orig_target_cc in
11268 [\\/]* | ?:[\\/]*)
11269 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11288 esac
11290 orig_target_cc=$ac_cv_path_orig_target_cc
11291 if test -n "$orig_target_cc"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11293 $as_echo "$orig_target_cc" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11302 if test "$orig_target_cc" = ""; then
11303 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11306 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11307 if test "$cross_compiling" = "yes" ; then
11308 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11309 set dummy ${target_tool_prefix}g++; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_orig_target_cxx+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $orig_target_cxx in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11336 esac
11338 orig_target_cxx=$ac_cv_path_orig_target_cxx
11339 if test -n "$orig_target_cxx"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11341 $as_echo "$orig_target_cxx" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11348 else
11349 if test "$GCC" = "yes"; then
11350 aros_gcc_g++=`$CC -print-prog-name=g++`
11351 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11352 set dummy `basename $aros_gcc_g++`; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if ${ac_cv_path_orig_target_cxx+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 case $orig_target_cxx in
11359 [\\/]* | ?:[\\/]*)
11360 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in `dirname $aros_gcc_g++`
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11374 done
11375 done
11376 IFS=$as_save_IFS
11379 esac
11381 orig_target_cxx=$ac_cv_path_orig_target_cxx
11382 if test -n "$orig_target_cxx"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11384 $as_echo "$orig_target_cxx" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11392 if test "$orig_target_cxx" = ""; then
11393 # Extract the first word of "g++", so it can be a program name with args.
11394 set dummy g++; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_path_orig_target_cxx+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 case $orig_target_cxx in
11401 [\\/]* | ?:[\\/]*)
11402 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11416 done
11417 done
11418 IFS=$as_save_IFS
11421 esac
11423 orig_target_cxx=$ac_cv_path_orig_target_cxx
11424 if test -n "$orig_target_cxx"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11426 $as_echo "$orig_target_cxx" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11435 else
11436 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11437 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_orig_target_cxx+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 case $orig_target_cxx in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11459 done
11460 done
11461 IFS=$as_save_IFS
11464 esac
11466 orig_target_cxx=$ac_cv_path_orig_target_cxx
11467 if test -n "$orig_target_cxx"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11469 $as_echo "$orig_target_cxx" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11478 if test "$orig_target_cxx" = ""; then
11479 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11482 if test "${aros_tool_prefix}ld" = ""; then
11483 if test "$cross_compiling" = "yes" ; then
11484 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11485 set dummy ${target_tool_prefix}gcc; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_orig_target_ld+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $orig_target_ld in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11507 done
11508 done
11509 IFS=$as_save_IFS
11512 esac
11514 orig_target_ld=$ac_cv_path_orig_target_ld
11515 if test -n "$orig_target_ld"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11517 $as_echo "$orig_target_ld" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11524 else
11525 if test "$GCC" = "yes"; then
11526 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11527 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11528 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if ${ac_cv_path_orig_target_ld+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 case $orig_target_ld in
11535 [\\/]* | ?:[\\/]*)
11536 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in `dirname $aros_gcc_gcc`
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11546 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11550 done
11551 done
11552 IFS=$as_save_IFS
11555 esac
11557 orig_target_ld=$ac_cv_path_orig_target_ld
11558 if test -n "$orig_target_ld"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11560 $as_echo "$orig_target_ld" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11568 if test "$orig_target_ld" = ""; then
11569 # Extract the first word of "gcc", so it can be a program name with args.
11570 set dummy gcc; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_path_orig_target_ld+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 case $orig_target_ld in
11577 [\\/]* | ?:[\\/]*)
11578 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11592 done
11593 done
11594 IFS=$as_save_IFS
11597 esac
11599 orig_target_ld=$ac_cv_path_orig_target_ld
11600 if test -n "$orig_target_ld"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11602 $as_echo "$orig_target_ld" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11611 else
11612 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11613 set dummy ${aros_tool_prefix}ld; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_path_orig_target_ld+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 case $orig_target_ld in
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11635 done
11636 done
11637 IFS=$as_save_IFS
11640 esac
11642 orig_target_ld=$ac_cv_path_orig_target_ld
11643 if test -n "$orig_target_ld"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11645 $as_echo "$orig_target_ld" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11654 if test "$orig_target_ld" = ""; then
11655 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11658 if test "${aros_tool_prefix}as" = ""; then
11659 if test "$cross_compiling" = "yes" ; then
11660 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11661 set dummy ${target_tool_prefix}as; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if ${ac_cv_path_orig_target_as+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 case $orig_target_as in
11668 [\\/]* | ?:[\\/]*)
11669 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11679 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 break 2
11683 done
11684 done
11685 IFS=$as_save_IFS
11688 esac
11690 orig_target_as=$ac_cv_path_orig_target_as
11691 if test -n "$orig_target_as"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11693 $as_echo "$orig_target_as" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11700 else
11701 if test "$GCC" = "yes"; then
11702 aros_gcc_as=`$CC -print-prog-name=as`
11703 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11704 set dummy `basename $aros_gcc_as`; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_path_orig_target_as+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case $orig_target_as in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in `dirname $aros_gcc_as`
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11731 esac
11733 orig_target_as=$ac_cv_path_orig_target_as
11734 if test -n "$orig_target_as"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11736 $as_echo "$orig_target_as" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11744 if test "$orig_target_as" = ""; then
11745 # Extract the first word of "as", so it can be a program name with args.
11746 set dummy as; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_orig_target_as+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 case $orig_target_as in
11753 [\\/]* | ?:[\\/]*)
11754 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11768 done
11769 done
11770 IFS=$as_save_IFS
11773 esac
11775 orig_target_as=$ac_cv_path_orig_target_as
11776 if test -n "$orig_target_as"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11778 $as_echo "$orig_target_as" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11787 else
11788 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11789 set dummy ${aros_tool_prefix}as; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_orig_target_as+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $orig_target_as in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11816 esac
11818 orig_target_as=$ac_cv_path_orig_target_as
11819 if test -n "$orig_target_as"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11821 $as_echo "$orig_target_as" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11830 if test "$orig_target_as" = ""; then
11831 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11834 if test "${aros_tool_prefix}ar" = ""; then
11835 if test "$cross_compiling" = "yes" ; then
11836 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11837 set dummy ${target_tool_prefix}ar; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_orig_target_ar+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 case $orig_target_ar in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11859 done
11860 done
11861 IFS=$as_save_IFS
11864 esac
11866 orig_target_ar=$ac_cv_path_orig_target_ar
11867 if test -n "$orig_target_ar"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11869 $as_echo "$orig_target_ar" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 else
11877 if test "$GCC" = "yes"; then
11878 aros_gcc_ar=`$CC -print-prog-name=ar`
11879 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11880 set dummy `basename $aros_gcc_ar`; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_orig_target_ar+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 case $orig_target_ar in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in `dirname $aros_gcc_ar`
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11907 esac
11909 orig_target_ar=$ac_cv_path_orig_target_ar
11910 if test -n "$orig_target_ar"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11912 $as_echo "$orig_target_ar" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test "$orig_target_ar" = ""; then
11921 # Extract the first word of "ar", so it can be a program name with args.
11922 set dummy ar; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if ${ac_cv_path_orig_target_ar+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 case $orig_target_ar in
11929 [\\/]* | ?:[\\/]*)
11930 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11946 IFS=$as_save_IFS
11949 esac
11951 orig_target_ar=$ac_cv_path_orig_target_ar
11952 if test -n "$orig_target_ar"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11954 $as_echo "$orig_target_ar" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11963 else
11964 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11965 set dummy ${aros_tool_prefix}ar; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_orig_target_ar+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 case $orig_target_ar in
11972 [\\/]* | ?:[\\/]*)
11973 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11992 esac
11994 orig_target_ar=$ac_cv_path_orig_target_ar
11995 if test -n "$orig_target_ar"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11997 $as_echo "$orig_target_ar" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12006 if test "$orig_target_ar" = ""; then
12007 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12010 if test "${aros_tool_prefix}ranlib" = ""; then
12011 if test "$cross_compiling" = "yes" ; then
12012 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12013 set dummy ${target_tool_prefix}ar; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 case $orig_target_ranlib in
12020 [\\/]* | ?:[\\/]*)
12021 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12035 done
12036 done
12037 IFS=$as_save_IFS
12040 esac
12042 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12043 if test -n "$orig_target_ranlib"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12045 $as_echo "$orig_target_ranlib" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12052 else
12053 if test "$GCC" = "yes"; then
12054 aros_gcc_ar=`$CC -print-prog-name=ar`
12055 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12056 set dummy `basename $aros_gcc_ar`; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 case $orig_target_ranlib in
12063 [\\/]* | ?:[\\/]*)
12064 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in `dirname $aros_gcc_ar`
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12078 done
12079 done
12080 IFS=$as_save_IFS
12083 esac
12085 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12086 if test -n "$orig_target_ranlib"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12088 $as_echo "$orig_target_ranlib" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12096 if test "$orig_target_ranlib" = ""; then
12097 # Extract the first word of "ar", so it can be a program name with args.
12098 set dummy ar; ac_word=$2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100 $as_echo_n "checking for $ac_word... " >&6; }
12101 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 case $orig_target_ranlib in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12120 done
12121 done
12122 IFS=$as_save_IFS
12125 esac
12127 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12128 if test -n "$orig_target_ranlib"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12130 $as_echo "$orig_target_ranlib" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12139 else
12140 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12141 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 case $orig_target_ranlib in
12148 [\\/]* | ?:[\\/]*)
12149 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12168 esac
12170 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12171 if test -n "$orig_target_ranlib"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12173 $as_echo "$orig_target_ranlib" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12182 if test "$orig_target_ranlib" = ""; then
12183 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12186 if test "${aros_tool_prefix}nm" = ""; then
12187 if test "$cross_compiling" = "yes" ; then
12188 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12189 set dummy ${target_tool_prefix}nm; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_orig_target_nm+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $orig_target_nm in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12211 done
12212 done
12213 IFS=$as_save_IFS
12216 esac
12218 orig_target_nm=$ac_cv_path_orig_target_nm
12219 if test -n "$orig_target_nm"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12221 $as_echo "$orig_target_nm" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 else
12229 if test "$GCC" = "yes"; then
12230 aros_gcc_nm=`$CC -print-prog-name=nm`
12231 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12232 set dummy `basename $aros_gcc_nm`; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_path_orig_target_nm+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 case $orig_target_nm in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in `dirname $aros_gcc_nm`
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12254 done
12255 done
12256 IFS=$as_save_IFS
12259 esac
12261 orig_target_nm=$ac_cv_path_orig_target_nm
12262 if test -n "$orig_target_nm"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12264 $as_echo "$orig_target_nm" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test "$orig_target_nm" = ""; then
12273 # Extract the first word of "nm", so it can be a program name with args.
12274 set dummy nm; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if ${ac_cv_path_orig_target_nm+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 case $orig_target_nm in
12281 [\\/]* | ?:[\\/]*)
12282 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12301 esac
12303 orig_target_nm=$ac_cv_path_orig_target_nm
12304 if test -n "$orig_target_nm"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12306 $as_echo "$orig_target_nm" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12315 else
12316 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12317 set dummy ${aros_tool_prefix}nm; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_path_orig_target_nm+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 case $orig_target_nm in
12324 [\\/]* | ?:[\\/]*)
12325 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12344 esac
12346 orig_target_nm=$ac_cv_path_orig_target_nm
12347 if test -n "$orig_target_nm"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12349 $as_echo "$orig_target_nm" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12358 if test "$orig_target_nm" = ""; then
12359 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12362 if test "${aros_tool_prefix}strip" = ""; then
12363 if test "$cross_compiling" = "yes" ; then
12364 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12365 set dummy ${target_tool_prefix}strip; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_orig_target_strip+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 case $orig_target_strip in
12372 [\\/]* | ?:[\\/]*)
12373 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12387 done
12388 done
12389 IFS=$as_save_IFS
12392 esac
12394 orig_target_strip=$ac_cv_path_orig_target_strip
12395 if test -n "$orig_target_strip"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12397 $as_echo "$orig_target_strip" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12404 else
12405 if test "$GCC" = "yes"; then
12406 aros_gcc_strip=`$CC -print-prog-name=strip`
12407 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12408 set dummy `basename $aros_gcc_strip`; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_path_orig_target_strip+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 case $orig_target_strip in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in `dirname $aros_gcc_strip`
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12430 done
12431 done
12432 IFS=$as_save_IFS
12435 esac
12437 orig_target_strip=$ac_cv_path_orig_target_strip
12438 if test -n "$orig_target_strip"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12440 $as_echo "$orig_target_strip" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 if test "$orig_target_strip" = ""; then
12449 # Extract the first word of "strip", so it can be a program name with args.
12450 set dummy strip; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_path_orig_target_strip+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 case $orig_target_strip in
12457 [\\/]* | ?:[\\/]*)
12458 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12468 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12472 done
12473 done
12474 IFS=$as_save_IFS
12477 esac
12479 orig_target_strip=$ac_cv_path_orig_target_strip
12480 if test -n "$orig_target_strip"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12482 $as_echo "$orig_target_strip" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12491 else
12492 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12493 set dummy ${aros_tool_prefix}strip; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_path_orig_target_strip+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 case $orig_target_strip in
12500 [\\/]* | ?:[\\/]*)
12501 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12515 done
12516 done
12517 IFS=$as_save_IFS
12520 esac
12522 orig_target_strip=$ac_cv_path_orig_target_strip
12523 if test -n "$orig_target_strip"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12525 $as_echo "$orig_target_strip" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12534 if test "$orig_target_strip" = ""; then
12535 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12538 if test "${aros_tool_prefix}objcopy" = ""; then
12539 if test "$cross_compiling" = "yes" ; then
12540 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12541 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 case $orig_target_objcopy in
12548 [\\/]* | ?:[\\/]*)
12549 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12568 esac
12570 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12571 if test -n "$orig_target_objcopy"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12573 $as_echo "$orig_target_objcopy" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12580 else
12581 if test "$GCC" = "yes"; then
12582 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12583 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12584 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $orig_target_objcopy in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in `dirname $aros_gcc_objcopy`
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12614 if test -n "$orig_target_objcopy"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12616 $as_echo "$orig_target_objcopy" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test "$orig_target_objcopy" = ""; then
12625 # Extract the first word of "objcopy", so it can be a program name with args.
12626 set dummy objcopy; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 case $orig_target_objcopy in
12633 [\\/]* | ?:[\\/]*)
12634 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12648 done
12649 done
12650 IFS=$as_save_IFS
12653 esac
12655 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12656 if test -n "$orig_target_objcopy"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12658 $as_echo "$orig_target_objcopy" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12667 else
12668 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12669 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 case $orig_target_objcopy in
12676 [\\/]* | ?:[\\/]*)
12677 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12691 done
12692 done
12693 IFS=$as_save_IFS
12696 esac
12698 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12699 if test -n "$orig_target_objcopy"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12701 $as_echo "$orig_target_objcopy" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12710 if test "$orig_target_objcopy" = ""; then
12711 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12714 if test "${aros_tool_prefix}objdump" = ""; then
12715 if test "$cross_compiling" = "yes" ; then
12716 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12717 set dummy ${target_tool_prefix}objdump; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_path_orig_target_objdump+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 case $orig_target_objdump in
12724 [\\/]* | ?:[\\/]*)
12725 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12739 done
12740 done
12741 IFS=$as_save_IFS
12744 esac
12746 orig_target_objdump=$ac_cv_path_orig_target_objdump
12747 if test -n "$orig_target_objdump"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12749 $as_echo "$orig_target_objdump" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12756 else
12757 if test "$GCC" = "yes"; then
12758 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12759 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12760 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_orig_target_objdump+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $orig_target_objdump in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in `dirname $aros_gcc_objdump`
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12782 done
12783 done
12784 IFS=$as_save_IFS
12787 esac
12789 orig_target_objdump=$ac_cv_path_orig_target_objdump
12790 if test -n "$orig_target_objdump"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12792 $as_echo "$orig_target_objdump" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12800 if test "$orig_target_objdump" = ""; then
12801 # Extract the first word of "objdump", so it can be a program name with args.
12802 set dummy objdump; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_path_orig_target_objdump+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 case $orig_target_objdump in
12809 [\\/]* | ?:[\\/]*)
12810 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12829 esac
12831 orig_target_objdump=$ac_cv_path_orig_target_objdump
12832 if test -n "$orig_target_objdump"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12834 $as_echo "$orig_target_objdump" >&6; }
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12843 else
12844 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12845 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_path_orig_target_objdump+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 case $orig_target_objdump in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12867 done
12868 done
12869 IFS=$as_save_IFS
12872 esac
12874 orig_target_objdump=$ac_cv_path_orig_target_objdump
12875 if test -n "$orig_target_objdump"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12877 $as_echo "$orig_target_objdump" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12886 if test "$orig_target_objdump" = ""; then
12887 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12891 if test "$kernel_tool_prefix" = "none" ; then
12892 # No kernel tools specified
12893 # Assume target tools == kernel tools with ELF wrapper
12894 aros_kernel_cc=$orig_target_cc
12895 aros_kernel_cxx=$orig_target_cxx
12896 aros_kernel_cpp=$orig_target_cpp
12897 aros_kernel_ld=$orig_target_ld
12898 aros_kernel_as=$orig_target_as
12899 aros_kernel_ar=$orig_target_ar
12900 aros_kernel_ranlib=$orig_target_ranlib
12901 aros_kernel_nm=$orig_target_nm
12902 aros_kernel_strip=$orig_target_strip
12903 aros_kernel_objcopy=$orig_target_objcopy
12904 aros_kernel_objdump=$orig_target_objdump
12905 use_kernel_cc_wrapper=yes
12908 # At this point, all aros_kernel_* and aros_target_*
12909 # tools should be set up correctly
12911 CC="$aros_kernel_cc $kernel_tool_flags"
12912 CPP="$aros_kernel_cpp"
12914 #-----------------------------------------------------------------------------
12916 # Disable pointer-signedness warnings if the compiler recognises the option
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12919 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12920 save_cflags="$CFLAGS"
12921 if test "$crosstools" != "yes" ; then
12922 CFLAGS="$CFLAGS -Wno-pointer-sign"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12927 main ()
12931 return 0;
12933 _ACEOF
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935 use_no_sign_warning="yes"
12936 else
12937 use_no_sign_warning="no"
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 else
12941 # we do know it is supported for the smallest version of gcc we are going to build
12942 # we assume it's also supported by later versions
12943 use_no_sign_warning=yes
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12946 $as_echo "$use_no_sign_warning" >&6; }
12947 if test "x-$use_no_sign_warning" = "x-yes" ; then
12948 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12950 CFLAGS="$save_cflags"
12952 #-----------------------------------------------------------------------------
12954 # Find all the tools we need to compile. This could be cross-compiling
12955 # though! If that is the case we use the GNU form of the target and
12956 # simply add this to the front of the binary name. This is rather simple,
12957 # but it should work under most circumstances.
12959 # The default tools are to use the same as the host, but only if the
12960 # host and target CPU are the same. With GCC this is normally enough.
12963 aros_cc_pre=""
12964 aros_shared_ld="$aros_host_ld"
12966 aros_target_mkdep="$aros_host_mkdep"
12968 # The default tools executables to be linked to.
12969 if test "$rescomp" != ""; then
12970 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12971 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973 $as_echo_n "checking for $ac_word... " >&6; }
12974 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 case $aros_kernel_rescomp in
12978 [\\/]* | ?:[\\/]*)
12979 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12989 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12993 done
12994 done
12995 IFS=$as_save_IFS
12998 esac
13000 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13001 if test -n "$aros_kernel_rescomp"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13003 $as_echo "$aros_kernel_rescomp" >&6; }
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13010 if test "$aros_kernel_rescomp" = ""; then
13011 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13015 # Set up the sources for the symlink farm
13016 if test "$crosstools" = "yes"; then
13017 crosstools_target=tools-crosstools
13020 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13021 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13023 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
13024 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13025 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13026 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13027 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13028 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13029 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13031 # aros_cc_pre is a variable that is added to the front of the compiler name
13032 # in the generated aros-gcc shell script. We need this to enable the cache
13033 # to work across cleaned builds. Also, support DISTCC using the correct
13034 # environment variable.
13037 if test "x${DISTCC}" != "x" ; then
13038 if test "x${CCACHE}" != "x" ; then
13039 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13040 else
13041 aros_cc_pre="${DISTCC} "
13043 else
13044 if test "x${CCACHE}" != "x" ; then
13045 aros_cc_pre="${CCACHE} "
13049 aros_target_nostdinc_cflags=-nostdinc
13051 aros_target_nostartup_ldflags=-nostartfiles
13053 aros_target_nix_ldflags=-nix
13055 aros_target_detach_ldflags=-detach
13057 aros_target_nostdlib_ldflags=-nostdlib
13060 # Target tools
13061 if test "$aros_target_toolchain" != "yes"; then
13062 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13063 if test "$GCC" = "yes"; then
13064 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13066 else
13067 # We do not know which gcc version we are going to build and what we need to know
13068 # here is different for different versions so this will be set later during the
13069 # build of crosstools.
13070 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13071 aros_target_cc_path=@aros_target_cc_path@
13073 aros_target_cpp="${prefix}cpp"
13074 aros_target_cc="${prefix}gcc"
13075 aros_target_cxx="${prefix}g++"
13076 aros_target_as="${prefix}as"
13077 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld"
13078 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13079 aros_target_objcopy="${prefix}objcopy"
13080 aros_target_objdump="${prefix}objdump"
13081 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13082 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13083 aros_target_strip="${prefix}strip"
13084 aros_plain_nm="${prefix}nm"
13085 aros_plain_ar="${prefix}ar"
13087 # Check whether --enable-includes was given.
13088 if test "${enable_includes+set}" = set; then :
13089 enableval=$enable_includes; aros_target_incl=$enable_includes
13090 else
13091 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13095 if test "$aros_kernel_includes" = ""; then
13096 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13097 aros_kernel_includes="-isystem $aros_target_incl"
13101 if test "$aros_kernel_includes" != "" ; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13103 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13104 if test "$aros_kernel_cc_includes" = "" ; then
13105 # Try to guess where the directory is.
13106 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13107 if test -d $aros_kernel_cc_includes; then
13108 # Check if there is also an include-fixed directory and add it
13109 # to kernel compiler's include path as it may contain some of
13110 # the headers we need.
13111 if test -d "$aros_kernel_cc_includes"-fixed; then
13112 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13114 # Check for specific includes directory. Neede for Ubuntu 11.10
13115 if test -d "/usr/include/i386-linux-gnu"; then
13116 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13118 else
13119 # The directory doesn't exist, we need to do some more work.
13120 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13122 # These are the headers we're looking for.
13123 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13124 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13125 zutil.h stdint.h"
13127 dirs=
13128 for h in $headers; do
13129 # Which other headers are needed by each of the above?
13130 deps=$(echo "#include <$h>" | \
13131 $aros_kernel_cc -E -M - 2>/dev/null | \
13132 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13134 # Copy all the needed headers to a directory beneath gendir.
13135 for d in $deps; do
13136 h=$(basename $d)
13137 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13138 sed -n "s,^.*/include\(/.*\),\1,p")
13139 ! test -d $dir && mkdir -p $dir
13140 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13141 done
13142 done
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13146 $as_echo "$aros_kernel_cc_includes" >&6; }
13147 # Adding -nostdinc to kernel includes as they are always used together.
13148 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13151 if test "$crosstools" != "yes"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13153 $as_echo_n "checking for the target compiler's include path... " >&6; }
13154 if test "$aros_target_cc_includes" = "" ; then
13155 #try to guess where the directory is
13156 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13157 if ! test -d $aros_target_cc_includes; then
13158 #the directory doesn't exist, we need to do some more work
13159 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13161 #these are the headers we're looking for
13162 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13163 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13164 zutil.h"
13166 dirs=
13167 for h in $headers; do
13168 #which other headers each of the above headers needs?
13169 deps=$(echo "#include <$h>" | \
13170 $orig_target_cc -E -M - 2>/dev/null | \
13171 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13173 #copy all the needed headers to a directory beneath gendir
13174 for d in $deps; do
13175 h=$(basename $d)
13176 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13177 sed -n "s,^.*/include\(/.*\),\1,p")
13178 ! test -d $dir && mkdir -p $dir
13179 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13180 done
13181 done
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13185 $as_echo "$aros_target_cc_includes" >&6; }
13186 else
13187 # We do not know which gcc version we are going to build and what we need to know
13188 # here is different for different versions so this will be set later during the
13189 # build of crosstools.
13190 aros_target_cc_includes=@aros_target_cc_includes@
13194 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13195 # On GCC >= 4.0 -iquote should be used
13198 save_cc="$CC"
13199 save_cflags="$CFLAGS"
13200 CFLAGS="-iquote."
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13202 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13203 if test "x-$crosstools" != "x-yes"; then
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13208 main ()
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_compile "$LINENO"; then :
13216 has_iquote="yes"
13217 else
13218 has_iquote="no"
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 else
13222 # we do know it is supported for the smallest version of gcc we are going to build
13223 # we assume it's also supported by later versions
13224 has_iquote=yes
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13227 $as_echo "$has_iquote" >&6; }
13228 if test "x-$has_iquote" = "x-yes" ; then
13229 host_cflags_iquote=-iquote
13230 host_cflags_iquote_end=
13231 else
13232 host_cflags_iquote=-I
13233 host_cflags_iquote_end=-I-
13235 kernel_cflags_iquote=$host_cflags_iquote
13236 kernel_cflags_iquote_end=$host_cflags_iquote_end
13237 if test "x-$cross_compiling" = "x-yes"; then
13238 CC="$aros_kernel_cc"
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13240 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13241 if test "x-$crosstools" != "x-yes"; then
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13246 main ()
13250 return 0;
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 use_no_stack_protector="yes"
13255 else
13256 use_no_stack_protector="no"
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 else
13260 # we do know it is supported for the smallest version of gcc we are going to build
13261 # we assume it's also supported by later versions
13262 use_no_stack_protector=yes
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13265 $as_echo "$use_no_stack_protector" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13267 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13268 if test "x-$crosstools" != "x-yes"; then
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13273 main ()
13277 return 0;
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"; then :
13281 has_iquote="yes"
13282 else
13283 has_iquote="no"
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 else
13287 # we do know it is supported for the smallest version of gcc we are going to build
13288 # we assume it's also supported by later versions
13289 has_iquote=yes
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13292 $as_echo "$has_iquote" >&6; }
13293 if test "x-$has_iquote" = "x-yes" ; then
13294 kernel_cflags_iquote=-iquote
13295 kernel_cflags_iquote_end=
13296 else
13297 kernel_cflags_iquote=-I
13298 kernel_cflags_iquote_end=-I-
13301 aros_cflags_iquote=$kernel_cflags_iquote
13302 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13303 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13304 CC="$orig_target_cc"
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13306 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13307 if test "x-$crosstools" != "x-yes"; then
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13312 main ()
13316 return 0;
13318 _ACEOF
13319 if ac_fn_c_try_compile "$LINENO"; then :
13320 has_iquote="yes"
13321 else
13322 has_iquote="no"
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 else
13326 # we do know it is supported for the smallest version of gcc we are going to build
13327 # we assume it's also supported by later versions
13328 has_iquote=yes
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13331 $as_echo "$has_iquote" >&6; }
13332 if test "x-$has_iquote" = "x-yes" ; then
13333 aros_cflags_iquote=-iquote
13334 aros_cflags_iquote_end=
13335 else
13336 aros_cflags_iquote=-I
13337 aros_cflags_iquote_end=-I-
13340 if test "x-$use_no_stack_protector" = "x-yes" ; then
13341 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13345 #-----------------------------------------------------------------------------
13347 # Check if the target compiler supports some options used for delinting:
13348 # -Wunused-but-set-variable
13349 # -Warray-bounds
13350 # -Wenum-compare
13351 # -Wstrict-overflow
13352 # -Wformat-security
13354 if test "x-$crosstools" != "x-yes"; then
13355 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13356 CC="$orig_target_cc"
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13359 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13360 CFLAGS=-Wunused-but-set-variable
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13365 main ()
13369 return 0;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 aros_unused_but_set_variable="yes"
13374 else
13375 aros_unused_but_set_variable="no"
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13379 $as_echo "$aros_unused_but_set_variable" >&6; }
13380 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13381 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13385 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13386 CFLAGS=-Warray-bounds
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13391 main ()
13395 return 0;
13397 _ACEOF
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 aros_array_bounds="yes"
13400 else
13401 aros_array_bounds="no"
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13405 $as_echo "$aros_array_bounds" >&6; }
13406 if test "x-$aros_array_bounds" = "x-yes" ; then
13407 aros_cflags_array_bounds=-Wno-array-bounds
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13411 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13412 CFLAGS=-Wenum-compare
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13417 main ()
13421 return 0;
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425 aros_enum_compare="yes"
13426 else
13427 aros_enum_compare="no"
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13431 $as_echo "$aros_enum_compare" >&6; }
13432 if test "x-$aros_enum_compare" = "x-yes" ; then
13433 aros_cflags_enum_compare=-Wno-enum-compare
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13437 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13438 CFLAGS=-Wstrict-overflow
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13443 main ()
13447 return 0;
13449 _ACEOF
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 aros_strict_overflow="yes"
13452 else
13453 aros_strict_overflow="no"
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13457 $as_echo "$aros_strict_overflow" >&6; }
13458 if test "x-$aros_strict_overflow" = "x-yes" ; then
13459 aros_cflags_strict_overflow=-Wno-strict-overflow
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13463 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13464 CFLAGS=-Wformat-security
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13469 main ()
13473 return 0;
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 aros_format_security="yes"
13478 else
13479 aros_format_security="no"
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13483 $as_echo "$aros_format_security" >&6; }
13484 if test "x-$aros_format_security" = "x-yes" ; then
13485 aros_cflags_format_security=-Wno-format-security
13487 else
13488 # We do not know which gcc version we are going to build and what we need to know
13489 # here is different for different versions so this will be set later during the
13490 # build of crosstools.
13491 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13492 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13493 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13494 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13495 aros_cflags_format_security=@aros_cflags_format_security@
13498 #-----------------------------------------------------------------------------
13500 # Check if we can explicitly choose older version of symbol hashing
13502 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13503 CC="$aros_kernel_cc"
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13505 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13510 main ()
13514 return 0;
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 use_hash_style="yes"
13519 else
13520 use_hash_style="no"
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13525 $as_echo "$use_hash_style" >&6; }
13526 if test "x-$use_hash_style" = "x-yes" ; then
13527 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13529 CC="$save_cc"
13530 CFLAGS="$save_cflags"
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13541 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13543 # Check whether --with-resolution was given.
13544 if test "${with_resolution+set}" = set; then :
13545 withval=$with_resolution; resolution=$withval
13546 else
13547 resolution=none
13550 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13551 if test "$resolution" = "yes" ; then
13552 resolution="none"
13554 if test "$resolution" = "no" ; then
13555 resolution="none"
13557 if test "$resolution" != "none" ; then
13558 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13559 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13560 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13563 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13564 aros_cv_default_wbwidth=$aros_default_wbwidth
13565 aros_cv_default_wbheight=$aros_default_wbheight
13566 aros_cv_default_wbdepth=$aros_default_wbdepth
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13569 $as_echo_n "checking if serial debug is enabled... " >&6; }
13571 # Check whether --with-serial-debug was given.
13572 if test "${with_serial_debug+set}" = set; then :
13573 withval=$with_serial_debug; serial_debug=$withval
13574 else
13575 serial_debug=none
13578 if test "$aros_serial_debug" = 0 ; then
13579 serial_debug_forced=""
13580 if test "$serial_debug" = "yes" ; then
13581 serial_debug="1"
13583 if test "$serial_debug" = "no" ; then
13584 serial_debug="none"
13586 else
13587 serial_debug_forced="(forced)"
13588 serial_debug=$aros_serial_debug
13590 if test "$serial_debug" != "none" ; then
13591 aros_serial_debug=$serial_debug
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13593 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13600 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13601 # Check whether --enable-palm_debug_hack was given.
13602 if test "${enable_palm_debug_hack+set}" = set; then :
13603 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13604 else
13605 palm_debug_hack="no"
13608 if test "$palm_debug_hack" = "yes" ; then
13609 aros_palm_debug_hack="1"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13612 $as_echo "$palm_debug_hack" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13615 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13616 # Check whether --enable-usb30_code was given.
13617 if test "${enable_usb30_code+set}" = set; then :
13618 enableval=$enable_usb30_code; usb30_code="yes"
13619 else
13620 usb30_code="no"
13623 if test "$usb30_code" = "yes" ; then
13624 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13625 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13628 $as_echo "$usb30_code" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13631 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13632 # Check whether --enable-nesting_supervisor was given.
13633 if test "${enable_nesting_supervisor+set}" = set; then :
13634 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13635 else
13636 nesting_supervisor="no"
13639 if test "$nesting_supervisor" = "yes" ; then
13640 aros_nesting_supervisor="1"
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13643 $as_echo "$nesting_supervisor" >&6; }
13645 if test "$aros_enable_mmu" = "" ; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13647 $as_echo_n "checking if MMU support is enabled... " >&6; }
13648 # Check whether --enable-mmu was given.
13649 if test "${enable_mmu+set}" = set; then :
13650 enableval=$enable_mmu; aros_enable_mmu=$enableval
13651 else
13652 aros_enable_mmu="yes"
13655 if test "$aros_enable_mmu" = "" ; then
13656 aros_enable_mmu="yes"
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13659 $as_echo "$aros_enable_mmu" >&6; }
13661 if test "$aros_enable_mmu" = "no" ; then
13662 aros_enable_mmu="0"
13663 else
13664 aros_enable_mmu="1"
13668 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13670 if test "x-$need_dlopen" != "x-no" ; then
13671 save_libs="$LIBS"
13672 LIBS=""
13673 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13674 if test "x$ac_cv_func_dlopen" = xyes; then :
13675 have_dl="yes"
13676 else
13677 have_dl="no"
13680 if test "x-$have_dl" = "x-no" ; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13682 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13683 if ${ac_cv_lib_dl_dlopen+:} false; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-ldl $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13694 #ifdef __cplusplus
13695 extern "C"
13696 #endif
13697 char dlopen ();
13699 main ()
13701 return dlopen ();
13703 return 0;
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707 ac_cv_lib_dl_dlopen=yes
13708 else
13709 ac_cv_lib_dl_dlopen=no
13711 rm -f core conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13717 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13718 have_dl="yes"
13719 aros_host_ldflags="$aros_host_ldflags -ldl"
13720 else
13721 have_dl="no"
13725 if test "x-$have_dl" = "x-no" ; then
13726 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13728 LIBS="$save_libs"
13732 # Check whether --enable-x11_hidd was given.
13733 if test "${enable_x11_hidd+set}" = set; then :
13734 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13735 else
13736 x11_hidd="$need_x11"
13739 case "x-$x11_hidd" in
13740 x-yes|x-no|x-auto) ;;
13741 *) x11_hidd="$need_x11" ;;
13742 esac
13744 ENABLE_X11=0
13746 if test "x-$x11_hidd" != "x-no" ; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13749 $as_echo_n "checking for X... " >&6; }
13752 # Check whether --with-x was given.
13753 if test "${with_x+set}" = set; then :
13754 withval=$with_x;
13757 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13758 if test "x$with_x" = xno; then
13759 # The user explicitly disabled X.
13760 have_x=disabled
13761 else
13762 case $x_includes,$x_libraries in #(
13763 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13764 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 # One or both of the vars are not set, and there is no cached value.
13768 ac_x_includes=no ac_x_libraries=no
13769 rm -f -r conftest.dir
13770 if mkdir conftest.dir; then
13771 cd conftest.dir
13772 cat >Imakefile <<'_ACEOF'
13773 incroot:
13774 @echo incroot='${INCROOT}'
13775 usrlibdir:
13776 @echo usrlibdir='${USRLIBDIR}'
13777 libdir:
13778 @echo libdir='${LIBDIR}'
13779 _ACEOF
13780 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13782 for ac_var in incroot usrlibdir libdir; do
13783 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13784 done
13785 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13786 for ac_extension in a so sl dylib la dll; do
13787 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13788 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13789 ac_im_usrlibdir=$ac_im_libdir; break
13791 done
13792 # Screen out bogus values from the imake configuration. They are
13793 # bogus both because they are the default anyway, and because
13794 # using them would break gcc on systems where it needs fixed includes.
13795 case $ac_im_incroot in
13796 /usr/include) ac_x_includes= ;;
13797 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13798 esac
13799 case $ac_im_usrlibdir in
13800 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13801 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13802 esac
13804 cd ..
13805 rm -f -r conftest.dir
13808 # Standard set of common directories for X headers.
13809 # Check X11 before X11Rn because it is often a symlink to the current release.
13810 ac_x_header_dirs='
13811 /usr/X11/include
13812 /usr/X11R7/include
13813 /usr/X11R6/include
13814 /usr/X11R5/include
13815 /usr/X11R4/include
13817 /usr/include/X11
13818 /usr/include/X11R7
13819 /usr/include/X11R6
13820 /usr/include/X11R5
13821 /usr/include/X11R4
13823 /usr/local/X11/include
13824 /usr/local/X11R7/include
13825 /usr/local/X11R6/include
13826 /usr/local/X11R5/include
13827 /usr/local/X11R4/include
13829 /usr/local/include/X11
13830 /usr/local/include/X11R7
13831 /usr/local/include/X11R6
13832 /usr/local/include/X11R5
13833 /usr/local/include/X11R4
13835 /usr/X386/include
13836 /usr/x386/include
13837 /usr/XFree86/include/X11
13839 /usr/include
13840 /usr/local/include
13841 /usr/unsupported/include
13842 /usr/athena/include
13843 /usr/local/x11r5/include
13844 /usr/lpp/Xamples/include
13846 /usr/openwin/include
13847 /usr/openwin/share/include'
13849 if test "$ac_x_includes" = no; then
13850 # Guess where to find include files, by looking for Xlib.h.
13851 # First, try using that file with no special directory specified.
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 #include <X11/Xlib.h>
13855 _ACEOF
13856 if ac_fn_c_try_cpp "$LINENO"; then :
13857 # We can compile using X headers with no special include directory.
13858 ac_x_includes=
13859 else
13860 for ac_dir in $ac_x_header_dirs; do
13861 if test -r "$ac_dir/X11/Xlib.h"; then
13862 ac_x_includes=$ac_dir
13863 break
13865 done
13867 rm -f conftest.err conftest.i conftest.$ac_ext
13868 fi # $ac_x_includes = no
13870 if test "$ac_x_libraries" = no; then
13871 # Check for the libraries.
13872 # See if we find them without any special options.
13873 # Don't add to $LIBS permanently.
13874 ac_save_LIBS=$LIBS
13875 LIBS="-lX11 $LIBS"
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <X11/Xlib.h>
13880 main ()
13882 XrmInitialize ()
13884 return 0;
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888 LIBS=$ac_save_LIBS
13889 # We can link X programs with no special library path.
13890 ac_x_libraries=
13891 else
13892 LIBS=$ac_save_LIBS
13893 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13895 # Don't even attempt the hair of trying to link an X program!
13896 for ac_extension in a so sl dylib la dll; do
13897 if test -r "$ac_dir/libX11.$ac_extension"; then
13898 ac_x_libraries=$ac_dir
13899 break 2
13901 done
13902 done
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 fi # $ac_x_libraries = no
13908 case $ac_x_includes,$ac_x_libraries in #(
13909 no,* | *,no | *\'*)
13910 # Didn't find X, or a directory has "'" in its name.
13911 ac_cv_have_x="have_x=no";; #(
13913 # Record where we found X for the cache.
13914 ac_cv_have_x="have_x=yes\
13915 ac_x_includes='$ac_x_includes'\
13916 ac_x_libraries='$ac_x_libraries'"
13917 esac
13919 ;; #(
13920 *) have_x=yes;;
13921 esac
13922 eval "$ac_cv_have_x"
13923 fi # $with_x != no
13925 if test "$have_x" != yes; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13927 $as_echo "$have_x" >&6; }
13928 no_x=yes
13929 else
13930 # If each of the values was on the command line, it overrides each guess.
13931 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13932 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13933 # Update the cache value to reflect the command line values.
13934 ac_cv_have_x="have_x=yes\
13935 ac_x_includes='$x_includes'\
13936 ac_x_libraries='$x_libraries'"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13938 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13942 x_cflags=
13943 for path in $x_libraries
13945 x_cflags="$x_cflags -L$path"
13946 done
13948 for path in $x_includes
13950 x_cflags="$x_cflags -I$path"
13951 done
13953 if test "x-$no_x" = "x-yes" ; then
13955 if test "x-$x11_hidd" != "x-auto" ; then
13956 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13959 else
13960 unixgfx_hidd_target=kernel-x11gfx
13961 ENABLE_X11=1
13963 # Check whether --enable-x11_shm was given.
13964 if test "${enable_x11_shm+set}" = set; then :
13965 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13966 else
13967 x11_hidd_shm="auto"
13970 case "x-$x11_hidd_shm" in
13971 x-yes|x-no|x-auto) ;;
13972 *) x11_hidd_shm="auto" ;;
13973 esac
13975 have_xshm=no
13977 if test "x-$x11_hidd_shm" != "x-no" ; then
13979 for ac_header in sys/ipc.h
13980 do :
13981 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13982 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_SYS_IPC_H 1
13985 _ACEOF
13989 done
13991 for ac_header in sys/shm.h
13992 do :
13993 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13994 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_SYS_SHM_H 1
13997 _ACEOF
14001 done
14004 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14006 save_cflags="$CFLAGS"
14007 CFLAGS="$CFLAGS $x_cflags"
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14009 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14010 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lXext $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021 #ifdef __cplusplus
14022 extern "C"
14023 #endif
14024 char XShmQueryExtension ();
14026 main ()
14028 return XShmQueryExtension ();
14030 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_Xext_XShmQueryExtension=yes
14035 else
14036 ac_cv_lib_Xext_XShmQueryExtension=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14043 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14044 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14045 have_xshm=yes
14048 CFLAGS="$save_cflags"
14052 if test "x-$have_xshm" = "x-yes" ; then
14053 DO_XSHM_SUPPORT="1"
14054 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14055 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14056 else
14057 DO_XSHM_SUPPORT="0"
14061 # Check whether --enable-x11_vidmode was given.
14062 if test "${enable_x11_vidmode+set}" = set; then :
14063 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14064 else
14065 x11_hidd_vidmode="auto"
14068 case "x-$x11_hidd_vidmode" in
14069 x-yes|x-no|x-auto) ;;
14070 *) x11_hidd_vidmode="auto" ;;
14071 esac
14073 have_vidmode=no
14075 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14077 save_cflags="$CFLAGS"
14078 CFLAGS="$CFLAGS $x_cflags"
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14080 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14081 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-lXxf86vm $LIBS"
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 char XF86VidModeQueryExtension ();
14097 main ()
14099 return XF86VidModeQueryExtension ();
14101 return 0;
14103 _ACEOF
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14106 else
14107 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14114 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14115 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14116 have_vidmode=yes
14119 CFLAGS="$save_cflags"
14122 if test "x-$have_vidmode" = "x-yes" ; then
14123 DO_VIDMODE_SUPPORT="1"
14124 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14125 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14126 else
14127 DO_VIDMODE_SUPPORT="0"
14131 aros_host_x11_includes=$x_includes
14132 aros_host_x11_libdirs=$x_libraries
14136 # Check whether --enable-sdl_hidd was given.
14137 if test "${enable_sdl_hidd+set}" = set; then :
14138 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14139 else
14140 sdl_hidd="auto"
14143 case "x-$sdl_hidd" in
14144 x-yes|x-no|x-auto) ;;
14145 *) sdl_hidd="auto" ;;
14146 esac
14148 if test "x-$sdl_hidd" != "x-no" ; then
14151 # Check whether --with-sdl-prefix was given.
14152 if test "${with_sdl_prefix+set}" = set; then :
14153 withval=$with_sdl_prefix; sdl_prefix="$withval"
14154 else
14155 sdl_prefix=""
14159 # Check whether --with-sdl-exec-prefix was given.
14160 if test "${with_sdl_exec_prefix+set}" = set; then :
14161 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14162 else
14163 sdl_exec_prefix=""
14166 # Check whether --enable-sdltest was given.
14167 if test "${enable_sdltest+set}" = set; then :
14168 enableval=$enable_sdltest;
14169 else
14170 enable_sdltest=yes
14174 if test x$sdl_exec_prefix != x ; then
14175 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14176 if test x${SDL_CONFIG+set} != xset ; then
14177 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14180 if test x$sdl_prefix != x ; then
14181 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14182 if test x${SDL_CONFIG+set} != xset ; then
14183 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14187 as_save_PATH="$PATH"
14188 if test "x$prefix" != xNONE; then
14189 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14191 # Extract the first word of "sdl-config", so it can be a program name with args.
14192 set dummy sdl-config; ac_word=$2
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14194 $as_echo_n "checking for $ac_word... " >&6; }
14195 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 case $SDL_CONFIG in
14199 [\\/]* | ?:[\\/]*)
14200 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14210 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14214 done
14215 done
14216 IFS=$as_save_IFS
14218 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14220 esac
14222 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14223 if test -n "$SDL_CONFIG"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14225 $as_echo "$SDL_CONFIG" >&6; }
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14232 PATH="$as_save_PATH"
14233 min_sdl_version=1.2.10
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14235 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14236 no_sdl=""
14237 if test "$SDL_CONFIG" = "no" ; then
14238 no_sdl=yes
14239 else
14240 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14241 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14243 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14245 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14247 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14249 if test "x$enable_sdltest" = "xyes" ; then
14250 ac_save_CFLAGS="$CFLAGS"
14251 ac_save_CXXFLAGS="$CXXFLAGS"
14252 ac_save_LIBS="$LIBS"
14253 CFLAGS="$CFLAGS $SDL_CFLAGS"
14254 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14255 LIBS="$LIBS $SDL_LIBS"
14256 rm -f conf.sdltest
14257 if test "$cross_compiling" = yes; then :
14258 echo $ac_n "cross compiling; assumed OK... $ac_c"
14259 else
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14263 #include <stdio.h>
14264 #include <stdlib.h>
14265 #include <string.h>
14266 #include "SDL.h"
14268 char*
14269 my_strdup (char *str)
14271 char *new_str;
14273 if (str)
14275 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14276 strcpy (new_str, str);
14278 else
14279 new_str = NULL;
14281 return new_str;
14284 int main (int argc, char *argv[])
14286 int major, minor, micro;
14287 char *tmp_version;
14289 /* This hangs on some systems (?)
14290 system ("touch conf.sdltest");
14292 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14294 /* HP/UX 9 (%@#!) writes to sscanf strings */
14295 tmp_version = my_strdup("$min_sdl_version");
14296 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14297 printf("%s, bad version string\n", "$min_sdl_version");
14298 exit(1);
14301 if (($sdl_major_version > major) ||
14302 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14303 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14305 return 0;
14307 else
14309 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14310 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14311 printf("*** best to upgrade to the required version.\n");
14312 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14313 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14314 printf("*** config.cache before re-running configure\n");
14315 return 1;
14320 _ACEOF
14321 if ac_fn_c_try_run "$LINENO"; then :
14323 else
14324 no_sdl=yes
14326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14327 conftest.$ac_objext conftest.beam conftest.$ac_ext
14330 CFLAGS="$ac_save_CFLAGS"
14331 CXXFLAGS="$ac_save_CXXFLAGS"
14332 LIBS="$ac_save_LIBS"
14335 if test "x$no_sdl" = x ; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338 have_sdl="yes"
14339 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14342 if test "$SDL_CONFIG" = "no" ; then
14343 echo "*** The sdl-config script installed by SDL could not be found"
14344 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14345 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14346 echo "*** full path to sdl-config."
14347 else
14348 if test -f conf.sdltest ; then
14350 else
14351 echo "*** Could not run SDL test program, checking why..."
14352 CFLAGS="$CFLAGS $SDL_CFLAGS"
14353 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14354 LIBS="$LIBS $SDL_LIBS"
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 #include <stdio.h>
14359 #include "SDL.h"
14361 int main(int argc, char *argv[])
14362 { return 0; }
14363 #undef main
14364 #define main K_and_R_C_main
14367 main ()
14369 return 0;
14371 return 0;
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 echo "*** The test program compiled, but did not run. This usually means"
14376 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14377 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14378 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14379 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14380 echo "*** is required on your system"
14381 echo "***"
14382 echo "*** If you have an old version installed, it is best to remove it, although"
14383 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14384 else
14385 echo "*** The test program failed to compile or link. See the file config.log for the"
14386 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14387 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14388 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14390 rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14392 CFLAGS="$ac_save_CFLAGS"
14393 CXXFLAGS="$ac_save_CXXFLAGS"
14394 LIBS="$ac_save_LIBS"
14397 SDL_CFLAGS=""
14398 SDL_LIBS=""
14399 have_sdl="no"
14403 rm -f conf.sdltest
14406 if test "x-$have_sdl" != "x-yes" ; then
14408 if test "x-$sdl_hidd" != "x-auto" ; then
14409 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14412 else
14413 sdl_hidd_target=kernel-hidd-sdl
14414 aros_host_sdl_cflags=SDL_CFLAGS
14415 aros_host_sdl_libs=SDL_LIBS
14419 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14425 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14426 oss_library_target=workbench-libs-oss-unix
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14432 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14433 # Check whether --enable-dbus was given.
14434 if test "${enable_dbus+set}" = set; then :
14435 enableval=$enable_dbus; dbus="yes"
14436 else
14437 dbus="no"
14440 if test "$dbus" = "yes" ; then
14441 ENABLE_DBUS=1
14442 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14443 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14444 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14445 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14446 else
14447 ENABLE_DBUS=0
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14450 $as_echo "$dbus" >&6; }
14452 if test "$use_kernel_cc_wrapper" = "yes" ; then
14453 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14457 # Generic
14469 # Compatability with other Amiga-like operation systems
14472 # Host related
14500 # Target Related
14568 # Delinting target compiler flags
14575 # Graphics Related
14592 # Native version related
14595 # Palm native version related
14598 # Unix/Hosted version related
14601 # MMU related
14604 # Apple iOS related
14609 # ARM default GCC target related
14615 # Android related
14620 # DBUS related
14627 #X11 related
14630 # Debug related
14636 # Collect-aros stuff: "-ius" to ignore undefined symbols
14639 # C compiler related
14644 #ObjC compiler related
14647 #Java related
14650 # USB3.0 code
14653 case "$aros_flavour" in
14654 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14655 aros_flavour="emulation" ;;
14656 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14657 aros_flavour="emulation" ;;
14658 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14659 aros_flavour="standalone";;
14660 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14661 aros_flavour="standalone";;
14662 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14663 aros_flavour="native" ;;
14664 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14665 aros_flavour="native" ;;
14666 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14667 aros_flavour="linklib" ;;
14668 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14669 aros_flavour="palmnative" ;;
14670 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14671 aros_flavour="mac68knative" ;;
14672 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14673 aros_flavour="ppcnative" ;;
14674 esac
14676 if test ! -d ${aros_inc_dir} ; then
14677 ${MKDIR} ${aros_inc_dir}
14679 if test ! -d ${aros_geninc_dir} ; then
14680 ${MKDIR} ${aros_geninc_dir}
14682 if test ! -d ${aros_hostcfg_dir} ; then
14683 ${MKDIR} ${aros_hostcfg_dir}
14685 if test ! -d ${aros_targetcfg_dir} ; then
14686 ${MKDIR} ${aros_targetcfg_dir}
14688 if test ! -d ${aros_tools_dir} ; then
14689 ${MKDIR} ${aros_tools_dir}
14691 if test ! -d ${aros_scripts_dir} ; then
14692 ${MKDIR} ${aros_scripts_dir}
14695 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14698 # Generic build tools (metamake, etc)
14699 ac_config_commands="$ac_config_commands genmf-executable-support"
14701 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
14704 # Binutils
14705 ac_config_commands="$ac_config_commands binutils-support"
14707 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in"
14710 # Bare Elf support script and spec
14711 if test "${use_kernel_cc_wrapper}" = "yes"; then
14712 ac_config_commands="$ac_config_commands elf-compiler-support"
14714 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"
14718 # Host compiler support scripts and spec
14719 if test "${aros_target_toolchain}" = "no"; then
14720 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
14722 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-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in"
14726 # Android support
14727 if test "$aros_target_variant" == "android"; then
14728 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14732 # cmake helper
14733 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
14736 cat >confcache <<\_ACEOF
14737 # This file is a shell script that caches the results of configure
14738 # tests run on this system so they can be shared between configure
14739 # scripts and configure runs, see configure's option --config-cache.
14740 # It is not useful on other systems. If it contains results you don't
14741 # want to keep, you may remove or edit it.
14743 # config.status only pays attention to the cache file if you give it
14744 # the --recheck option to rerun configure.
14746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14748 # following values.
14750 _ACEOF
14752 # The following way of writing the cache mishandles newlines in values,
14753 # but we know of no workaround that is simple, portable, and efficient.
14754 # So, we kill variables containing newlines.
14755 # Ultrix sh set writes to stderr and can't be redirected directly,
14756 # and sets the high bit in the cache file unless we assign to the vars.
14758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14759 eval ac_val=\$$ac_var
14760 case $ac_val in #(
14761 *${as_nl}*)
14762 case $ac_var in #(
14763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14764 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14765 esac
14766 case $ac_var in #(
14767 _ | IFS | as_nl) ;; #(
14768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14769 *) { eval $ac_var=; unset $ac_var;} ;;
14770 esac ;;
14771 esac
14772 done
14774 (set) 2>&1 |
14775 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14776 *${as_nl}ac_space=\ *)
14777 # `set' does not quote correctly, so add quotes: double-quote
14778 # substitution turns \\\\ into \\, and sed turns \\ into \.
14779 sed -n \
14780 "s/'/'\\\\''/g;
14781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14782 ;; #(
14784 # `set' quotes correctly as required by POSIX, so do not add quotes.
14785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14787 esac |
14788 sort
14790 sed '
14791 /^ac_cv_env_/b end
14792 t clear
14793 :clear
14794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14795 t end
14796 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14797 :end' >>confcache
14798 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14799 if test -w "$cache_file"; then
14800 if test "x$cache_file" != "x/dev/null"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14802 $as_echo "$as_me: updating cache $cache_file" >&6;}
14803 if test ! -f "$cache_file" || test -h "$cache_file"; then
14804 cat confcache >"$cache_file"
14805 else
14806 case $cache_file in #(
14807 */* | ?:*)
14808 mv -f confcache "$cache_file"$$ &&
14809 mv -f "$cache_file"$$ "$cache_file" ;; #(
14811 mv -f confcache "$cache_file" ;;
14812 esac
14815 else
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14817 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14820 rm -f confcache
14822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14823 # Let make expand exec_prefix.
14824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14826 DEFS=-DHAVE_CONFIG_H
14828 ac_libobjs=
14829 ac_ltlibobjs=
14831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14832 # 1. Remove the extension, and $U if already installed.
14833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14836 # will be set to the directory where LIBOBJS objects are built.
14837 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14838 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14839 done
14840 LIBOBJS=$ac_libobjs
14842 LTLIBOBJS=$ac_ltlibobjs
14846 : "${CONFIG_STATUS=./config.status}"
14847 ac_write_fail=0
14848 ac_clean_files_save=$ac_clean_files
14849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14852 as_write_fail=0
14853 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14854 #! $SHELL
14855 # Generated by $as_me.
14856 # Run this file to recreate the current configuration.
14857 # Compiler output produced by configure, useful for debugging
14858 # configure, is in config.log if it exists.
14860 debug=false
14861 ac_cs_recheck=false
14862 ac_cs_silent=false
14864 SHELL=\${CONFIG_SHELL-$SHELL}
14865 export SHELL
14866 _ASEOF
14867 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14868 ## -------------------- ##
14869 ## M4sh Initialization. ##
14870 ## -------------------- ##
14872 # Be more Bourne compatible
14873 DUALCASE=1; export DUALCASE # for MKS sh
14874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14875 emulate sh
14876 NULLCMD=:
14877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14878 # is contrary to our usage. Disable this feature.
14879 alias -g '${1+"$@"}'='"$@"'
14880 setopt NO_GLOB_SUBST
14881 else
14882 case `(set -o) 2>/dev/null` in #(
14883 *posix*) :
14884 set -o posix ;; #(
14885 *) :
14887 esac
14891 as_nl='
14893 export as_nl
14894 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14895 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14898 # Prefer a ksh shell builtin over an external printf program on Solaris,
14899 # but without wasting forks for bash or zsh.
14900 if test -z "$BASH_VERSION$ZSH_VERSION" \
14901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14902 as_echo='print -r --'
14903 as_echo_n='print -rn --'
14904 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14905 as_echo='printf %s\n'
14906 as_echo_n='printf %s'
14907 else
14908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14910 as_echo_n='/usr/ucb/echo -n'
14911 else
14912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14913 as_echo_n_body='eval
14914 arg=$1;
14915 case $arg in #(
14916 *"$as_nl"*)
14917 expr "X$arg" : "X\\(.*\\)$as_nl";
14918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14919 esac;
14920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14922 export as_echo_n_body
14923 as_echo_n='sh -c $as_echo_n_body as_echo'
14925 export as_echo_body
14926 as_echo='sh -c $as_echo_body as_echo'
14929 # The user is always right.
14930 if test "${PATH_SEPARATOR+set}" != set; then
14931 PATH_SEPARATOR=:
14932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14934 PATH_SEPARATOR=';'
14939 # IFS
14940 # We need space, tab and new line, in precisely that order. Quoting is
14941 # there to prevent editors from complaining about space-tab.
14942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14943 # splitting by setting IFS to empty value.)
14944 IFS=" "" $as_nl"
14946 # Find who we are. Look in the path if we contain no directory separator.
14947 as_myself=
14948 case $0 in #((
14949 *[\\/]* ) as_myself=$0 ;;
14950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14956 done
14957 IFS=$as_save_IFS
14960 esac
14961 # We did not find ourselves, most probably we were run as `sh COMMAND'
14962 # in which case we are not to be found in the path.
14963 if test "x$as_myself" = x; then
14964 as_myself=$0
14966 if test ! -f "$as_myself"; then
14967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14968 exit 1
14971 # Unset variables that we do not need and which cause bugs (e.g. in
14972 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14973 # suppresses any "Segmentation fault" message there. '((' could
14974 # trigger a bug in pdksh 5.2.14.
14975 for as_var in BASH_ENV ENV MAIL MAILPATH
14976 do eval test x\${$as_var+set} = xset \
14977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14978 done
14979 PS1='$ '
14980 PS2='> '
14981 PS4='+ '
14983 # NLS nuisances.
14984 LC_ALL=C
14985 export LC_ALL
14986 LANGUAGE=C
14987 export LANGUAGE
14989 # CDPATH.
14990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14993 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14994 # ----------------------------------------
14995 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14996 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14997 # script with STATUS, using 1 if that was 0.
14998 as_fn_error ()
15000 as_status=$1; test $as_status -eq 0 && as_status=1
15001 if test "$4"; then
15002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15005 $as_echo "$as_me: error: $2" >&2
15006 as_fn_exit $as_status
15007 } # as_fn_error
15010 # as_fn_set_status STATUS
15011 # -----------------------
15012 # Set $? to STATUS, without forking.
15013 as_fn_set_status ()
15015 return $1
15016 } # as_fn_set_status
15018 # as_fn_exit STATUS
15019 # -----------------
15020 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15021 as_fn_exit ()
15023 set +e
15024 as_fn_set_status $1
15025 exit $1
15026 } # as_fn_exit
15028 # as_fn_unset VAR
15029 # ---------------
15030 # Portably unset VAR.
15031 as_fn_unset ()
15033 { eval $1=; unset $1;}
15035 as_unset=as_fn_unset
15036 # as_fn_append VAR VALUE
15037 # ----------------------
15038 # Append the text in VALUE to the end of the definition contained in VAR. Take
15039 # advantage of any shell optimizations that allow amortized linear growth over
15040 # repeated appends, instead of the typical quadratic growth present in naive
15041 # implementations.
15042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15043 eval 'as_fn_append ()
15045 eval $1+=\$2
15047 else
15048 as_fn_append ()
15050 eval $1=\$$1\$2
15052 fi # as_fn_append
15054 # as_fn_arith ARG...
15055 # ------------------
15056 # Perform arithmetic evaluation on the ARGs, and store the result in the
15057 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15058 # must be portable across $(()) and expr.
15059 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15060 eval 'as_fn_arith ()
15062 as_val=$(( $* ))
15064 else
15065 as_fn_arith ()
15067 as_val=`expr "$@" || test $? -eq 1`
15069 fi # as_fn_arith
15072 if expr a : '\(a\)' >/dev/null 2>&1 &&
15073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15074 as_expr=expr
15075 else
15076 as_expr=false
15079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15080 as_basename=basename
15081 else
15082 as_basename=false
15085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15086 as_dirname=dirname
15087 else
15088 as_dirname=false
15091 as_me=`$as_basename -- "$0" ||
15092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15093 X"$0" : 'X\(//\)$' \| \
15094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15095 $as_echo X/"$0" |
15096 sed '/^.*\/\([^/][^/]*\)\/*$/{
15097 s//\1/
15100 /^X\/\(\/\/\)$/{
15101 s//\1/
15104 /^X\/\(\/\).*/{
15105 s//\1/
15108 s/.*/./; q'`
15110 # Avoid depending upon Character Ranges.
15111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15114 as_cr_digits='0123456789'
15115 as_cr_alnum=$as_cr_Letters$as_cr_digits
15117 ECHO_C= ECHO_N= ECHO_T=
15118 case `echo -n x` in #(((((
15119 -n*)
15120 case `echo 'xy\c'` in
15121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15122 xy) ECHO_C='\c';;
15123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15124 ECHO_T=' ';;
15125 esac;;
15127 ECHO_N='-n';;
15128 esac
15130 rm -f conf$$ conf$$.exe conf$$.file
15131 if test -d conf$$.dir; then
15132 rm -f conf$$.dir/conf$$.file
15133 else
15134 rm -f conf$$.dir
15135 mkdir conf$$.dir 2>/dev/null
15137 if (echo >conf$$.file) 2>/dev/null; then
15138 if ln -s conf$$.file conf$$ 2>/dev/null; then
15139 as_ln_s='ln -s'
15140 # ... but there are two gotchas:
15141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15143 # In both cases, we have to default to `cp -pR'.
15144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15145 as_ln_s='cp -pR'
15146 elif ln conf$$.file conf$$ 2>/dev/null; then
15147 as_ln_s=ln
15148 else
15149 as_ln_s='cp -pR'
15151 else
15152 as_ln_s='cp -pR'
15154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15155 rmdir conf$$.dir 2>/dev/null
15158 # as_fn_mkdir_p
15159 # -------------
15160 # Create "$as_dir" as a directory, including parents if necessary.
15161 as_fn_mkdir_p ()
15164 case $as_dir in #(
15165 -*) as_dir=./$as_dir;;
15166 esac
15167 test -d "$as_dir" || eval $as_mkdir_p || {
15168 as_dirs=
15169 while :; do
15170 case $as_dir in #(
15171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15172 *) as_qdir=$as_dir;;
15173 esac
15174 as_dirs="'$as_qdir' $as_dirs"
15175 as_dir=`$as_dirname -- "$as_dir" ||
15176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15177 X"$as_dir" : 'X\(//\)[^/]' \| \
15178 X"$as_dir" : 'X\(//\)$' \| \
15179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15180 $as_echo X"$as_dir" |
15181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15182 s//\1/
15185 /^X\(\/\/\)[^/].*/{
15186 s//\1/
15189 /^X\(\/\/\)$/{
15190 s//\1/
15193 /^X\(\/\).*/{
15194 s//\1/
15197 s/.*/./; q'`
15198 test -d "$as_dir" && break
15199 done
15200 test -z "$as_dirs" || eval "mkdir $as_dirs"
15201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15204 } # as_fn_mkdir_p
15205 if mkdir -p . 2>/dev/null; then
15206 as_mkdir_p='mkdir -p "$as_dir"'
15207 else
15208 test -d ./-p && rmdir ./-p
15209 as_mkdir_p=false
15213 # as_fn_executable_p FILE
15214 # -----------------------
15215 # Test if FILE is an executable regular file.
15216 as_fn_executable_p ()
15218 test -f "$1" && test -x "$1"
15219 } # as_fn_executable_p
15220 as_test_x='test -x'
15221 as_executable_p=as_fn_executable_p
15223 # Sed expression to map a string onto a valid CPP name.
15224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15226 # Sed expression to map a string onto a valid variable name.
15227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15230 exec 6>&1
15231 ## ----------------------------------- ##
15232 ## Main body of $CONFIG_STATUS script. ##
15233 ## ----------------------------------- ##
15234 _ASEOF
15235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238 # Save the log message, to keep $0 and so on meaningful, and to
15239 # report actual input values of CONFIG_FILES etc. instead of their
15240 # values after options handling.
15241 ac_log="
15242 This file was extended by $as_me, which was
15243 generated by GNU Autoconf 2.69. Invocation command line was
15245 CONFIG_FILES = $CONFIG_FILES
15246 CONFIG_HEADERS = $CONFIG_HEADERS
15247 CONFIG_LINKS = $CONFIG_LINKS
15248 CONFIG_COMMANDS = $CONFIG_COMMANDS
15249 $ $0 $@
15251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15254 _ACEOF
15256 case $ac_config_files in *"
15257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15258 esac
15260 case $ac_config_headers in *"
15261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15262 esac
15265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15266 # Files that config.status was made for.
15267 config_files="$ac_config_files"
15268 config_headers="$ac_config_headers"
15269 config_commands="$ac_config_commands"
15271 _ACEOF
15273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15274 ac_cs_usage="\
15275 \`$as_me' instantiates files and other configuration actions
15276 from templates according to the current configuration. Unless the files
15277 and actions are specified as TAGs, all are instantiated by default.
15279 Usage: $0 [OPTION]... [TAG]...
15281 -h, --help print this help, then exit
15282 -V, --version print version number and configuration settings, then exit
15283 --config print configuration, then exit
15284 -q, --quiet, --silent
15285 do not print progress messages
15286 -d, --debug don't remove temporary files
15287 --recheck update $as_me by reconfiguring in the same conditions
15288 --file=FILE[:TEMPLATE]
15289 instantiate the configuration file FILE
15290 --header=FILE[:TEMPLATE]
15291 instantiate the configuration header FILE
15293 Configuration files:
15294 $config_files
15296 Configuration headers:
15297 $config_headers
15299 Configuration commands:
15300 $config_commands
15302 Report bugs to the package provider."
15304 _ACEOF
15305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15307 ac_cs_version="\\
15308 config.status
15309 configured by $0, generated by GNU Autoconf 2.69,
15310 with options \\"\$ac_cs_config\\"
15312 Copyright (C) 2012 Free Software Foundation, Inc.
15313 This config.status script is free software; the Free Software Foundation
15314 gives unlimited permission to copy, distribute and modify it."
15316 ac_pwd='$ac_pwd'
15317 srcdir='$srcdir'
15318 test -n "\$AWK" || AWK=awk
15319 _ACEOF
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322 # The default lists apply if the user does not specify any file.
15323 ac_need_defaults=:
15324 while test $# != 0
15326 case $1 in
15327 --*=?*)
15328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15330 ac_shift=:
15332 --*=)
15333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15334 ac_optarg=
15335 ac_shift=:
15338 ac_option=$1
15339 ac_optarg=$2
15340 ac_shift=shift
15342 esac
15344 case $ac_option in
15345 # Handling of the options.
15346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15347 ac_cs_recheck=: ;;
15348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15349 $as_echo "$ac_cs_version"; exit ;;
15350 --config | --confi | --conf | --con | --co | --c )
15351 $as_echo "$ac_cs_config"; exit ;;
15352 --debug | --debu | --deb | --de | --d | -d )
15353 debug=: ;;
15354 --file | --fil | --fi | --f )
15355 $ac_shift
15356 case $ac_optarg in
15357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15358 '') as_fn_error $? "missing file argument" ;;
15359 esac
15360 as_fn_append CONFIG_FILES " '$ac_optarg'"
15361 ac_need_defaults=false;;
15362 --header | --heade | --head | --hea )
15363 $ac_shift
15364 case $ac_optarg in
15365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15366 esac
15367 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15368 ac_need_defaults=false;;
15369 --he | --h)
15370 # Conflict between --help and --header
15371 as_fn_error $? "ambiguous option: \`$1'
15372 Try \`$0 --help' for more information.";;
15373 --help | --hel | -h )
15374 $as_echo "$ac_cs_usage"; exit ;;
15375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15377 ac_cs_silent=: ;;
15379 # This is an error.
15380 -*) as_fn_error $? "unrecognized option: \`$1'
15381 Try \`$0 --help' for more information." ;;
15383 *) as_fn_append ac_config_targets " $1"
15384 ac_need_defaults=false ;;
15386 esac
15387 shift
15388 done
15390 ac_configure_extra_args=
15392 if $ac_cs_silent; then
15393 exec 6>/dev/null
15394 ac_configure_extra_args="$ac_configure_extra_args --silent"
15397 _ACEOF
15398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15399 if \$ac_cs_recheck; then
15400 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15401 shift
15402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15403 CONFIG_SHELL='$SHELL'
15404 export CONFIG_SHELL
15405 exec "\$@"
15408 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 exec 5>>config.log
15412 echo
15413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15414 ## Running $as_me. ##
15415 _ASBOX
15416 $as_echo "$ac_log"
15417 } >&5
15419 _ACEOF
15420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15422 # INIT-COMMANDS
15424 aros_tools_dir=${aros_tools_dir}
15427 aros_host_exe_suffix=${aros_host_exe_suffix}
15428 aros_tools_dir=${aros_tools_dir}
15429 aros_target_cpu=${aros_target_cpu}
15430 aros_target_arch=${aros_target_arch}
15431 aros_target_suffix=${aros_target_suffix}
15432 orig_target_nm=${orig_target_nm}
15433 orig_target_as=${orig_target_as}
15434 orig_target_ar=${orig_target_ar}
15435 orig_target_ranlib=${orig_target_ranlib}
15436 orig_target_objdump=${orig_target_objdump}
15437 orig_target_objcopy=${orig_target_objcopy}
15438 orig_target_strip=${orig_target_strip}
15439 aros_kernel_ld=${aros_kernel_ld}
15443 aros_host_exe_suffix=${aros_host_exe_suffix}
15444 aros_tools_dir=${aros_tools_dir}
15445 aros_target_cpu=${aros_target_cpu}
15446 aros_target_arch=${aros_target_arch}
15447 aros_target_suffix=${aros_target_suffix}
15448 aros_kernel_ld=${aros_kernel_ld}
15452 aros_host_exe_suffix=${aros_host_exe_suffix}
15453 aros_tools_dir=${aros_tools_dir}
15454 aros_target_cpu=${aros_target_cpu}
15455 aros_target_arch=${aros_target_arch}
15456 aros_target_suffix=${aros_target_suffix}
15460 _ACEOF
15462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 # Handling of arguments.
15465 for ac_config_target in $ac_config_targets
15467 case $ac_config_target in
15468 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15469 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15471 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15472 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15473 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15474 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15475 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15476 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15477 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15478 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15479 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15480 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15481 "${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" ;;
15482 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15483 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15484 "${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" ;;
15485 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15486 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15487 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15488 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15489 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15490 "${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" ;;
15491 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15493 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15494 esac
15495 done
15498 # If the user did not use the arguments to specify the items to instantiate,
15499 # then the envvar interface is used. Set only those that are not.
15500 # We use the long form for the default assignment because of an extremely
15501 # bizarre bug on SunOS 4.1.3.
15502 if $ac_need_defaults; then
15503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15508 # Have a temporary directory for convenience. Make it in the build tree
15509 # simply because there is no reason against having it here, and in addition,
15510 # creating and moving files from /tmp can sometimes cause problems.
15511 # Hook for its removal unless debugging.
15512 # Note that there is a small window in which the directory will not be cleaned:
15513 # after its creation but before its name has been assigned to `$tmp'.
15514 $debug ||
15516 tmp= ac_tmp=
15517 trap 'exit_status=$?
15518 : "${ac_tmp:=$tmp}"
15519 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15521 trap 'as_fn_exit 1' 1 2 13 15
15523 # Create a (secure) tmp directory for tmp files.
15526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15527 test -d "$tmp"
15528 } ||
15530 tmp=./conf$$-$RANDOM
15531 (umask 077 && mkdir "$tmp")
15532 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15533 ac_tmp=$tmp
15535 # Set up the scripts for CONFIG_FILES section.
15536 # No need to generate them if there are no CONFIG_FILES.
15537 # This happens for instance with `./config.status config.h'.
15538 if test -n "$CONFIG_FILES"; then
15541 ac_cr=`echo X | tr X '\015'`
15542 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15543 # But we know of no other shell where ac_cr would be empty at this
15544 # point, so we can use a bashism as a fallback.
15545 if test "x$ac_cr" = x; then
15546 eval ac_cr=\$\'\\r\'
15548 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15549 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15550 ac_cs_awk_cr='\\r'
15551 else
15552 ac_cs_awk_cr=$ac_cr
15555 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15556 _ACEOF
15560 echo "cat >conf$$subs.awk <<_ACEOF" &&
15561 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15562 echo "_ACEOF"
15563 } >conf$$subs.sh ||
15564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15565 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15566 ac_delim='%!_!# '
15567 for ac_last_try in false false false false false :; do
15568 . ./conf$$subs.sh ||
15569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15571 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15572 if test $ac_delim_n = $ac_delim_num; then
15573 break
15574 elif $ac_last_try; then
15575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15576 else
15577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15579 done
15580 rm -f conf$$subs.sh
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15584 _ACEOF
15585 sed -n '
15587 s/^/S["/; s/!.*/"]=/
15590 s/^[^!]*!//
15591 :repl
15592 t repl
15593 s/'"$ac_delim"'$//
15594 t delim
15597 s/\(.\{148\}\)..*/\1/
15598 t more1
15599 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15602 b repl
15603 :more1
15604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607 s/.\{148\}//
15608 t nl
15609 :delim
15611 s/\(.\{148\}\)..*/\1/
15612 t more2
15613 s/["\\]/\\&/g; s/^/"/; s/$/"/
15616 :more2
15617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620 s/.\{148\}//
15621 t delim
15622 ' <conf$$subs.awk | sed '
15623 /^[^""]/{
15625 s/\n//
15627 ' >>$CONFIG_STATUS || ac_write_fail=1
15628 rm -f conf$$subs.awk
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 _ACAWK
15631 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15632 for (key in S) S_is_set[key] = 1
15633 FS = "\a"
15637 line = $ 0
15638 nfields = split(line, field, "@")
15639 substed = 0
15640 len = length(field[1])
15641 for (i = 2; i < nfields; i++) {
15642 key = field[i]
15643 keylen = length(key)
15644 if (S_is_set[key]) {
15645 value = S[key]
15646 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15647 len += length(value) + length(field[++i])
15648 substed = 1
15649 } else
15650 len += 1 + keylen
15653 print line
15656 _ACAWK
15657 _ACEOF
15658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15659 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15660 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15661 else
15663 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15664 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15665 _ACEOF
15667 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15668 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15669 # trailing colons and then remove the whole line if VPATH becomes empty
15670 # (actually we leave an empty line to preserve line numbers).
15671 if test "x$srcdir" = x.; then
15672 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15674 s///
15675 s/^/:/
15676 s/[ ]*$/:/
15677 s/:\$(srcdir):/:/g
15678 s/:\${srcdir}:/:/g
15679 s/:@srcdir@:/:/g
15680 s/^:*//
15681 s/:*$//
15683 s/\(=[ ]*\).*/\1/
15685 s/\n//
15686 s/^[^=]*=[ ]*$//
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 fi # test -n "$CONFIG_FILES"
15693 # Set up the scripts for CONFIG_HEADERS section.
15694 # No need to generate them if there are no CONFIG_HEADERS.
15695 # This happens for instance with `./config.status Makefile'.
15696 if test -n "$CONFIG_HEADERS"; then
15697 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15698 BEGIN {
15699 _ACEOF
15701 # Transform confdefs.h into an awk script `defines.awk', embedded as
15702 # here-document in config.status, that substitutes the proper values into
15703 # config.h.in to produce config.h.
15705 # Create a delimiter string that does not exist in confdefs.h, to ease
15706 # handling of long lines.
15707 ac_delim='%!_!# '
15708 for ac_last_try in false false :; do
15709 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15710 if test -z "$ac_tt"; then
15711 break
15712 elif $ac_last_try; then
15713 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15714 else
15715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15717 done
15719 # For the awk script, D is an array of macro values keyed by name,
15720 # likewise P contains macro parameters if any. Preserve backslash
15721 # newline sequences.
15723 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15724 sed -n '
15725 s/.\{148\}/&'"$ac_delim"'/g
15726 t rset
15727 :rset
15728 s/^[ ]*#[ ]*define[ ][ ]*/ /
15729 t def
15731 :def
15732 s/\\$//
15733 t bsnl
15734 s/["\\]/\\&/g
15735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15736 D["\1"]=" \3"/p
15737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15739 :bsnl
15740 s/["\\]/\\&/g
15741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15742 D["\1"]=" \3\\\\\\n"\\/p
15743 t cont
15744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15745 t cont
15747 :cont
15749 s/.\{148\}/&'"$ac_delim"'/g
15750 t clear
15751 :clear
15752 s/\\$//
15753 t bsnlc
15754 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15756 :bsnlc
15757 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15758 b cont
15759 ' <confdefs.h | sed '
15760 s/'"$ac_delim"'/"\\\
15761 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15764 for (key in D) D_is_set[key] = 1
15765 FS = "\a"
15767 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15768 line = \$ 0
15769 split(line, arg, " ")
15770 if (arg[1] == "#") {
15771 defundef = arg[2]
15772 mac1 = arg[3]
15773 } else {
15774 defundef = substr(arg[1], 2)
15775 mac1 = arg[2]
15777 split(mac1, mac2, "(") #)
15778 macro = mac2[1]
15779 prefix = substr(line, 1, index(line, defundef) - 1)
15780 if (D_is_set[macro]) {
15781 # Preserve the white space surrounding the "#".
15782 print prefix "define", macro P[macro] D[macro]
15783 next
15784 } else {
15785 # Replace #undef with comments. This is necessary, for example,
15786 # in the case of _POSIX_SOURCE, which is predefined and required
15787 # on some systems where configure will not decide to define it.
15788 if (defundef == "undef") {
15789 print "/*", prefix defundef, macro, "*/"
15790 next
15794 { print }
15795 _ACAWK
15796 _ACEOF
15797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15799 fi # test -n "$CONFIG_HEADERS"
15802 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15803 shift
15804 for ac_tag
15806 case $ac_tag in
15807 :[FHLC]) ac_mode=$ac_tag; continue;;
15808 esac
15809 case $ac_mode$ac_tag in
15810 :[FHL]*:*);;
15811 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15812 :[FH]-) ac_tag=-:-;;
15813 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15814 esac
15815 ac_save_IFS=$IFS
15816 IFS=:
15817 set x $ac_tag
15818 IFS=$ac_save_IFS
15819 shift
15820 ac_file=$1
15821 shift
15823 case $ac_mode in
15824 :L) ac_source=$1;;
15825 :[FH])
15826 ac_file_inputs=
15827 for ac_f
15829 case $ac_f in
15830 -) ac_f="$ac_tmp/stdin";;
15831 *) # Look for the file first in the build tree, then in the source tree
15832 # (if the path is not absolute). The absolute path cannot be DOS-style,
15833 # because $ac_f cannot contain `:'.
15834 test -f "$ac_f" ||
15835 case $ac_f in
15836 [\\/$]*) false;;
15837 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15838 esac ||
15839 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15840 esac
15841 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15842 as_fn_append ac_file_inputs " '$ac_f'"
15843 done
15845 # Let's still pretend it is `configure' which instantiates (i.e., don't
15846 # use $as_me), people would be surprised to read:
15847 # /* config.h. Generated by config.status. */
15848 configure_input='Generated from '`
15849 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15850 `' by configure.'
15851 if test x"$ac_file" != x-; then
15852 configure_input="$ac_file. $configure_input"
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15854 $as_echo "$as_me: creating $ac_file" >&6;}
15856 # Neutralize special characters interpreted by sed in replacement strings.
15857 case $configure_input in #(
15858 *\&* | *\|* | *\\* )
15859 ac_sed_conf_input=`$as_echo "$configure_input" |
15860 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15861 *) ac_sed_conf_input=$configure_input;;
15862 esac
15864 case $ac_tag in
15865 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15867 esac
15869 esac
15871 ac_dir=`$as_dirname -- "$ac_file" ||
15872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15873 X"$ac_file" : 'X\(//\)[^/]' \| \
15874 X"$ac_file" : 'X\(//\)$' \| \
15875 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15876 $as_echo X"$ac_file" |
15877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15878 s//\1/
15881 /^X\(\/\/\)[^/].*/{
15882 s//\1/
15885 /^X\(\/\/\)$/{
15886 s//\1/
15889 /^X\(\/\).*/{
15890 s//\1/
15893 s/.*/./; q'`
15894 as_dir="$ac_dir"; as_fn_mkdir_p
15895 ac_builddir=.
15897 case "$ac_dir" in
15898 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15901 # A ".." for each directory in $ac_dir_suffix.
15902 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15903 case $ac_top_builddir_sub in
15904 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15905 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15906 esac ;;
15907 esac
15908 ac_abs_top_builddir=$ac_pwd
15909 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15910 # for backward compatibility:
15911 ac_top_builddir=$ac_top_build_prefix
15913 case $srcdir in
15914 .) # We are building in place.
15915 ac_srcdir=.
15916 ac_top_srcdir=$ac_top_builddir_sub
15917 ac_abs_top_srcdir=$ac_pwd ;;
15918 [\\/]* | ?:[\\/]* ) # Absolute name.
15919 ac_srcdir=$srcdir$ac_dir_suffix;
15920 ac_top_srcdir=$srcdir
15921 ac_abs_top_srcdir=$srcdir ;;
15922 *) # Relative name.
15923 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15924 ac_top_srcdir=$ac_top_build_prefix$srcdir
15925 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15926 esac
15927 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15930 case $ac_mode in
15933 # CONFIG_FILE
15936 _ACEOF
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 # If the template does not know about datarootdir, expand it.
15940 # FIXME: This hack should be removed a few years after 2.60.
15941 ac_datarootdir_hack=; ac_datarootdir_seen=
15942 ac_sed_dataroot='
15943 /datarootdir/ {
15947 /@datadir@/p
15948 /@docdir@/p
15949 /@infodir@/p
15950 /@localedir@/p
15951 /@mandir@/p'
15952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15953 *datarootdir*) ac_datarootdir_seen=yes;;
15954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15957 _ACEOF
15958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15959 ac_datarootdir_hack='
15960 s&@datadir@&$datadir&g
15961 s&@docdir@&$docdir&g
15962 s&@infodir@&$infodir&g
15963 s&@localedir@&$localedir&g
15964 s&@mandir@&$mandir&g
15965 s&\\\${datarootdir}&$datarootdir&g' ;;
15966 esac
15967 _ACEOF
15969 # Neutralize VPATH when `$srcdir' = `.'.
15970 # Shell code in configure.ac might set extrasub.
15971 # FIXME: do we really want to maintain this feature?
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973 ac_sed_extra="$ac_vpsub
15974 $extrasub
15975 _ACEOF
15976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15979 s|@configure_input@|$ac_sed_conf_input|;t t
15980 s&@top_builddir@&$ac_top_builddir_sub&;t t
15981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15982 s&@srcdir@&$ac_srcdir&;t t
15983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15984 s&@top_srcdir@&$ac_top_srcdir&;t t
15985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15986 s&@builddir@&$ac_builddir&;t t
15987 s&@abs_builddir@&$ac_abs_builddir&;t t
15988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15989 $ac_datarootdir_hack
15991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15992 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15995 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15996 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15997 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15999 which seems to be undefined. Please make sure it is defined" >&5
16000 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16001 which seems to be undefined. Please make sure it is defined" >&2;}
16003 rm -f "$ac_tmp/stdin"
16004 case $ac_file in
16005 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16006 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16007 esac \
16008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16012 # CONFIG_HEADER
16014 if test x"$ac_file" != x-; then
16016 $as_echo "/* $configure_input */" \
16017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16018 } >"$ac_tmp/config.h" \
16019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16020 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16023 else
16024 rm -f "$ac_file"
16025 mv "$ac_tmp/config.h" "$ac_file" \
16026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16028 else
16029 $as_echo "/* $configure_input */" \
16030 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16031 || as_fn_error $? "could not create -" "$LINENO" 5
16035 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16036 $as_echo "$as_me: executing $ac_file commands" >&6;}
16038 esac
16041 case $ac_file$ac_mode in
16042 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16043 "binutils-support":C)
16044 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16045 mkdir -p $prefix
16046 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16048 chmod a+x ${prefix2}-ld
16050 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16051 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16052 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16053 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16054 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16055 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16056 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16058 "elf-compiler-support":C)
16059 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16060 mkdir -p $prefix
16061 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16063 chmod a+x ${prefix2}-gcc
16065 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16067 "host-compiler-wrapper-support":C)
16068 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16069 mkdir -p $prefix
16070 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16072 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-cpp
16075 esac
16076 done # for ac_tag
16079 as_fn_exit 0
16080 _ACEOF
16081 ac_clean_files=$ac_clean_files_save
16083 test $ac_write_fail = 0 ||
16084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16087 # configure is writing to config.log, and then calls config.status.
16088 # config.status does its own redirection, appending to config.log.
16089 # Unfortunately, on DOS this fails, as config.log is still kept open
16090 # by configure, so config.status won't be able to write to it; its
16091 # output is simply discarded. So we exec the FD to /dev/null,
16092 # effectively closing config.log, so it can be properly (re)opened and
16093 # appended to by config.status. When coming back to configure, we
16094 # need to make the FD available again.
16095 if test "$no_create" != yes; then
16096 ac_cs_success=:
16097 ac_config_status_args=
16098 test "$silent" = yes &&
16099 ac_config_status_args="$ac_config_status_args --quiet"
16100 exec 5>/dev/null
16101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16102 exec 5>>config.log
16103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16104 # would make configure fail if this is the last instruction.
16105 $ac_cs_success || as_fn_exit 1
16107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16114 #XXX compatability...
16115 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16117 if test -n "$aros_shared_cflags" ; then
16118 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16119 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg