Removed empty directory. If it's needed in future, it should probably be
[AROS.git] / configure
blob96ac2c98ec7620da038a8195ccb8068332e50a48
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 objc_target
626 gcc_target_cpu
627 ignore_undefined_symbols
628 aros_modules_debug
629 aros_stack_debug
630 aros_mungwall_debug
631 aros_debug
632 ENABLE_X11
633 KERNEL_DBUS_INCLUDES
634 KERNEL_DBUS_KOBJ
635 DBUS_LIBFLAGS
636 DBUS_CFLAGS
637 ENABLE_DBUS
638 aros_android_antapk
639 aros_android_level
640 gcc_default_float_abi
641 gcc_default_fpu
642 gcc_default_cpu_tune
643 gcc_default_cpu
644 aros_ios_sdk
645 aros_ios_version
646 aros_ios_platform
647 aros_enable_mmu
648 aros_nesting_supervisor
649 aros_palm_debug_hack
650 aros_serial_debug
651 aros_host_sdl_libs
652 aros_host_sdl_cflags
653 aros_host_x11_libdirs
654 aros_host_x11_includes
655 DO_VIDMODE_SUPPORT
656 DO_XSHM_SUPPORT
657 aros_default_wbdepth
658 aros_default_wbheight
659 aros_default_wbwidth
660 oss_library_target
661 pci_hidd_target
662 sdl_hidd_target
663 unixgfx_hidd_target
664 aros_cflags_format_security
665 aros_cflags_strict_overflow
666 aros_cflags_enum_compare
667 aros_cflags_array_bounds
668 aros_cflags_unused_but_set_variable
669 crosstools_cxx_target
670 crosstools_target
671 aros_target_strip_flags
672 aros_target_genmap
673 aros_debug_ldflags
674 aros_debug_aflags
675 aros_debug_cflags
676 aros_target_cflags
677 aros_kernel_ldflags
678 aros_kernel_objcflags
679 aros_kernel_includes
680 aros_kernel_cflags
681 aros_shared_ldflags
682 aros_shared_aflags
683 aros_shared_cflags
684 aros_config_ldflags
685 aros_config_aflags
686 aros_config_cflags
687 aros_arch_libs
688 aros_compiler_libs
689 spec_obj_format
690 aros_object_format
691 aros_shared_ld
692 aros_shared_default
693 aros_target_nm
694 aros_target_strip
695 aros_target_objcopy
696 aros_target_objdump
697 aros_target_cc_path
698 aros_target_cc_includes
699 aros_target_ld
700 aros_target_as
701 aros_target_cpp
702 aros_target_cxx
703 aros_target_cc
704 aros_plain_ar
705 aros_plain_nm
706 aros_target_ranlib
707 aros_target_ar
708 aros_target_suffix
709 aros_target_variant
710 aros_target_cpu
711 aros_target_family
712 aros_target_arch
713 aros_target_bootloader
714 aros_target_iconset
715 aros_target_guitheme
716 aros_tools_dir
717 aros_host_lib_suffix
718 aros_host_exe_suffix
719 aros_host_mkargs
720 aros_host_mkdep
721 aros_host_debug
722 aros_host_ldflags
723 gnu89_inline
724 aros_host_cxxflags
725 aros_host_cflags
726 aros_host_make
727 aros_host_cxx
728 aros_host_cc
729 aros_host_cpp
730 aros_host_cpu
731 aros_host_arch
732 aros_cc_pre
733 aros_amigaos_compliance
734 AROS_PORTSSRCDIR
735 AROS_CROSSTOOLSDIR
736 SRCDIR
737 AROS_BUILDDIR_UNIX
738 AROS_BUILDDIR
739 aros_target_toolchain
740 aros_flavour_uc
741 aros_flavour
742 aros_cpu
743 aros_arch
744 SDL_LIBS
745 SDL_CFLAGS
746 SDL_CONFIG
747 XMKMF
748 aros_cflags_iquote_end
749 aros_cflags_iquote
750 kernel_cflags_iquote_end
751 kernel_cflags_iquote
752 host_cflags_iquote_end
753 host_cflags_iquote
754 aros_target_nostdlib_ldflags
755 aros_target_detach_ldflags
756 aros_target_nix_ldflags
757 aros_target_nostartup_ldflags
758 aros_target_nostdinc_cflags
759 aros_kernel_rescomp
760 orig_target_objdump
761 orig_target_objcopy
762 orig_target_strip
763 orig_target_nm
764 orig_target_ranlib
765 orig_target_ar
766 orig_target_as
767 orig_target_ld
768 orig_target_cxx
769 orig_target_cc
770 orig_target_cpp
771 aros_kernel_objdump
772 aros_kernel_objcopy
773 aros_kernel_strip
774 aros_kernel_nm
775 aros_kernel_ranlib
776 aros_kernel_ar
777 aros_kernel_as
778 aros_kernel_ld
779 aros_kernel_cxx
780 aros_kernel_cc
781 aros_kernel_cpp
782 target_gcc_version
784 android_tool
785 CCACHE
786 DISTCC
787 LIBOBJS
788 EGREP
789 GREP
791 TEST
794 pkgpyexecdir
795 pyexecdir
796 pkgpythondir
797 pythondir
798 PYTHON_PLATFORM
799 PYTHON_EXEC_PREFIX
800 PYTHON_PREFIX
801 PYTHON_VERSION
802 PYTHON
803 PATCH
804 CHMOD
806 PPMTOILBM
807 PNGTOPNM
808 FLEX
809 BISON
812 UNIQ
813 SORT
814 TOUCH
815 MKDIR
816 ECHO
820 aros_host_strip
821 aros_host_ranlib
822 aros_host_ar
823 aros_host_automake
824 aros_host_autoheader
825 aros_host_autoconf
826 aros_host_aclocal
827 aros_host_ld
828 MMAKE
831 ac_ct_CC
832 CFLAGS
834 OBJEXT
835 EXEEXT
836 ac_ct_CXX
837 CPPFLAGS
838 LDFLAGS
839 CXXFLAGS
841 host_os
842 host_vendor
843 host_cpu
844 host
845 build_os
846 build_vendor
847 build_cpu
848 build
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 localstatedir
869 sharedstatedir
870 sysconfdir
871 datadir
872 datarootdir
873 libexecdir
874 sbindir
875 bindir
876 program_transform_name
877 prefix
878 exec_prefix
879 PACKAGE_URL
880 PACKAGE_BUGREPORT
881 PACKAGE_STRING
882 PACKAGE_VERSION
883 PACKAGE_TARNAME
884 PACKAGE_NAME
885 PATH_SEPARATOR
886 SHELL'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_build_type
891 enable_debug
892 enable_distcc
893 enable_ccache
894 with_kernel_gcc_version
895 with_optimization
896 with_paranoia
897 enable_target_variant
898 with_xcode
899 with_sdk_version
900 with_sdk
901 with_ndk
902 with_ndk_version
903 with_apk_version
904 enable_amigaos_compliance
905 with_kernel_toolchain_prefix
906 with_elf_toolchain_prefix
907 with_aros_toolchain
908 enable_crosstools
909 with_aros_toolchain_install
910 with_use_gcc_version
911 enable_objc
912 with_cpu
913 with_fpu
914 with_float
915 with_portssources
916 with_bootloader
917 with_iconset
918 with_theme
919 enable_includes
920 with_resolution
921 with_serial_debug
922 enable_palm_debug_hack
923 enable_usb30_code
924 enable_nesting_supervisor
925 enable_mmu
926 enable_x11_hidd
927 with_x
928 enable_x11_shm
929 enable_x11_vidmode
930 enable_sdl_hidd
931 with_sdl_prefix
932 with_sdl_exec_prefix
933 enable_sdltest
934 enable_dbus
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CXXFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
946 CFLAGS
948 PYTHON
949 XMKMF'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *=) ac_optarg= ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1410 ac_tool_prefix=
1411 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413 test "$silent" = yes && exec 6>/dev/null
1416 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417 ac_ls_di=`ls -di .` &&
1418 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419 as_fn_error $? "working directory cannot be determined"
1420 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421 as_fn_error $? "pwd does not report name of working directory"
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1442 /^X\(\/\/\)$/{
1443 s//\1/
1446 /^X\(\/\).*/{
1447 s//\1/
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1455 else
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking ...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 X features:
1548 --x-includes=DIR X include files are in DIR
1549 --x-libraries=DIR X library files are in DIR
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-build-type=TYPE
1566 Select the build type. Available types are:
1567 personal, nightly, snapshot, milestone, release. Do
1568 NOT use this option unless you know what you are
1569 doing! (default=personal)
1570 --enable-debug=list Enable different types of debug. Commas or
1571 whitespaces can be used to separate the items in the
1572 list. Available types of debug are: all, none,
1573 messages, stack, mungwall, modules, symbols. If no
1574 list is provided then "all" is assumed.
1575 (default=none)
1576 --enable-distcc Use distcc as a front end to the compiler
1577 (default=no).
1578 --enable-ccache Use ccache as a front end to the compiler
1579 (default=no).
1580 --enable-target-variant=NAME
1581 Enable a specific target variant(default=none)
1582 --enable-amigaos-compliance=VERSION
1583 Enforce userspace AmigaOS compliance to a specific
1584 KickStart version (default=none).
1585 --disable-crosstools Do not build cross-compiler toolchain
1586 --disable-objc Build without Objectve-C support
1587 --enable-includes=dir Alternative system include directory
1588 --enable-palm-debug-hack
1589 Enable palm debug output hack in palm native
1590 (default=no)
1591 --enable-usb30-code Enable usb3.0 code (default=no)
1592 --enable-nesting-supervisor
1593 Enable nesting supervisor support in unix
1594 (default=no)
1595 --disable-mmu Disable MMU support (default=enabled)
1596 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1597 --enable-x11-shm use X11 shared memory (default=auto)
1598 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1599 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1600 --disable-sdltest Do not try to compile and run a test SDL program
1601 --enable-dbus Enable DBUS support via dbus.library (default=no)
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-kernel-gcc-version=VERSION
1607 Use gcc-VERSION for building bootstrap
1608 --with-optimization=FLAGS
1609 Use optimization flags FLAGS (default=-O2).
1610 --with-paranoia=FLAGS CC flags to enable paranoia
1611 --with-xcode=PATH Specify XCode path for iOS targets
1612 (default=/Developer).
1613 --with-sdk-version=VERSION
1614 Use iOS SDK version VERSION (default=4.1).
1615 --with-sdk=PATH Specify Android SDK path
1616 (default=$default_android_sdk).
1617 --with-ndk=PATH Specify Android NDK path (default=none).
1618 --with-sdk-version=LEVEL
1619 Use Android SDK for API LEVEL (default=12).
1620 --with-ndk-version=LEVEL
1621 Use Android NDK for API LEVEL (default=9).
1622 --with-apk-version=(release|debug)
1623 Which version of AROSBootstrap.apk to compile.
1624 Release version needs key for signing, debug version
1625 will only run in emulator. (default=release)
1626 --with-kernel-toolchain-prefix=...
1627 Specify crosscompile toolchain prefix for kernel
1628 objects
1629 --with-elf-toolchain-prefix=...
1630 Specify crosscompile toolchain prefix to wrap for
1631 AROS objects
1632 --with-aros-toolchain=PREFIX
1633 Specify prebuilt AROS toolchain
1634 --with-aros-toolchain-install=DIR
1635 Where to install or search for cross tools binaries
1636 --with-gcc-version=VERSION
1637 Use gcc-VERSION for building AROS
1638 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1639 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1640 --with-float=<spec> Specify floating point ABI
1641 (default=$gcc_default_float_abi).
1642 --with-portssources=DIR Where to download sourcecode for external ports
1643 --with-bootloader=NAME Use a specific bootloader
1644 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1645 --with-theme=NAME Use a specific GUI Theme
1646 --with-resolution=XRESxYRESxDEPTH
1647 Default resolution of the initial WorkbenchScreen
1648 --with-serial-debug Enable serial debug output in native (default=no)
1649 --with-x use the X Window System
1650 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1651 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1653 Some influential environment variables:
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 CPP C preprocessor
1664 PYTHON the Python interpreter
1665 XMKMF Path to xmkmf, Makefile generator for X Window System
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1670 Report bugs to the package provider.
1671 _ACEOF
1672 ac_status=$?
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 continue
1681 ac_builddir=.
1683 case "$ac_dir" in
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 esac ;;
1693 esac
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1699 case $srcdir in
1700 .) # We are building in place.
1701 ac_srcdir=.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1708 *) # Relative name.
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712 esac
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1723 else
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725 fi || ac_status=$?
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1727 done
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1732 cat <<\_ACEOF
1733 configure
1734 generated by GNU Autoconf 2.69
1736 Copyright (C) 2012 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740 exit
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=1
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_compile
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=1
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_compile
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_cpp ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_cpp
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1910 # accordingly.
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 else
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1934 else
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1950 else
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 yes:no: )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 no:yes:* )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=\$ac_header_compiler"
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1997 ac_fn_c_try_run ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2018 ac_status=$?
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2033 } # ac_fn_c_try_run
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2050 #include <$2>
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067 # ----------------------------------------------------
2068 # Tries to find if the field MEMBER exists in type AGGR, after including
2069 # INCLUDES, setting cache variable VAR accordingly.
2070 ac_fn_c_check_member ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074 $as_echo_n "checking for $2.$3... " >&6; }
2075 if eval \${$4+:} false; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static $2 ac_aggr;
2085 if (ac_aggr.$3)
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$4=yes"
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static $2 ac_aggr;
2101 if (sizeof ac_aggr.$3)
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$4=yes"
2109 else
2110 eval "$4=no"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$4
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_member
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126 # accordingly.
2127 ac_fn_c_check_decl ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 #ifndef $as_decl_name
2144 #ifdef __cplusplus
2145 (void) $as_decl_use;
2146 #else
2147 (void) $as_decl_name;
2148 #endif
2149 #endif
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$3=yes"
2157 else
2158 eval "$3=no"
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_decl
2169 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170 # -------------------------------------------
2171 # Tests whether TYPE exists after having included INCLUDES, setting cache
2172 # variable VAR accordingly.
2173 ac_fn_c_check_type ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \${$3+:} false; then :
2179 $as_echo_n "(cached) " >&6
2180 else
2181 eval "$3=no"
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2186 main ()
2188 if (sizeof ($2))
2189 return 0;
2191 return 0;
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 if (sizeof (($2)))
2202 return 0;
2204 return 0;
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2209 else
2210 eval "$3=yes"
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 } # ac_fn_c_check_type
2223 # ac_fn_c_check_func LINENO FUNC VAR
2224 # ----------------------------------
2225 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2226 ac_fn_c_check_func ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if eval \${$3+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233 else
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2238 #define $2 innocuous_$2
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char $2 (); below.
2242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2243 <limits.h> exists even on freestanding compilers. */
2245 #ifdef __STDC__
2246 # include <limits.h>
2247 #else
2248 # include <assert.h>
2249 #endif
2251 #undef $2
2253 /* Override any GCC internal prototype to avoid an error.
2254 Use char because int might match the return type of a GCC
2255 builtin and then its argument prototype would still apply. */
2256 #ifdef __cplusplus
2257 extern "C"
2258 #endif
2259 char $2 ();
2260 /* The GNU C library defines this for functions which it implements
2261 to always fail with ENOSYS. Some functions are actually named
2262 something starting with __ and the normal name is an alias. */
2263 #if defined __stub_$2 || defined __stub___$2
2264 choke me
2265 #endif
2268 main ()
2270 return $2 ();
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_link "$LINENO"; then :
2276 eval "$3=yes"
2277 else
2278 eval "$3=no"
2280 rm -f core conftest.err conftest.$ac_objext \
2281 conftest$ac_exeext conftest.$ac_ext
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 } # ac_fn_c_check_func
2289 cat >config.log <<_ACEOF
2290 This file contains any messages produced by compilers while
2291 running configure, to aid debugging if configure makes a mistake.
2293 It was created by $as_me, which was
2294 generated by GNU Autoconf 2.69. Invocation command line was
2296 $ $0 $@
2298 _ACEOF
2299 exec 5>>config.log
2301 cat <<_ASUNAME
2302 ## --------- ##
2303 ## Platform. ##
2304 ## --------- ##
2306 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2316 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2317 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2319 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2320 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2321 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323 _ASUNAME
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 $as_echo "PATH: $as_dir"
2331 done
2332 IFS=$as_save_IFS
2334 } >&5
2336 cat >&5 <<_ACEOF
2339 ## ----------- ##
2340 ## Core tests. ##
2341 ## ----------- ##
2343 _ACEOF
2346 # Keep a trace of the command line.
2347 # Strip out --no-create and --no-recursion so they do not pile up.
2348 # Strip out --silent because we don't want to record it for future runs.
2349 # Also quote any args containing shell meta-characters.
2350 # Make two passes to allow for proper duplicate-argument suppression.
2351 ac_configure_args=
2352 ac_configure_args0=
2353 ac_configure_args1=
2354 ac_must_keep_next=false
2355 for ac_pass in 1 2
2357 for ac_arg
2359 case $ac_arg in
2360 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2362 | -silent | --silent | --silen | --sile | --sil)
2363 continue ;;
2364 *\'*)
2365 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 esac
2367 case $ac_pass in
2368 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370 as_fn_append ac_configure_args1 " '$ac_arg'"
2371 if test $ac_must_keep_next = true; then
2372 ac_must_keep_next=false # Got value, back to normal.
2373 else
2374 case $ac_arg in
2375 *=* | --config-cache | -C | -disable-* | --disable-* \
2376 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2377 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2378 | -with-* | --with-* | -without-* | --without-* | --x)
2379 case "$ac_configure_args0 " in
2380 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381 esac
2383 -* ) ac_must_keep_next=true ;;
2384 esac
2386 as_fn_append ac_configure_args " '$ac_arg'"
2388 esac
2389 done
2390 done
2391 { ac_configure_args0=; unset ac_configure_args0;}
2392 { ac_configure_args1=; unset ac_configure_args1;}
2394 # When interrupted or exit'd, cleanup temporary files, and complete
2395 # config.log. We remove comments because anyway the quotes in there
2396 # would cause problems or look ugly.
2397 # WARNING: Use '\'' to represent an apostrophe within the trap.
2398 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399 trap 'exit_status=$?
2400 # Save into config.log some information that might help in debugging.
2402 echo
2404 $as_echo "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2407 echo
2408 # The following way of writing the cache mishandles newlines in values,
2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in #(
2413 *${as_nl}*)
2414 case $ac_var in #(
2415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 esac
2418 case $ac_var in #(
2419 _ | IFS | as_nl) ;; #(
2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421 *) { eval $ac_var=; unset $ac_var;} ;;
2422 esac ;;
2423 esac
2424 done
2425 (set) 2>&1 |
2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427 *${as_nl}ac_space=\ *)
2428 sed -n \
2429 "s/'\''/'\''\\\\'\'''\''/g;
2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 ;; #(
2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 esac |
2436 sort
2438 echo
2440 $as_echo "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2443 echo
2444 for ac_var in $ac_subst_vars
2446 eval ac_val=\$$ac_var
2447 case $ac_val in
2448 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 esac
2450 $as_echo "$ac_var='\''$ac_val'\''"
2451 done | sort
2452 echo
2454 if test -n "$ac_subst_files"; then
2455 $as_echo "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2458 echo
2459 for ac_var in $ac_subst_files
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2470 if test -s confdefs.h; then
2471 $as_echo "## ----------- ##
2472 ## confdefs.h. ##
2473 ## ----------- ##"
2474 echo
2475 cat confdefs.h
2476 echo
2478 test "$ac_signal" != 0 &&
2479 $as_echo "$as_me: caught signal $ac_signal"
2480 $as_echo "$as_me: exit $exit_status"
2481 } >&5
2482 rm -f core *.core core.conftest.* &&
2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 exit $exit_status
2486 for ac_signal in 1 2 13 15; do
2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488 done
2489 ac_signal=0
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest* confdefs.h
2494 $as_echo "/* confdefs.h */" > confdefs.h
2496 # Predefined preprocessor variables.
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 _ACEOF
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 _ACEOF
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_URL "$PACKAGE_URL"
2520 _ACEOF
2523 # Let the site file select an alternate cache file if it wants to.
2524 # Prefer an explicitly selected file to automatically selected ones.
2525 ac_site_file1=NONE
2526 ac_site_file2=NONE
2527 if test -n "$CONFIG_SITE"; then
2528 # We do not want a PATH search for config.site.
2529 case $CONFIG_SITE in #((
2530 -*) ac_site_file1=./$CONFIG_SITE;;
2531 */*) ac_site_file1=$CONFIG_SITE;;
2532 *) ac_site_file1=./$CONFIG_SITE;;
2533 esac
2534 elif test "x$prefix" != xNONE; then
2535 ac_site_file1=$prefix/share/config.site
2536 ac_site_file2=$prefix/etc/config.site
2537 else
2538 ac_site_file1=$ac_default_prefix/share/config.site
2539 ac_site_file2=$ac_default_prefix/etc/config.site
2541 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543 test "x$ac_site_file" = xNONE && continue
2544 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547 sed 's/^/| /' "$ac_site_file" >&5
2548 . "$ac_site_file" \
2549 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 as_fn_error $? "failed to load site script $ac_site_file
2552 See \`config.log' for more details" "$LINENO" 5; }
2554 done
2556 if test -r "$cache_file"; then
2557 # Some versions of bash will fail to source /dev/null (special files
2558 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2559 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561 $as_echo "$as_me: loading cache $cache_file" >&6;}
2562 case $cache_file in
2563 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2564 *) . "./$cache_file";;
2565 esac
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2569 $as_echo "$as_me: creating cache $cache_file" >&6;}
2570 >$cache_file
2573 as_fn_append ac_header_list " stdlib.h"
2574 as_fn_append ac_header_list " unistd.h"
2575 as_fn_append ac_header_list " sys/param.h"
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2585 set,)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,set)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,);;
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2609 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2611 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2612 fi;;
2613 esac
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2616 case $ac_new_val in
2617 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2619 esac
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623 esac
2625 done
2626 if $ac_cache_corrupted; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2631 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 ac_aux_dir=
2646 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2647 if test -f "$ac_dir/install-sh"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2650 break
2651 elif test -f "$ac_dir/install.sh"; then
2652 ac_aux_dir=$ac_dir
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2654 break
2655 elif test -f "$ac_dir/shtool"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2658 break
2660 done
2661 if test -z "$ac_aux_dir"; then
2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675 # Check what host we are running on.
2676 # If a target is not suggested, we use this one.
2677 # Note that what we call a target, Autoconf calls a host.
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 $as_echo_n "checking build system type... " >&6; }
2684 if ${ac_cv_build+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 ac_build_alias=$build_alias
2688 test "x$ac_build_alias" = x &&
2689 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2690 test "x$ac_build_alias" = x &&
2691 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697 $as_echo "$ac_cv_build" >&6; }
2698 case $ac_cv_build in
2699 *-*-*) ;;
2700 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2701 esac
2702 build=$ac_cv_build
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_build
2705 shift
2706 build_cpu=$1
2707 build_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 build_os=$*
2712 IFS=$ac_save_IFS
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if ${ac_cv_host+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test "x$host_alias" = x; then
2722 ac_cv_host=$ac_cv_build
2723 else
2724 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730 $as_echo "$ac_cv_host" >&6; }
2731 case $ac_cv_host in
2732 *-*-*) ;;
2733 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2734 esac
2735 host=$ac_cv_host
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_host
2738 shift
2739 host_cpu=$1
2740 host_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 host_os=$*
2745 IFS=$ac_save_IFS
2746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2750 # The AROS target is slightly different to the normal GNU style
2751 # format. We don't have the middle part, and we reverse the order
2752 # of the $(CPU) and $(OS) bits.
2754 # Don't strip the version of the target yet, it might be
2755 # useful on some systems.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2758 $as_echo_n "checking for AROS style target... " >&6; }
2760 if test "$target" = "NONE" ; then
2761 target=$host_os-$host_cpu
2762 else
2763 if test "$target" = "" ; then
2764 target=$host_os-$host_cpu
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2768 $as_echo "$target" >&6; }
2770 if test "$host_os" = "mingw32" ; then
2771 PWDCMD="pwd -W"
2774 # Don't know where else to put this...
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2776 $as_echo_n "checking building AROS in... " >&6; }
2777 AROS_BUILDDIR=`${PWDCMD-pwd}`
2778 AROS_BUILDDIR_UNIX=${PWD}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2780 $as_echo "$AROS_BUILDDIR" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2783 $as_echo_n "checking AROS source in... " >&6; }
2784 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2785 SRCDIR=${srcpwd}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2787 $as_echo "$SRCDIR" >&6; }
2789 # Parse the target field into something useful.
2791 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2792 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2795 # Some debug output, to be removed again.
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2797 $as_echo_n "checking for target system (debug output)... " >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2799 $as_echo "$target_os" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2801 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2803 $as_echo "$target_cpu" >&6; }
2805 aros_default_wbwidth=800
2806 aros_default_wbheight=600
2807 aros_default_wbdepth=4
2810 # The first step is to find the host binaries.
2811 # Check for a compiler.
2812 # Due to a bug in autoconf check for c++ compiler first.
2813 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2814 ac_ext=cpp
2815 ac_cpp='$CXXCPP $CPPFLAGS'
2816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2819 if test -z "$CXX"; then
2820 if test -n "$CCC"; then
2821 CXX=$CCC
2822 else
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_CXX+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 if test -n "$CXX"; then
2834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2856 $as_echo "$CXX" >&6; }
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$CXX" && break
2864 done
2866 if test -z "$CXX"; then
2867 ac_ct_CXX=$CXX
2868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$ac_ct_CXX"; then
2878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CXX="$ac_prog"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2898 if test -n "$ac_ct_CXX"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2900 $as_echo "$ac_ct_CXX" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2907 test -n "$ac_ct_CXX" && break
2908 done
2910 if test "x$ac_ct_CXX" = x; then
2911 CXX="g++"
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2918 esac
2919 CXX=$ac_ct_CXX
2925 # Provide some information about the compiler.
2926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2927 set X $ac_compile
2928 ac_compiler=$2
2929 for ac_option in --version -v -V -qversion; do
2930 { { ac_try="$ac_compiler $ac_option >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2938 ac_status=$?
2939 if test -s conftest.err; then
2940 sed '10a\
2941 ... rest of stderr output deleted ...
2942 10q' conftest.err >conftest.er1
2943 cat conftest.er1 >&5
2945 rm -f conftest.er1 conftest.err
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }
2948 done
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2954 main ()
2958 return 0;
2960 _ACEOF
2961 ac_clean_files_save=$ac_clean_files
2962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2963 # Try to create an executable without -o first, disregard a.out.
2964 # It will help us diagnose broken compilers, and finding out an intuition
2965 # of exeext.
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2967 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970 # The possible output files:
2971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2973 ac_rmfiles=
2974 for ac_file in $ac_files
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 esac
2980 done
2981 rm -f $ac_rmfiles
2983 if { { ac_try="$ac_link_default"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link_default") 2>&5
2991 ac_status=$?
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2997 # so that the user can short-circuit this test for compilers unknown to
2998 # Autoconf.
2999 for ac_file in $ac_files ''
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3005 [ab].out )
3006 # We found the default executable, but exeext='' is most
3007 # certainly right.
3008 break;;
3009 *.* )
3010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3011 then :; else
3012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 # We set ac_cv_exeext here because the later test for it is not
3015 # safe: cross compilers may not add the suffix if given an `-o'
3016 # argument, so we may need to know it at that point already.
3017 # Even if this section looks crufty: it has the advantage of
3018 # actually working.
3019 break;;
3021 break;;
3022 esac
3023 done
3024 test "$ac_cv_exeext" = no && ac_cv_exeext=
3026 else
3027 ac_file=''
3029 if test -z "$ac_file"; then :
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error 77 "C++ compiler cannot create executables
3038 See \`config.log' for more details" "$LINENO" 5; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041 $as_echo "yes" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3044 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3046 $as_echo "$ac_file" >&6; }
3047 ac_exeext=$ac_cv_exeext
3049 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3052 $as_echo_n "checking for suffix of executables... " >&6; }
3053 if { { ac_try="$ac_link"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; then :
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 # `rm'.
3068 for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 break;;
3074 * ) break;;
3075 esac
3076 done
3077 else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details" "$LINENO" 5; }
3083 rm -f conftest conftest$ac_cv_exeext
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3085 $as_echo "$ac_cv_exeext" >&6; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3089 ac_exeext=$EXEEXT
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 #include <stdio.h>
3094 main ()
3096 FILE *f = fopen ("conftest.out", "w");
3097 return ferror (f) || fclose (f) != 0;
3100 return 0;
3102 _ACEOF
3103 ac_clean_files="$ac_clean_files conftest.out"
3104 # Check that the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3107 $as_echo_n "checking whether we are cross compiling... " >&6; }
3108 if test "$cross_compiling" != yes; then
3109 { { ac_try="$ac_link"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }
3120 if { ac_try='./conftest$ac_cv_exeext'
3121 { { case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; }; then
3131 cross_compiling=no
3132 else
3133 if test "$cross_compiling" = maybe; then
3134 cross_compiling=yes
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot run C++ compiled programs.
3139 If you meant to cross compile, use \`--host'.
3140 See \`config.log' for more details" "$LINENO" 5; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3145 $as_echo "$cross_compiling" >&6; }
3147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3148 ac_clean_files=$ac_clean_files_save
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3150 $as_echo_n "checking for suffix of object files... " >&6; }
3151 if ${ac_cv_objext+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3158 main ()
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.o conftest.obj
3166 if { { ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184 done
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3197 $as_echo "$ac_cv_objext" >&6; }
3198 OBJEXT=$ac_cv_objext
3199 ac_objext=$OBJEXT
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3201 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3202 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3209 main ()
3211 #ifndef __GNUC__
3212 choke me
3213 #endif
3216 return 0;
3218 _ACEOF
3219 if ac_fn_cxx_try_compile "$LINENO"; then :
3220 ac_compiler_gnu=yes
3221 else
3222 ac_compiler_gnu=no
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3229 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3230 if test $ac_compiler_gnu = yes; then
3231 GXX=yes
3232 else
3233 GXX=
3235 ac_test_CXXFLAGS=${CXXFLAGS+set}
3236 ac_save_CXXFLAGS=$CXXFLAGS
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3238 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3239 if ${ac_cv_prog_cxx_g+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3243 ac_cxx_werror_flag=yes
3244 ac_cv_prog_cxx_g=no
3245 CXXFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 if ac_fn_cxx_try_compile "$LINENO"; then :
3258 ac_cv_prog_cxx_g=yes
3259 else
3260 CXXFLAGS=""
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 :
3274 else
3275 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3276 CXXFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3281 main ()
3285 return 0;
3287 _ACEOF
3288 if ac_fn_cxx_try_compile "$LINENO"; then :
3289 ac_cv_prog_cxx_g=yes
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3299 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3300 if test "$ac_test_CXXFLAGS" = set; then
3301 CXXFLAGS=$ac_save_CXXFLAGS
3302 elif test $ac_cv_prog_cxx_g = yes; then
3303 if test "$GXX" = yes; then
3304 CXXFLAGS="-g -O2"
3305 else
3306 CXXFLAGS="-g"
3308 else
3309 if test "$GXX" = yes; then
3310 CXXFLAGS="-O2"
3311 else
3312 CXXFLAGS=
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3414 else
3415 CC="$ac_cv_prog_CC"
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3557 done
3559 if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3584 done
3585 done
3586 IFS=$as_save_IFS
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3601 done
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details" "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 done
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 main ()
3660 #ifndef __GNUC__
3661 choke me
3662 #endif
3665 return 0;
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_compiler_gnu=yes
3670 else
3671 ac_compiler_gnu=no
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679 if test $ac_compiler_gnu = yes; then
3680 GCC=yes
3681 else
3682 GCC=
3684 ac_test_CFLAGS=${CFLAGS+set}
3685 ac_save_CFLAGS=$CFLAGS
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 if ${ac_cv_prog_cc_g+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 ac_save_c_werror_flag=$ac_c_werror_flag
3692 ac_c_werror_flag=yes
3693 ac_cv_prog_cc_g=no
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 else
3709 CFLAGS=""
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 :
3723 else
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 if test "$ac_test_CFLAGS" = set; then
3750 CFLAGS=$ac_save_CFLAGS
3751 elif test $ac_cv_prog_cc_g = yes; then
3752 if test "$GCC" = yes; then
3753 CFLAGS="-g -O2"
3754 else
3755 CFLAGS="-g"
3757 else
3758 if test "$GCC" = yes; then
3759 CFLAGS="-O2"
3760 else
3761 CFLAGS=
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 if ${ac_cv_prog_cc_c89+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_cv_prog_cc_c89=no
3770 ac_save_CC=$CC
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdarg.h>
3774 #include <stdio.h>
3775 struct stat;
3776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777 struct buf { int x; };
3778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779 static char *e (p, i)
3780 char **p;
3781 int i;
3783 return p[i];
3785 static char *f (char * (*g) (char **, int), char **p, ...)
3787 char *s;
3788 va_list v;
3789 va_start (v,p);
3790 s = g (p, va_arg (v,int));
3791 va_end (v);
3792 return s;
3795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796 function prototypes and stuff, but not '\xHH' hex character constants.
3797 These don't provoke an error unfortunately, instead are silently treated
3798 as 'x'. The following induces an error, until -std is added to get
3799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800 array size at least. It's necessary to write '\x00'==0 to get something
3801 that's true only with -std. */
3802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805 inside strings and character constants. */
3806 #define FOO(x) 'x'
3807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809 int test (int i, double x);
3810 struct s1 {int (*f) (int a);};
3811 struct s2 {int (*f) (double a);};
3812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813 int argc;
3814 char **argv;
3816 main ()
3818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3820 return 0;
3822 _ACEOF
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826 CC="$ac_save_CC $ac_arg"
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_c89=$ac_arg
3830 rm -f core conftest.err conftest.$ac_objext
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 done
3833 rm -f conftest.$ac_ext
3834 CC=$ac_save_CC
3837 # AC_CACHE_VAL
3838 case "x$ac_cv_prog_cc_c89" in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 $as_echo "none needed" >&6; } ;;
3842 xno)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 $as_echo "unsupported" >&6; } ;;
3846 CC="$CC $ac_cv_prog_cc_c89"
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 esac
3850 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 case $ac_cv_prog_cc_stdc in #(
3861 no) :
3862 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3863 *) :
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3865 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3866 if ${ac_cv_prog_cc_c99+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_cv_prog_cc_c99=no
3870 ac_save_CC=$CC
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <stdarg.h>
3874 #include <stdbool.h>
3875 #include <stdlib.h>
3876 #include <wchar.h>
3877 #include <stdio.h>
3879 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3880 #define debug(...) fprintf (stderr, __VA_ARGS__)
3881 #define showlist(...) puts (#__VA_ARGS__)
3882 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3883 static void
3884 test_varargs_macros (void)
3886 int x = 1234;
3887 int y = 5678;
3888 debug ("Flag");
3889 debug ("X = %d\n", x);
3890 showlist (The first, second, and third items.);
3891 report (x>y, "x is %d but y is %d", x, y);
3894 // Check long long types.
3895 #define BIG64 18446744073709551615ull
3896 #define BIG32 4294967295ul
3897 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3898 #if !BIG_OK
3899 your preprocessor is broken;
3900 #endif
3901 #if BIG_OK
3902 #else
3903 your preprocessor is broken;
3904 #endif
3905 static long long int bignum = -9223372036854775807LL;
3906 static unsigned long long int ubignum = BIG64;
3908 struct incomplete_array
3910 int datasize;
3911 double data[];
3914 struct named_init {
3915 int number;
3916 const wchar_t *name;
3917 double average;
3920 typedef const char *ccp;
3922 static inline int
3923 test_restrict (ccp restrict text)
3925 // See if C++-style comments work.
3926 // Iterate through items via the restricted pointer.
3927 // Also check for declarations in for loops.
3928 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3929 continue;
3930 return 0;
3933 // Check varargs and va_copy.
3934 static void
3935 test_varargs (const char *format, ...)
3937 va_list args;
3938 va_start (args, format);
3939 va_list args_copy;
3940 va_copy (args_copy, args);
3942 const char *str;
3943 int number;
3944 float fnumber;
3946 while (*format)
3948 switch (*format++)
3950 case 's': // string
3951 str = va_arg (args_copy, const char *);
3952 break;
3953 case 'd': // int
3954 number = va_arg (args_copy, int);
3955 break;
3956 case 'f': // float
3957 fnumber = va_arg (args_copy, double);
3958 break;
3959 default:
3960 break;
3963 va_end (args_copy);
3964 va_end (args);
3968 main ()
3971 // Check bool.
3972 _Bool success = false;
3974 // Check restrict.
3975 if (test_restrict ("String literal") == 0)
3976 success = true;
3977 char *restrict newvar = "Another string";
3979 // Check varargs.
3980 test_varargs ("s, d' f .", "string", 65, 34.234);
3981 test_varargs_macros ();
3983 // Check flexible array members.
3984 struct incomplete_array *ia =
3985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3986 ia->datasize = 10;
3987 for (int i = 0; i < ia->datasize; ++i)
3988 ia->data[i] = i * 1.234;
3990 // Check named initializers.
3991 struct named_init ni = {
3992 .number = 34,
3993 .name = L"Test wide string",
3994 .average = 543.34343,
3997 ni.number = 58;
3999 int dynamic_array[ni.number];
4000 dynamic_array[ni.number - 1] = 543;
4002 // work around unused variable warnings
4003 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4004 || dynamic_array[ni.number - 1] != 543);
4007 return 0;
4009 _ACEOF
4010 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c99=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c99" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c99" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028 xno)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c99"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4034 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c99" != xno; then :
4037 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041 if ${ac_cv_prog_cc_c89+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 ac_cv_prog_cc_c89=no
4045 ac_save_CC=$CC
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 struct stat;
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4055 char **p;
4056 int i;
4058 return p[i];
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4062 char *s;
4063 va_list v;
4064 va_start (v,p);
4065 s = g (p, va_arg (v,int));
4066 va_end (v);
4067 return s;
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4071 function prototypes and stuff, but not '\xHH' hex character constants.
4072 These don't provoke an error unfortunately, instead are silently treated
4073 as 'x'. The following induces an error, until -std is added to get
4074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4075 array size at least. It's necessary to write '\x00'==0 to get something
4076 that's true only with -std. */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080 inside strings and character constants. */
4081 #define FOO(x) 'x'
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 int argc;
4089 char **argv;
4091 main ()
4093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4095 return 0;
4097 _ACEOF
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 CC="$ac_save_CC $ac_arg"
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_c89=$ac_arg
4105 rm -f core conftest.err conftest.$ac_objext
4106 test "x$ac_cv_prog_cc_c89" != "xno" && break
4107 done
4108 rm -f conftest.$ac_ext
4109 CC=$ac_save_CC
4112 # AC_CACHE_VAL
4113 case "x$ac_cv_prog_cc_c89" in
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4116 $as_echo "none needed" >&6; } ;;
4117 xno)
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119 $as_echo "unsupported" >&6; } ;;
4121 CC="$CC $ac_cv_prog_cc_c89"
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4124 esac
4125 if test "x$ac_cv_prog_cc_c89" != xno; then :
4126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4127 else
4128 ac_cv_prog_cc_stdc=no
4133 esac
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4135 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4136 if ${ac_cv_prog_cc_stdc+:} false; then :
4137 $as_echo_n "(cached) " >&6
4140 case $ac_cv_prog_cc_stdc in #(
4141 no) :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4143 $as_echo "unsupported" >&6; } ;; #(
4144 '') :
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4146 $as_echo "none needed" >&6; } ;; #(
4147 *) :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4149 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4150 esac
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4159 # On Suns, sometimes $CPP names a directory.
4160 if test -n "$CPP" && test -d "$CPP"; then
4161 CPP=
4163 if test -z "$CPP"; then
4164 if ${ac_cv_prog_CPP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 # Double quotes because CPP needs to be expanded
4168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4170 ac_preproc_ok=false
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #ifdef __STDC__
4182 # include <limits.h>
4183 #else
4184 # include <assert.h>
4185 #endif
4186 Syntax error
4187 _ACEOF
4188 if ac_fn_c_try_cpp "$LINENO"; then :
4190 else
4191 # Broken: fails on valid input.
4192 continue
4194 rm -f conftest.err conftest.i conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <ac_nonexistent.h>
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203 # Broken: success on invalid input.
4204 continue
4205 else
4206 # Passes both tests.
4207 ac_preproc_ok=:
4208 break
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4212 done
4213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214 rm -f conftest.i conftest.err conftest.$ac_ext
4215 if $ac_preproc_ok; then :
4216 break
4219 done
4220 ac_cv_prog_CPP=$CPP
4223 CPP=$ac_cv_prog_CPP
4224 else
4225 ac_cv_prog_CPP=$CPP
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4228 $as_echo "$CPP" >&6; }
4229 ac_preproc_ok=false
4230 for ac_c_preproc_warn_flag in '' yes
4232 # Use a header file that comes with gcc, so configuring glibc
4233 # with a fresh cross-compiler works.
4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 # <limits.h> exists even on freestanding compilers.
4236 # On the NeXT, cc -E runs the code through the compiler's parser,
4237 # not just through cpp. "Syntax error" is here to catch this case.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #ifdef __STDC__
4241 # include <limits.h>
4242 #else
4243 # include <assert.h>
4244 #endif
4245 Syntax error
4246 _ACEOF
4247 if ac_fn_c_try_cpp "$LINENO"; then :
4249 else
4250 # Broken: fails on valid input.
4251 continue
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <ac_nonexistent.h>
4260 _ACEOF
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262 # Broken: success on invalid input.
4263 continue
4264 else
4265 # Passes both tests.
4266 ac_preproc_ok=:
4267 break
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4271 done
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.i conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then :
4276 else
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details" "$LINENO" 5; }
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 # Check for a compatible awk
4291 for ac_prog in gawk nawk
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AWK+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AWK="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 AWK=$ac_cv_prog_AWK
4321 if test -n "$AWK"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323 $as_echo "$AWK" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AWK" && break
4331 done
4333 if test "$AWK" = ""; then
4334 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4336 # Extract the first word of "mmake", so it can be a program name with args.
4337 set dummy mmake; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_MMAKE+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$MMAKE"; then
4344 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_MMAKE="mmake "
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4357 done
4358 done
4359 IFS=$as_save_IFS
4363 MMAKE=$ac_cv_prog_MMAKE
4364 if test -n "$MMAKE"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4366 $as_echo "$MMAKE" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4374 # Perform some default variable assignments. Note all of these will be
4375 # Regenerated from the script, so there is no need to cache them.
4377 aros_host_cpp="$CPP"
4378 aros_host_cc="$CC"
4379 aros_host_cxx="$CXX"
4380 if test "$GCC" = "yes"; then
4381 aros_gcc_ld=`$CC -print-prog-name=ld`
4382 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4383 set dummy `basename $aros_gcc_ld`; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_path_aros_host_ld+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 case $aros_host_ld in
4390 [\\/]* | ?:[\\/]*)
4391 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in `dirname $aros_gcc_ld`
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4410 esac
4412 aros_host_ld=$ac_cv_path_aros_host_ld
4413 if test -n "$aros_host_ld"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4415 $as_echo "$aros_host_ld" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4423 if test "$aros_host_ld" = ""; then
4424 # Extract the first word of "ld", so it can be a program name with args.
4425 set dummy ld; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_path_aros_host_ld+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 case $aros_host_ld in
4432 [\\/]* | ?:[\\/]*)
4433 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4452 esac
4454 aros_host_ld=$ac_cv_path_aros_host_ld
4455 if test -n "$aros_host_ld"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4457 $as_echo "$aros_host_ld" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4465 if test "$aros_host_ld" = ""; then
4466 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4468 aros_host_make="make"
4469 aros_host_cflags="$CFLAGS"
4470 aros_host_cxxflags="$CXXFLAGS"
4471 aros_host_ldflags="$LDFLAGS"
4472 aros_host_debug="-g -O0"
4473 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4474 aros_host_mkargs="--no-print-directory"
4475 aros_host_exe_suffix="$EXEEXT"
4476 aros_host_lib_suffix=""
4478 # Ignore all compliance, AROS ROMs = 0
4479 # KickStart v1.0 = 30
4480 # KickStart v1.3 = 34
4481 # KickStart v2.0 = 37
4482 # KickStart v3.0 = 39
4483 # KickStart v3.1 = 40
4484 # AmigaOS v3.5 = 44
4485 aros_amigaos_compliance=0
4487 for ac_prog in aclocal aclocal19 aclocal-1.9
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -n "$aros_host_aclocal"; then
4497 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_aros_host_aclocal="$ac_prog"
4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4510 done
4511 done
4512 IFS=$as_save_IFS
4516 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4517 if test -n "$aros_host_aclocal"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4519 $as_echo "$aros_host_aclocal" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4526 test -n "$aros_host_aclocal" && break
4527 done
4529 for ac_prog in autoconf autoconf259 autoconf253
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532 set dummy $ac_prog; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -n "$aros_host_autoconf"; then
4539 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_aros_host_autoconf="$ac_prog"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4552 done
4553 done
4554 IFS=$as_save_IFS
4558 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4559 if test -n "$aros_host_autoconf"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4561 $as_echo "$aros_host_autoconf" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4568 test -n "$aros_host_autoconf" && break
4569 done
4571 for ac_prog in autoheader autoheader259 autoheader253
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$aros_host_autoheader"; then
4581 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_aros_host_autoheader="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4601 if test -n "$aros_host_autoheader"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4603 $as_echo "$aros_host_autoheader" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$aros_host_autoheader" && break
4611 done
4613 for ac_prog in automake automake19 automake-1.9
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_aros_host_automake+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$aros_host_automake"; then
4623 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_aros_host_automake="$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4638 IFS=$as_save_IFS
4642 aros_host_automake=$ac_cv_prog_aros_host_automake
4643 if test -n "$aros_host_automake"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4645 $as_echo "$aros_host_automake" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4652 test -n "$aros_host_automake" && break
4653 done
4656 if test "$aros_host_aclocal" = ""; then
4657 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4659 if test "$aros_host_automake" = ""; then
4660 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4663 case "$aros_host_cc" in
4664 *gcc*)
4665 aros_host_cc_pipe="-pipe"
4667 icc)
4668 aros_host_cc_pipe=""
4671 aros_host_cc_pipe=""
4673 esac
4675 aros_kernel_cc_includes=""
4676 aros_target_cc_includes=""
4677 host_cc_elf=yes
4679 # ----------------------------------------------------------------------------------------
4680 # Host-specific defaults
4682 # This is the main host configuration section. It is where the host
4683 # can change the values of any variables it needs to change. We do
4684 # not look at anything that compiles to the target yet, we'll get
4685 # to that later.
4687 case "$host_os" in
4688 aros*)
4689 aros_host_arch="aros"
4690 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4691 case "$host_cpu" in
4692 *i?86*)
4693 aros_host_cpu="i386"
4695 *x86_64*)
4696 aros_host_cpu="x86_64"
4698 *powerpc*)
4699 aros_host_cpu="ppc"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4703 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4704 aros_host_cpu="$host_cpu"
4706 esac
4709 linux*)
4710 aros_host_arch="linux"
4711 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4712 android_build_os="linux-x86"
4713 android_tool="android"
4714 default_android_sdk="/opt/android-sdk-linux_x86"
4715 case "$host_cpu" in
4716 *i?86*)
4717 aros_host_cpu="i386"
4719 *x86_64*)
4720 aros_host_cpu="x86_64"
4722 *m68k*)
4723 aros_host_cpu="m68k"
4725 *powerpc*)
4726 aros_host_cpu="ppc"
4728 *arm*)
4729 aros_host_cpu="arm"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4733 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4734 aros_host_cpu="$host_cpu"
4736 esac
4739 freebsd*)
4740 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4741 aros_host_make="gmake"
4742 aros_host_arch="freebsd"
4743 aros_host_cpu="i386"
4745 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4747 case $host_os in
4748 freebsd[234]*)
4749 aros_object_format="elf_i386"
4753 aros_object_format="elf_i386_fbsd"
4755 esac
4759 darwin*)
4760 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4761 aros_host_arch="darwin"
4762 host_cc_elf=no
4763 SED="gsed"
4764 android_build_os="darwin-x86"
4765 android_tool="android"
4766 default_android_sdk="/android-sdk-mac_x86"
4767 case "$host_cpu" in
4768 *i?86*)
4769 aros_host_cpu="i386"
4771 *x86_64*)
4772 aros_host_cpu="x86_64"
4774 *powerpc*)
4775 aros_host_cpu="ppc"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4779 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4780 aros_host_cpu="$host_cpu"
4782 esac
4784 aros_host_ldflags="$aros_host_ldflags -liconv"
4788 dragonfly*)
4789 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4790 aros_host_make="gmake"
4791 aros_host_arch="dragonfly"
4792 case $host_cpu in
4793 *i?86*)
4794 aros_host_cpu="i386"
4796 *amd64*)
4797 aros_host_cpu="x86_64"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4801 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4802 aros_host_cpu="$host_cpu"
4804 esac
4807 netbsd*)
4808 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4809 aros_host_make="gmake"
4810 aros_host_arch="netbsd"
4811 case "$host_cpu" in
4812 *i?86*)
4813 aros_host_cpu="i386"
4815 *m68k*)
4816 aros_host_cpu="m68k"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4820 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4821 aros_host_cpu="$host_cpu"
4823 esac
4824 aros_host_lib_suffix=".0.0"
4827 openbsd*)
4828 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4829 aros_host_make="gmake"
4830 aros_host_arch="openbsd"
4831 case "$host_cpu" in
4832 *i?86*)
4833 aros_host_cpu="i386"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4837 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4838 aros_host_cpu="$host_cpu"
4840 esac
4843 solaris*)
4844 aros_host_arch="solaris"
4845 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4846 case "$host_cpu" in
4847 *i?86*)
4848 aros_host_cpu="i386"
4850 *sparc*)
4851 aros_host_cpu="sparc"
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 morphos*)
4862 aros_host_arch="morphos"
4863 aros_host_cpu="ppc"
4864 host_cc_elf=no
4867 amiga*)
4868 aros_host_arch="amiga"
4869 host_cc_elf=no
4870 SORT="/gg/bin/sort"
4871 TEST="/gg/bin/test"
4872 UNIQ="/gg/bin/uniq"
4873 FOR="for"
4874 TOUCH="/gg/bin/touch"
4875 case "$host_cpu" in
4876 *m68k*)
4877 aros_host_cpu="m68k"
4879 *powerpc*)
4880 aros_host_cpu="ppc"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4884 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4885 aros_host_cpu="$host_cpu"
4887 esac
4890 cygwin*)
4891 aros_host_arch="cygwin"
4892 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4893 host_cc_elf=no
4894 android_build_os="windows"
4895 android_tool="android.bat"
4896 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4898 case "$host_cpu" in
4899 *i?86*)
4900 aros_host_cpu="i386"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4904 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4905 aros_host_cpu="$host_cpu"
4907 esac
4910 mingw32*)
4911 aros_host_arch="mingw32"
4912 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4913 host_cc_elf=no
4914 android_build_os="windows"
4915 android_tool="android.bat"
4916 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4918 case "$host_cpu" in
4919 *i?86*)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4922 $as_echo_n "checking for Windows native gcc target... " >&6; }
4923 host_cpu=`gcc -dumpmachine`
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4925 $as_echo "$host_cpu" >&6; }
4928 esac
4930 case "$host_cpu" in
4931 *i?86*)
4932 aros_host_cpu="i386"
4935 mingw32*)
4936 aros_host_cpu="i386"
4939 *x86_64*)
4940 aros_host_cpu="x86_64"
4941 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4946 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4947 aros_host_cpu="$host_cpu"
4949 esac
4952 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4954 esac
4956 # Extract the first word of "ar", so it can be a program name with args.
4957 set dummy ar; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_aros_host_ar+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$aros_host_ar"; then
4964 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_aros_host_ar="ar cr"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 aros_host_ar=$ac_cv_prog_aros_host_ar
4984 if test -n "$aros_host_ar"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4986 $as_echo "$aros_host_ar" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 if test "$aros_host_ar" = ""; then
4994 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4996 # Extract the first word of "ranlib", so it can be a program name with args.
4997 set dummy ranlib; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$aros_host_ranlib"; then
5004 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_aros_host_ranlib="ranlib "
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5019 IFS=$as_save_IFS
5023 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
5024 if test -n "$aros_host_ranlib"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
5026 $as_echo "$aros_host_ranlib" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 if test "$aros_host_ranlib" = ""; then
5034 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5036 # Extract the first word of "strip", so it can be a program name with args.
5037 set dummy strip; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_aros_host_strip+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$aros_host_strip"; then
5044 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_aros_host_strip="strip "
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 aros_host_strip=$ac_cv_prog_aros_host_strip
5064 if test -n "$aros_host_strip"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5066 $as_echo "$aros_host_strip" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5073 if test "$aros_host_strip" = ""; then
5074 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5077 # Extract the first word of "rm", so it can be a program name with args.
5078 set dummy rm; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_RM+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$RM"; then
5085 ac_cv_prog_RM="$RM" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_RM="rm -rf"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5100 IFS=$as_save_IFS
5104 RM=$ac_cv_prog_RM
5105 if test -n "$RM"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5107 $as_echo "$RM" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5114 if test "$RM" = ""; then
5115 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5117 # Extract the first word of "cp", so it can be a program name with args.
5118 set dummy cp; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_CP+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$CP"; then
5125 ac_cv_prog_CP="$CP" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_CP="cp "
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 CP=$ac_cv_prog_CP
5145 if test -n "$CP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5147 $as_echo "$CP" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 if test "$CP" = ""; then
5155 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5157 # Extract the first word of "mv", so it can be a program name with args.
5158 set dummy mv; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_MV+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$MV"; then
5165 ac_cv_prog_MV="$MV" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_MV="mv "
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5180 IFS=$as_save_IFS
5184 MV=$ac_cv_prog_MV
5185 if test -n "$MV"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5187 $as_echo "$MV" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 if test "$MV" = ""; then
5195 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5197 # Extract the first word of "echo", so it can be a program name with args.
5198 set dummy echo; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_ECHO+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$ECHO"; then
5205 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ECHO="echo "
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5220 IFS=$as_save_IFS
5224 ECHO=$ac_cv_prog_ECHO
5225 if test -n "$ECHO"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5227 $as_echo "$ECHO" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 if test "$ECHO" = ""; then
5235 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5237 # Extract the first word of "mkdir", so it can be a program name with args.
5238 set dummy mkdir; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_MKDIR+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -n "$MKDIR"; then
5245 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_MKDIR="mkdir -p"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5260 IFS=$as_save_IFS
5264 MKDIR=$ac_cv_prog_MKDIR
5265 if test -n "$MKDIR"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5267 $as_echo "$MKDIR" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5274 if test "$MKDIR" = ""; then
5275 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5277 # Extract the first word of "touch", so it can be a program name with args.
5278 set dummy touch; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_TOUCH+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$TOUCH"; then
5285 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_TOUCH="touch "
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 TOUCH=$ac_cv_prog_TOUCH
5305 if test -n "$TOUCH"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5307 $as_echo "$TOUCH" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 if test "$TOUCH" = ""; then
5315 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5317 # Extract the first word of "sort", so it can be a program name with args.
5318 set dummy sort; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_SORT+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$SORT"; then
5325 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_SORT="sort "
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5344 SORT=$ac_cv_prog_SORT
5345 if test -n "$SORT"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5347 $as_echo "$SORT" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 if test "$SORT" = ""; then
5355 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5357 # Extract the first word of "uniq", so it can be a program name with args.
5358 set dummy uniq; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_UNIQ+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$UNIQ"; then
5365 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_UNIQ="uniq "
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5380 IFS=$as_save_IFS
5384 UNIQ=$ac_cv_prog_UNIQ
5385 if test -n "$UNIQ"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5387 $as_echo "$UNIQ" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5394 if test "$UNIQ" = ""; then
5395 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5397 # Extract the first word of "true", so it can be a program name with args.
5398 set dummy true; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_NOP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$NOP"; then
5405 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_NOP="true "
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5424 NOP=$ac_cv_prog_NOP
5425 if test -n "$NOP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5427 $as_echo "$NOP" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5434 if test "$NOP" = ""; then
5435 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5437 # Extract the first word of "cat", so it can be a program name with args.
5438 set dummy cat; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_CAT+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$CAT"; then
5445 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_CAT="cat "
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5464 CAT=$ac_cv_prog_CAT
5465 if test -n "$CAT"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5467 $as_echo "$CAT" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5474 if test "$CAT" = ""; then
5475 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5477 # Extract the first word of "bison", so it can be a program name with args.
5478 set dummy bison; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_BISON+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$BISON"; then
5485 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_BISON="bison "
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 BISON=$ac_cv_prog_BISON
5505 if test -n "$BISON"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5507 $as_echo "$BISON" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5514 if test "$BISON" = ""; then
5515 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5517 # Extract the first word of "flex", so it can be a program name with args.
5518 set dummy flex; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_FLEX+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$FLEX"; then
5525 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_FLEX="flex "
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 FLEX=$ac_cv_prog_FLEX
5545 if test -n "$FLEX"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5547 $as_echo "$FLEX" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5554 if test "$FLEX" = ""; then
5555 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5557 # Extract the first word of "pngtopnm", so it can be a program name with args.
5558 set dummy pngtopnm; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$PNGTOPNM"; then
5565 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_PNGTOPNM="pngtopnm "
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5578 done
5579 done
5580 IFS=$as_save_IFS
5584 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5585 if test -n "$PNGTOPNM"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5587 $as_echo "$PNGTOPNM" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5594 if test "$PNGTOPNM" = ""; then
5595 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5597 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5598 set dummy ppmtoilbm; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if test -n "$PPMTOILBM"; then
5605 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5618 done
5619 done
5620 IFS=$as_save_IFS
5624 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5625 if test -n "$PPMTOILBM"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5627 $as_echo "$PPMTOILBM" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5634 if test "$PPMTOILBM" = ""; then
5635 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5637 # Extract the first word of "sed", so it can be a program name with args.
5638 set dummy sed; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_SED+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$SED"; then
5645 ac_cv_prog_SED="$SED" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_SED="sed "
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5660 IFS=$as_save_IFS
5664 SED=$ac_cv_prog_SED
5665 if test -n "$SED"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5667 $as_echo "$SED" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5674 if test "$SED" = ""; then
5675 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5677 # Extract the first word of "chmod", so it can be a program name with args.
5678 set dummy chmod; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_CHMOD+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$CHMOD"; then
5685 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_CHMOD="chmod "
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5700 IFS=$as_save_IFS
5704 CHMOD=$ac_cv_prog_CHMOD
5705 if test -n "$CHMOD"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5707 $as_echo "$CHMOD" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5714 if test "$CHMOD" = ""; then
5715 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5717 # Extract the first word of "patch", so it can be a program name with args.
5718 set dummy patch; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_PATCH+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$PATCH"; then
5725 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_PATCH="patch "
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5744 PATCH=$ac_cv_prog_PATCH
5745 if test -n "$PATCH"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5747 $as_echo "$PATCH" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 if test "$PATCH" = ""; then
5755 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5764 if test -n "$PYTHON"; then
5765 # If the user set $PYTHON, use it and don't search something else.
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5767 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5768 prog="import sys
5769 # split strings by '.' and convert to numeric. Append some zeros
5770 # because we need at least 4 digits for the hex conversion.
5771 # map returns an iterator in Python 3.0 and a list in 2.x
5772 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5773 minverhex = 0
5774 # xrange is not present in Python 3.0 and range returns an iterator
5775 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5776 sys.exit(sys.hexversion < minverhex)"
5777 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5778 ($PYTHON -c "$prog") >&5 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; then :
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5783 $as_echo "yes" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5789 am_display_PYTHON=$PYTHON
5790 else
5791 # Otherwise, try each interpreter until we find one that satisfies
5792 # VERSION.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5794 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5795 if ${am_cv_pathless_PYTHON+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5799 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
5800 test "$am_cv_pathless_PYTHON" = none && break
5801 prog="import sys
5802 # split strings by '.' and convert to numeric. Append some zeros
5803 # because we need at least 4 digits for the hex conversion.
5804 # map returns an iterator in Python 3.0 and a list in 2.x
5805 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5806 minverhex = 0
5807 # xrange is not present in Python 3.0 and range returns an iterator
5808 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5809 sys.exit(sys.hexversion < minverhex)"
5810 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5811 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; then :
5815 break
5817 done
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5820 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5821 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5822 if test "$am_cv_pathless_PYTHON" = none; then
5823 PYTHON=:
5824 else
5825 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5826 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_path_PYTHON+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 case $PYTHON in
5833 [\\/]* | ?:[\\/]*)
5834 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5848 done
5849 done
5850 IFS=$as_save_IFS
5853 esac
5855 PYTHON=$ac_cv_path_PYTHON
5856 if test -n "$PYTHON"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5858 $as_echo "$PYTHON" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5866 am_display_PYTHON=$am_cv_pathless_PYTHON
5870 if test "$PYTHON" = :; then
5871 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5872 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5876 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5877 if ${am_cv_python_version+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5883 $as_echo "$am_cv_python_version" >&6; }
5884 PYTHON_VERSION=$am_cv_python_version
5888 PYTHON_PREFIX='${prefix}'
5890 PYTHON_EXEC_PREFIX='${exec_prefix}'
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5895 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5896 if ${am_cv_python_platform+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5902 $as_echo "$am_cv_python_platform" >&6; }
5903 PYTHON_PLATFORM=$am_cv_python_platform
5906 # Just factor out some code duplication.
5907 am_python_setup_sysconfig="\
5908 import sys
5909 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5910 # with python 3.x. See automake bug#10227.
5911 try:
5912 import sysconfig
5913 except ImportError:
5914 can_use_sysconfig = 0
5915 else:
5916 can_use_sysconfig = 1
5917 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5918 # <https://github.com/pypa/virtualenv/issues/118>
5919 try:
5920 from platform import python_implementation
5921 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5922 can_use_sysconfig = 0
5923 except ImportError:
5924 pass"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5928 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5929 if ${am_cv_python_pythondir+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test "x$prefix" = xNONE
5933 then
5934 am_py_prefix=$ac_default_prefix
5935 else
5936 am_py_prefix=$prefix
5938 am_cv_python_pythondir=`$PYTHON -c "
5939 $am_python_setup_sysconfig
5940 if can_use_sysconfig:
5941 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5942 else:
5943 from distutils import sysconfig
5944 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5945 sys.stdout.write(sitedir)"`
5946 case $am_cv_python_pythondir in
5947 $am_py_prefix*)
5948 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5949 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5952 case $am_py_prefix in
5953 /usr|/System*) ;;
5955 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5957 esac
5959 esac
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5963 $as_echo "$am_cv_python_pythondir" >&6; }
5964 pythondir=$am_cv_python_pythondir
5968 pkgpythondir=\${pythondir}/$PACKAGE
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5972 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5973 if ${am_cv_python_pyexecdir+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test "x$exec_prefix" = xNONE
5977 then
5978 am_py_exec_prefix=$am_py_prefix
5979 else
5980 am_py_exec_prefix=$exec_prefix
5982 am_cv_python_pyexecdir=`$PYTHON -c "
5983 $am_python_setup_sysconfig
5984 if can_use_sysconfig:
5985 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5986 else:
5987 from distutils import sysconfig
5988 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5989 sys.stdout.write(sitedir)"`
5990 case $am_cv_python_pyexecdir in
5991 $am_py_exec_prefix*)
5992 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5993 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5996 case $am_py_exec_prefix in
5997 /usr|/System*) ;;
5999 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6001 esac
6003 esac
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6007 $as_echo "$am_cv_python_pyexecdir" >&6; }
6008 pyexecdir=$am_cv_python_pyexecdir
6012 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6022 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6023 if ${ac_cv_lib_png_png_read_png+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-lpng $LIBS"
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6034 #ifdef __cplusplus
6035 extern "C"
6036 #endif
6037 char png_read_png ();
6039 main ()
6041 return png_read_png ();
6043 return 0;
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 ac_cv_lib_png_png_read_png=yes
6048 else
6049 ac_cv_lib_png_png_read_png=no
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6056 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6057 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6058 cat >>confdefs.h <<_ACEOF
6059 #define HAVE_LIBPNG 1
6060 _ACEOF
6062 LIBS="-lpng $LIBS"
6066 if test "$ac_cv_lib_png_png_read_png" = ""; then
6067 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6070 FOR=for
6072 IF=if
6074 TEST=test
6076 CMP=cmp
6080 # Check for some includes for the X11 HIDD and the kernel
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6083 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6084 if ${ac_cv_path_GREP+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if test -z "$GREP"; then
6088 ac_path_GREP_found=false
6089 # Loop through the user's path and test for each of PROGNAME-LIST
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_prog in grep ggrep; do
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6098 as_fn_executable_p "$ac_path_GREP" || continue
6099 # Check for GNU ac_path_GREP and select it if it is found.
6100 # Check for GNU $ac_path_GREP
6101 case `"$ac_path_GREP" --version 2>&1` in
6102 *GNU*)
6103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6105 ac_count=0
6106 $as_echo_n 0123456789 >"conftest.in"
6107 while :
6109 cat "conftest.in" "conftest.in" >"conftest.tmp"
6110 mv "conftest.tmp" "conftest.in"
6111 cp "conftest.in" "conftest.nl"
6112 $as_echo 'GREP' >> "conftest.nl"
6113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6115 as_fn_arith $ac_count + 1 && ac_count=$as_val
6116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6117 # Best one so far, save it but keep looking for a better one
6118 ac_cv_path_GREP="$ac_path_GREP"
6119 ac_path_GREP_max=$ac_count
6121 # 10*(2^10) chars as input seems more than enough
6122 test $ac_count -gt 10 && break
6123 done
6124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6125 esac
6127 $ac_path_GREP_found && break 3
6128 done
6129 done
6130 done
6131 IFS=$as_save_IFS
6132 if test -z "$ac_cv_path_GREP"; then
6133 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6135 else
6136 ac_cv_path_GREP=$GREP
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6141 $as_echo "$ac_cv_path_GREP" >&6; }
6142 GREP="$ac_cv_path_GREP"
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6146 $as_echo_n "checking for egrep... " >&6; }
6147 if ${ac_cv_path_EGREP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6151 then ac_cv_path_EGREP="$GREP -E"
6152 else
6153 if test -z "$EGREP"; then
6154 ac_path_EGREP_found=false
6155 # Loop through the user's path and test for each of PROGNAME-LIST
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_prog in egrep; do
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6164 as_fn_executable_p "$ac_path_EGREP" || continue
6165 # Check for GNU ac_path_EGREP and select it if it is found.
6166 # Check for GNU $ac_path_EGREP
6167 case `"$ac_path_EGREP" --version 2>&1` in
6168 *GNU*)
6169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6171 ac_count=0
6172 $as_echo_n 0123456789 >"conftest.in"
6173 while :
6175 cat "conftest.in" "conftest.in" >"conftest.tmp"
6176 mv "conftest.tmp" "conftest.in"
6177 cp "conftest.in" "conftest.nl"
6178 $as_echo 'EGREP' >> "conftest.nl"
6179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6181 as_fn_arith $ac_count + 1 && ac_count=$as_val
6182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6183 # Best one so far, save it but keep looking for a better one
6184 ac_cv_path_EGREP="$ac_path_EGREP"
6185 ac_path_EGREP_max=$ac_count
6187 # 10*(2^10) chars as input seems more than enough
6188 test $ac_count -gt 10 && break
6189 done
6190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6191 esac
6193 $ac_path_EGREP_found && break 3
6194 done
6195 done
6196 done
6197 IFS=$as_save_IFS
6198 if test -z "$ac_cv_path_EGREP"; then
6199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6201 else
6202 ac_cv_path_EGREP=$EGREP
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6208 $as_echo "$ac_cv_path_EGREP" >&6; }
6209 EGREP="$ac_cv_path_EGREP"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6213 $as_echo_n "checking for ANSI C header files... " >&6; }
6214 if ${ac_cv_header_stdc+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <stdlib.h>
6220 #include <stdarg.h>
6221 #include <string.h>
6222 #include <float.h>
6225 main ()
6229 return 0;
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 ac_cv_header_stdc=yes
6234 else
6235 ac_cv_header_stdc=no
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 if test $ac_cv_header_stdc = yes; then
6240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <string.h>
6245 _ACEOF
6246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247 $EGREP "memchr" >/dev/null 2>&1; then :
6249 else
6250 ac_cv_header_stdc=no
6252 rm -f conftest*
6256 if test $ac_cv_header_stdc = yes; then
6257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <stdlib.h>
6262 _ACEOF
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "free" >/dev/null 2>&1; then :
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f conftest*
6273 if test $ac_cv_header_stdc = yes; then
6274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6275 if test "$cross_compiling" = yes; then :
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <ctype.h>
6281 #include <stdlib.h>
6282 #if ((' ' & 0x0FF) == 0x020)
6283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6285 #else
6286 # define ISLOWER(c) \
6287 (('a' <= (c) && (c) <= 'i') \
6288 || ('j' <= (c) && (c) <= 'r') \
6289 || ('s' <= (c) && (c) <= 'z'))
6290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6291 #endif
6293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6295 main ()
6297 int i;
6298 for (i = 0; i < 256; i++)
6299 if (XOR (islower (i), ISLOWER (i))
6300 || toupper (i) != TOUPPER (i))
6301 return 2;
6302 return 0;
6304 _ACEOF
6305 if ac_fn_c_try_run "$LINENO"; then :
6307 else
6308 ac_cv_header_stdc=no
6310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6311 conftest.$ac_objext conftest.beam conftest.$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6317 $as_echo "$ac_cv_header_stdc" >&6; }
6318 if test $ac_cv_header_stdc = yes; then
6320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6326 inttypes.h stdint.h unistd.h
6327 do :
6328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6332 cat >>confdefs.h <<_ACEOF
6333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334 _ACEOF
6338 done
6341 for ac_header in sys/ipc.h sys/shm.h \
6342 sys/mmap.h sys/mman.h sysexits.h \
6343 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6345 do :
6346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6349 cat >>confdefs.h <<_ACEOF
6350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6351 _ACEOF
6355 done
6358 for ac_header in sys/mount.h
6359 do :
6360 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6362 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define HAVE_SYS_MOUNT_H 1
6365 _ACEOF
6369 done
6372 ac_header_dirent=no
6373 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6374 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6376 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6377 if eval \${$as_ac_Header+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <sys/types.h>
6383 #include <$ac_hdr>
6386 main ()
6388 if ((DIR *) 0)
6389 return 0;
6391 return 0;
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 eval "$as_ac_Header=yes"
6396 else
6397 eval "$as_ac_Header=no"
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 eval ac_res=\$$as_ac_Header
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6403 $as_echo "$ac_res" >&6; }
6404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6405 cat >>confdefs.h <<_ACEOF
6406 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6407 _ACEOF
6409 ac_header_dirent=$ac_hdr; break
6412 done
6413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6414 if test $ac_header_dirent = dirent.h; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6416 $as_echo_n "checking for library containing opendir... " >&6; }
6417 if ${ac_cv_search_opendir+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 ac_func_search_save_LIBS=$LIBS
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 char opendir ();
6432 main ()
6434 return opendir ();
6436 return 0;
6438 _ACEOF
6439 for ac_lib in '' dir; do
6440 if test -z "$ac_lib"; then
6441 ac_res="none required"
6442 else
6443 ac_res=-l$ac_lib
6444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6446 if ac_fn_c_try_link "$LINENO"; then :
6447 ac_cv_search_opendir=$ac_res
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext
6451 if ${ac_cv_search_opendir+:} false; then :
6452 break
6454 done
6455 if ${ac_cv_search_opendir+:} false; then :
6457 else
6458 ac_cv_search_opendir=no
6460 rm conftest.$ac_ext
6461 LIBS=$ac_func_search_save_LIBS
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6464 $as_echo "$ac_cv_search_opendir" >&6; }
6465 ac_res=$ac_cv_search_opendir
6466 if test "$ac_res" != no; then :
6467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6473 $as_echo_n "checking for library containing opendir... " >&6; }
6474 if ${ac_cv_search_opendir+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 ac_func_search_save_LIBS=$LIBS
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 char opendir ();
6489 main ()
6491 return opendir ();
6493 return 0;
6495 _ACEOF
6496 for ac_lib in '' x; do
6497 if test -z "$ac_lib"; then
6498 ac_res="none required"
6499 else
6500 ac_res=-l$ac_lib
6501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6503 if ac_fn_c_try_link "$LINENO"; then :
6504 ac_cv_search_opendir=$ac_res
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext
6508 if ${ac_cv_search_opendir+:} false; then :
6509 break
6511 done
6512 if ${ac_cv_search_opendir+:} false; then :
6514 else
6515 ac_cv_search_opendir=no
6517 rm conftest.$ac_ext
6518 LIBS=$ac_func_search_save_LIBS
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6521 $as_echo "$ac_cv_search_opendir" >&6; }
6522 ac_res=$ac_cv_search_opendir
6523 if test "$ac_res" != no; then :
6524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6531 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6532 if ${ac_cv_header_stat_broken+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #include <sys/types.h>
6538 #include <sys/stat.h>
6540 #if defined S_ISBLK && defined S_IFDIR
6541 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6542 #endif
6544 #if defined S_ISBLK && defined S_IFCHR
6545 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6546 #endif
6548 #if defined S_ISLNK && defined S_IFREG
6549 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6550 #endif
6552 #if defined S_ISSOCK && defined S_IFREG
6553 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6554 #endif
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 ac_cv_header_stat_broken=no
6559 else
6560 ac_cv_header_stat_broken=yes
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6565 $as_echo "$ac_cv_header_stat_broken" >&6; }
6566 if test $ac_cv_header_stat_broken = yes; then
6568 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6573 $as_echo_n "checking for ANSI C header files... " >&6; }
6574 if ${ac_cv_header_stdc+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580 #include <stdarg.h>
6581 #include <string.h>
6582 #include <float.h>
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_header_stdc=yes
6594 else
6595 ac_cv_header_stdc=no
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 if test $ac_cv_header_stdc = yes; then
6600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 #include <string.h>
6605 _ACEOF
6606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6607 $EGREP "memchr" >/dev/null 2>&1; then :
6609 else
6610 ac_cv_header_stdc=no
6612 rm -f conftest*
6616 if test $ac_cv_header_stdc = yes; then
6617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <stdlib.h>
6622 _ACEOF
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 $EGREP "free" >/dev/null 2>&1; then :
6626 else
6627 ac_cv_header_stdc=no
6629 rm -f conftest*
6633 if test $ac_cv_header_stdc = yes; then
6634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6635 if test "$cross_compiling" = yes; then :
6637 else
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 #include <ctype.h>
6641 #include <stdlib.h>
6642 #if ((' ' & 0x0FF) == 0x020)
6643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6645 #else
6646 # define ISLOWER(c) \
6647 (('a' <= (c) && (c) <= 'i') \
6648 || ('j' <= (c) && (c) <= 'r') \
6649 || ('s' <= (c) && (c) <= 'z'))
6650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6651 #endif
6653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6655 main ()
6657 int i;
6658 for (i = 0; i < 256; i++)
6659 if (XOR (islower (i), ISLOWER (i))
6660 || toupper (i) != TOUPPER (i))
6661 return 2;
6662 return 0;
6664 _ACEOF
6665 if ac_fn_c_try_run "$LINENO"; then :
6667 else
6668 ac_cv_header_stdc=no
6670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6671 conftest.$ac_objext conftest.beam conftest.$ac_ext
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6677 $as_echo "$ac_cv_header_stdc" >&6; }
6678 if test $ac_cv_header_stdc = yes; then
6680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6685 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6686 if ${ac_cv_header_sys_wait_h+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 #include <sys/types.h>
6692 #include <sys/wait.h>
6693 #ifndef WEXITSTATUS
6694 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6695 #endif
6696 #ifndef WIFEXITED
6697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6698 #endif
6701 main ()
6703 int s;
6704 wait (&s);
6705 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 ac_cv_header_sys_wait_h=yes
6712 else
6713 ac_cv_header_sys_wait_h=no
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6718 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6719 if test $ac_cv_header_sys_wait_h = yes; then
6721 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6726 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6727 if ${ac_cv_header_time+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <sys/types.h>
6733 #include <sys/time.h>
6734 #include <time.h>
6737 main ()
6739 if ((struct tm *) 0)
6740 return 0;
6742 return 0;
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746 ac_cv_header_time=yes
6747 else
6748 ac_cv_header_time=no
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6753 $as_echo "$ac_cv_header_time" >&6; }
6754 if test $ac_cv_header_time = yes; then
6756 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6760 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6761 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6765 _ACEOF
6768 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6773 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6774 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6778 _ACEOF
6781 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6783 else
6784 case " $LIBOBJS " in
6785 *" fileblocks.$ac_objext "* ) ;;
6786 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6788 esac
6793 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6794 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_STRUCT_STAT_ST_RDEV 1
6798 _ACEOF
6801 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6807 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6808 if ${ac_cv_struct_tm+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <sys/types.h>
6814 #include <time.h>
6817 main ()
6819 struct tm tm;
6820 int *p = &tm.tm_sec;
6821 return !p;
6823 return 0;
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 ac_cv_struct_tm=time.h
6828 else
6829 ac_cv_struct_tm=sys/time.h
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6834 $as_echo "$ac_cv_struct_tm" >&6; }
6835 if test $ac_cv_struct_tm = sys/time.h; then
6837 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6841 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6842 #include <$ac_cv_struct_tm>
6845 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STRUCT_TM_TM_ZONE 1
6849 _ACEOF
6854 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6856 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6858 else
6859 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6861 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6862 ac_have_decl=1
6863 else
6864 ac_have_decl=0
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_DECL_TZNAME $ac_have_decl
6869 _ACEOF
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6872 $as_echo_n "checking for tzname... " >&6; }
6873 if ${ac_cv_var_tzname+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #include <time.h>
6879 #if !HAVE_DECL_TZNAME
6880 extern char *tzname[];
6881 #endif
6884 main ()
6886 return tzname[0][0];
6888 return 0;
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 ac_cv_var_tzname=yes
6893 else
6894 ac_cv_var_tzname=no
6896 rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6900 $as_echo "$ac_cv_var_tzname" >&6; }
6901 if test $ac_cv_var_tzname = yes; then
6903 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6908 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6909 if test "x$ac_cv_type_off_t" = xyes; then :
6911 else
6913 cat >>confdefs.h <<_ACEOF
6914 #define off_t long int
6915 _ACEOF
6919 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6920 if test "x$ac_cv_type_pid_t" = xyes; then :
6922 else
6924 cat >>confdefs.h <<_ACEOF
6925 #define pid_t int
6926 _ACEOF
6930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6931 if test "x$ac_cv_type_size_t" = xyes; then :
6933 else
6935 cat >>confdefs.h <<_ACEOF
6936 #define size_t unsigned int
6937 _ACEOF
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6942 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6943 if ${ac_cv_type_uid_t+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #include <sys/types.h>
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "uid_t" >/dev/null 2>&1; then :
6953 ac_cv_type_uid_t=yes
6954 else
6955 ac_cv_type_uid_t=no
6957 rm -f conftest*
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6961 $as_echo "$ac_cv_type_uid_t" >&6; }
6962 if test $ac_cv_type_uid_t = no; then
6964 $as_echo "#define uid_t int" >>confdefs.h
6967 $as_echo "#define gid_t int" >>confdefs.h
6972 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6973 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6977 _ACEOF
6983 # Look for some functions
6984 for ac_func in getpagesize kqueue statfs statvfs \
6985 clone kse_create rfork_thread thr_create sa_register \
6986 getcontext makecontext setcontext sigaltstack swapcontext
6987 do :
6988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6989 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6990 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6991 cat >>confdefs.h <<_ACEOF
6992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6993 _ACEOF
6996 done
7002 for ac_header in $ac_header_list
7003 do :
7004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7005 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010 _ACEOF
7014 done
7023 for ac_func in getpagesize
7024 do :
7025 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7026 if test "x$ac_cv_func_getpagesize" = xyes; then :
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_GETPAGESIZE 1
7029 _ACEOF
7032 done
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7035 $as_echo_n "checking for working mmap... " >&6; }
7036 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test "$cross_compiling" = yes; then :
7040 ac_cv_func_mmap_fixed_mapped=no
7041 else
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 /* malloc might have been renamed as rpl_malloc. */
7046 #undef malloc
7048 /* Thanks to Mike Haertel and Jim Avera for this test.
7049 Here is a matrix of mmap possibilities:
7050 mmap private not fixed
7051 mmap private fixed at somewhere currently unmapped
7052 mmap private fixed at somewhere already mapped
7053 mmap shared not fixed
7054 mmap shared fixed at somewhere currently unmapped
7055 mmap shared fixed at somewhere already mapped
7056 For private mappings, we should verify that changes cannot be read()
7057 back from the file, nor mmap's back from the file at a different
7058 address. (There have been systems where private was not correctly
7059 implemented like the infamous i386 svr4.0, and systems where the
7060 VM page cache was not coherent with the file system buffer cache
7061 like early versions of FreeBSD and possibly contemporary NetBSD.)
7062 For shared mappings, we should conversely verify that changes get
7063 propagated back to all the places they're supposed to be.
7065 Grep wants private fixed already mapped.
7066 The main things grep needs to know about mmap are:
7067 * does it exist and is it safe to write into the mmap'd area
7068 * how to use it (BSD variants) */
7070 #include <fcntl.h>
7071 #include <sys/mman.h>
7073 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7074 char *malloc ();
7075 #endif
7077 /* This mess was copied from the GNU getpagesize.h. */
7078 #ifndef HAVE_GETPAGESIZE
7079 # ifdef _SC_PAGESIZE
7080 # define getpagesize() sysconf(_SC_PAGESIZE)
7081 # else /* no _SC_PAGESIZE */
7082 # ifdef HAVE_SYS_PARAM_H
7083 # include <sys/param.h>
7084 # ifdef EXEC_PAGESIZE
7085 # define getpagesize() EXEC_PAGESIZE
7086 # else /* no EXEC_PAGESIZE */
7087 # ifdef NBPG
7088 # define getpagesize() NBPG * CLSIZE
7089 # ifndef CLSIZE
7090 # define CLSIZE 1
7091 # endif /* no CLSIZE */
7092 # else /* no NBPG */
7093 # ifdef NBPC
7094 # define getpagesize() NBPC
7095 # else /* no NBPC */
7096 # ifdef PAGESIZE
7097 # define getpagesize() PAGESIZE
7098 # endif /* PAGESIZE */
7099 # endif /* no NBPC */
7100 # endif /* no NBPG */
7101 # endif /* no EXEC_PAGESIZE */
7102 # else /* no HAVE_SYS_PARAM_H */
7103 # define getpagesize() 8192 /* punt totally */
7104 # endif /* no HAVE_SYS_PARAM_H */
7105 # endif /* no _SC_PAGESIZE */
7107 #endif /* no HAVE_GETPAGESIZE */
7110 main ()
7112 char *data, *data2, *data3;
7113 const char *cdata2;
7114 int i, pagesize;
7115 int fd, fd2;
7117 pagesize = getpagesize ();
7119 /* First, make a file with some known garbage in it. */
7120 data = (char *) malloc (pagesize);
7121 if (!data)
7122 return 1;
7123 for (i = 0; i < pagesize; ++i)
7124 *(data + i) = rand ();
7125 umask (0);
7126 fd = creat ("conftest.mmap", 0600);
7127 if (fd < 0)
7128 return 2;
7129 if (write (fd, data, pagesize) != pagesize)
7130 return 3;
7131 close (fd);
7133 /* Next, check that the tail of a page is zero-filled. File must have
7134 non-zero length, otherwise we risk SIGBUS for entire page. */
7135 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7136 if (fd2 < 0)
7137 return 4;
7138 cdata2 = "";
7139 if (write (fd2, cdata2, 1) != 1)
7140 return 5;
7141 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7142 if (data2 == MAP_FAILED)
7143 return 6;
7144 for (i = 0; i < pagesize; ++i)
7145 if (*(data2 + i))
7146 return 7;
7147 close (fd2);
7148 if (munmap (data2, pagesize))
7149 return 8;
7151 /* Next, try to mmap the file at a fixed address which already has
7152 something else allocated at it. If we can, also make sure that
7153 we see the same garbage. */
7154 fd = open ("conftest.mmap", O_RDWR);
7155 if (fd < 0)
7156 return 9;
7157 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7158 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7159 return 10;
7160 for (i = 0; i < pagesize; ++i)
7161 if (*(data + i) != *(data2 + i))
7162 return 11;
7164 /* Finally, make sure that changes to the mapped area do not
7165 percolate back to the file as seen by read(). (This is a bug on
7166 some variants of i386 svr4.0.) */
7167 for (i = 0; i < pagesize; ++i)
7168 *(data2 + i) = *(data2 + i) + 1;
7169 data3 = (char *) malloc (pagesize);
7170 if (!data3)
7171 return 12;
7172 if (read (fd, data3, pagesize) != pagesize)
7173 return 13;
7174 for (i = 0; i < pagesize; ++i)
7175 if (*(data + i) != *(data3 + i))
7176 return 14;
7177 close (fd);
7178 return 0;
7180 _ACEOF
7181 if ac_fn_c_try_run "$LINENO"; then :
7182 ac_cv_func_mmap_fixed_mapped=yes
7183 else
7184 ac_cv_func_mmap_fixed_mapped=no
7186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187 conftest.$ac_objext conftest.beam conftest.$ac_ext
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7192 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7193 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7195 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7198 rm -f conftest.mmap conftest.txt
7203 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7204 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7205 aros_config_ldflags=""
7207 aros_shared_default=yes
7209 aros_shared_cflags="-fPIC"
7210 aros_shared_aflags=""
7211 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7212 aros_kernel_ldflags="-Wl,-rpath,./lib"
7214 aros_kernel_ar_flags="cr"
7215 aros_target_ar_flags="cr"
7216 aros_target_nm_flags="-C -ul"
7217 aros_target_strip_flags="--strip-unneeded -R.comment"
7219 aros_compiler_libs=
7220 aros_arch_libs=
7222 aros_target_genmap="-Wl,-Map -Xlinker"
7224 # Native flavour stuff
7225 aros_serial_debug="0"
7227 # Palm native flavour stuff
7228 aros_palm_debug_hack="0"
7230 # Unix flavour stuff
7231 aros_nesting_supervisor="0"
7233 # Collect-aros stuff: "-ius" to ignore undefined symbols
7234 ignore_undefined_symbols=""
7236 # Check for X11 by default
7237 need_x11="auto"
7239 #-----------------------------------------------------------------------------
7242 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7243 # it switched on by default, and we use the host compiler, so it compiles AROS
7244 # code with this enabled resulting in link failures as we don't have support
7245 # for it.
7247 # We use two methods to disable it. For the host compiler (used to compile
7248 # some hosted modules), we test to see if the compiler supports stack
7249 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7250 # work on all platforms.
7252 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7253 # (this is done unconditionally, as it should have no effect on compilers
7254 # without the stack protection feature). This may be specific to the way that
7255 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7256 # strong enough to disable it in a generic way though, so we'll live with it
7257 # until another vendor ships GCC with it enabled in a different way, and deal
7258 # with it then.
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7262 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7263 save_cflags="$CFLAGS"
7264 CFLAGS="$CFLAGS -fno-stack-protector"
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7269 main ()
7273 return 0;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277 use_no_stack_protector="yes"
7278 else
7279 use_no_stack_protector="no"
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7283 $as_echo "$use_no_stack_protector" >&6; }
7284 if test "x-$use_no_stack_protector" = "x-yes" ; then
7285 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7287 CFLAGS="$save_cflags"
7289 #-----------------------------------------------------------------------------
7291 # Disable pointer-signedness warnings if the compiler recognises the option
7292 # (this only works for the host compiler at the moment)
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7295 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7296 save_cflags="$CFLAGS"
7297 CFLAGS="$CFLAGS -Wno-pointer-sign"
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7302 main ()
7306 return 0;
7308 _ACEOF
7309 if ac_fn_c_try_compile "$LINENO"; then :
7310 use_no_sign_warning="yes"
7311 else
7312 use_no_sign_warning="no"
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7316 $as_echo "$use_no_sign_warning" >&6; }
7317 if test "x-$use_no_sign_warning" = "x-yes" ; then
7318 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7320 CFLAGS="$save_cflags"
7322 #-----------------------------------------------------------------------------
7324 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7327 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7328 save_cflags="$CFLAGS"
7329 CFLAGS="$CFLAGS -fgnu89-inline"
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7334 main ()
7338 return 0;
7340 _ACEOF
7341 if ac_fn_c_try_compile "$LINENO"; then :
7342 use_gnu89_inline="yes"
7343 else
7344 use_gnu89_inline="no"
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7348 $as_echo "$use_gnu89_inline" >&6; }
7349 if test "x-$use_gnu89_inline" = "x-yes" ; then
7350 gnu89_inline="-fgnu89-inline"
7352 CFLAGS="$save_cflags"
7354 #-----------------------------------------------------------------------------
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7357 $as_echo_n "checking for type of build... " >&6; }
7358 # Check whether --enable-build_type was given.
7359 if test "${enable_build_type+set}" = set; then :
7360 enableval=$enable_build_type; build_type=$enableval
7361 else
7362 build_type="personal"
7366 if test "$build_type" = "nightly"; then
7367 build_type_string="NIGHTLY"
7368 elif test "$build_type" = "snapshot"; then
7369 build_type_string="SNAPSHOT"
7370 elif test "$build_type" = "milestone"; then
7371 build_type_string="MILESTONE"
7372 elif test "$build_type" = "release"; then
7373 build_type_string="RELEASE"
7374 else
7375 build_type_string="PERSONAL"
7376 build_type="personal"
7379 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7382 $as_echo "$build_type" >&6; }
7384 #-----------------------------------------------------------------------------
7385 all_debug_types="messages stack modules mungwall symbols"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7388 $as_echo_n "checking which debug types to enable... " >&6; }
7389 # Check whether --enable-debug was given.
7390 if test "${enable_debug+set}" = set; then :
7391 enableval=$enable_debug; debug="$enableval"
7392 else
7393 debug=""
7397 if test "$debug" = "" -o "$debug" = "no"; then
7398 debug="none"
7399 elif test "$debug" = "yes"; then
7400 debug="all"
7403 if test "$debug" = "all" ; then
7404 debug="messages stack modules symbols"
7405 for d in $all_debug_types; do
7406 export aros_${d}_debug="1"
7407 done
7408 else
7409 for d in $all_debug_types; do
7410 export aros_${d}_debug="0"
7411 done
7414 if test "$debug" != "none"; then
7415 debug=`echo $debug | sed s/,/\ /g`
7416 for d in $debug; do
7417 found="0"
7418 for d2 in $all_debug_types; do
7419 if test "$d2" = "$d"; then
7420 found="1"
7421 break
7423 done
7424 if test "$found" = "0"; then
7425 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7427 export aros_${d}_debug="1"
7428 done
7429 aros_debug="yes"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7432 $as_echo "$debug" >&6; }
7434 if test "$aros_messages_debug" = "1"; then
7435 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7436 else
7437 aros_messages_debug=""
7439 if test "$aros_symbols_debug" = "1"; then
7440 aros_symbols_debug="-g"
7441 else
7442 aros_symbols_debug=""
7445 # These are the flags to pass when compiling debugged programs
7446 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7447 aros_debug_aflags=""
7448 aros_debug_ldflags="$aros_symbols_debug"
7450 #-----------------------------------------------------------------------------
7451 # Checking for distcc and ccache.
7453 # Always apply the transforms in this particular order. Basically you should
7454 # always run 'ccache distcc compiler' in that order for the best performance.
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7457 $as_echo_n "checking whether to enable distcc... " >&6; }
7458 # Check whether --enable-distcc was given.
7459 if test "${enable_distcc+set}" = set; then :
7460 enableval=$enable_distcc; distcc="$enableval"
7461 else
7462 distcc="no"
7465 if test "$distcc" != "" -a "$distcc" != "no"; then
7466 # AC_CHECK_PROG will print out the result in this case
7467 # Extract the first word of "distcc", so it can be a program name with args.
7468 set dummy distcc; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_path_DISTCC+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 case $DISTCC in
7475 [\\/]* | ?:[\\/]*)
7476 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7490 done
7491 done
7492 IFS=$as_save_IFS
7494 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7496 esac
7498 DISTCC=$ac_cv_path_DISTCC
7499 if test -n "$DISTCC"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7501 $as_echo "$DISTCC" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7514 $as_echo_n "checking whether to enable ccache... " >&6; }
7515 # Check whether --enable-ccache was given.
7516 if test "${enable_ccache+set}" = set; then :
7517 enableval=$enable_ccache; ccache="$enableval"
7518 else
7519 ccache="no"
7522 if test "$ccache" != "" -a "$ccache" != "no"; then
7523 # AC_CHECK_PROG will print out the result in this case
7524 # Extract the first word of "ccache", so it can be a program name with args.
7525 set dummy ccache; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_CCACHE+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$CCACHE"; then
7532 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_CCACHE="ccache"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7551 CCACHE=$ac_cv_prog_CCACHE
7552 if test -n "$CCACHE"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7554 $as_echo "$CCACHE" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7566 #-----------------------------------------------------------------------------
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7568 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7570 # Check whether --with-kernel-gcc-version was given.
7571 if test "${with_kernel_gcc_version+set}" = set; then :
7572 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7573 else
7574 kernel_tool_version=""
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7578 $as_echo "$kernel_tool_version" >&6; }
7580 #-----------------------------------------------------------------------------
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7582 $as_echo_n "checking what optimization flags to use... " >&6; }
7584 # Check whether --with-optimization was given.
7585 if test "${with_optimization+set}" = set; then :
7586 withval=$with_optimization; optimization="$withval"
7587 else
7588 optimization="unknown"
7591 if test "$optimization" = "unknown"; then
7592 if test "$debug" != "none"; then
7593 optimization="-O0"
7594 else
7595 optimization="-O2"
7598 aros_config_cflags="$aros_config_cflags $optimization"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7600 $as_echo "$optimization" >&6; }
7602 #-----------------------------------------------------------------------------
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7604 $as_echo_n "checking what paranoia flags to use... " >&6; }
7606 # Check whether --with-paranoia was given.
7607 if test "${with_paranoia+set}" = set; then :
7608 withval=$with_paranoia; paranoia_flags="$withval"
7609 else
7610 paranoia_flags="default"
7613 if test "$paranoia_flags" = "default"; then
7614 paranoia_flags=""
7615 else if test "$paranoia_flags" = "yes"; then
7616 paranoia_flags="-Wall -Werror"
7617 fi fi
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7619 $as_echo "$paranoia_flags" >&6; }
7620 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7622 #-----------------------------------------------------------------------------
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7624 $as_echo_n "checking what target variant to enable... " >&6; }
7625 # Check whether --enable-target_variant was given.
7626 if test "${enable_target_variant+set}" = set; then :
7627 enableval=$enable_target_variant; target_variant=$enableval
7628 else
7629 target_variant=""
7632 if test "$target_variant" = ""; then
7633 aros_target_variant=""
7634 aros_target_suffix=""
7635 enableval="none"
7636 else
7637 aros_target_variant="$target_variant"
7638 aros_target_suffix="-$target_variant"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7641 $as_echo "$enableval" >&6; }
7643 #-----------------------------------------------------------------------------
7644 # Target-specific defaults. You can override then on a per-target basis.
7646 # Bootloader name. Currently used by PC target.
7647 target_bootloader="none"
7649 #-----------------------------------------------------------------------------
7650 # Additional options for some specific targets
7652 case "$aros_target_variant" in
7653 ios)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7655 $as_echo_n "checking XCode path... " >&6; }
7657 # Check whether --with-xcode was given.
7658 if test "${with_xcode+set}" = set; then :
7659 withval=$with_xcode; aros_xcode_path="$withval"
7660 else
7661 aros_xcode_path="/Developer"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7665 $as_echo "$aros_xcode_path" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7668 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7670 # Check whether --with-sdk-version was given.
7671 if test "${with_sdk_version+set}" = set; then :
7672 withval=$with_sdk_version; aros_sdk_version="$withval"
7673 else
7674 aros_sdk_version="4.1"
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7678 $as_echo "$aros_sdk_version" >&6; }
7682 "android")
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7684 $as_echo_n "checking Android SDK path... " >&6; }
7686 # Check whether --with-sdk was given.
7687 if test "${with_sdk+set}" = set; then :
7688 withval=$with_sdk; aros_android_sdk="$withval"
7689 else
7690 aros_android_sdk=$default_android_sdk
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7694 $as_echo "$aros_android_sdk" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7697 $as_echo_n "checking Android NDK path... " >&6; }
7699 # Check whether --with-ndk was given.
7700 if test "${with_ndk+set}" = set; then :
7701 withval=$with_ndk; aros_android_ndk="$withval"
7702 else
7703 aros_android_ndk="none"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7707 $as_echo "$aros_android_ndk" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7710 $as_echo_n "checking what Android SDK version to use... " >&6; }
7712 # Check whether --with-sdk-version was given.
7713 if test "${with_sdk_version+set}" = set; then :
7714 withval=$with_sdk_version; aros_sdk_version="$withval"
7715 else
7716 aros_sdk_version="12"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7720 $as_echo "$aros_sdk_version" >&6; }
7722 if test "$aros_android_ndk" != "none"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7724 $as_echo_n "checking what Android NDK version to use... " >&6; }
7726 # Check whether --with-ndk-version was given.
7727 if test "${with_ndk_version+set}" = set; then :
7728 withval=$with_ndk_version; aros_ndk_version="$withval"
7729 else
7730 aros_ndk_version="9"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7734 $as_echo "$aros_ndk_version" >&6; }
7737 export PATH="$aros_android_sdk/tools:$PATH"
7738 # Extract the first word of "$android_tool", so it can be a program name with args.
7739 set dummy $android_tool; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_android_tool+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 case $android_tool in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7766 esac
7768 android_tool=$ac_cv_path_android_tool
7769 if test -n "$android_tool"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7771 $as_echo "$android_tool" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7778 if test "$android_tool" = ""; then
7779 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7782 aros_android_level=android-$aros_sdk_version
7783 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7784 echo "Platform $aros_android_level is not installed in your SDK"
7785 echo "Use --with-sdk-version=<API level number> to select another platform version"
7786 echo "You can check what plaform versions are installed in your SDK"
7787 echo "by examining contents of $aros_android_sdk/platforms directory"
7788 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7791 # Extract the first word of "ant", so it can be a program name with args.
7792 set dummy ant; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_path_ant+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 case $ant in
7799 [\\/]* | ?:[\\/]*)
7800 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7816 IFS=$as_save_IFS
7819 esac
7821 ant=$ac_cv_path_ant
7822 if test -n "$ant"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7824 $as_echo "$ant" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 if test "$ant" = ""; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7833 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
7837 $as_echo_n "checking Build debug or release apk... " >&6; }
7839 # Check whether --with-apk-version was given.
7840 if test "${with_apk_version+set}" = set; then :
7841 withval=$with_apk_version; aros_android_antapk=$withval
7842 else
7843 aros_android_antapk=release
7846 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
7847 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
7850 $as_echo "$aros_android_antapk" >&6; }
7852 if test "$host_os" = "mingw32"; then
7853 android_tool="cmd //c $android_tool"
7857 esac
7859 #-----------------------------------------------------------------------------
7860 # External toolchains
7861 kernel_tool_prefix="none"
7862 aros_tool_prefix="none"
7863 elf_tool_prefix="${target_cpu}-elf-"
7865 # This is the target configuration switch.
7866 case "$target_os" in
7867 linux*)
7868 aros_target_arch="linux"
7869 aros_target_family="unix"
7870 case "$target_cpu" in
7871 *m68k*)
7872 aros_target_cpu="m68k"
7873 aros_object_format="m68kelf"
7874 aros_flavour="emulcompat"
7875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7876 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7877 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7878 gcc_target_cpu="mc68000"
7880 *i?86*)
7881 aros_target_cpu="i386"
7882 aros_object_format="elf_i386"
7883 aros_flavour="emulation"
7884 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7885 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7886 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7887 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7888 aros_config_ldflags="-m32 -march=i486"
7889 aros_kernel_ldflags="-Wl,-melf_i386"
7890 aros_default_wbdepth=8
7891 gcc_target_cpu="i386"
7892 pci_hidd_target="hidd-pci-linux"
7893 android_tool_dir_prefix="x86"
7894 android_tool_prefix="i686-android-linux"
7895 android_ndk_arch="x86"
7897 *x86_64*)
7898 aros_target_cpu="x86_64"
7899 aros_object_format="elf_x86_64"
7900 aros_flavour="emulation"
7901 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7902 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7903 aros_default_wbdepth=8
7904 pci_hidd_target="hidd-pci-linux"
7906 *powerpc*)
7907 aros_target_cpu="ppc"
7908 aros_object_format="elf32ppc"
7909 aros_flavour="emulation"
7910 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7911 aros_default_wbdepth=8
7912 gcc_target_cpu="ppc"
7914 # TODO
7915 # Same as powerpc, but I need this for the nightly build to work again.
7916 # Actually, the nightly should be made working with powerpc target.
7917 # That just was too much work for the moment, another week or two.
7918 *ppc*)
7919 aros_target_cpu="ppc"
7920 aros_object_format="elf32ppc"
7921 aros_flavour="emulation"
7922 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7923 aros_default_wbdepth=8
7924 gcc_target_cpu="ppc"
7926 *armhf*)
7927 aros_target_cpu="arm"
7928 target_cpu="arm"
7929 aros_object_format="armelf_aros"
7930 aros_flavour="emulation"
7931 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7932 gcc_target_cpu="arm"
7933 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7934 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7935 aros_arch_libs="-laeabi"
7936 gcc_default_float_abi="hard"
7937 android_tool_dir_prefix="arm-linux-androideabi"
7938 android_tool_prefix="arm-linux-androideabi"
7939 android_ndk_arch="arm"
7940 kernel_tool_prefix="arm-linux-gnueabihf-"
7942 *arm*)
7943 aros_target_cpu="arm"
7944 aros_object_format="armelf_aros"
7945 aros_flavour="emulation"
7946 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7947 gcc_target_cpu="arm"
7948 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7949 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7950 aros_arch_libs="-laeabi"
7951 android_tool_dir_prefix="arm-linux-androideabi"
7952 android_tool_prefix="arm-linux-androideabi"
7953 android_ndk_arch="arm"
7954 kernel_tool_prefix="arm-linux-gnueabi-"
7957 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7959 esac
7960 case "$aros_target_variant" in
7961 android)
7963 if test "$android_ndk_arch" = ""; then
7964 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7967 aros_default_wbwidth=320
7968 aros_default_wbheight=480
7969 if test "$aros_android_ndk" = "none"; then
7970 aros_kernel_cflags="-mandroid"
7971 aros_kernel_ldflags="-mandroid"
7972 CFLAGS="-mandroid"
7973 else
7974 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
7975 kernel_tool_version=""
7976 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7977 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7978 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7979 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7980 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7982 need_x11=no
7983 unixgfx_hidd_target=kernel-hidd-androidgfx
7984 # Disable implicit PIC mode
7985 aros_target_cflags="$aros_target_cflags -fno-pic"
7986 kernel_tool_prefix="$android_tool_prefix-"
7988 esac
7992 aros_target_arch="pc"
7993 aros_shared_default="no"
7994 target_bootloader="grub2"
7995 case "$target_cpu" in
7996 *i?86*)
7997 aros_target_cpu="i386"
8000 if test "$aros_object_format" = "" ; then
8001 aros_object_format="elf_i386"
8003 aros_flavour="standalone"
8004 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8005 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8006 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8007 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8008 aros_config_ldflags="-m32 -march=i486"
8009 aros_kernel_ldflags="-Wl,-melf_i386"
8010 aros_default_wbwidth=640
8011 aros_default_wbheight=480
8012 gcc_target_cpu="i386"
8014 *x86_64*)
8015 aros_target_cpu="x86_64"
8016 aros_serial_debug=1
8017 if test "$aros_object_format" = "" ; then
8018 aros_object_format="elf_x86_64"
8020 aros_flavour="standalone"
8021 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8022 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8023 aros_kernel_ldflags=""
8024 aros_default_wbwidth=640
8025 aros_default_wbheight=480
8028 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8030 esac
8033 prep)
8034 aros_target_arch="prep"
8035 aros_shared_default="no"
8036 aros_target_cpu="ppc"
8037 aros_object_format="elf32ppc"
8038 aros_flavour="ppcnative"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8040 aros_kernel_ldflags=""
8041 aros_default_wbwidth=640
8042 aros_default_wbheight=480
8043 gcc_target_cpu="ppc"
8046 freebsd*)
8047 aros_target_arch="freebsd"
8048 aros_target_family="unix"
8049 aros_target_cpu="i386"
8050 aros_flavour="emulation"
8051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8052 gcc_target_cpu="i386"
8054 aros_target_strip_flags="-x"
8057 darwin*)
8058 aros_target_arch="darwin"
8059 aros_target_family="unix"
8060 aros_flavour="emulation"
8061 case "$target_cpu" in
8062 *i?86*)
8063 aros_ios_platform="iPhoneSimulator"
8064 aros_target_cpu="i386"
8065 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8066 aros_kernel_ldflags=""
8067 aros_macosx_version="10.4"
8068 aros_default_wbdepth=8
8069 gcc_target_cpu="i386"
8070 aros_object_format="elf_i386"
8071 aros_kernel_ar_flags="-cr"
8072 aros_target_strip_flags="-x"
8073 kernel_tool_flags="-m32"
8075 *x86_64*)
8076 aros_target_cpu="x86_64"
8077 aros_object_format="elf_x86_64"
8078 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8079 aros_macosx_version="10.6"
8080 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8081 aros_kernel_cflags="-m64"
8082 aros_kernel_ldflags="-m64"
8083 aros_target_cflags="-mcmodel=large"
8084 aros_default_wbdepth=8
8085 aros_kernel_ar="ar"
8086 aros_kernel_ar_flags="-cr"
8087 aros_kernel_ld="ld"
8088 aros_kernel_as="as"
8089 aros_kernel_ranlib="ranlib"
8090 aros_kernel_nm="nm"
8091 aros_kernel_strip="strip"
8092 kernel_tool_prefix="i686-apple-darwin10-"
8094 *ppc*)
8095 aros_target_cpu="ppc"
8096 aros_object_format="elf32ppc"
8097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8098 aros_kernel_ldflags=""
8099 aros_macosx_version="10.0"
8100 aros_default_wbdepth=8
8101 gcc_target_cpu="ppc"
8102 aros_kernel_ar="ar"
8103 aros_kernel_ar_flags="-cr"
8104 aros_kernel_ld="ld -arch ppc"
8105 aros_kernel_as="as -arch ppc"
8106 aros_kernel_ranlib="ranlib -arch ppc"
8107 aros_kernel_nm="nm -arch ppc"
8108 aros_kernel_strip="strip -arch ppc"
8109 kernel_tool_prefix="powerpc-apple-darwin10-"
8111 *arm*)
8112 aros_ios_platform="iPhoneOS"
8113 aros_target_cpu="arm"
8114 aros_object_format="armelf_aros"
8115 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8116 aros_arch_libs="-laeabi"
8117 aros_default_wbdepth=8
8118 gcc_target_cpu="arm"
8119 aros_kernel_ar="ar"
8120 aros_kernel_ar_flags="-cr"
8121 aros_kernel_ld="ld -arch arm"
8122 aros_kernel_ranlib="ranlib -arch arm"
8123 kernel_tool_prefix="arm-apple-darwin10-"
8124 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8127 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8129 esac
8130 case "$aros_target_variant" in
8131 ios)
8132 aros_ios_version="3.0"
8133 aros_default_wbwidth=320
8134 aros_default_wbheight=480
8135 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8136 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8137 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8138 need_x11=no
8139 # This is here because it may depend on iOS or SDK version
8140 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8141 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8142 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8145 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8146 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8148 esac
8151 dragonfly*)
8152 aros_target_arch="dragonfly"
8153 aros_target_family="unix"
8154 aros_flavour="emulation"
8155 case "$target_cpu" in
8156 *i?86*)
8157 aros_target_cpu="i386"
8158 aros_object_format="elf_i386"
8159 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8161 *x86_64*)
8162 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8163 aros_target_cpu="x86_64"
8164 aros_object_format="elf_x86_64"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8168 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8170 esac
8173 netbsd*)
8174 aros_target_arch="netbsd"
8175 aros_target_family="unix"
8176 case "$target_cpu" in
8177 *m68k*)
8178 aros_target_cpu="m68k"
8179 aros_object_format="m68kelf"
8180 aros_flavour="emulcompat"
8181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8182 gcc_target_cpu="mc68000"
8184 *i?86*)
8185 aros_target_cpu="i386"
8186 aros_object_format="elf_i386"
8187 aros_flavour="emulation"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8189 aros_default_wbdepth=8
8190 gcc_target_cpu="i386"
8193 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8195 esac
8196 aros_target_genmap="-Wl,-M -Xlinker >"
8197 aros_flavour="emulation"
8198 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8201 openbsd*)
8202 aros_target_arch="openbsd"
8203 aros_target_family="unix"
8204 case "$target_cpu" in
8205 *i?86*)
8206 aros_target_cpu="i386"
8207 aros_object_format="elf_i386"
8208 aros_flavour="emulation"
8209 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8210 gcc_target_cpu="i386"
8213 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8215 esac
8216 aros_target_genmap="-Wl,-M -Xlinker >"
8217 aros_target_nm_flags="-u"
8218 aros_flavour="emulation"
8221 solaris*)
8222 aros_target_arch="solaris"
8223 aros_target_family="unix"
8224 case "$target_cpu" in
8225 *i?86*)
8226 aros_target_cpu="i386"
8227 aros_object_format="elf_i386"
8228 aros_flavour="emulation"
8229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8230 aros_default_wbdepth=8
8231 gcc_target_cpu="i386"
8233 *sparc*)
8234 aros_target_cpu="sparc"
8235 aros_object_format="elf_sparc"
8236 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8237 gcc_target_cpu="sparc"
8240 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8242 esac
8243 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8244 aros_flavour="emulation"
8247 morphos*)
8248 aros_target_arch="morphos"
8249 aros_shared_default="no"
8250 aros_target_cpu="ppc"
8251 aros_object_format="elf_ppc"
8252 aros_flavour="nativecompat"
8253 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8254 gcc_target_cpu="ppc"
8257 sam440)
8258 aros_target_arch="sam440"
8259 aros_shared_default="no"
8260 aros_target_cpu="ppc"
8261 aros_object_format="elf32ppc"
8262 aros_flavour="ppcnative"
8263 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8264 aros_kernel_ldflags=""
8265 aros_default_wbwidth=1024
8266 aros_default_wbheight=768
8267 aros_default_wbdepth=24
8268 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8269 gcc_target_cpu="powerpc"
8272 efika)
8273 aros_target_arch="efika"
8274 aros_shared_default="no"
8275 aros_target_cpu="arm"
8276 aros_object_format="armelf_aros"
8277 aros_flavour="standalone"
8278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8279 aros_kernel_ldflags=""
8280 aros_default_wbwidth=1024
8281 aros_default_wbheight=600
8282 aros_arch_libs="-laeabi"
8283 gcc_default_cpu="armv7-a"
8284 gcc_default_fpu="vfpv3"
8285 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8286 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables -Os"
8287 case "$target_cpu" in
8288 *armhf*)
8289 gcc_default_float_abi="hard"
8290 target_cpu=arm
8291 aros_target_cpu=arm
8293 *arm*)
8294 gcc_default_float_abi="softfp"
8297 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8299 esac
8302 chrp)
8303 aros_target_arch="chrp"
8304 aros_shared_default="no"
8305 aros_target_cpu="ppc"
8306 aros_object_format="elf32ppc"
8307 aros_flavour="ppcnative"
8308 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8309 aros_kernel_ldflags=""
8310 aros_default_wbwidth=640
8311 aros_default_wbheight=480
8312 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8313 gcc_target_cpu="powerpc"
8314 case "$aros_target_variant" in
8315 efika)
8316 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8318 esac
8321 r*pi)
8322 aros_flavour="standalone"
8323 aros_target_arch="raspi"
8324 aros_target_cpu="arm"
8325 aros_object_format="armelf_aros"
8326 aros_shared_default="no"
8327 aros_arch_libs="-laeabi"
8329 gcc_default_cpu="armv6"
8330 gcc_default_cpu_tune="arm1176jzf-s"
8331 case "$target_cpu" in
8332 *armhf*)
8333 gcc_default_float_abi="hard"
8335 *arm*)
8336 gcc_default_float_abi="softfp"
8339 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8341 esac
8343 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8344 aros_config_cflags="$aros_config_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8345 aros_config_aflags="$aros_config_aflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8346 aros_kernel_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_target_cflags="$aros_kernel_cflags -marm -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8350 amiga*)
8351 aros_target_arch="amiga"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8353 aros_shared_default="no"
8355 case "$target_cpu" in
8356 *m68k*)
8357 # Check whether --enable-amigaos_compliance was given.
8358 if test "${enable_amigaos_compliance+set}" = set; then :
8359 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8362 aros_enable_mmu=no
8363 aros_target_cpu="m68k"
8364 aros_object_format="m68kelf"
8365 aros_flavour="standcompat"
8366 gcc_target_cpu="m68000"
8367 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os -DNOLIBINLINE"
8368 aros_config_aflags="$aros_config_aflags"
8369 aros_target_strip_flags="-R.comment --strip-debug"
8370 aros_default_wbwidth=640
8371 aros_default_wbheight=256
8372 aros_default_wbdepth=2
8374 *ppc*)
8375 aros_cpu="ppc"
8376 aros_flavour="native"
8377 gcc_target_cpu="ppc"
8380 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8382 esac
8385 mingw*)
8386 aros_target_arch="mingw32"
8387 aros_shared_default="no"
8388 aros_flavour="emulation"
8389 aros_shared_cflags=""
8390 need_crosstools="yes"
8391 need_dlopen="no"
8392 rescomp="windres"
8393 case "$target_cpu" in
8394 *i?86*)
8395 aros_target_cpu="i386"
8396 aros_object_format="elf_i386"
8397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8398 aros_default_wbdepth=8
8399 gcc_target_cpu="i386"
8401 kernel_tool_prefix="i386-mingw32-"
8403 *x86_64*)
8404 aros_target_cpu="x86_64"
8405 aros_object_format="elf_x86_64"
8406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8407 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8408 aros_default_wbdepth=8
8409 kernel_tool_prefix="x86_64-w64-mingw32-"
8411 *arm*)
8412 aros_target_cpu="arm"
8413 aros_object_format="armelf_aros"
8414 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8415 aros_arch_libs="-laeabi"
8416 aros_default_wbdepth=8
8417 gcc_target_cpu="arm"
8418 gcc_default_float_abi="soft"
8419 kernel_tool_prefix="arm-mingw32ce-"
8420 aros_default_wbwidth=160
8421 aros_default_wbheight=160
8424 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8426 esac
8427 if test $host_os = "cygwin"; then
8428 aros_kernel_cflags="-mno-cygwin"
8431 pp*)
8432 aros_target_arch="pp"
8433 aros_shared_default="no"
8434 case "$target_cpu" in
8435 *m68k*)
8436 aros_target_cpu="m68k"
8437 aros_object_format="m68kelf"
8438 aros_flavour="palmnative"
8439 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8440 aros_default_wbwidth=160
8441 aros_default_wbheight=160
8442 aros_default_wbdepth=1
8443 aros_target_ar_flags="cru"
8444 aros_compiler_libs="-lgcc1"
8445 aros_shared_default=no
8446 aros_shared_cflags="-fpic"
8447 aros_shared_aflags=""
8448 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8449 aros_kernel_ldflags="-Wl,-rpath,./lib"
8450 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8451 aros_debug_aflags=""
8452 aros_debug_ldflags="$aros_symbols_debug"
8453 aros_mungwall_debug="0"
8454 aros_modules_debug="0"
8455 gcc_target_cpu="mc68000"
8456 ignore_undefined_symbols="-ius"
8459 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8461 esac
8464 mac*)
8465 aros_target_arch="mac"
8466 aros_shared_default="no"
8467 case "$target_cpu" in
8468 *m68k*)
8469 aros_target_cpu="m68k"
8470 aros_object_format="m68kelf"
8471 aros_flavour="mac68knative"
8472 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8473 aros_default_wbwidth=512
8474 aros_default_wbheight=384
8475 aros_default_wbdepth=8
8476 aros_target_ar_flags="cru"
8477 aros_compiler_libs="-lgcc1"
8478 aros_shared_default=no
8479 aros_shared_cflags="-fpic"
8480 aros_shared_aflags=""
8481 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8482 aros_kernel_ldflags="-Wl,-rpath,./lib"
8483 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8484 aros_debug_aflags=""
8485 aros_debug_ldflags="$aros_symbols_debug"
8486 aros_mungwall_debug="0"
8487 aros_modules_debug="0"
8488 gcc_target_cpu="mc68000"
8489 ignore_undefined_symbols="-ius"
8492 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8494 esac
8498 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8500 esac
8502 #-----------------------------------------------------------------------------
8503 crosstools_guess=yes
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8506 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8508 # Check whether --with-kernel-toolchain-prefix was given.
8509 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8510 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8514 $as_echo "$kernel_tool_prefix" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8517 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8519 # Check whether --with-elf-toolchain-prefix was given.
8520 if test "${with_elf_toolchain_prefix+set}" = set; then :
8521 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8522 crosstools_guess=no
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8526 $as_echo "$elf_tool_prefix" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8529 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8531 # Check whether --with-aros-toolchain was given.
8532 if test "${with_aros_toolchain+set}" = set; then :
8533 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8534 crosstools_guess=no
8537 if test "$aros_tool_prefix" = "yes" ; then
8538 aros_tool_prefix=$aros_target_cpu-aros-
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8541 $as_echo "$aros_tool_prefix" >&6; }
8543 #-----------------------------------------------------------------------------
8544 # Checking if we should build crosstools..
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8546 $as_echo_n "checking whether to build crosstools... " >&6; }
8547 # Check whether --enable-crosstools was given.
8548 if test "${enable_crosstools+set}" = set; then :
8549 enableval=$enable_crosstools; crosstools="$enableval"
8550 else
8551 crosstools="$crosstools_guess"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8555 $as_echo "$crosstools" >&6; }
8557 if test "${crosstools}" = "yes"; then
8558 if test "${crosstools_guess}" = "no"; then
8559 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8564 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8566 # Check whether --with-aros-toolchain-install was given.
8567 if test "${with_aros_toolchain_install+set}" = set; then :
8568 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8571 if test "x$aros_toolchain_install" = "x"; then
8572 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8573 else
8574 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8575 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8578 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8580 # Helper to identify gcc version
8583 #-----------------------------------------------------------------------------
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8585 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8587 # Check whether --with-use_gcc_version was given.
8588 if test "${with_use_gcc_version+set}" = set; then :
8589 withval=$with_use_gcc_version; use_gcc_version="$withval"
8590 else
8591 use_gcc_version=""
8594 if test "$use_gcc_version" = ""; then
8595 if test "${crosstools}" = "no"; then
8596 if test "x$aros_toolchain_install" != "x"; then
8598 target_gcc_version=""
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8600 $as_echo_n "checking gcc version... " >&6; }
8601 if ${ax_cv_gcc_version+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8605 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}cpp -dumpversion`"
8606 if test "x$ax_cv_gcc_version" = "x"; then :
8608 ax_cv_gcc_version=""
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
8614 $as_echo "$ax_cv_gcc_version" >&6; }
8615 target_gcc_version=$ax_cv_gcc_version
8620 if test "$use_gcc_version" = ""; then
8621 target_gcc_version="4.6.4"
8623 else
8624 target_gcc_version="$use_gcc_version"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
8627 $as_echo "$target_gcc_version" >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Objective-C suppport" >&5
8630 $as_echo_n "checking whether to include Objective-C suppport... " >&6; }
8631 # Check whether --enable-objc was given.
8632 if test "${enable_objc+set}" = set; then :
8633 enableval=$enable_objc; objc="$enableval"
8634 else
8635 objc="yes"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
8639 $as_echo "$objc" >&6; }
8640 if test "x$objc" = "xyes"; then
8641 objc_target="objc"
8642 else
8643 objc_target="no-objc"
8646 spec_obj_format="-m $aros_object_format"
8647 # Now process extra architecture-specific options.
8648 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8649 # as well as floating-point ABI.
8650 case "$aros_target_cpu" in
8651 *x86_64*)
8652 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
8654 arm)
8655 if test "$gcc_default_cpu" = ""; then
8656 gcc_default_cpu="armv6"
8658 if test "$gcc_default_fpu" = ""; then
8659 gcc_default_fpu="vfp"
8661 if test "$gcc_default_float_abi" = ""; then
8662 gcc_default_float_abi="softfp"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8666 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8668 # Check whether --with-cpu was given.
8669 if test "${with_cpu+set}" = set; then :
8670 withval=$with_cpu; aros_gcc_cpu="$withval"
8671 else
8672 aros_gcc_cpu=$gcc_default_cpu
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8676 $as_echo "$aros_gcc_cpu" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8679 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8681 # Check whether --with-fpu was given.
8682 if test "${with_fpu+set}" = set; then :
8683 withval=$with_fpu; aros_gcc_fpu="$withval"
8684 else
8685 aros_gcc_fpu=$gcc_default_fpu
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8689 $as_echo "$aros_gcc_fpu" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8692 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8694 # Check whether --with-float was given.
8695 if test "${with_float+set}" = set; then :
8696 withval=$with_float; aros_gcc_float_abi="$withval"
8697 else
8698 aros_gcc_float_abi=$gcc_default_float_abi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8702 $as_echo "$aros_gcc_float_abi" >&6; }
8704 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8705 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8707 esac
8709 # Some architectures may need custom ELF specs.
8710 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8711 elf_specs_in=config/${aros_object_format}-specs.in
8712 else
8713 elf_specs_in=config/elf-specs.in
8716 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8717 # Since we override specs, we may need to put these defines there
8718 if test "$gcc_target_cpu" != ""; then
8719 gcc_target_cpu="-D__${gcc_target_cpu}__"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8723 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8725 # Check whether --with-portssources was given.
8726 if test "${with_portssources+set}" = set; then :
8727 withval=$with_portssources; with_portssrcdir=$withval
8728 else
8729 with_portssrcdir="default"
8732 if test "$with_portssrcdir" = "default"; then
8733 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8734 else
8735 AROS_PORTSSRCDIR="$with_portssrcdir"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8738 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8741 $as_echo_n "checking which bootloader to use... " >&6; }
8743 # Check whether --with-bootloader was given.
8744 if test "${with_bootloader+set}" = set; then :
8745 withval=$with_bootloader; target_bootloader=$withval
8746 else
8747 target_bootloader=$target_bootloader
8750 if test "$target_bootloader" = "none"; then
8751 aros_target_bootloader=""
8752 else
8753 aros_target_bootloader="$target_bootloader"
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8756 $as_echo "$target_bootloader" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8759 $as_echo_n "checking which icon-set to use... " >&6; }
8761 # Check whether --with-iconset was given.
8762 if test "${with_iconset+set}" = set; then :
8763 withval=$with_iconset; target_iconset=$withval
8764 else
8765 target_iconset="default"
8768 if test "$target_iconset" = "default"; then
8769 aros_target_iconset="Gorilla"
8770 target_iconset="default (Gorilla)"
8771 else
8772 aros_target_iconset="$target_iconset"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8775 $as_echo "$target_iconset" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8778 $as_echo_n "checking which GUI Theme to use... " >&6; }
8780 # Check whether --with-theme was given.
8781 if test "${with_theme+set}" = set; then :
8782 withval=$with_theme; target_guitheme=$withval
8783 else
8784 target_guitheme="default"
8787 if test "$target_guitheme" = "default"; then
8788 aros_target_guitheme="Ice"
8789 else
8790 aros_target_guitheme="$target_guitheme"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8793 $as_echo "$aros_target_guitheme" >&6; }
8795 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8796 # for target code)
8797 cross_compiling=no
8799 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8800 cross_compiling=yes
8803 if test "$aros_host_cpu" == "x86_64" ; then
8804 if test "$aros_target_cpu" == "i386" ; then
8805 cross_compiling=no
8809 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8810 if test "$aros_host_arch" != "$aros_target_arch" ; then
8811 cross_compiling=yes
8813 else
8814 if test "$host_cc_elf" = "no" ; then
8815 cross_compiling=yes
8819 if test "$cross_compiling" = "no" ; then
8820 kernel_tool_prefix=""
8821 if test "$host_cc_elf" = "yes" ; then
8822 elf_tool_prefix=""
8826 if test "$kernel_tool_version" != ""; then
8827 kernel_tool_version="-$kernel_tool_version"
8829 if test "$use_gcc_version" != ""; then
8830 target_tool_version="-$target_gcc_version"
8833 #######################################################################
8834 ## Compute what toolchains to use, and their paths ##
8835 #######################################################################
8837 # This takes, as input:
8838 # crosstools {yes,no}
8839 # kernel_tool_version {"",[version]}
8840 # target_tool_version {"",[version]}
8841 # kernel_tool_prefix {none,[some-arch-os-]}
8842 # target_tool_prefix ${aros_target_cpu}-aros-
8843 # aros_tool_prefix ${aros_target_cpu}-aros-
8845 # The output is
8846 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8847 # Where the 'kernel' binaries are located
8848 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8849 # Where the 'target' binaries are located
8850 # (not the symlink farm - that is aros_target_*!)
8852 # The rules are:
8853 # if crosstools then
8854 # if kernel_tools_prefix = "no-kernel-prefix-"
8855 # aros_kernel_* = crosstools cc paths
8856 # aros_kernel_cc = elf cc wrapper around crosstools cc
8857 # else
8858 # VALIDATE(${kernel_tools_prefix}*)
8859 # aros_kernel_* = ${kernel_tools_prefix}*
8860 # if ${kernel_tools_prefix}cc is an AROS gcc
8861 # aros_kernel_cc = ${kernel_tools_prefix}cc
8862 # else
8863 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8864 # fi
8865 # fi
8867 # orig_target_* = aros built crosstools
8868 # orig_target_cc = elf cc wrapper around crosstools cc
8869 # else
8870 # VALIDATE(${kernel_tools_prefix}*)
8872 # orig_target_* = aros_kernel_*
8873 # if aros_kernel_cc is an AROS gcc
8874 # orig_target_cc = aros_kernel_cc
8875 # else
8876 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8877 # fi
8878 # fi
8880 target_tool_prefix="${aros_target_cpu}-aros-"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8883 $as_echo_n "checking which kernel tools... " >&6; }
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8885 $as_echo "$kernel_tool_prefix" >&6; };
8887 if test "$kernel_tool_prefix" = "none" ; then
8888 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8889 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
8891 else
8892 # Kernel tools required - find them
8893 # Note that 'normally', aros_kernel_* overrides will be
8894 # empty, unless specified in the per-arch sections above.
8895 if test "x$aros_kernel_cpp" = "x"; then
8896 aros_kernel_cpp=${kernel_tool_prefix}cpp
8899 if test "$aros_kernel_cpp${kernel_tool_version}" = ""; then
8900 if test "$cross_compiling" = "yes" ; then
8901 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8902 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 case $aros_kernel_cpp in
8909 [\\/]* | ?:[\\/]*)
8910 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8924 done
8925 done
8926 IFS=$as_save_IFS
8929 esac
8931 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8932 if test -n "$aros_kernel_cpp"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8934 $as_echo "$aros_kernel_cpp" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8941 else
8942 if test "$GCC" = "yes"; then
8943 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8944 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8945 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 case $aros_kernel_cpp in
8952 [\\/]* | ?:[\\/]*)
8953 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in `dirname $aros_gcc_cpp`
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8972 esac
8974 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8975 if test -n "$aros_kernel_cpp"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8977 $as_echo "$aros_kernel_cpp" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8985 if test "$aros_kernel_cpp" = ""; then
8986 # Extract the first word of "cpp", so it can be a program name with args.
8987 set dummy cpp; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 case $aros_kernel_cpp in
8994 [\\/]* | ?:[\\/]*)
8995 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9009 done
9010 done
9011 IFS=$as_save_IFS
9014 esac
9016 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9017 if test -n "$aros_kernel_cpp"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9019 $as_echo "$aros_kernel_cpp" >&6; }
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9028 else
9029 # Extract the first word of "$aros_kernel_cpp${kernel_tool_version}", so it can be a program name with args.
9030 set dummy $aros_kernel_cpp${kernel_tool_version}; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 case $aros_kernel_cpp in
9037 [\\/]* | ?:[\\/]*)
9038 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9044 IFS=$as_save_IFS
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050 break 2
9052 done
9053 done
9054 IFS=$as_save_IFS
9057 esac
9059 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9060 if test -n "$aros_kernel_cpp"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9062 $as_echo "$aros_kernel_cpp" >&6; }
9063 else
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9071 if test "$aros_kernel_cpp" = ""; then
9072 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9074 if test "x$aros_kernel_cc" = "x"; then
9075 aros_kernel_cc=${kernel_tool_prefix}gcc
9078 if test "$aros_kernel_cc${kernel_tool_version}" = ""; then
9079 if test "$cross_compiling" = "yes" ; then
9080 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9081 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 case $aros_kernel_cc in
9088 [\\/]* | ?:[\\/]*)
9089 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9108 esac
9110 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9111 if test -n "$aros_kernel_cc"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9113 $as_echo "$aros_kernel_cc" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9120 else
9121 if test "$GCC" = "yes"; then
9122 aros_gcc_cc=`$CC -print-prog-name=cc`
9123 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9124 set dummy `basename $aros_gcc_cc`; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 case $aros_kernel_cc in
9131 [\\/]* | ?:[\\/]*)
9132 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in `dirname $aros_gcc_cc`
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9146 done
9147 done
9148 IFS=$as_save_IFS
9151 esac
9153 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9154 if test -n "$aros_kernel_cc"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9156 $as_echo "$aros_kernel_cc" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9164 if test "$aros_kernel_cc" = ""; then
9165 # Extract the first word of "cc", so it can be a program name with args.
9166 set dummy cc; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 case $aros_kernel_cc in
9173 [\\/]* | ?:[\\/]*)
9174 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9190 IFS=$as_save_IFS
9193 esac
9195 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9196 if test -n "$aros_kernel_cc"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9198 $as_echo "$aros_kernel_cc" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 else
9208 # Extract the first word of "$aros_kernel_cc${kernel_tool_version}", so it can be a program name with args.
9209 set dummy $aros_kernel_cc${kernel_tool_version}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 case $aros_kernel_cc in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9236 esac
9238 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9239 if test -n "$aros_kernel_cc"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9241 $as_echo "$aros_kernel_cc" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9250 if test "$aros_kernel_cc" = ""; then
9251 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9253 if test "x$aros_kernel_cxx" = "x"; then
9254 aros_kernel_cxx=${kernel_tool_prefix}g++
9257 if test "$aros_kernel_cxx${kernel_tool_version}" = ""; then
9258 if test "$cross_compiling" = "yes" ; then
9259 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9260 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 case $aros_kernel_cxx in
9267 [\\/]* | ?:[\\/]*)
9268 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9278 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9282 done
9283 done
9284 IFS=$as_save_IFS
9287 esac
9289 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9290 if test -n "$aros_kernel_cxx"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9292 $as_echo "$aros_kernel_cxx" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9299 else
9300 if test "$GCC" = "yes"; then
9301 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9302 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9303 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 case $aros_kernel_cxx in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in `dirname $aros_gcc_cxx`
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9321 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9325 done
9326 done
9327 IFS=$as_save_IFS
9330 esac
9332 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9333 if test -n "$aros_kernel_cxx"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9335 $as_echo "$aros_kernel_cxx" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 if test "$aros_kernel_cxx" = ""; then
9344 # Extract the first word of "cxx", so it can be a program name with args.
9345 set dummy cxx; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 case $aros_kernel_cxx in
9352 [\\/]* | ?:[\\/]*)
9353 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9367 done
9368 done
9369 IFS=$as_save_IFS
9372 esac
9374 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9375 if test -n "$aros_kernel_cxx"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9377 $as_echo "$aros_kernel_cxx" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9386 else
9387 # Extract the first word of "$aros_kernel_cxx${kernel_tool_version}", so it can be a program name with args.
9388 set dummy $aros_kernel_cxx${kernel_tool_version}; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 case $aros_kernel_cxx in
9395 [\\/]* | ?:[\\/]*)
9396 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9406 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9415 esac
9417 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9418 if test -n "$aros_kernel_cxx"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9420 $as_echo "$aros_kernel_cxx" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9429 # If it's set, make sure it's really there
9430 if test "x$aros_kernel_cxx" != "x" ; then
9431 if test "$aros_kernel_cxx" = ""; then
9432 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9436 if test "$aros_kernel_ld" = ""; then
9437 if test "$cross_compiling" = "yes" ; then
9438 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9439 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441 $as_echo_n "checking for $ac_word... " >&6; }
9442 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 case $aros_kernel_ld in
9446 [\\/]* | ?:[\\/]*)
9447 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9453 IFS=$as_save_IFS
9454 test -z "$as_dir" && as_dir=.
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 break 2
9461 done
9462 done
9463 IFS=$as_save_IFS
9466 esac
9468 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9469 if test -n "$aros_kernel_ld"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9471 $as_echo "$aros_kernel_ld" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9478 else
9479 if test "$GCC" = "yes"; then
9480 aros_gcc_ld=`$CC -print-prog-name=ld`
9481 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9482 set dummy `basename $aros_gcc_ld`; ac_word=$2
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484 $as_echo_n "checking for $ac_word... " >&6; }
9485 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 case $aros_kernel_ld in
9489 [\\/]* | ?:[\\/]*)
9490 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in `dirname $aros_gcc_ld`
9496 IFS=$as_save_IFS
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9500 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 break 2
9504 done
9505 done
9506 IFS=$as_save_IFS
9509 esac
9511 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9512 if test -n "$aros_kernel_ld"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9514 $as_echo "$aros_kernel_ld" >&6; }
9515 else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9522 if test "$aros_kernel_ld" = ""; then
9523 # Extract the first word of "ld", so it can be a program name with args.
9524 set dummy ld; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 case $aros_kernel_ld in
9531 [\\/]* | ?:[\\/]*)
9532 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9546 done
9547 done
9548 IFS=$as_save_IFS
9551 esac
9553 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9554 if test -n "$aros_kernel_ld"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9556 $as_echo "$aros_kernel_ld" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9565 else
9566 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9567 set dummy $aros_kernel_ld; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 case $aros_kernel_ld in
9574 [\\/]* | ?:[\\/]*)
9575 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9585 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 break 2
9589 done
9590 done
9591 IFS=$as_save_IFS
9594 esac
9596 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9597 if test -n "$aros_kernel_ld"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9599 $as_echo "$aros_kernel_ld" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9608 if test "$aros_kernel_ld" = ""; then
9609 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9612 if test "$aros_kernel_as" = ""; then
9613 if test "$cross_compiling" = "yes" ; then
9614 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9615 set dummy ${kernel_tool_prefix}as; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if ${ac_cv_path_aros_kernel_as+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 case $aros_kernel_as in
9622 [\\/]* | ?:[\\/]*)
9623 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9633 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9642 esac
9644 aros_kernel_as=$ac_cv_path_aros_kernel_as
9645 if test -n "$aros_kernel_as"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9647 $as_echo "$aros_kernel_as" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 else
9655 if test "$GCC" = "yes"; then
9656 aros_gcc_as=`$CC -print-prog-name=as`
9657 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9658 set dummy `basename $aros_gcc_as`; ac_word=$2
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 $as_echo_n "checking for $ac_word... " >&6; }
9661 if ${ac_cv_path_aros_kernel_as+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 case $aros_kernel_as in
9665 [\\/]* | ?:[\\/]*)
9666 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in `dirname $aros_gcc_as`
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9680 done
9681 done
9682 IFS=$as_save_IFS
9685 esac
9687 aros_kernel_as=$ac_cv_path_aros_kernel_as
9688 if test -n "$aros_kernel_as"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9690 $as_echo "$aros_kernel_as" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9698 if test "$aros_kernel_as" = ""; then
9699 # Extract the first word of "as", so it can be a program name with args.
9700 set dummy as; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_path_aros_kernel_as+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 case $aros_kernel_as in
9707 [\\/]* | ?:[\\/]*)
9708 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720 break 2
9722 done
9723 done
9724 IFS=$as_save_IFS
9727 esac
9729 aros_kernel_as=$ac_cv_path_aros_kernel_as
9730 if test -n "$aros_kernel_as"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9732 $as_echo "$aros_kernel_as" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9741 else
9742 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9743 set dummy $aros_kernel_as; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if ${ac_cv_path_aros_kernel_as+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 case $aros_kernel_as in
9750 [\\/]* | ?:[\\/]*)
9751 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 for as_dir in $PATH
9757 IFS=$as_save_IFS
9758 test -z "$as_dir" && as_dir=.
9759 for ac_exec_ext in '' $ac_executable_extensions; do
9760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9761 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9763 break 2
9765 done
9766 done
9767 IFS=$as_save_IFS
9770 esac
9772 aros_kernel_as=$ac_cv_path_aros_kernel_as
9773 if test -n "$aros_kernel_as"; then
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9775 $as_echo "$aros_kernel_as" >&6; }
9776 else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9784 if test "$aros_kernel_as" = ""; then
9785 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9788 if test "$aros_kernel_ar" = ""; then
9789 if test "$cross_compiling" = "yes" ; then
9790 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9791 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 case $aros_kernel_ar in
9798 [\\/]* | ?:[\\/]*)
9799 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803 for as_dir in $PATH
9805 IFS=$as_save_IFS
9806 test -z "$as_dir" && as_dir=.
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9809 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9811 break 2
9813 done
9814 done
9815 IFS=$as_save_IFS
9818 esac
9820 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9821 if test -n "$aros_kernel_ar"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9823 $as_echo "$aros_kernel_ar" >&6; }
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9830 else
9831 if test "$GCC" = "yes"; then
9832 aros_gcc_ar=`$CC -print-prog-name=ar`
9833 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9834 set dummy `basename $aros_gcc_ar`; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 case $aros_kernel_ar in
9841 [\\/]* | ?:[\\/]*)
9842 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in `dirname $aros_gcc_ar`
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9856 done
9857 done
9858 IFS=$as_save_IFS
9861 esac
9863 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9864 if test -n "$aros_kernel_ar"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9866 $as_echo "$aros_kernel_ar" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9874 if test "$aros_kernel_ar" = ""; then
9875 # Extract the first word of "ar", so it can be a program name with args.
9876 set dummy ar; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 case $aros_kernel_ar in
9883 [\\/]* | ?:[\\/]*)
9884 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9894 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9898 done
9899 done
9900 IFS=$as_save_IFS
9903 esac
9905 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9906 if test -n "$aros_kernel_ar"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9908 $as_echo "$aros_kernel_ar" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9917 else
9918 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9919 set dummy $aros_kernel_ar; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $aros_kernel_ar in
9926 [\\/]* | ?:[\\/]*)
9927 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9941 done
9942 done
9943 IFS=$as_save_IFS
9946 esac
9948 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9949 if test -n "$aros_kernel_ar"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9951 $as_echo "$aros_kernel_ar" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9960 if test "$aros_kernel_ar" = ""; then
9961 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9964 if test "$aros_kernel_ranlib" = ""; then
9965 if test "$cross_compiling" = "yes" ; then
9966 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9967 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 case $aros_kernel_ranlib in
9974 [\\/]* | ?:[\\/]*)
9975 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9989 done
9990 done
9991 IFS=$as_save_IFS
9994 esac
9996 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9997 if test -n "$aros_kernel_ranlib"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9999 $as_echo "$aros_kernel_ranlib" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10006 else
10007 if test "$GCC" = "yes"; then
10008 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10009 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10010 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 case $aros_kernel_ranlib in
10017 [\\/]* | ?:[\\/]*)
10018 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in `dirname $aros_gcc_ranlib`
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10037 esac
10039 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10040 if test -n "$aros_kernel_ranlib"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10042 $as_echo "$aros_kernel_ranlib" >&6; }
10043 else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10050 if test "$aros_kernel_ranlib" = ""; then
10051 # Extract the first word of "ranlib", so it can be a program name with args.
10052 set dummy ranlib; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 case $aros_kernel_ranlib in
10059 [\\/]* | ?:[\\/]*)
10060 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10079 esac
10081 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10082 if test -n "$aros_kernel_ranlib"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10084 $as_echo "$aros_kernel_ranlib" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10093 else
10094 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10095 set dummy $aros_kernel_ranlib; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 case $aros_kernel_ranlib in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10122 esac
10124 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10125 if test -n "$aros_kernel_ranlib"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10127 $as_echo "$aros_kernel_ranlib" >&6; }
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10136 if test "$aros_kernel_ranlib" = ""; then
10137 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10140 if test "$aros_kernel_nm" = ""; then
10141 if test "$cross_compiling" = "yes" ; then
10142 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10143 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 case $aros_kernel_nm in
10150 [\\/]* | ?:[\\/]*)
10151 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10170 esac
10172 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10173 if test -n "$aros_kernel_nm"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10175 $as_echo "$aros_kernel_nm" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10182 else
10183 if test "$GCC" = "yes"; then
10184 aros_gcc_nm=`$CC -print-prog-name=nm`
10185 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10186 set dummy `basename $aros_gcc_nm`; ac_word=$2
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 case $aros_kernel_nm in
10193 [\\/]* | ?:[\\/]*)
10194 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in `dirname $aros_gcc_nm`
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10208 done
10209 done
10210 IFS=$as_save_IFS
10213 esac
10215 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10216 if test -n "$aros_kernel_nm"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10218 $as_echo "$aros_kernel_nm" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10226 if test "$aros_kernel_nm" = ""; then
10227 # Extract the first word of "nm", so it can be a program name with args.
10228 set dummy nm; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 case $aros_kernel_nm in
10235 [\\/]* | ?:[\\/]*)
10236 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240 for as_dir in $PATH
10242 IFS=$as_save_IFS
10243 test -z "$as_dir" && as_dir=.
10244 for ac_exec_ext in '' $ac_executable_extensions; do
10245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10246 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 break 2
10250 done
10251 done
10252 IFS=$as_save_IFS
10255 esac
10257 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10258 if test -n "$aros_kernel_nm"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10260 $as_echo "$aros_kernel_nm" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10269 else
10270 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10271 set dummy $aros_kernel_nm; ac_word=$2
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273 $as_echo_n "checking for $ac_word... " >&6; }
10274 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 case $aros_kernel_nm in
10278 [\\/]* | ?:[\\/]*)
10279 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10293 done
10294 done
10295 IFS=$as_save_IFS
10298 esac
10300 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10301 if test -n "$aros_kernel_nm"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10303 $as_echo "$aros_kernel_nm" >&6; }
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10312 if test "$aros_kernel_nm" = ""; then
10313 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10316 if test "$aros_kernel_strip" = ""; then
10317 if test "$cross_compiling" = "yes" ; then
10318 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10319 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 case $aros_kernel_strip in
10326 [\\/]* | ?:[\\/]*)
10327 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10341 done
10342 done
10343 IFS=$as_save_IFS
10346 esac
10348 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10349 if test -n "$aros_kernel_strip"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10351 $as_echo "$aros_kernel_strip" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10358 else
10359 if test "$GCC" = "yes"; then
10360 aros_gcc_strip=`$CC -print-prog-name=strip`
10361 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10362 set dummy `basename $aros_gcc_strip`; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 case $aros_kernel_strip in
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in `dirname $aros_gcc_strip`
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10384 done
10385 done
10386 IFS=$as_save_IFS
10389 esac
10391 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10392 if test -n "$aros_kernel_strip"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10394 $as_echo "$aros_kernel_strip" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10402 if test "$aros_kernel_strip" = ""; then
10403 # Extract the first word of "strip", so it can be a program name with args.
10404 set dummy strip; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 case $aros_kernel_strip in
10411 [\\/]* | ?:[\\/]*)
10412 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10426 done
10427 done
10428 IFS=$as_save_IFS
10431 esac
10433 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10434 if test -n "$aros_kernel_strip"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10436 $as_echo "$aros_kernel_strip" >&6; }
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10445 else
10446 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10447 set dummy $aros_kernel_strip; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 case $aros_kernel_strip in
10454 [\\/]* | ?:[\\/]*)
10455 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10471 IFS=$as_save_IFS
10474 esac
10476 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10477 if test -n "$aros_kernel_strip"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10479 $as_echo "$aros_kernel_strip" >&6; }
10480 else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10488 if test "$aros_kernel_strip" = ""; then
10489 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10492 # Objcopy and objdump are not required for the kernel
10493 # toolchain on many architectures.
10494 # So we'll look for them, but not make them strictly required.
10496 if test "$aros_kernel_objcopy" = ""; then
10497 if test "$cross_compiling" = "yes" ; then
10498 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10499 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 case $aros_kernel_objcopy in
10506 [\\/]* | ?:[\\/]*)
10507 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10517 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10521 done
10522 done
10523 IFS=$as_save_IFS
10526 esac
10528 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10529 if test -n "$aros_kernel_objcopy"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10531 $as_echo "$aros_kernel_objcopy" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10538 else
10539 if test "$GCC" = "yes"; then
10540 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10541 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10542 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 case $aros_kernel_objcopy in
10549 [\\/]* | ?:[\\/]*)
10550 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in `dirname $aros_gcc_objcopy`
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10560 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10564 done
10565 done
10566 IFS=$as_save_IFS
10569 esac
10571 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10572 if test -n "$aros_kernel_objcopy"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10574 $as_echo "$aros_kernel_objcopy" >&6; }
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; }
10582 if test "$aros_kernel_objcopy" = ""; then
10583 # Extract the first word of "objcopy", so it can be a program name with args.
10584 set dummy objcopy; ac_word=$2
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586 $as_echo_n "checking for $ac_word... " >&6; }
10587 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 case $aros_kernel_objcopy in
10591 [\\/]* | ?:[\\/]*)
10592 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596 for as_dir in $PATH
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10606 done
10607 done
10608 IFS=$as_save_IFS
10611 esac
10613 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10614 if test -n "$aros_kernel_objcopy"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10616 $as_echo "$aros_kernel_objcopy" >&6; }
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; }
10625 else
10626 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10627 set dummy $aros_kernel_objcopy; ac_word=$2
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629 $as_echo_n "checking for $ac_word... " >&6; }
10630 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 case $aros_kernel_objcopy in
10634 [\\/]* | ?:[\\/]*)
10635 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10649 done
10650 done
10651 IFS=$as_save_IFS
10654 esac
10656 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10657 if test -n "$aros_kernel_objcopy"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10659 $as_echo "$aros_kernel_objcopy" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10669 if test "$aros_kernel_objdump" = ""; then
10670 if test "$cross_compiling" = "yes" ; then
10671 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10672 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 case $aros_kernel_objdump in
10679 [\\/]* | ?:[\\/]*)
10680 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10694 done
10695 done
10696 IFS=$as_save_IFS
10699 esac
10701 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10702 if test -n "$aros_kernel_objdump"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10704 $as_echo "$aros_kernel_objdump" >&6; }
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10711 else
10712 if test "$GCC" = "yes"; then
10713 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10714 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10715 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10717 $as_echo_n "checking for $ac_word... " >&6; }
10718 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 case $aros_kernel_objdump in
10722 [\\/]* | ?:[\\/]*)
10723 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in `dirname $aros_gcc_objdump`
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10737 done
10738 done
10739 IFS=$as_save_IFS
10742 esac
10744 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10745 if test -n "$aros_kernel_objdump"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10747 $as_echo "$aros_kernel_objdump" >&6; }
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 if test "$aros_kernel_objdump" = ""; then
10756 # Extract the first word of "objdump", so it can be a program name with args.
10757 set dummy objdump; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 case $aros_kernel_objdump in
10764 [\\/]* | ?:[\\/]*)
10765 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10775 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10779 done
10780 done
10781 IFS=$as_save_IFS
10784 esac
10786 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10787 if test -n "$aros_kernel_objdump"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10789 $as_echo "$aros_kernel_objdump" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10798 else
10799 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10800 set dummy $aros_kernel_objdump; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 case $aros_kernel_objdump in
10807 [\\/]* | ?:[\\/]*)
10808 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10822 done
10823 done
10824 IFS=$as_save_IFS
10827 esac
10829 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10830 if test -n "$aros_kernel_objdump"; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10832 $as_echo "$aros_kernel_objdump" >&6; }
10833 else
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10841 if test "x${crosstools}" != "xyes" ; then
10842 if test "$aros_kernel_objcopy" = ""; then
10843 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10845 if test "$aros_kernel_objdump" = ""; then
10846 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10852 $as_echo_n "checking which target tools to use... " >&6; }
10853 if test "$crosstools" = "yes"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10855 $as_echo "$target_tool_prefix" >&6; }
10856 # We are building AROS crosstools
10857 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10858 orig_target_cc="${tmp_tool_prefix}gcc${target_tool_version}"
10859 orig_target_cxx="${tmp_tool_prefix}g++${target_tool_version}"
10860 orig_target_cpp="${tmp_tool_prefix}cpp"
10861 orig_target_ld="${tmp_tool_prefix}ld"
10862 orig_target_as="${tmp_tool_prefix}as"
10863 orig_target_ar="${tmp_tool_prefix}ar"
10864 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10865 orig_target_nm="${tmp_tool_prefix}nm"
10866 orig_target_strip="${tmp_tool_prefix}strip"
10867 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10868 orig_target_objdump="${tmp_tool_prefix}objdump"
10869 else
10870 # Determine whether AROS or ELF tools should be used
10871 if test "$aros_tool_prefix" = "none"; then
10872 aros_tool_prefix="${elf_tool_prefix}"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10876 $as_echo "$aros_tool_prefix" >&6; }
10877 # We are *not* building AROS crosstools - use the AROS or ELF tools
10879 if test "${aros_tool_prefix}cpp${target_tool_version}" = ""; then
10880 if test "$cross_compiling" = "yes" ; then
10881 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10882 set dummy ${target_tool_prefix}cpp; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_path_orig_target_cpp+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 case $orig_target_cpp in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10906 IFS=$as_save_IFS
10909 esac
10911 orig_target_cpp=$ac_cv_path_orig_target_cpp
10912 if test -n "$orig_target_cpp"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10914 $as_echo "$orig_target_cpp" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10921 else
10922 if test "$GCC" = "yes"; then
10923 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10924 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10925 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if ${ac_cv_path_orig_target_cpp+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 case $orig_target_cpp in
10932 [\\/]* | ?:[\\/]*)
10933 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in `dirname $aros_gcc_cpp`
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10947 done
10948 done
10949 IFS=$as_save_IFS
10952 esac
10954 orig_target_cpp=$ac_cv_path_orig_target_cpp
10955 if test -n "$orig_target_cpp"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10957 $as_echo "$orig_target_cpp" >&6; }
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10965 if test "$orig_target_cpp" = ""; then
10966 # Extract the first word of "cpp", so it can be a program name with args.
10967 set dummy cpp; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_path_orig_target_cpp+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 case $orig_target_cpp in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10989 done
10990 done
10991 IFS=$as_save_IFS
10994 esac
10996 orig_target_cpp=$ac_cv_path_orig_target_cpp
10997 if test -n "$orig_target_cpp"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10999 $as_echo "$orig_target_cpp" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11008 else
11009 # Extract the first word of "${aros_tool_prefix}cpp${target_tool_version}", so it can be a program name with args.
11010 set dummy ${aros_tool_prefix}cpp${target_tool_version}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if ${ac_cv_path_orig_target_cpp+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 case $orig_target_cpp in
11017 [\\/]* | ?:[\\/]*)
11018 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11024 IFS=$as_save_IFS
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11028 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030 break 2
11032 done
11033 done
11034 IFS=$as_save_IFS
11037 esac
11039 orig_target_cpp=$ac_cv_path_orig_target_cpp
11040 if test -n "$orig_target_cpp"; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11042 $as_echo "$orig_target_cpp" >&6; }
11043 else
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11051 if test "$orig_target_cpp" = ""; then
11052 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11055 if test "${aros_tool_prefix}gcc${target_tool_version}" = ""; then
11056 if test "$cross_compiling" = "yes" ; then
11057 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11058 set dummy ${target_tool_prefix}gcc; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_orig_target_cc+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 case $orig_target_cc in
11065 [\\/]* | ?:[\\/]*)
11066 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11080 done
11081 done
11082 IFS=$as_save_IFS
11085 esac
11087 orig_target_cc=$ac_cv_path_orig_target_cc
11088 if test -n "$orig_target_cc"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11090 $as_echo "$orig_target_cc" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11097 else
11098 if test "$GCC" = "yes"; then
11099 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11100 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11101 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_path_orig_target_cc+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 case $orig_target_cc in
11108 [\\/]* | ?:[\\/]*)
11109 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in `dirname $aros_gcc_gcc`
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11123 done
11124 done
11125 IFS=$as_save_IFS
11128 esac
11130 orig_target_cc=$ac_cv_path_orig_target_cc
11131 if test -n "$orig_target_cc"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11133 $as_echo "$orig_target_cc" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11141 if test "$orig_target_cc" = ""; then
11142 # Extract the first word of "gcc", so it can be a program name with args.
11143 set dummy gcc; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_path_orig_target_cc+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 case $orig_target_cc in
11150 [\\/]* | ?:[\\/]*)
11151 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 break 2
11165 done
11166 done
11167 IFS=$as_save_IFS
11170 esac
11172 orig_target_cc=$ac_cv_path_orig_target_cc
11173 if test -n "$orig_target_cc"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11175 $as_echo "$orig_target_cc" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11184 else
11185 # Extract the first word of "${aros_tool_prefix}gcc${target_tool_version}", so it can be a program name with args.
11186 set dummy ${aros_tool_prefix}gcc${target_tool_version}; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_orig_target_cc+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 case $orig_target_cc in
11193 [\\/]* | ?:[\\/]*)
11194 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11208 done
11209 done
11210 IFS=$as_save_IFS
11213 esac
11215 orig_target_cc=$ac_cv_path_orig_target_cc
11216 if test -n "$orig_target_cc"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11218 $as_echo "$orig_target_cc" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11227 if test "$orig_target_cc" = ""; then
11228 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11231 if test "${aros_tool_prefix}g++${target_tool_version}" = ""; then
11232 if test "$cross_compiling" = "yes" ; then
11233 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11234 set dummy ${target_tool_prefix}g++; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if ${ac_cv_path_orig_target_cxx+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 case $orig_target_cxx in
11241 [\\/]* | ?:[\\/]*)
11242 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11256 done
11257 done
11258 IFS=$as_save_IFS
11261 esac
11263 orig_target_cxx=$ac_cv_path_orig_target_cxx
11264 if test -n "$orig_target_cxx"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11266 $as_echo "$orig_target_cxx" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11273 else
11274 if test "$GCC" = "yes"; then
11275 aros_gcc_g++=`$CC -print-prog-name=g++`
11276 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11277 set dummy `basename $aros_gcc_g++`; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if ${ac_cv_path_orig_target_cxx+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 case $orig_target_cxx in
11284 [\\/]* | ?:[\\/]*)
11285 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in `dirname $aros_gcc_g++`
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11295 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11299 done
11300 done
11301 IFS=$as_save_IFS
11304 esac
11306 orig_target_cxx=$ac_cv_path_orig_target_cxx
11307 if test -n "$orig_target_cxx"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11309 $as_echo "$orig_target_cxx" >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11317 if test "$orig_target_cxx" = ""; then
11318 # Extract the first word of "g++", so it can be a program name with args.
11319 set dummy g++; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_path_orig_target_cxx+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 case $orig_target_cxx in
11326 [\\/]* | ?:[\\/]*)
11327 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11337 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11346 esac
11348 orig_target_cxx=$ac_cv_path_orig_target_cxx
11349 if test -n "$orig_target_cxx"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11351 $as_echo "$orig_target_cxx" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11360 else
11361 # Extract the first word of "${aros_tool_prefix}g++${target_tool_version}", so it can be a program name with args.
11362 set dummy ${aros_tool_prefix}g++${target_tool_version}; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if ${ac_cv_path_orig_target_cxx+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 case $orig_target_cxx in
11369 [\\/]* | ?:[\\/]*)
11370 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11384 done
11385 done
11386 IFS=$as_save_IFS
11389 esac
11391 orig_target_cxx=$ac_cv_path_orig_target_cxx
11392 if test -n "$orig_target_cxx"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11394 $as_echo "$orig_target_cxx" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11403 if test "$orig_target_cxx" = ""; then
11404 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11407 if test "${aros_tool_prefix}ld" = ""; then
11408 if test "$cross_compiling" = "yes" ; then
11409 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11410 set dummy ${target_tool_prefix}gcc; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_path_orig_target_ld+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 case $orig_target_ld in
11417 [\\/]* | ?:[\\/]*)
11418 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422 for as_dir in $PATH
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11432 done
11433 done
11434 IFS=$as_save_IFS
11437 esac
11439 orig_target_ld=$ac_cv_path_orig_target_ld
11440 if test -n "$orig_target_ld"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11442 $as_echo "$orig_target_ld" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11449 else
11450 if test "$GCC" = "yes"; then
11451 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11452 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11453 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if ${ac_cv_path_orig_target_ld+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 case $orig_target_ld in
11460 [\\/]* | ?:[\\/]*)
11461 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in `dirname $aros_gcc_gcc`
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11480 esac
11482 orig_target_ld=$ac_cv_path_orig_target_ld
11483 if test -n "$orig_target_ld"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11485 $as_echo "$orig_target_ld" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11493 if test "$orig_target_ld" = ""; then
11494 # Extract the first word of "gcc", so it can be a program name with args.
11495 set dummy gcc; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_path_orig_target_ld+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 case $orig_target_ld in
11502 [\\/]* | ?:[\\/]*)
11503 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11517 done
11518 done
11519 IFS=$as_save_IFS
11522 esac
11524 orig_target_ld=$ac_cv_path_orig_target_ld
11525 if test -n "$orig_target_ld"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11527 $as_echo "$orig_target_ld" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11536 else
11537 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11538 set dummy ${aros_tool_prefix}ld; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if ${ac_cv_path_orig_target_ld+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 case $orig_target_ld in
11545 [\\/]* | ?:[\\/]*)
11546 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11560 done
11561 done
11562 IFS=$as_save_IFS
11565 esac
11567 orig_target_ld=$ac_cv_path_orig_target_ld
11568 if test -n "$orig_target_ld"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11570 $as_echo "$orig_target_ld" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11579 if test "$orig_target_ld" = ""; then
11580 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11583 if test "${aros_tool_prefix}as" = ""; then
11584 if test "$cross_compiling" = "yes" ; then
11585 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11586 set dummy ${target_tool_prefix}as; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_path_orig_target_as+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 case $orig_target_as in
11593 [\\/]* | ?:[\\/]*)
11594 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11613 esac
11615 orig_target_as=$ac_cv_path_orig_target_as
11616 if test -n "$orig_target_as"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11618 $as_echo "$orig_target_as" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11625 else
11626 if test "$GCC" = "yes"; then
11627 aros_gcc_as=`$CC -print-prog-name=as`
11628 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11629 set dummy `basename $aros_gcc_as`; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if ${ac_cv_path_orig_target_as+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $orig_target_as in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in `dirname $aros_gcc_as`
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11651 done
11652 done
11653 IFS=$as_save_IFS
11656 esac
11658 orig_target_as=$ac_cv_path_orig_target_as
11659 if test -n "$orig_target_as"; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11661 $as_echo "$orig_target_as" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11669 if test "$orig_target_as" = ""; then
11670 # Extract the first word of "as", so it can be a program name with args.
11671 set dummy as; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if ${ac_cv_path_orig_target_as+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 case $orig_target_as in
11678 [\\/]* | ?:[\\/]*)
11679 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11689 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11693 done
11694 done
11695 IFS=$as_save_IFS
11698 esac
11700 orig_target_as=$ac_cv_path_orig_target_as
11701 if test -n "$orig_target_as"; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11703 $as_echo "$orig_target_as" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11712 else
11713 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11714 set dummy ${aros_tool_prefix}as; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_path_orig_target_as+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 case $orig_target_as in
11721 [\\/]* | ?:[\\/]*)
11722 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11732 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11736 done
11737 done
11738 IFS=$as_save_IFS
11741 esac
11743 orig_target_as=$ac_cv_path_orig_target_as
11744 if test -n "$orig_target_as"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11746 $as_echo "$orig_target_as" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11755 if test "$orig_target_as" = ""; then
11756 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11759 if test "${aros_tool_prefix}ar" = ""; then
11760 if test "$cross_compiling" = "yes" ; then
11761 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11762 set dummy ${target_tool_prefix}ar; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_path_orig_target_ar+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 case $orig_target_ar in
11769 [\\/]* | ?:[\\/]*)
11770 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11789 esac
11791 orig_target_ar=$ac_cv_path_orig_target_ar
11792 if test -n "$orig_target_ar"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11794 $as_echo "$orig_target_ar" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11801 else
11802 if test "$GCC" = "yes"; then
11803 aros_gcc_ar=`$CC -print-prog-name=ar`
11804 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11805 set dummy `basename $aros_gcc_ar`; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_path_orig_target_ar+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 case $orig_target_ar in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in `dirname $aros_gcc_ar`
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11827 done
11828 done
11829 IFS=$as_save_IFS
11832 esac
11834 orig_target_ar=$ac_cv_path_orig_target_ar
11835 if test -n "$orig_target_ar"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11837 $as_echo "$orig_target_ar" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11845 if test "$orig_target_ar" = ""; then
11846 # Extract the first word of "ar", so it can be a program name with args.
11847 set dummy ar; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if ${ac_cv_path_orig_target_ar+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853 case $orig_target_ar in
11854 [\\/]* | ?:[\\/]*)
11855 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11869 done
11870 done
11871 IFS=$as_save_IFS
11874 esac
11876 orig_target_ar=$ac_cv_path_orig_target_ar
11877 if test -n "$orig_target_ar"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11879 $as_echo "$orig_target_ar" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11888 else
11889 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11890 set dummy ${aros_tool_prefix}ar; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_path_orig_target_ar+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 case $orig_target_ar in
11897 [\\/]* | ?:[\\/]*)
11898 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11912 done
11913 done
11914 IFS=$as_save_IFS
11917 esac
11919 orig_target_ar=$ac_cv_path_orig_target_ar
11920 if test -n "$orig_target_ar"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11922 $as_echo "$orig_target_ar" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11931 if test "$orig_target_ar" = ""; then
11932 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11935 if test "${aros_tool_prefix}ranlib" = ""; then
11936 if test "$cross_compiling" = "yes" ; then
11937 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11938 set dummy ${target_tool_prefix}ar; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 case $orig_target_ranlib in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11960 done
11961 done
11962 IFS=$as_save_IFS
11965 esac
11967 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11968 if test -n "$orig_target_ranlib"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11970 $as_echo "$orig_target_ranlib" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11977 else
11978 if test "$GCC" = "yes"; then
11979 aros_gcc_ar=`$CC -print-prog-name=ar`
11980 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11981 set dummy `basename $aros_gcc_ar`; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 case $orig_target_ranlib in
11988 [\\/]* | ?:[\\/]*)
11989 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in `dirname $aros_gcc_ar`
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12003 done
12004 done
12005 IFS=$as_save_IFS
12008 esac
12010 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12011 if test -n "$orig_target_ranlib"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12013 $as_echo "$orig_target_ranlib" >&6; }
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12021 if test "$orig_target_ranlib" = ""; then
12022 # Extract the first word of "ar", so it can be a program name with args.
12023 set dummy ar; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 case $orig_target_ranlib in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12047 IFS=$as_save_IFS
12050 esac
12052 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12053 if test -n "$orig_target_ranlib"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12055 $as_echo "$orig_target_ranlib" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12064 else
12065 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
12066 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 case $orig_target_ranlib in
12073 [\\/]* | ?:[\\/]*)
12074 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12084 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12088 done
12089 done
12090 IFS=$as_save_IFS
12093 esac
12095 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12096 if test -n "$orig_target_ranlib"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12098 $as_echo "$orig_target_ranlib" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12107 if test "$orig_target_ranlib" = ""; then
12108 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12111 if test "${aros_tool_prefix}nm" = ""; then
12112 if test "$cross_compiling" = "yes" ; then
12113 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12114 set dummy ${target_tool_prefix}nm; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_orig_target_nm+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 case $orig_target_nm in
12121 [\\/]* | ?:[\\/]*)
12122 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12128 IFS=$as_save_IFS
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 break 2
12136 done
12137 done
12138 IFS=$as_save_IFS
12141 esac
12143 orig_target_nm=$ac_cv_path_orig_target_nm
12144 if test -n "$orig_target_nm"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12146 $as_echo "$orig_target_nm" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12153 else
12154 if test "$GCC" = "yes"; then
12155 aros_gcc_nm=`$CC -print-prog-name=nm`
12156 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12157 set dummy `basename $aros_gcc_nm`; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if ${ac_cv_path_orig_target_nm+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 case $orig_target_nm in
12164 [\\/]* | ?:[\\/]*)
12165 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in `dirname $aros_gcc_nm`
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12179 done
12180 done
12181 IFS=$as_save_IFS
12184 esac
12186 orig_target_nm=$ac_cv_path_orig_target_nm
12187 if test -n "$orig_target_nm"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12189 $as_echo "$orig_target_nm" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12197 if test "$orig_target_nm" = ""; then
12198 # Extract the first word of "nm", so it can be a program name with args.
12199 set dummy nm; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if ${ac_cv_path_orig_target_nm+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 case $orig_target_nm in
12206 [\\/]* | ?:[\\/]*)
12207 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12221 done
12222 done
12223 IFS=$as_save_IFS
12226 esac
12228 orig_target_nm=$ac_cv_path_orig_target_nm
12229 if test -n "$orig_target_nm"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12231 $as_echo "$orig_target_nm" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12240 else
12241 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
12242 set dummy ${aros_tool_prefix}nm; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_path_orig_target_nm+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 case $orig_target_nm in
12249 [\\/]* | ?:[\\/]*)
12250 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12256 IFS=$as_save_IFS
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12260 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 break 2
12264 done
12265 done
12266 IFS=$as_save_IFS
12269 esac
12271 orig_target_nm=$ac_cv_path_orig_target_nm
12272 if test -n "$orig_target_nm"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12274 $as_echo "$orig_target_nm" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12283 if test "$orig_target_nm" = ""; then
12284 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12287 if test "${aros_tool_prefix}strip" = ""; then
12288 if test "$cross_compiling" = "yes" ; then
12289 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12290 set dummy ${target_tool_prefix}strip; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if ${ac_cv_path_orig_target_strip+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 case $orig_target_strip in
12297 [\\/]* | ?:[\\/]*)
12298 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12312 done
12313 done
12314 IFS=$as_save_IFS
12317 esac
12319 orig_target_strip=$ac_cv_path_orig_target_strip
12320 if test -n "$orig_target_strip"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12322 $as_echo "$orig_target_strip" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12329 else
12330 if test "$GCC" = "yes"; then
12331 aros_gcc_strip=`$CC -print-prog-name=strip`
12332 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12333 set dummy `basename $aros_gcc_strip`; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_path_orig_target_strip+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 case $orig_target_strip in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in `dirname $aros_gcc_strip`
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12355 done
12356 done
12357 IFS=$as_save_IFS
12360 esac
12362 orig_target_strip=$ac_cv_path_orig_target_strip
12363 if test -n "$orig_target_strip"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12365 $as_echo "$orig_target_strip" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12373 if test "$orig_target_strip" = ""; then
12374 # Extract the first word of "strip", so it can be a program name with args.
12375 set dummy strip; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_path_orig_target_strip+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 case $orig_target_strip in
12382 [\\/]* | ?:[\\/]*)
12383 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12397 done
12398 done
12399 IFS=$as_save_IFS
12402 esac
12404 orig_target_strip=$ac_cv_path_orig_target_strip
12405 if test -n "$orig_target_strip"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12407 $as_echo "$orig_target_strip" >&6; }
12408 else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12416 else
12417 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12418 set dummy ${aros_tool_prefix}strip; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_path_orig_target_strip+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 case $orig_target_strip in
12425 [\\/]* | ?:[\\/]*)
12426 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430 for as_dir in $PATH
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12436 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 break 2
12440 done
12441 done
12442 IFS=$as_save_IFS
12445 esac
12447 orig_target_strip=$ac_cv_path_orig_target_strip
12448 if test -n "$orig_target_strip"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12450 $as_echo "$orig_target_strip" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12459 if test "$orig_target_strip" = ""; then
12460 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12463 if test "${aros_tool_prefix}objcopy" = ""; then
12464 if test "$cross_compiling" = "yes" ; then
12465 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12466 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 case $orig_target_objcopy in
12473 [\\/]* | ?:[\\/]*)
12474 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12484 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12488 done
12489 done
12490 IFS=$as_save_IFS
12493 esac
12495 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12496 if test -n "$orig_target_objcopy"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12498 $as_echo "$orig_target_objcopy" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 else
12506 if test "$GCC" = "yes"; then
12507 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12508 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12509 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 case $orig_target_objcopy in
12516 [\\/]* | ?:[\\/]*)
12517 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in `dirname $aros_gcc_objcopy`
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12527 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12531 done
12532 done
12533 IFS=$as_save_IFS
12536 esac
12538 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12539 if test -n "$orig_target_objcopy"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12541 $as_echo "$orig_target_objcopy" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test "$orig_target_objcopy" = ""; then
12550 # Extract the first word of "objcopy", so it can be a program name with args.
12551 set dummy objcopy; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $orig_target_objcopy in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12578 esac
12580 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12581 if test -n "$orig_target_objcopy"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12583 $as_echo "$orig_target_objcopy" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12592 else
12593 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12594 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case $orig_target_objcopy in
12601 [\\/]* | ?:[\\/]*)
12602 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12616 done
12617 done
12618 IFS=$as_save_IFS
12621 esac
12623 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12624 if test -n "$orig_target_objcopy"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12626 $as_echo "$orig_target_objcopy" >&6; }
12627 else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12635 if test "$orig_target_objcopy" = ""; then
12636 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12639 if test "${aros_tool_prefix}objdump" = ""; then
12640 if test "$cross_compiling" = "yes" ; then
12641 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12642 set dummy ${target_tool_prefix}objdump; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_path_orig_target_objdump+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $orig_target_objdump in
12649 [\\/]* | ?:[\\/]*)
12650 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12669 esac
12671 orig_target_objdump=$ac_cv_path_orig_target_objdump
12672 if test -n "$orig_target_objdump"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12674 $as_echo "$orig_target_objdump" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 else
12682 if test "$GCC" = "yes"; then
12683 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12684 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12685 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_path_orig_target_objdump+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 case $orig_target_objdump in
12692 [\\/]* | ?:[\\/]*)
12693 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in `dirname $aros_gcc_objdump`
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12707 done
12708 done
12709 IFS=$as_save_IFS
12712 esac
12714 orig_target_objdump=$ac_cv_path_orig_target_objdump
12715 if test -n "$orig_target_objdump"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12717 $as_echo "$orig_target_objdump" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12725 if test "$orig_target_objdump" = ""; then
12726 # Extract the first word of "objdump", so it can be a program name with args.
12727 set dummy objdump; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_path_orig_target_objdump+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 case $orig_target_objdump in
12734 [\\/]* | ?:[\\/]*)
12735 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12749 done
12750 done
12751 IFS=$as_save_IFS
12754 esac
12756 orig_target_objdump=$ac_cv_path_orig_target_objdump
12757 if test -n "$orig_target_objdump"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12759 $as_echo "$orig_target_objdump" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12768 else
12769 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12770 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if ${ac_cv_path_orig_target_objdump+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 case $orig_target_objdump in
12777 [\\/]* | ?:[\\/]*)
12778 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12792 done
12793 done
12794 IFS=$as_save_IFS
12797 esac
12799 orig_target_objdump=$ac_cv_path_orig_target_objdump
12800 if test -n "$orig_target_objdump"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12802 $as_echo "$orig_target_objdump" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12811 if test "$orig_target_objdump" = ""; then
12812 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12816 if test "$kernel_tool_prefix" = "none" ; then
12817 # No kernel tools specified
12818 # Assume target tools == kernel tools with ELF wrapper
12819 aros_kernel_cc=$orig_target_cc
12820 aros_kernel_cxx=$orig_target_cxx
12821 aros_kernel_cpp=$orig_target_cpp
12822 aros_kernel_ld=$orig_target_ld
12823 aros_kernel_as=$orig_target_as
12824 aros_kernel_ar=$orig_target_ar
12825 aros_kernel_ranlib=$orig_target_ranlib
12826 aros_kernel_nm=$orig_target_nm
12827 aros_kernel_strip=$orig_target_strip
12828 aros_kernel_objcopy=$orig_target_objcopy
12829 aros_kernel_objdump=$orig_target_objdump
12830 use_kernel_cc_wrapper=yes
12833 # At this point, all aros_kernel_* and aros_target_*
12834 # tools should be set up correctly
12836 CC="$aros_kernel_cc $kernel_tool_flags"
12837 CPP="$aros_kernel_cpp"
12839 #-----------------------------------------------------------------------------
12841 # Disable pointer-signedness warnings if the compiler recognises the option
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12844 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12845 save_cflags="$CFLAGS"
12846 if test "$crosstools" != "yes" ; then
12847 CFLAGS="$CFLAGS -Wno-pointer-sign"
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12852 main ()
12856 return 0;
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860 use_no_sign_warning="yes"
12861 else
12862 use_no_sign_warning="no"
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 else
12866 # we do know it is supported for the smallest version of gcc we are going to build
12867 # we assume it's also supported by later versions
12868 use_no_sign_warning=yes
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12871 $as_echo "$use_no_sign_warning" >&6; }
12872 if test "x-$use_no_sign_warning" = "x-yes" ; then
12873 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12875 CFLAGS="$save_cflags"
12877 #-----------------------------------------------------------------------------
12879 # Find all the tools we need to compile. This could be cross-compiling
12880 # though! If that is the case we use the GNU form of the target and
12881 # simply add this to the front of the binary name. This is rather simple,
12882 # but it should work under most circumstances.
12884 # The default tools are to use the same as the host, but only if the
12885 # host and target CPU are the same. With GCC this is normally enough.
12888 aros_cc_pre=""
12889 aros_shared_ld="$aros_host_ld"
12891 aros_target_mkdep="$aros_host_mkdep"
12893 # The default tools executables to be linked to.
12894 if test "$rescomp" != ""; then
12895 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12896 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 case $aros_kernel_rescomp in
12903 [\\/]* | ?:[\\/]*)
12904 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12914 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12918 done
12919 done
12920 IFS=$as_save_IFS
12923 esac
12925 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12926 if test -n "$aros_kernel_rescomp"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12928 $as_echo "$aros_kernel_rescomp" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12935 if test "$aros_kernel_rescomp" = ""; then
12936 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12940 # Set up the sources for the symlink farm
12941 if test "$crosstools" = "yes"; then
12942 crosstools_target=tools-crosstools
12945 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12946 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12949 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12950 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12951 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12952 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12953 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12954 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12955 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12957 # aros_cc_pre is a variable that is added to the front of the compiler name
12958 # in the generated aros-gcc shell script. We need this to enable the cache
12959 # to work across cleaned builds. Also, support DISTCC using the correct
12960 # environment variable.
12963 if test "x${DISTCC}" != "x" ; then
12964 if test "x${CCACHE}" != "x" ; then
12965 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12966 else
12967 aros_cc_pre="${DISTCC} "
12969 else
12970 if test "x${CCACHE}" != "x" ; then
12971 aros_cc_pre="${CCACHE} "
12975 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12977 aros_target_nostdinc_cflags=-nostdinc
12979 aros_target_nostartup_ldflags=-nostartfiles
12981 aros_target_nix_ldflags=-nix
12983 aros_target_detach_ldflags=-detach
12985 aros_target_nostdlib_ldflags=-nostdlib
12988 # Target tools
12989 if test "$crosstools" != "yes"; then
12990 if test "$GCC" = "yes"; then
12991 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12993 else
12994 # We do not know which gcc version we are going to build and what we need to know
12995 # here is different for different versions so this will be set later during the
12996 # build of crosstools.
12997 aros_target_cc_path=@aros_target_cc_path@
12999 aros_target_cpp="${prefix}cpp"
13000 aros_target_cc="${prefix}gcc"
13001 aros_target_cxx="${prefix}g++"
13002 aros_target_as="${prefix}as"
13003 aros_target_ld="${prefix}ld"
13004 aros_target_ar="${prefix}ar $aros_target_ar_flags"
13005 aros_target_objcopy="${prefix}objcopy"
13006 aros_target_objdump="${prefix}objdump"
13007 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
13008 aros_target_nm="${prefix}nm $aros_target_nm_flags"
13009 aros_target_strip="${prefix}strip"
13010 aros_plain_nm="${prefix}nm"
13011 aros_plain_ar="${prefix}ar"
13013 # Check whether --enable-includes was given.
13014 if test "${enable_includes+set}" = set; then :
13015 enableval=$enable_includes; aros_target_incl=$enable_includes
13016 else
13017 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13021 if test "$aros_kernel_includes" = ""; then
13022 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13023 aros_kernel_includes="-isystem $aros_target_incl"
13027 if test "$aros_kernel_includes" != "" ; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13029 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13030 if test "$aros_kernel_cc_includes" = "" ; then
13031 # Try to guess where the directory is.
13032 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13033 if test -d $aros_kernel_cc_includes; then
13034 # Check if there is also an include-fixed directory and add it
13035 # to kernel compiler's include path as it may contain some of
13036 # the headers we need.
13037 if test -d "$aros_kernel_cc_includes"-fixed; then
13038 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13040 # Check for specific includes directory. Neede for Ubuntu 11.10
13041 if test -d "/usr/include/i386-linux-gnu"; then
13042 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
13044 else
13045 # The directory doesn't exist, we need to do some more work.
13046 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13048 # These are the headers we're looking for.
13049 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13050 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13051 zutil.h stdint.h"
13053 dirs=
13054 for h in $headers; do
13055 # Which other headers are needed by each of the above?
13056 deps=$(echo "#include <$h>" | \
13057 $aros_kernel_cc -E -M - 2>/dev/null | \
13058 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13060 # Copy all the needed headers to a directory beneath gendir.
13061 for d in $deps; do
13062 h=$(basename $d)
13063 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13064 sed -n "s,^.*/include\(/.*\),\1,p")
13065 ! test -d $dir && mkdir -p $dir
13066 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13067 done
13068 done
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13072 $as_echo "$aros_kernel_cc_includes" >&6; }
13073 # Adding -nostdinc to kernel includes as they are always used together.
13074 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13077 if test "$crosstools" != "yes"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13079 $as_echo_n "checking for the target compiler's include path... " >&6; }
13080 if test "$aros_target_cc_includes" = "" ; then
13081 #try to guess where the directory is
13082 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13083 if ! test -d $aros_target_cc_includes; then
13084 #the directory doesn't exist, we need to do some more work
13085 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13087 #these are the headers we're looking for
13088 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13089 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13090 zutil.h"
13092 dirs=
13093 for h in $headers; do
13094 #which other headers each of the above headers needs?
13095 deps=$(echo "#include <$h>" | \
13096 $orig_target_cc -E -M - 2>/dev/null | \
13097 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13099 #copy all the needed headers to a directory beneath gendir
13100 for d in $deps; do
13101 h=$(basename $d)
13102 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13103 sed -n "s,^.*/include\(/.*\),\1,p")
13104 ! test -d $dir && mkdir -p $dir
13105 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13106 done
13107 done
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13111 $as_echo "$aros_target_cc_includes" >&6; }
13112 else
13113 # We do not know which gcc version we are going to build and what we need to know
13114 # here is different for different versions so this will be set later during the
13115 # build of crosstools.
13116 aros_target_cc_includes=@aros_target_cc_includes@
13120 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13121 # On GCC >= 4.0 -iquote should be used
13124 save_cc="$CC"
13125 save_cflags="$CFLAGS"
13126 CFLAGS="-iquote."
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13128 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13129 if test "x-$crosstools" != "x-yes"; then
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13134 main ()
13138 return 0;
13140 _ACEOF
13141 if ac_fn_c_try_compile "$LINENO"; then :
13142 has_iquote="yes"
13143 else
13144 has_iquote="no"
13146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 else
13148 # we do know it is supported for the smallest version of gcc we are going to build
13149 # we assume it's also supported by later versions
13150 has_iquote=yes
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13153 $as_echo "$has_iquote" >&6; }
13154 if test "x-$has_iquote" = "x-yes" ; then
13155 host_cflags_iquote=-iquote
13156 host_cflags_iquote_end=
13157 else
13158 host_cflags_iquote=-I
13159 host_cflags_iquote_end=-I-
13161 kernel_cflags_iquote=$host_cflags_iquote
13162 kernel_cflags_iquote_end=$host_cflags_iquote_end
13163 if test "x-$cross_compiling" = "x-yes"; then
13164 CC="$aros_kernel_cc"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13166 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13167 if test "x-$crosstools" != "x-yes"; then
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13172 main ()
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13180 use_no_stack_protector="yes"
13181 else
13182 use_no_stack_protector="no"
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 else
13186 # we do know it is supported for the smallest version of gcc we are going to build
13187 # we assume it's also supported by later versions
13188 use_no_stack_protector=yes
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13191 $as_echo "$use_no_stack_protector" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13193 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13194 if test "x-$crosstools" != "x-yes"; then
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13199 main ()
13203 return 0;
13205 _ACEOF
13206 if ac_fn_c_try_compile "$LINENO"; then :
13207 has_iquote="yes"
13208 else
13209 has_iquote="no"
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 else
13213 # we do know it is supported for the smallest version of gcc we are going to build
13214 # we assume it's also supported by later versions
13215 has_iquote=yes
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13218 $as_echo "$has_iquote" >&6; }
13219 if test "x-$has_iquote" = "x-yes" ; then
13220 kernel_cflags_iquote=-iquote
13221 kernel_cflags_iquote_end=
13222 else
13223 kernel_cflags_iquote=-I
13224 kernel_cflags_iquote_end=-I-
13227 aros_cflags_iquote=$kernel_cflags_iquote
13228 aros_cflags_iquote_end=$kernel_cflags_iquote_end
13229 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13230 CC="$orig_target_cc"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13232 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13233 if test "x-$crosstools" != "x-yes"; then
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13238 main ()
13242 return 0;
13244 _ACEOF
13245 if ac_fn_c_try_compile "$LINENO"; then :
13246 has_iquote="yes"
13247 else
13248 has_iquote="no"
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 else
13252 # we do know it is supported for the smallest version of gcc we are going to build
13253 # we assume it's also supported by later versions
13254 has_iquote=yes
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13257 $as_echo "$has_iquote" >&6; }
13258 if test "x-$has_iquote" = "x-yes" ; then
13259 aros_cflags_iquote=-iquote
13260 aros_cflags_iquote_end=
13261 else
13262 aros_cflags_iquote=-I
13263 aros_cflags_iquote_end=-I-
13266 if test "x-$use_no_stack_protector" = "x-yes" ; then
13267 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13271 #-----------------------------------------------------------------------------
13273 # Check if the target compiler supports some options used for delinting:
13274 # -Wunused-but-set-variable
13275 # -Warray-bounds
13276 # -Wenum-compare
13277 # -Wstrict-overflow
13278 # -Wformat-security
13280 if test "x-$crosstools" != "x-yes"; then
13281 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13282 CC="$orig_target_cc"
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13285 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13286 CFLAGS=-Wunused-but-set-variable
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13291 main ()
13295 return 0;
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 aros_unused_but_set_variable="yes"
13300 else
13301 aros_unused_but_set_variable="no"
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13305 $as_echo "$aros_unused_but_set_variable" >&6; }
13306 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13307 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13311 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13312 CFLAGS=-Warray-bounds
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13317 main ()
13321 return 0;
13323 _ACEOF
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 aros_array_bounds="yes"
13326 else
13327 aros_array_bounds="no"
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13331 $as_echo "$aros_array_bounds" >&6; }
13332 if test "x-$aros_array_bounds" = "x-yes" ; then
13333 aros_cflags_array_bounds=-Wno-array-bounds
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13337 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13338 CFLAGS=-Wenum-compare
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13343 main ()
13347 return 0;
13349 _ACEOF
13350 if ac_fn_c_try_compile "$LINENO"; then :
13351 aros_enum_compare="yes"
13352 else
13353 aros_enum_compare="no"
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13357 $as_echo "$aros_enum_compare" >&6; }
13358 if test "x-$aros_enum_compare" = "x-yes" ; then
13359 aros_cflags_enum_compare=-Wno-enum-compare
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13363 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13364 CFLAGS=-Wstrict-overflow
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13369 main ()
13373 return 0;
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"; then :
13377 aros_strict_overflow="yes"
13378 else
13379 aros_strict_overflow="no"
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13383 $as_echo "$aros_strict_overflow" >&6; }
13384 if test "x-$aros_strict_overflow" = "x-yes" ; then
13385 aros_cflags_strict_overflow=-Wno-strict-overflow
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13389 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13390 CFLAGS=-Wformat-security
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13395 main ()
13399 return 0;
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403 aros_format_security="yes"
13404 else
13405 aros_format_security="no"
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13409 $as_echo "$aros_format_security" >&6; }
13410 if test "x-$aros_format_security" = "x-yes" ; then
13411 aros_cflags_format_security=-Wno-format-security
13413 else
13414 # We do not know which gcc version we are going to build and what we need to know
13415 # here is different for different versions so this will be set later during the
13416 # build of crosstools.
13417 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13418 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13419 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13420 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13421 aros_cflags_format_security=@aros_cflags_format_security@
13424 #-----------------------------------------------------------------------------
13426 # Check if we can explicitly choose older version of symbol hashing
13428 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13429 CC="$aros_kernel_cc"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13431 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13436 main ()
13440 return 0;
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"; then :
13444 use_hash_style="yes"
13445 else
13446 use_hash_style="no"
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13451 $as_echo "$use_hash_style" >&6; }
13452 if test "x-$use_hash_style" = "x-yes" ; then
13453 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13455 CC="$save_cc"
13456 CFLAGS="$save_cflags"
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13467 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13469 # Check whether --with-resolution was given.
13470 if test "${with_resolution+set}" = set; then :
13471 withval=$with_resolution; resolution=$withval
13472 else
13473 resolution=none
13476 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13477 if test "$resolution" = "yes" ; then
13478 resolution="none"
13480 if test "$resolution" = "no" ; then
13481 resolution="none"
13483 if test "$resolution" != "none" ; then
13484 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13485 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13486 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13489 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13490 aros_cv_default_wbwidth=$aros_default_wbwidth
13491 aros_cv_default_wbheight=$aros_default_wbheight
13492 aros_cv_default_wbdepth=$aros_default_wbdepth
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13495 $as_echo_n "checking if serial debug is enabled... " >&6; }
13497 # Check whether --with-serial-debug was given.
13498 if test "${with_serial_debug+set}" = set; then :
13499 withval=$with_serial_debug; serial_debug=$withval
13500 else
13501 serial_debug=none
13504 if test "$aros_serial_debug" = 0 ; then
13505 serial_debug_forced=""
13506 if test "$serial_debug" = "yes" ; then
13507 serial_debug="1"
13509 if test "$serial_debug" = "no" ; then
13510 serial_debug="none"
13512 else
13513 serial_debug_forced="(forced)"
13514 serial_debug=$aros_serial_debug
13516 if test "$serial_debug" != "none" ; then
13517 aros_serial_debug=$serial_debug
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13519 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13520 else
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13526 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13527 # Check whether --enable-palm_debug_hack was given.
13528 if test "${enable_palm_debug_hack+set}" = set; then :
13529 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13530 else
13531 palm_debug_hack="no"
13534 if test "$palm_debug_hack" = "yes" ; then
13535 aros_palm_debug_hack="1"
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13538 $as_echo "$palm_debug_hack" >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
13541 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
13542 # Check whether --enable-usb30_code was given.
13543 if test "${enable_usb30_code+set}" = set; then :
13544 enableval=$enable_usb30_code; usb30_code="yes"
13545 else
13546 usb30_code="no"
13549 if test "$usb30_code" = "yes" ; then
13550 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
13551 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
13554 $as_echo "$usb30_code" >&6; }
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13557 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13558 # Check whether --enable-nesting_supervisor was given.
13559 if test "${enable_nesting_supervisor+set}" = set; then :
13560 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13561 else
13562 nesting_supervisor="no"
13565 if test "$nesting_supervisor" = "yes" ; then
13566 aros_nesting_supervisor="1"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13569 $as_echo "$nesting_supervisor" >&6; }
13571 if test "$aros_enable_mmu" = "" ; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13573 $as_echo_n "checking if MMU support is enabled... " >&6; }
13574 # Check whether --enable-mmu was given.
13575 if test "${enable_mmu+set}" = set; then :
13576 enableval=$enable_mmu; aros_enable_mmu=$enableval
13577 else
13578 aros_enable_mmu="yes"
13581 if test "$aros_enable_mmu" = "" ; then
13582 aros_enable_mmu="yes"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13585 $as_echo "$aros_enable_mmu" >&6; }
13587 if test "$aros_enable_mmu" = "no" ; then
13588 aros_enable_mmu="0"
13589 else
13590 aros_enable_mmu="1"
13594 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13596 if test "x-$need_dlopen" != "x-no" ; then
13597 save_libs="$LIBS"
13598 LIBS=""
13599 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13600 if test "x$ac_cv_func_dlopen" = xyes; then :
13601 have_dl="yes"
13602 else
13603 have_dl="no"
13606 if test "x-$have_dl" = "x-no" ; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13609 if ${ac_cv_lib_dl_dlopen+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_check_lib_save_LIBS=$LIBS
13613 LIBS="-ldl $LIBS"
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13617 /* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char dlopen ();
13625 main ()
13627 return dlopen ();
13629 return 0;
13631 _ACEOF
13632 if ac_fn_c_try_link "$LINENO"; then :
13633 ac_cv_lib_dl_dlopen=yes
13634 else
13635 ac_cv_lib_dl_dlopen=no
13637 rm -f core conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13644 have_dl="yes"
13645 aros_host_ldflags="$aros_host_ldflags -ldl"
13646 else
13647 have_dl="no"
13651 if test "x-$have_dl" = "x-no" ; then
13652 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13654 LIBS="$save_libs"
13658 # Check whether --enable-x11_hidd was given.
13659 if test "${enable_x11_hidd+set}" = set; then :
13660 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13661 else
13662 x11_hidd="$need_x11"
13665 case "x-$x11_hidd" in
13666 x-yes|x-no|x-auto) ;;
13667 *) x11_hidd="$need_x11" ;;
13668 esac
13670 ENABLE_X11=0
13672 if test "x-$x11_hidd" != "x-no" ; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13675 $as_echo_n "checking for X... " >&6; }
13678 # Check whether --with-x was given.
13679 if test "${with_x+set}" = set; then :
13680 withval=$with_x;
13683 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13684 if test "x$with_x" = xno; then
13685 # The user explicitly disabled X.
13686 have_x=disabled
13687 else
13688 case $x_includes,$x_libraries in #(
13689 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13690 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 # One or both of the vars are not set, and there is no cached value.
13694 ac_x_includes=no ac_x_libraries=no
13695 rm -f -r conftest.dir
13696 if mkdir conftest.dir; then
13697 cd conftest.dir
13698 cat >Imakefile <<'_ACEOF'
13699 incroot:
13700 @echo incroot='${INCROOT}'
13701 usrlibdir:
13702 @echo usrlibdir='${USRLIBDIR}'
13703 libdir:
13704 @echo libdir='${LIBDIR}'
13705 _ACEOF
13706 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13707 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13708 for ac_var in incroot usrlibdir libdir; do
13709 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13710 done
13711 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13712 for ac_extension in a so sl dylib la dll; do
13713 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13714 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13715 ac_im_usrlibdir=$ac_im_libdir; break
13717 done
13718 # Screen out bogus values from the imake configuration. They are
13719 # bogus both because they are the default anyway, and because
13720 # using them would break gcc on systems where it needs fixed includes.
13721 case $ac_im_incroot in
13722 /usr/include) ac_x_includes= ;;
13723 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13724 esac
13725 case $ac_im_usrlibdir in
13726 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13727 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13728 esac
13730 cd ..
13731 rm -f -r conftest.dir
13734 # Standard set of common directories for X headers.
13735 # Check X11 before X11Rn because it is often a symlink to the current release.
13736 ac_x_header_dirs='
13737 /usr/X11/include
13738 /usr/X11R7/include
13739 /usr/X11R6/include
13740 /usr/X11R5/include
13741 /usr/X11R4/include
13743 /usr/include/X11
13744 /usr/include/X11R7
13745 /usr/include/X11R6
13746 /usr/include/X11R5
13747 /usr/include/X11R4
13749 /usr/local/X11/include
13750 /usr/local/X11R7/include
13751 /usr/local/X11R6/include
13752 /usr/local/X11R5/include
13753 /usr/local/X11R4/include
13755 /usr/local/include/X11
13756 /usr/local/include/X11R7
13757 /usr/local/include/X11R6
13758 /usr/local/include/X11R5
13759 /usr/local/include/X11R4
13761 /usr/X386/include
13762 /usr/x386/include
13763 /usr/XFree86/include/X11
13765 /usr/include
13766 /usr/local/include
13767 /usr/unsupported/include
13768 /usr/athena/include
13769 /usr/local/x11r5/include
13770 /usr/lpp/Xamples/include
13772 /usr/openwin/include
13773 /usr/openwin/share/include'
13775 if test "$ac_x_includes" = no; then
13776 # Guess where to find include files, by looking for Xlib.h.
13777 # First, try using that file with no special directory specified.
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <X11/Xlib.h>
13781 _ACEOF
13782 if ac_fn_c_try_cpp "$LINENO"; then :
13783 # We can compile using X headers with no special include directory.
13784 ac_x_includes=
13785 else
13786 for ac_dir in $ac_x_header_dirs; do
13787 if test -r "$ac_dir/X11/Xlib.h"; then
13788 ac_x_includes=$ac_dir
13789 break
13791 done
13793 rm -f conftest.err conftest.i conftest.$ac_ext
13794 fi # $ac_x_includes = no
13796 if test "$ac_x_libraries" = no; then
13797 # Check for the libraries.
13798 # See if we find them without any special options.
13799 # Don't add to $LIBS permanently.
13800 ac_save_LIBS=$LIBS
13801 LIBS="-lX11 $LIBS"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <X11/Xlib.h>
13806 main ()
13808 XrmInitialize ()
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 LIBS=$ac_save_LIBS
13815 # We can link X programs with no special library path.
13816 ac_x_libraries=
13817 else
13818 LIBS=$ac_save_LIBS
13819 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13821 # Don't even attempt the hair of trying to link an X program!
13822 for ac_extension in a so sl dylib la dll; do
13823 if test -r "$ac_dir/libX11.$ac_extension"; then
13824 ac_x_libraries=$ac_dir
13825 break 2
13827 done
13828 done
13830 rm -f core conftest.err conftest.$ac_objext \
13831 conftest$ac_exeext conftest.$ac_ext
13832 fi # $ac_x_libraries = no
13834 case $ac_x_includes,$ac_x_libraries in #(
13835 no,* | *,no | *\'*)
13836 # Didn't find X, or a directory has "'" in its name.
13837 ac_cv_have_x="have_x=no";; #(
13839 # Record where we found X for the cache.
13840 ac_cv_have_x="have_x=yes\
13841 ac_x_includes='$ac_x_includes'\
13842 ac_x_libraries='$ac_x_libraries'"
13843 esac
13845 ;; #(
13846 *) have_x=yes;;
13847 esac
13848 eval "$ac_cv_have_x"
13849 fi # $with_x != no
13851 if test "$have_x" != yes; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13853 $as_echo "$have_x" >&6; }
13854 no_x=yes
13855 else
13856 # If each of the values was on the command line, it overrides each guess.
13857 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13858 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13859 # Update the cache value to reflect the command line values.
13860 ac_cv_have_x="have_x=yes\
13861 ac_x_includes='$x_includes'\
13862 ac_x_libraries='$x_libraries'"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13864 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13868 x_cflags=
13869 for path in $x_libraries
13871 x_cflags="$x_cflags -L$path"
13872 done
13874 for path in $x_includes
13876 x_cflags="$x_cflags -I$path"
13877 done
13879 if test "x-$no_x" = "x-yes" ; then
13881 if test "x-$x11_hidd" != "x-auto" ; then
13882 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13885 else
13886 unixgfx_hidd_target=kernel-x11gfx
13887 ENABLE_X11=1
13889 # Check whether --enable-x11_shm was given.
13890 if test "${enable_x11_shm+set}" = set; then :
13891 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13892 else
13893 x11_hidd_shm="auto"
13896 case "x-$x11_hidd_shm" in
13897 x-yes|x-no|x-auto) ;;
13898 *) x11_hidd_shm="auto" ;;
13899 esac
13901 have_xshm=no
13903 if test "x-$x11_hidd_shm" != "x-no" ; then
13905 for ac_header in sys/ipc.h
13906 do :
13907 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13908 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_SYS_IPC_H 1
13911 _ACEOF
13915 done
13917 for ac_header in sys/shm.h
13918 do :
13919 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13920 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_SYS_SHM_H 1
13923 _ACEOF
13927 done
13930 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13932 save_cflags="$CFLAGS"
13933 CFLAGS="$CFLAGS $x_cflags"
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13935 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13936 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 ac_check_lib_save_LIBS=$LIBS
13940 LIBS="-lXext $LIBS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char XShmQueryExtension ();
13952 main ()
13954 return XShmQueryExtension ();
13956 return 0;
13958 _ACEOF
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_lib_Xext_XShmQueryExtension=yes
13961 else
13962 ac_cv_lib_Xext_XShmQueryExtension=no
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13969 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13970 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13971 have_xshm=yes
13974 CFLAGS="$save_cflags"
13978 if test "x-$have_xshm" = "x-yes" ; then
13979 DO_XSHM_SUPPORT="1"
13980 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13981 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13982 else
13983 DO_XSHM_SUPPORT="0"
13987 # Check whether --enable-x11_vidmode was given.
13988 if test "${enable_x11_vidmode+set}" = set; then :
13989 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13990 else
13991 x11_hidd_vidmode="auto"
13994 case "x-$x11_hidd_vidmode" in
13995 x-yes|x-no|x-auto) ;;
13996 *) x11_hidd_vidmode="auto" ;;
13997 esac
13999 have_vidmode=no
14001 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14003 save_cflags="$CFLAGS"
14004 CFLAGS="$CFLAGS $x_cflags"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14006 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14007 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-lXxf86vm $LIBS"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char XF86VidModeQueryExtension ();
14023 main ()
14025 return XF86VidModeQueryExtension ();
14027 return 0;
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14032 else
14033 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 LIBS=$ac_check_lib_save_LIBS
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14040 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14041 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14042 have_vidmode=yes
14045 CFLAGS="$save_cflags"
14048 if test "x-$have_vidmode" = "x-yes" ; then
14049 DO_VIDMODE_SUPPORT="1"
14050 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14051 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14052 else
14053 DO_VIDMODE_SUPPORT="0"
14057 aros_host_x11_includes=$x_includes
14058 aros_host_x11_libdirs=$x_libraries
14062 # Check whether --enable-sdl_hidd was given.
14063 if test "${enable_sdl_hidd+set}" = set; then :
14064 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14065 else
14066 sdl_hidd="auto"
14069 case "x-$sdl_hidd" in
14070 x-yes|x-no|x-auto) ;;
14071 *) sdl_hidd="auto" ;;
14072 esac
14074 if test "x-$sdl_hidd" != "x-no" ; then
14077 # Check whether --with-sdl-prefix was given.
14078 if test "${with_sdl_prefix+set}" = set; then :
14079 withval=$with_sdl_prefix; sdl_prefix="$withval"
14080 else
14081 sdl_prefix=""
14085 # Check whether --with-sdl-exec-prefix was given.
14086 if test "${with_sdl_exec_prefix+set}" = set; then :
14087 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14088 else
14089 sdl_exec_prefix=""
14092 # Check whether --enable-sdltest was given.
14093 if test "${enable_sdltest+set}" = set; then :
14094 enableval=$enable_sdltest;
14095 else
14096 enable_sdltest=yes
14100 if test x$sdl_exec_prefix != x ; then
14101 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14102 if test x${SDL_CONFIG+set} != xset ; then
14103 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14106 if test x$sdl_prefix != x ; then
14107 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14108 if test x${SDL_CONFIG+set} != xset ; then
14109 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14113 as_save_PATH="$PATH"
14114 if test "x$prefix" != xNONE; then
14115 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14117 # Extract the first word of "sdl-config", so it can be a program name with args.
14118 set dummy sdl-config; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 case $SDL_CONFIG in
14125 [\\/]* | ?:[\\/]*)
14126 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14140 done
14141 done
14142 IFS=$as_save_IFS
14144 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14146 esac
14148 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14149 if test -n "$SDL_CONFIG"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14151 $as_echo "$SDL_CONFIG" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14158 PATH="$as_save_PATH"
14159 min_sdl_version=1.2.10
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14161 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14162 no_sdl=""
14163 if test "$SDL_CONFIG" = "no" ; then
14164 no_sdl=yes
14165 else
14166 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14167 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14169 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14170 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14171 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14172 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14173 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14174 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14175 if test "x$enable_sdltest" = "xyes" ; then
14176 ac_save_CFLAGS="$CFLAGS"
14177 ac_save_CXXFLAGS="$CXXFLAGS"
14178 ac_save_LIBS="$LIBS"
14179 CFLAGS="$CFLAGS $SDL_CFLAGS"
14180 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14181 LIBS="$LIBS $SDL_LIBS"
14182 rm -f conf.sdltest
14183 if test "$cross_compiling" = yes; then :
14184 echo $ac_n "cross compiling; assumed OK... $ac_c"
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14189 #include <stdio.h>
14190 #include <stdlib.h>
14191 #include <string.h>
14192 #include "SDL.h"
14194 char*
14195 my_strdup (char *str)
14197 char *new_str;
14199 if (str)
14201 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14202 strcpy (new_str, str);
14204 else
14205 new_str = NULL;
14207 return new_str;
14210 int main (int argc, char *argv[])
14212 int major, minor, micro;
14213 char *tmp_version;
14215 /* This hangs on some systems (?)
14216 system ("touch conf.sdltest");
14218 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14220 /* HP/UX 9 (%@#!) writes to sscanf strings */
14221 tmp_version = my_strdup("$min_sdl_version");
14222 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14223 printf("%s, bad version string\n", "$min_sdl_version");
14224 exit(1);
14227 if (($sdl_major_version > major) ||
14228 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14229 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14231 return 0;
14233 else
14235 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14236 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14237 printf("*** best to upgrade to the required version.\n");
14238 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14239 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14240 printf("*** config.cache before re-running configure\n");
14241 return 1;
14246 _ACEOF
14247 if ac_fn_c_try_run "$LINENO"; then :
14249 else
14250 no_sdl=yes
14252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14253 conftest.$ac_objext conftest.beam conftest.$ac_ext
14256 CFLAGS="$ac_save_CFLAGS"
14257 CXXFLAGS="$ac_save_CXXFLAGS"
14258 LIBS="$ac_save_LIBS"
14261 if test "x$no_sdl" = x ; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14263 $as_echo "yes" >&6; }
14264 have_sdl="yes"
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 if test "$SDL_CONFIG" = "no" ; then
14269 echo "*** The sdl-config script installed by SDL could not be found"
14270 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14271 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14272 echo "*** full path to sdl-config."
14273 else
14274 if test -f conf.sdltest ; then
14276 else
14277 echo "*** Could not run SDL test program, checking why..."
14278 CFLAGS="$CFLAGS $SDL_CFLAGS"
14279 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14280 LIBS="$LIBS $SDL_LIBS"
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14284 #include <stdio.h>
14285 #include "SDL.h"
14287 int main(int argc, char *argv[])
14288 { return 0; }
14289 #undef main
14290 #define main K_and_R_C_main
14293 main ()
14295 return 0;
14297 return 0;
14299 _ACEOF
14300 if ac_fn_c_try_link "$LINENO"; then :
14301 echo "*** The test program compiled, but did not run. This usually means"
14302 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14303 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14304 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14305 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14306 echo "*** is required on your system"
14307 echo "***"
14308 echo "*** If you have an old version installed, it is best to remove it, although"
14309 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14310 else
14311 echo "*** The test program failed to compile or link. See the file config.log for the"
14312 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14313 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14314 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 CFLAGS="$ac_save_CFLAGS"
14319 CXXFLAGS="$ac_save_CXXFLAGS"
14320 LIBS="$ac_save_LIBS"
14323 SDL_CFLAGS=""
14324 SDL_LIBS=""
14325 have_sdl="no"
14329 rm -f conf.sdltest
14332 if test "x-$have_sdl" != "x-yes" ; then
14334 if test "x-$sdl_hidd" != "x-auto" ; then
14335 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14338 else
14339 sdl_hidd_target=kernel-hidd-sdl
14340 aros_host_sdl_cflags=SDL_CFLAGS
14341 aros_host_sdl_libs=SDL_LIBS
14345 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14346 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14351 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14352 oss_library_target=workbench-libs-oss-unix
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14358 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14359 # Check whether --enable-dbus was given.
14360 if test "${enable_dbus+set}" = set; then :
14361 enableval=$enable_dbus; dbus="yes"
14362 else
14363 dbus="no"
14366 if test "$dbus" = "yes" ; then
14367 ENABLE_DBUS=1
14368 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14369 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14370 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14371 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14372 else
14373 ENABLE_DBUS=0
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14376 $as_echo "$dbus" >&6; }
14378 if test "$use_kernel_cc_wrapper" = "yes" ; then
14379 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14382 if test "${crosstools}" != "yes" ; then
14383 aros_target_toolchain=no
14384 else
14385 aros_target_toolchain=yes
14389 # Generic
14401 # Compatability with other Amiga-like operation systems
14404 # Host related
14432 # Target Related
14497 # Delinting target compiler flags
14504 # Graphics Related
14521 # Native version related
14524 # Palm native version related
14527 # Unix/Hosted version related
14530 # MMU related
14533 # Apple iOS related
14538 # ARM default GCC target related
14544 # Android related
14549 # DBUS related
14556 #X11 related
14559 # Debug related
14565 # Collect-aros stuff: "-ius" to ignore undefined symbols
14568 # C compiler related
14572 #ObjC compiler related
14575 # USB3.0 code
14578 case "$aros_flavour" in
14579 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14580 aros_flavour="emulation" ;;
14581 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14582 aros_flavour="emulation" ;;
14583 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14584 aros_flavour="standalone";;
14585 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14586 aros_flavour="standalone";;
14587 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14588 aros_flavour="native" ;;
14589 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14590 aros_flavour="native" ;;
14591 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14592 aros_flavour="linklib" ;;
14593 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14594 aros_flavour="palmnative" ;;
14595 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14596 aros_flavour="mac68knative" ;;
14597 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14598 aros_flavour="ppcnative" ;;
14599 esac
14601 if test ! -d ${aros_inc_dir} ; then
14602 ${MKDIR} ${aros_inc_dir}
14604 if test ! -d ${aros_geninc_dir} ; then
14605 ${MKDIR} ${aros_geninc_dir}
14607 if test ! -d ${aros_hostcfg_dir} ; then
14608 ${MKDIR} ${aros_hostcfg_dir}
14610 if test ! -d ${aros_targetcfg_dir} ; then
14611 ${MKDIR} ${aros_targetcfg_dir}
14613 if test ! -d ${aros_tools_dir} ; then
14614 ${MKDIR} ${aros_tools_dir}
14616 if test ! -d ${aros_scripts_dir} ; then
14617 ${MKDIR} ${aros_scripts_dir}
14620 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14623 ac_config_commands="$ac_config_commands compiler_executable"
14625 ac_config_commands="$ac_config_commands genmf_executable"
14628 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14631 cat >confcache <<\_ACEOF
14632 # This file is a shell script that caches the results of configure
14633 # tests run on this system so they can be shared between configure
14634 # scripts and configure runs, see configure's option --config-cache.
14635 # It is not useful on other systems. If it contains results you don't
14636 # want to keep, you may remove or edit it.
14638 # config.status only pays attention to the cache file if you give it
14639 # the --recheck option to rerun configure.
14641 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14642 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14643 # following values.
14645 _ACEOF
14647 # The following way of writing the cache mishandles newlines in values,
14648 # but we know of no workaround that is simple, portable, and efficient.
14649 # So, we kill variables containing newlines.
14650 # Ultrix sh set writes to stderr and can't be redirected directly,
14651 # and sets the high bit in the cache file unless we assign to the vars.
14653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14654 eval ac_val=\$$ac_var
14655 case $ac_val in #(
14656 *${as_nl}*)
14657 case $ac_var in #(
14658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14660 esac
14661 case $ac_var in #(
14662 _ | IFS | as_nl) ;; #(
14663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14664 *) { eval $ac_var=; unset $ac_var;} ;;
14665 esac ;;
14666 esac
14667 done
14669 (set) 2>&1 |
14670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14671 *${as_nl}ac_space=\ *)
14672 # `set' does not quote correctly, so add quotes: double-quote
14673 # substitution turns \\\\ into \\, and sed turns \\ into \.
14674 sed -n \
14675 "s/'/'\\\\''/g;
14676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14677 ;; #(
14679 # `set' quotes correctly as required by POSIX, so do not add quotes.
14680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14682 esac |
14683 sort
14685 sed '
14686 /^ac_cv_env_/b end
14687 t clear
14688 :clear
14689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14690 t end
14691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14692 :end' >>confcache
14693 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14694 if test -w "$cache_file"; then
14695 if test "x$cache_file" != "x/dev/null"; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14697 $as_echo "$as_me: updating cache $cache_file" >&6;}
14698 if test ! -f "$cache_file" || test -h "$cache_file"; then
14699 cat confcache >"$cache_file"
14700 else
14701 case $cache_file in #(
14702 */* | ?:*)
14703 mv -f confcache "$cache_file"$$ &&
14704 mv -f "$cache_file"$$ "$cache_file" ;; #(
14706 mv -f confcache "$cache_file" ;;
14707 esac
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14712 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14715 rm -f confcache
14717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14718 # Let make expand exec_prefix.
14719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14721 DEFS=-DHAVE_CONFIG_H
14723 ac_libobjs=
14724 ac_ltlibobjs=
14726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14727 # 1. Remove the extension, and $U if already installed.
14728 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14729 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14730 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14731 # will be set to the directory where LIBOBJS objects are built.
14732 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14733 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14734 done
14735 LIBOBJS=$ac_libobjs
14737 LTLIBOBJS=$ac_ltlibobjs
14741 : "${CONFIG_STATUS=./config.status}"
14742 ac_write_fail=0
14743 ac_clean_files_save=$ac_clean_files
14744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14747 as_write_fail=0
14748 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14749 #! $SHELL
14750 # Generated by $as_me.
14751 # Run this file to recreate the current configuration.
14752 # Compiler output produced by configure, useful for debugging
14753 # configure, is in config.log if it exists.
14755 debug=false
14756 ac_cs_recheck=false
14757 ac_cs_silent=false
14759 SHELL=\${CONFIG_SHELL-$SHELL}
14760 export SHELL
14761 _ASEOF
14762 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14763 ## -------------------- ##
14764 ## M4sh Initialization. ##
14765 ## -------------------- ##
14767 # Be more Bourne compatible
14768 DUALCASE=1; export DUALCASE # for MKS sh
14769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14770 emulate sh
14771 NULLCMD=:
14772 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14773 # is contrary to our usage. Disable this feature.
14774 alias -g '${1+"$@"}'='"$@"'
14775 setopt NO_GLOB_SUBST
14776 else
14777 case `(set -o) 2>/dev/null` in #(
14778 *posix*) :
14779 set -o posix ;; #(
14780 *) :
14782 esac
14786 as_nl='
14788 export as_nl
14789 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14790 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14793 # Prefer a ksh shell builtin over an external printf program on Solaris,
14794 # but without wasting forks for bash or zsh.
14795 if test -z "$BASH_VERSION$ZSH_VERSION" \
14796 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14797 as_echo='print -r --'
14798 as_echo_n='print -rn --'
14799 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14800 as_echo='printf %s\n'
14801 as_echo_n='printf %s'
14802 else
14803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14805 as_echo_n='/usr/ucb/echo -n'
14806 else
14807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14808 as_echo_n_body='eval
14809 arg=$1;
14810 case $arg in #(
14811 *"$as_nl"*)
14812 expr "X$arg" : "X\\(.*\\)$as_nl";
14813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14814 esac;
14815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14817 export as_echo_n_body
14818 as_echo_n='sh -c $as_echo_n_body as_echo'
14820 export as_echo_body
14821 as_echo='sh -c $as_echo_body as_echo'
14824 # The user is always right.
14825 if test "${PATH_SEPARATOR+set}" != set; then
14826 PATH_SEPARATOR=:
14827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14829 PATH_SEPARATOR=';'
14834 # IFS
14835 # We need space, tab and new line, in precisely that order. Quoting is
14836 # there to prevent editors from complaining about space-tab.
14837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14838 # splitting by setting IFS to empty value.)
14839 IFS=" "" $as_nl"
14841 # Find who we are. Look in the path if we contain no directory separator.
14842 as_myself=
14843 case $0 in #((
14844 *[\\/]* ) as_myself=$0 ;;
14845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14848 IFS=$as_save_IFS
14849 test -z "$as_dir" && as_dir=.
14850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14851 done
14852 IFS=$as_save_IFS
14855 esac
14856 # We did not find ourselves, most probably we were run as `sh COMMAND'
14857 # in which case we are not to be found in the path.
14858 if test "x$as_myself" = x; then
14859 as_myself=$0
14861 if test ! -f "$as_myself"; then
14862 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14863 exit 1
14866 # Unset variables that we do not need and which cause bugs (e.g. in
14867 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14868 # suppresses any "Segmentation fault" message there. '((' could
14869 # trigger a bug in pdksh 5.2.14.
14870 for as_var in BASH_ENV ENV MAIL MAILPATH
14871 do eval test x\${$as_var+set} = xset \
14872 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14873 done
14874 PS1='$ '
14875 PS2='> '
14876 PS4='+ '
14878 # NLS nuisances.
14879 LC_ALL=C
14880 export LC_ALL
14881 LANGUAGE=C
14882 export LANGUAGE
14884 # CDPATH.
14885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14888 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14889 # ----------------------------------------
14890 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14891 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14892 # script with STATUS, using 1 if that was 0.
14893 as_fn_error ()
14895 as_status=$1; test $as_status -eq 0 && as_status=1
14896 if test "$4"; then
14897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14898 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14900 $as_echo "$as_me: error: $2" >&2
14901 as_fn_exit $as_status
14902 } # as_fn_error
14905 # as_fn_set_status STATUS
14906 # -----------------------
14907 # Set $? to STATUS, without forking.
14908 as_fn_set_status ()
14910 return $1
14911 } # as_fn_set_status
14913 # as_fn_exit STATUS
14914 # -----------------
14915 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14916 as_fn_exit ()
14918 set +e
14919 as_fn_set_status $1
14920 exit $1
14921 } # as_fn_exit
14923 # as_fn_unset VAR
14924 # ---------------
14925 # Portably unset VAR.
14926 as_fn_unset ()
14928 { eval $1=; unset $1;}
14930 as_unset=as_fn_unset
14931 # as_fn_append VAR VALUE
14932 # ----------------------
14933 # Append the text in VALUE to the end of the definition contained in VAR. Take
14934 # advantage of any shell optimizations that allow amortized linear growth over
14935 # repeated appends, instead of the typical quadratic growth present in naive
14936 # implementations.
14937 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14938 eval 'as_fn_append ()
14940 eval $1+=\$2
14942 else
14943 as_fn_append ()
14945 eval $1=\$$1\$2
14947 fi # as_fn_append
14949 # as_fn_arith ARG...
14950 # ------------------
14951 # Perform arithmetic evaluation on the ARGs, and store the result in the
14952 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14953 # must be portable across $(()) and expr.
14954 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14955 eval 'as_fn_arith ()
14957 as_val=$(( $* ))
14959 else
14960 as_fn_arith ()
14962 as_val=`expr "$@" || test $? -eq 1`
14964 fi # as_fn_arith
14967 if expr a : '\(a\)' >/dev/null 2>&1 &&
14968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14969 as_expr=expr
14970 else
14971 as_expr=false
14974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14975 as_basename=basename
14976 else
14977 as_basename=false
14980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14981 as_dirname=dirname
14982 else
14983 as_dirname=false
14986 as_me=`$as_basename -- "$0" ||
14987 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14988 X"$0" : 'X\(//\)$' \| \
14989 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14990 $as_echo X/"$0" |
14991 sed '/^.*\/\([^/][^/]*\)\/*$/{
14992 s//\1/
14995 /^X\/\(\/\/\)$/{
14996 s//\1/
14999 /^X\/\(\/\).*/{
15000 s//\1/
15003 s/.*/./; q'`
15005 # Avoid depending upon Character Ranges.
15006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15009 as_cr_digits='0123456789'
15010 as_cr_alnum=$as_cr_Letters$as_cr_digits
15012 ECHO_C= ECHO_N= ECHO_T=
15013 case `echo -n x` in #(((((
15014 -n*)
15015 case `echo 'xy\c'` in
15016 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15017 xy) ECHO_C='\c';;
15018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15019 ECHO_T=' ';;
15020 esac;;
15022 ECHO_N='-n';;
15023 esac
15025 rm -f conf$$ conf$$.exe conf$$.file
15026 if test -d conf$$.dir; then
15027 rm -f conf$$.dir/conf$$.file
15028 else
15029 rm -f conf$$.dir
15030 mkdir conf$$.dir 2>/dev/null
15032 if (echo >conf$$.file) 2>/dev/null; then
15033 if ln -s conf$$.file conf$$ 2>/dev/null; then
15034 as_ln_s='ln -s'
15035 # ... but there are two gotchas:
15036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15038 # In both cases, we have to default to `cp -pR'.
15039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15040 as_ln_s='cp -pR'
15041 elif ln conf$$.file conf$$ 2>/dev/null; then
15042 as_ln_s=ln
15043 else
15044 as_ln_s='cp -pR'
15046 else
15047 as_ln_s='cp -pR'
15049 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15050 rmdir conf$$.dir 2>/dev/null
15053 # as_fn_mkdir_p
15054 # -------------
15055 # Create "$as_dir" as a directory, including parents if necessary.
15056 as_fn_mkdir_p ()
15059 case $as_dir in #(
15060 -*) as_dir=./$as_dir;;
15061 esac
15062 test -d "$as_dir" || eval $as_mkdir_p || {
15063 as_dirs=
15064 while :; do
15065 case $as_dir in #(
15066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15067 *) as_qdir=$as_dir;;
15068 esac
15069 as_dirs="'$as_qdir' $as_dirs"
15070 as_dir=`$as_dirname -- "$as_dir" ||
15071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15072 X"$as_dir" : 'X\(//\)[^/]' \| \
15073 X"$as_dir" : 'X\(//\)$' \| \
15074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15075 $as_echo X"$as_dir" |
15076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15077 s//\1/
15080 /^X\(\/\/\)[^/].*/{
15081 s//\1/
15084 /^X\(\/\/\)$/{
15085 s//\1/
15088 /^X\(\/\).*/{
15089 s//\1/
15092 s/.*/./; q'`
15093 test -d "$as_dir" && break
15094 done
15095 test -z "$as_dirs" || eval "mkdir $as_dirs"
15096 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15099 } # as_fn_mkdir_p
15100 if mkdir -p . 2>/dev/null; then
15101 as_mkdir_p='mkdir -p "$as_dir"'
15102 else
15103 test -d ./-p && rmdir ./-p
15104 as_mkdir_p=false
15108 # as_fn_executable_p FILE
15109 # -----------------------
15110 # Test if FILE is an executable regular file.
15111 as_fn_executable_p ()
15113 test -f "$1" && test -x "$1"
15114 } # as_fn_executable_p
15115 as_test_x='test -x'
15116 as_executable_p=as_fn_executable_p
15118 # Sed expression to map a string onto a valid CPP name.
15119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15121 # Sed expression to map a string onto a valid variable name.
15122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15125 exec 6>&1
15126 ## ----------------------------------- ##
15127 ## Main body of $CONFIG_STATUS script. ##
15128 ## ----------------------------------- ##
15129 _ASEOF
15130 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15133 # Save the log message, to keep $0 and so on meaningful, and to
15134 # report actual input values of CONFIG_FILES etc. instead of their
15135 # values after options handling.
15136 ac_log="
15137 This file was extended by $as_me, which was
15138 generated by GNU Autoconf 2.69. Invocation command line was
15140 CONFIG_FILES = $CONFIG_FILES
15141 CONFIG_HEADERS = $CONFIG_HEADERS
15142 CONFIG_LINKS = $CONFIG_LINKS
15143 CONFIG_COMMANDS = $CONFIG_COMMANDS
15144 $ $0 $@
15146 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15149 _ACEOF
15151 case $ac_config_files in *"
15152 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15153 esac
15155 case $ac_config_headers in *"
15156 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15157 esac
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 # Files that config.status was made for.
15162 config_files="$ac_config_files"
15163 config_headers="$ac_config_headers"
15164 config_commands="$ac_config_commands"
15166 _ACEOF
15168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169 ac_cs_usage="\
15170 \`$as_me' instantiates files and other configuration actions
15171 from templates according to the current configuration. Unless the files
15172 and actions are specified as TAGs, all are instantiated by default.
15174 Usage: $0 [OPTION]... [TAG]...
15176 -h, --help print this help, then exit
15177 -V, --version print version number and configuration settings, then exit
15178 --config print configuration, then exit
15179 -q, --quiet, --silent
15180 do not print progress messages
15181 -d, --debug don't remove temporary files
15182 --recheck update $as_me by reconfiguring in the same conditions
15183 --file=FILE[:TEMPLATE]
15184 instantiate the configuration file FILE
15185 --header=FILE[:TEMPLATE]
15186 instantiate the configuration header FILE
15188 Configuration files:
15189 $config_files
15191 Configuration headers:
15192 $config_headers
15194 Configuration commands:
15195 $config_commands
15197 Report bugs to the package provider."
15199 _ACEOF
15200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15202 ac_cs_version="\\
15203 config.status
15204 configured by $0, generated by GNU Autoconf 2.69,
15205 with options \\"\$ac_cs_config\\"
15207 Copyright (C) 2012 Free Software Foundation, Inc.
15208 This config.status script is free software; the Free Software Foundation
15209 gives unlimited permission to copy, distribute and modify it."
15211 ac_pwd='$ac_pwd'
15212 srcdir='$srcdir'
15213 test -n "\$AWK" || AWK=awk
15214 _ACEOF
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 # The default lists apply if the user does not specify any file.
15218 ac_need_defaults=:
15219 while test $# != 0
15221 case $1 in
15222 --*=?*)
15223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15225 ac_shift=:
15227 --*=)
15228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15229 ac_optarg=
15230 ac_shift=:
15233 ac_option=$1
15234 ac_optarg=$2
15235 ac_shift=shift
15237 esac
15239 case $ac_option in
15240 # Handling of the options.
15241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15242 ac_cs_recheck=: ;;
15243 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15244 $as_echo "$ac_cs_version"; exit ;;
15245 --config | --confi | --conf | --con | --co | --c )
15246 $as_echo "$ac_cs_config"; exit ;;
15247 --debug | --debu | --deb | --de | --d | -d )
15248 debug=: ;;
15249 --file | --fil | --fi | --f )
15250 $ac_shift
15251 case $ac_optarg in
15252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15253 '') as_fn_error $? "missing file argument" ;;
15254 esac
15255 as_fn_append CONFIG_FILES " '$ac_optarg'"
15256 ac_need_defaults=false;;
15257 --header | --heade | --head | --hea )
15258 $ac_shift
15259 case $ac_optarg in
15260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15261 esac
15262 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15263 ac_need_defaults=false;;
15264 --he | --h)
15265 # Conflict between --help and --header
15266 as_fn_error $? "ambiguous option: \`$1'
15267 Try \`$0 --help' for more information.";;
15268 --help | --hel | -h )
15269 $as_echo "$ac_cs_usage"; exit ;;
15270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15272 ac_cs_silent=: ;;
15274 # This is an error.
15275 -*) as_fn_error $? "unrecognized option: \`$1'
15276 Try \`$0 --help' for more information." ;;
15278 *) as_fn_append ac_config_targets " $1"
15279 ac_need_defaults=false ;;
15281 esac
15282 shift
15283 done
15285 ac_configure_extra_args=
15287 if $ac_cs_silent; then
15288 exec 6>/dev/null
15289 ac_configure_extra_args="$ac_configure_extra_args --silent"
15292 _ACEOF
15293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15294 if \$ac_cs_recheck; then
15295 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15296 shift
15297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15298 CONFIG_SHELL='$SHELL'
15299 export CONFIG_SHELL
15300 exec "\$@"
15303 _ACEOF
15304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15305 exec 5>>config.log
15307 echo
15308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15309 ## Running $as_me. ##
15310 _ASBOX
15311 $as_echo "$ac_log"
15312 } >&5
15314 _ACEOF
15315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15317 # INIT-COMMANDS
15320 aros_host_exe_suffix=${aros_host_exe_suffix}
15321 aros_tools_dir=${aros_tools_dir}
15322 aros_target_cpu=${aros_target_cpu}
15323 aros_target_arch=${aros_target_arch}
15324 aros_target_suffix=${aros_target_suffix}
15325 orig_target_nm=${orig_target_nm}
15326 orig_target_as=${orig_target_as}
15327 orig_target_ar=${orig_target_ar}
15328 orig_target_ranlib=${orig_target_ranlib}
15329 orig_target_objdump=${orig_target_objdump}
15330 orig_target_objcopy=${orig_target_objcopy}
15331 orig_target_strip=${orig_target_strip}
15332 aros_kernel_ld=${aros_kernel_ld}
15335 aros_tools_dir=${aros_tools_dir}
15338 _ACEOF
15340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342 # Handling of arguments.
15343 for ac_config_target in $ac_config_targets
15345 case $ac_config_target in
15346 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15347 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15348 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15350 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15351 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15352 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15353 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15354 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15355 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15356 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15357 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15358 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15359 "${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" ;;
15360 "${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" ;;
15361 "${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" ;;
15362 "${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" ;;
15363 "${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" ;;
15364 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15365 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15366 "${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" ;;
15368 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15369 esac
15370 done
15373 # If the user did not use the arguments to specify the items to instantiate,
15374 # then the envvar interface is used. Set only those that are not.
15375 # We use the long form for the default assignment because of an extremely
15376 # bizarre bug on SunOS 4.1.3.
15377 if $ac_need_defaults; then
15378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15380 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15383 # Have a temporary directory for convenience. Make it in the build tree
15384 # simply because there is no reason against having it here, and in addition,
15385 # creating and moving files from /tmp can sometimes cause problems.
15386 # Hook for its removal unless debugging.
15387 # Note that there is a small window in which the directory will not be cleaned:
15388 # after its creation but before its name has been assigned to `$tmp'.
15389 $debug ||
15391 tmp= ac_tmp=
15392 trap 'exit_status=$?
15393 : "${ac_tmp:=$tmp}"
15394 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15396 trap 'as_fn_exit 1' 1 2 13 15
15398 # Create a (secure) tmp directory for tmp files.
15401 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15402 test -d "$tmp"
15403 } ||
15405 tmp=./conf$$-$RANDOM
15406 (umask 077 && mkdir "$tmp")
15407 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15408 ac_tmp=$tmp
15410 # Set up the scripts for CONFIG_FILES section.
15411 # No need to generate them if there are no CONFIG_FILES.
15412 # This happens for instance with `./config.status config.h'.
15413 if test -n "$CONFIG_FILES"; then
15416 ac_cr=`echo X | tr X '\015'`
15417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15418 # But we know of no other shell where ac_cr would be empty at this
15419 # point, so we can use a bashism as a fallback.
15420 if test "x$ac_cr" = x; then
15421 eval ac_cr=\$\'\\r\'
15423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15425 ac_cs_awk_cr='\\r'
15426 else
15427 ac_cs_awk_cr=$ac_cr
15430 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15431 _ACEOF
15435 echo "cat >conf$$subs.awk <<_ACEOF" &&
15436 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15437 echo "_ACEOF"
15438 } >conf$$subs.sh ||
15439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15440 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15441 ac_delim='%!_!# '
15442 for ac_last_try in false false false false false :; do
15443 . ./conf$$subs.sh ||
15444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15446 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15447 if test $ac_delim_n = $ac_delim_num; then
15448 break
15449 elif $ac_last_try; then
15450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15451 else
15452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15454 done
15455 rm -f conf$$subs.sh
15457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15458 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15459 _ACEOF
15460 sed -n '
15462 s/^/S["/; s/!.*/"]=/
15465 s/^[^!]*!//
15466 :repl
15467 t repl
15468 s/'"$ac_delim"'$//
15469 t delim
15472 s/\(.\{148\}\)..*/\1/
15473 t more1
15474 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15477 b repl
15478 :more1
15479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15482 s/.\{148\}//
15483 t nl
15484 :delim
15486 s/\(.\{148\}\)..*/\1/
15487 t more2
15488 s/["\\]/\\&/g; s/^/"/; s/$/"/
15491 :more2
15492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15495 s/.\{148\}//
15496 t delim
15497 ' <conf$$subs.awk | sed '
15498 /^[^""]/{
15500 s/\n//
15502 ' >>$CONFIG_STATUS || ac_write_fail=1
15503 rm -f conf$$subs.awk
15504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15505 _ACAWK
15506 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15507 for (key in S) S_is_set[key] = 1
15508 FS = "\a"
15512 line = $ 0
15513 nfields = split(line, field, "@")
15514 substed = 0
15515 len = length(field[1])
15516 for (i = 2; i < nfields; i++) {
15517 key = field[i]
15518 keylen = length(key)
15519 if (S_is_set[key]) {
15520 value = S[key]
15521 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15522 len += length(value) + length(field[++i])
15523 substed = 1
15524 } else
15525 len += 1 + keylen
15528 print line
15531 _ACAWK
15532 _ACEOF
15533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15534 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15535 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15536 else
15538 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15539 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15540 _ACEOF
15542 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15543 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15544 # trailing colons and then remove the whole line if VPATH becomes empty
15545 # (actually we leave an empty line to preserve line numbers).
15546 if test "x$srcdir" = x.; then
15547 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15549 s///
15550 s/^/:/
15551 s/[ ]*$/:/
15552 s/:\$(srcdir):/:/g
15553 s/:\${srcdir}:/:/g
15554 s/:@srcdir@:/:/g
15555 s/^:*//
15556 s/:*$//
15558 s/\(=[ ]*\).*/\1/
15560 s/\n//
15561 s/^[^=]*=[ ]*$//
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 fi # test -n "$CONFIG_FILES"
15568 # Set up the scripts for CONFIG_HEADERS section.
15569 # No need to generate them if there are no CONFIG_HEADERS.
15570 # This happens for instance with `./config.status Makefile'.
15571 if test -n "$CONFIG_HEADERS"; then
15572 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15573 BEGIN {
15574 _ACEOF
15576 # Transform confdefs.h into an awk script `defines.awk', embedded as
15577 # here-document in config.status, that substitutes the proper values into
15578 # config.h.in to produce config.h.
15580 # Create a delimiter string that does not exist in confdefs.h, to ease
15581 # handling of long lines.
15582 ac_delim='%!_!# '
15583 for ac_last_try in false false :; do
15584 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15585 if test -z "$ac_tt"; then
15586 break
15587 elif $ac_last_try; then
15588 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15589 else
15590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15592 done
15594 # For the awk script, D is an array of macro values keyed by name,
15595 # likewise P contains macro parameters if any. Preserve backslash
15596 # newline sequences.
15598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15599 sed -n '
15600 s/.\{148\}/&'"$ac_delim"'/g
15601 t rset
15602 :rset
15603 s/^[ ]*#[ ]*define[ ][ ]*/ /
15604 t def
15606 :def
15607 s/\\$//
15608 t bsnl
15609 s/["\\]/\\&/g
15610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15611 D["\1"]=" \3"/p
15612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15614 :bsnl
15615 s/["\\]/\\&/g
15616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15617 D["\1"]=" \3\\\\\\n"\\/p
15618 t cont
15619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15620 t cont
15622 :cont
15624 s/.\{148\}/&'"$ac_delim"'/g
15625 t clear
15626 :clear
15627 s/\\$//
15628 t bsnlc
15629 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15631 :bsnlc
15632 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15633 b cont
15634 ' <confdefs.h | sed '
15635 s/'"$ac_delim"'/"\\\
15636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15639 for (key in D) D_is_set[key] = 1
15640 FS = "\a"
15642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15643 line = \$ 0
15644 split(line, arg, " ")
15645 if (arg[1] == "#") {
15646 defundef = arg[2]
15647 mac1 = arg[3]
15648 } else {
15649 defundef = substr(arg[1], 2)
15650 mac1 = arg[2]
15652 split(mac1, mac2, "(") #)
15653 macro = mac2[1]
15654 prefix = substr(line, 1, index(line, defundef) - 1)
15655 if (D_is_set[macro]) {
15656 # Preserve the white space surrounding the "#".
15657 print prefix "define", macro P[macro] D[macro]
15658 next
15659 } else {
15660 # Replace #undef with comments. This is necessary, for example,
15661 # in the case of _POSIX_SOURCE, which is predefined and required
15662 # on some systems where configure will not decide to define it.
15663 if (defundef == "undef") {
15664 print "/*", prefix defundef, macro, "*/"
15665 next
15669 { print }
15670 _ACAWK
15671 _ACEOF
15672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15673 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15674 fi # test -n "$CONFIG_HEADERS"
15677 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15678 shift
15679 for ac_tag
15681 case $ac_tag in
15682 :[FHLC]) ac_mode=$ac_tag; continue;;
15683 esac
15684 case $ac_mode$ac_tag in
15685 :[FHL]*:*);;
15686 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15687 :[FH]-) ac_tag=-:-;;
15688 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15689 esac
15690 ac_save_IFS=$IFS
15691 IFS=:
15692 set x $ac_tag
15693 IFS=$ac_save_IFS
15694 shift
15695 ac_file=$1
15696 shift
15698 case $ac_mode in
15699 :L) ac_source=$1;;
15700 :[FH])
15701 ac_file_inputs=
15702 for ac_f
15704 case $ac_f in
15705 -) ac_f="$ac_tmp/stdin";;
15706 *) # Look for the file first in the build tree, then in the source tree
15707 # (if the path is not absolute). The absolute path cannot be DOS-style,
15708 # because $ac_f cannot contain `:'.
15709 test -f "$ac_f" ||
15710 case $ac_f in
15711 [\\/$]*) false;;
15712 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15713 esac ||
15714 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15715 esac
15716 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15717 as_fn_append ac_file_inputs " '$ac_f'"
15718 done
15720 # Let's still pretend it is `configure' which instantiates (i.e., don't
15721 # use $as_me), people would be surprised to read:
15722 # /* config.h. Generated by config.status. */
15723 configure_input='Generated from '`
15724 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15725 `' by configure.'
15726 if test x"$ac_file" != x-; then
15727 configure_input="$ac_file. $configure_input"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15729 $as_echo "$as_me: creating $ac_file" >&6;}
15731 # Neutralize special characters interpreted by sed in replacement strings.
15732 case $configure_input in #(
15733 *\&* | *\|* | *\\* )
15734 ac_sed_conf_input=`$as_echo "$configure_input" |
15735 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15736 *) ac_sed_conf_input=$configure_input;;
15737 esac
15739 case $ac_tag in
15740 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15742 esac
15744 esac
15746 ac_dir=`$as_dirname -- "$ac_file" ||
15747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15748 X"$ac_file" : 'X\(//\)[^/]' \| \
15749 X"$ac_file" : 'X\(//\)$' \| \
15750 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15751 $as_echo X"$ac_file" |
15752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15753 s//\1/
15756 /^X\(\/\/\)[^/].*/{
15757 s//\1/
15760 /^X\(\/\/\)$/{
15761 s//\1/
15764 /^X\(\/\).*/{
15765 s//\1/
15768 s/.*/./; q'`
15769 as_dir="$ac_dir"; as_fn_mkdir_p
15770 ac_builddir=.
15772 case "$ac_dir" in
15773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15776 # A ".." for each directory in $ac_dir_suffix.
15777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15778 case $ac_top_builddir_sub in
15779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15781 esac ;;
15782 esac
15783 ac_abs_top_builddir=$ac_pwd
15784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15785 # for backward compatibility:
15786 ac_top_builddir=$ac_top_build_prefix
15788 case $srcdir in
15789 .) # We are building in place.
15790 ac_srcdir=.
15791 ac_top_srcdir=$ac_top_builddir_sub
15792 ac_abs_top_srcdir=$ac_pwd ;;
15793 [\\/]* | ?:[\\/]* ) # Absolute name.
15794 ac_srcdir=$srcdir$ac_dir_suffix;
15795 ac_top_srcdir=$srcdir
15796 ac_abs_top_srcdir=$srcdir ;;
15797 *) # Relative name.
15798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15799 ac_top_srcdir=$ac_top_build_prefix$srcdir
15800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15801 esac
15802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15805 case $ac_mode in
15808 # CONFIG_FILE
15811 _ACEOF
15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15814 # If the template does not know about datarootdir, expand it.
15815 # FIXME: This hack should be removed a few years after 2.60.
15816 ac_datarootdir_hack=; ac_datarootdir_seen=
15817 ac_sed_dataroot='
15818 /datarootdir/ {
15822 /@datadir@/p
15823 /@docdir@/p
15824 /@infodir@/p
15825 /@localedir@/p
15826 /@mandir@/p'
15827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15828 *datarootdir*) ac_datarootdir_seen=yes;;
15829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15832 _ACEOF
15833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15834 ac_datarootdir_hack='
15835 s&@datadir@&$datadir&g
15836 s&@docdir@&$docdir&g
15837 s&@infodir@&$infodir&g
15838 s&@localedir@&$localedir&g
15839 s&@mandir@&$mandir&g
15840 s&\\\${datarootdir}&$datarootdir&g' ;;
15841 esac
15842 _ACEOF
15844 # Neutralize VPATH when `$srcdir' = `.'.
15845 # Shell code in configure.ac might set extrasub.
15846 # FIXME: do we really want to maintain this feature?
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 ac_sed_extra="$ac_vpsub
15849 $extrasub
15850 _ACEOF
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15854 s|@configure_input@|$ac_sed_conf_input|;t t
15855 s&@top_builddir@&$ac_top_builddir_sub&;t t
15856 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15857 s&@srcdir@&$ac_srcdir&;t t
15858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15859 s&@top_srcdir@&$ac_top_srcdir&;t t
15860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15861 s&@builddir@&$ac_builddir&;t t
15862 s&@abs_builddir@&$ac_abs_builddir&;t t
15863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15864 $ac_datarootdir_hack
15866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15867 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15870 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15872 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15874 which seems to be undefined. Please make sure it is defined" >&5
15875 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15876 which seems to be undefined. Please make sure it is defined" >&2;}
15878 rm -f "$ac_tmp/stdin"
15879 case $ac_file in
15880 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15881 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15882 esac \
15883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15887 # CONFIG_HEADER
15889 if test x"$ac_file" != x-; then
15891 $as_echo "/* $configure_input */" \
15892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15893 } >"$ac_tmp/config.h" \
15894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15895 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15897 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15898 else
15899 rm -f "$ac_file"
15900 mv "$ac_tmp/config.h" "$ac_file" \
15901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15903 else
15904 $as_echo "/* $configure_input */" \
15905 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15906 || as_fn_error $? "could not create -" "$LINENO" 5
15910 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15911 $as_echo "$as_me: executing $ac_file commands" >&6;}
15913 esac
15916 case $ac_file$ac_mode in
15917 "compiler_executable":C)
15918 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15919 mkdir -p $prefix
15920 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15921 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15923 echo ${prefix2}
15924 echo ${prefix3}
15925 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15927 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15928 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15929 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15930 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15931 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15932 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15933 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15935 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15937 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15939 esac
15940 done # for ac_tag
15943 as_fn_exit 0
15944 _ACEOF
15945 ac_clean_files=$ac_clean_files_save
15947 test $ac_write_fail = 0 ||
15948 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15951 # configure is writing to config.log, and then calls config.status.
15952 # config.status does its own redirection, appending to config.log.
15953 # Unfortunately, on DOS this fails, as config.log is still kept open
15954 # by configure, so config.status won't be able to write to it; its
15955 # output is simply discarded. So we exec the FD to /dev/null,
15956 # effectively closing config.log, so it can be properly (re)opened and
15957 # appended to by config.status. When coming back to configure, we
15958 # need to make the FD available again.
15959 if test "$no_create" != yes; then
15960 ac_cs_success=:
15961 ac_config_status_args=
15962 test "$silent" = yes &&
15963 ac_config_status_args="$ac_config_status_args --quiet"
15964 exec 5>/dev/null
15965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15966 exec 5>>config.log
15967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15968 # would make configure fail if this is the last instruction.
15969 $ac_cs_success || as_fn_exit 1
15971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15978 #XXX compatability...
15979 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15981 if test -n "$aros_shared_cflags" ; then
15982 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15983 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg