synch with names used in common code and x86_64
[AROS.git] / configure
blob772eae6b164bbbac2addbb79381d6a325cfb4326
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="mmakefile"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 aros_usb30_code
625 java_target
626 objc_target
627 target_binutils_version
628 gcc_target_cpu
629 ignore_undefined_symbols
630 aros_modules_debug
631 aros_stack_debug
632 aros_mungwall_debug
633 aros_debug
634 ENABLE_X11
635 KERNEL_DBUS_INCLUDES
636 KERNEL_DBUS_KOBJ
637 DBUS_LIBFLAGS
638 DBUS_CFLAGS
639 ENABLE_DBUS
640 aros_android_antapk
641 aros_android_level
642 gcc_default_mode
643 gcc_default_float_abi
644 gcc_default_fpu
645 gcc_default_cpu_tune
646 gcc_default_cpu
647 aros_ios_sdk
648 aros_ios_version
649 aros_ios_platform
650 aros_enable_mmu
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 ENABLE_EXECSMP
654 aros_serial_debug
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_ldflags
658 aros_host_x11_cflags
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_nominal_depth
662 aros_nominal_height
663 aros_nominal_width
664 pci_hidd_target
665 host_android_gfx
666 host_sdl_gfx
667 host_x_gfx
668 crosstools_cxx_target
669 crosstools_target
670 aros_isa_flags
671 aros_optimization_cflags
672 aros_config_lto
673 aros_target_strip_flags
674 aros_target_genmap
675 aros_debug_ldflags
676 aros_debug_aflags
677 aros_debug_cflags
678 aros_target_cflags
679 aros_kernel_ldflags
680 aros_kernel_objcflags
681 aros_kernel_includes
682 aros_kernel_cflags
683 aros_kernel_sysroot
684 aros_config_ldflags
685 aros_config_aflags
686 aros_config_cflags
687 aros_nowarn_flags
688 aros_config_sysroot
689 aros_shared_ldflags
690 aros_shared_aflags
691 aros_shared_cflags
692 aros_arch_libs
693 aros_compiler_libs
694 spec_obj_format
695 aros_object_format
696 aros_shared_ld
697 aros_shared_default
698 aros_target_nm
699 aros_target_strip
700 aros_target_objcopy
701 aros_target_objdump
702 aros_target_cc_path
703 aros_target_cc_includes
704 aros_target_ld
705 aros_target_as
706 aros_target_cpp
707 aros_target_cxx
708 aros_target_cc
709 aros_plain_ar
710 aros_plain_nm
711 aros_target_ranlib
712 aros_target_ar
713 aros_target_suffix
714 aros_target_variant
715 aros_target_cpu_mode
716 aros_target_cpu
717 aros_target_family
718 aros_target_arch
719 aros_target_bootloader
720 aros_target_iconset
721 aros_target_guitheme
722 aros_tools_dir
723 aros_host_lib_suffix
724 aros_host_exe_suffix
725 aros_host_mkargs
726 aros_host_mkdep
727 aros_host_debug
728 aros_host_ldflags
729 gnu89_inline
730 aros_host_cxxflags
731 aros_host_cflags
732 aros_host_make
733 aros_host_cxx
734 aros_host_cc
735 aros_host_def_cc
736 aros_host_cpp
737 aros_host_cpu
738 aros_host_arch
739 aros_cc_pre
740 aros_amigaos_compliance
741 AROS_PORTSSRCDIR
742 AROS_CROSSTOOLSDIR
743 SRCDIR
744 AROS_BUILDDIR_UNIX
745 AROS_BUILDDIR
746 aros_build_host
747 aros_toolchain_ld
748 aros_target_toolchain
749 aros_flavour_uc
750 aros_flavour
751 aros_cpu
752 aros_arch
753 SDL_LIBS
754 SDL_CFLAGS
755 SDL_CONFIG
756 XMKMF
757 kernel_cflags_iquote_end
758 kernel_cflags_iquote
759 host_cflags_iquote_end
760 host_cflags_iquote
761 aros_toolchain
762 aros_target_nostdlib_ldflags
763 aros_target_detach_ldflags
764 aros_target_nix_ldflags
765 aros_target_nostartup_ldflags
766 aros_target_nostdinc_cflags
767 aros_kernel_rescomp
768 orig_target_objdump
769 orig_target_objcopy
770 orig_target_strip
771 orig_target_nm
772 orig_target_ranlib
773 orig_target_ar
774 orig_target_as
775 orig_target_ld
776 orig_target_cxx
777 orig_target_cc
778 orig_target_cpp
779 aros_kernel_objdump
780 aros_kernel_objcopy
781 aros_kernel_strip
782 aros_kernel_nm
783 aros_kernel_ranlib
784 aros_kernel_ar
785 aros_kernel_as
786 aros_kernel_ld
787 aros_kernel_cxx
788 aros_kernel_cc
789 aros_kernel_cpp
790 target_gcc_version
792 android_tool
793 CCACHE
794 DISTCC
795 LIBOBJS
796 EGREP
797 GREP
799 TEST
802 libpng_incdir
803 libpng_libextra
804 libpng
805 arosconfig_use_libpngconfig
806 pkgpyexecdir
807 pyexecdir
808 pkgpythondir
809 pythondir
810 PYTHON_PLATFORM
811 PYTHON_EXEC_PREFIX
812 PYTHON_PREFIX
813 PYTHON_VERSION
814 PYTHON
815 PATCH
816 CHMOD
818 PPMTOILBM
819 PNGTOPNM
820 FLEX
821 BISON
824 UNIQ
825 SORT
826 TOUCH
827 MKDIR
828 ECHO
832 aros_host_strip
833 aros_host_ranlib
834 aros_host_ar
835 aros_host_automake
836 aros_host_autoheader
837 aros_host_autoconf
838 aros_host_aclocal
839 aros_host_ld
840 MMAKE
843 ac_ct_CC
844 CFLAGS
846 OBJEXT
847 EXEEXT
848 ac_ct_CXX
849 CPPFLAGS
850 LDFLAGS
851 CXXFLAGS
853 host_os
854 host_vendor
855 host_cpu
856 host
857 build_os
858 build_vendor
859 build_cpu
860 build
861 target_alias
862 host_alias
863 build_alias
864 LIBS
865 ECHO_T
866 ECHO_N
867 ECHO_C
868 DEFS
869 mandir
870 localedir
871 libdir
872 psdir
873 pdfdir
874 dvidir
875 htmldir
876 infodir
877 docdir
878 oldincludedir
879 includedir
880 localstatedir
881 sharedstatedir
882 sysconfdir
883 datadir
884 datarootdir
885 libexecdir
886 sbindir
887 bindir
888 program_transform_name
889 prefix
890 exec_prefix
891 PACKAGE_URL
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 with_c_compiler
903 with_cxx_compiler
904 enable_libpng_config
905 with_toolchain
906 enable_lto
907 enable_build_type
908 enable_debug
909 enable_distcc
910 enable_ccache
911 with_kernel_gcc_version
912 with_optimization
913 with_paranoia
914 enable_target_variant
915 with_xcode
916 with_sdk_version
917 with_sdk
918 with_ndk
919 with_ndk_version
920 with_apk_version
921 enable_amigaos_compliance
922 with_kernel_toolchain_prefix
923 with_elf_toolchain_prefix
924 with_aros_toolchain
925 enable_crosstools
926 with_aros_toolchain_install
927 with_binutils_version
928 with_gcc_version
929 enable_objc
930 enable_java
931 with_cpu
932 with_fpu
933 with_float
934 with_portssources
935 with_bootloader
936 with_iconset
937 with_theme
938 enable_includes
939 with_resolution
940 with_serial_debug
941 enable_palm_debug_hack
942 enable_usb30_code
943 enable_nesting_supervisor
944 enable_mmu
945 enable_x11_hidd
946 with_x
947 enable_x11_shm
948 enable_x11_vidmode
949 enable_sdl_hidd
950 with_sdl_prefix
951 with_sdl_exec_prefix
952 enable_sdltest
953 enable_dbus
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
959 CXXFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
965 CFLAGS
967 PYTHON
968 XMKMF'
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *=) ac_optarg= ;;
1033 *) ac_optarg=yes ;;
1034 esac
1036 # Accept the important Cygnus configure options, so we can diagnose typos.
1038 case $ac_dashdash$ac_option in
1040 ac_dashdash=yes ;;
1042 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 ac_prev=bindir ;;
1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045 bindir=$ac_optarg ;;
1047 -build | --build | --buil | --bui | --bu)
1048 ac_prev=build_alias ;;
1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050 build_alias=$ac_optarg ;;
1052 -cache-file | --cache-file | --cache-fil | --cache-fi \
1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054 ac_prev=cache_file ;;
1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057 cache_file=$ac_optarg ;;
1059 --config-cache | -C)
1060 cache_file=config.cache ;;
1062 -datadir | --datadir | --datadi | --datad)
1063 ac_prev=datadir ;;
1064 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065 datadir=$ac_optarg ;;
1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068 | --dataroo | --dataro | --datar)
1069 ac_prev=datarootdir ;;
1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072 datarootdir=$ac_optarg ;;
1074 -disable-* | --disable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=no ;;
1090 -docdir | --docdir | --docdi | --doc | --do)
1091 ac_prev=docdir ;;
1092 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093 docdir=$ac_optarg ;;
1095 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096 ac_prev=dvidir ;;
1097 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098 dvidir=$ac_optarg ;;
1100 -enable-* | --enable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid feature name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval enable_$ac_useropt=\$ac_optarg ;;
1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118 | --exec | --exe | --ex)
1119 ac_prev=exec_prefix ;;
1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122 | --exec=* | --exe=* | --ex=*)
1123 exec_prefix=$ac_optarg ;;
1125 -gas | --gas | --ga | --g)
1126 # Obsolete; use --with-gas.
1127 with_gas=yes ;;
1129 -help | --help | --hel | --he | -h)
1130 ac_init_help=long ;;
1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132 ac_init_help=recursive ;;
1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134 ac_init_help=short ;;
1136 -host | --host | --hos | --ho)
1137 ac_prev=host_alias ;;
1138 -host=* | --host=* | --hos=* | --ho=*)
1139 host_alias=$ac_optarg ;;
1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 ac_prev=htmldir ;;
1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 | --ht=*)
1145 htmldir=$ac_optarg ;;
1147 -includedir | --includedir | --includedi | --included | --include \
1148 | --includ | --inclu | --incl | --inc)
1149 ac_prev=includedir ;;
1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151 | --includ=* | --inclu=* | --incl=* | --inc=*)
1152 includedir=$ac_optarg ;;
1154 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 ac_prev=infodir ;;
1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157 infodir=$ac_optarg ;;
1159 -libdir | --libdir | --libdi | --libd)
1160 ac_prev=libdir ;;
1161 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162 libdir=$ac_optarg ;;
1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165 | --libexe | --libex | --libe)
1166 ac_prev=libexecdir ;;
1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168 | --libexe=* | --libex=* | --libe=*)
1169 libexecdir=$ac_optarg ;;
1171 -localedir | --localedir | --localedi | --localed | --locale)
1172 ac_prev=localedir ;;
1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174 localedir=$ac_optarg ;;
1176 -localstatedir | --localstatedir | --localstatedi | --localstated \
1177 | --localstate | --localstat | --localsta | --localst | --locals)
1178 ac_prev=localstatedir ;;
1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181 localstatedir=$ac_optarg ;;
1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 ac_prev=mandir ;;
1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186 mandir=$ac_optarg ;;
1188 -nfp | --nfp | --nf)
1189 # Obsolete; use --without-fp.
1190 with_fp=no ;;
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n)
1194 no_create=yes ;;
1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198 no_recursion=yes ;;
1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202 | --oldin | --oldi | --old | --ol | --o)
1203 ac_prev=oldincludedir ;;
1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207 oldincludedir=$ac_optarg ;;
1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 ac_prev=prefix ;;
1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212 prefix=$ac_optarg ;;
1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215 | --program-pre | --program-pr | --program-p)
1216 ac_prev=program_prefix ;;
1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219 program_prefix=$ac_optarg ;;
1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222 | --program-suf | --program-su | --program-s)
1223 ac_prev=program_suffix ;;
1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226 program_suffix=$ac_optarg ;;
1228 -program-transform-name | --program-transform-name \
1229 | --program-transform-nam | --program-transform-na \
1230 | --program-transform-n | --program-transform- \
1231 | --program-transform | --program-transfor \
1232 | --program-transfo | --program-transf \
1233 | --program-trans | --program-tran \
1234 | --progr-tra | --program-tr | --program-t)
1235 ac_prev=program_transform_name ;;
1236 -program-transform-name=* | --program-transform-name=* \
1237 | --program-transform-nam=* | --program-transform-na=* \
1238 | --program-transform-n=* | --program-transform-=* \
1239 | --program-transform=* | --program-transfor=* \
1240 | --program-transfo=* | --program-transf=* \
1241 | --program-trans=* | --program-tran=* \
1242 | --progr-tra=* | --program-tr=* | --program-t=*)
1243 program_transform_name=$ac_optarg ;;
1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 ac_prev=pdfdir ;;
1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248 pdfdir=$ac_optarg ;;
1250 -psdir | --psdir | --psdi | --psd | --ps)
1251 ac_prev=psdir ;;
1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253 psdir=$ac_optarg ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 silent=yes ;;
1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 ac_prev=sbindir ;;
1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 | --sbi=* | --sb=*)
1263 sbindir=$ac_optarg ;;
1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267 | --sharedst | --shareds | --shared | --share | --shar \
1268 | --sha | --sh)
1269 ac_prev=sharedstatedir ;;
1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 | --sha=* | --sh=*)
1274 sharedstatedir=$ac_optarg ;;
1276 -site | --site | --sit)
1277 ac_prev=site ;;
1278 -site=* | --site=* | --sit=*)
1279 site=$ac_optarg ;;
1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 ac_prev=srcdir ;;
1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284 srcdir=$ac_optarg ;;
1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287 | --syscon | --sysco | --sysc | --sys | --sy)
1288 ac_prev=sysconfdir ;;
1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291 sysconfdir=$ac_optarg ;;
1293 -target | --target | --targe | --targ | --tar | --ta | --t)
1294 ac_prev=target_alias ;;
1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296 target_alias=$ac_optarg ;;
1298 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299 verbose=yes ;;
1301 -version | --version | --versio | --versi | --vers | -V)
1302 ac_init_version=: ;;
1304 -with-* | --with-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error $? "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1313 "with_$ac_useropt"
1314 "*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=\$ac_optarg ;;
1320 -without-* | --without-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 as_fn_error $? "invalid package name: $ac_useropt"
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1329 "with_$ac_useropt"
1330 "*) ;;
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1333 esac
1334 eval with_$ac_useropt=no ;;
1336 --x)
1337 # Obsolete; use --with-x.
1338 with_x=yes ;;
1340 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341 | --x-incl | --x-inc | --x-in | --x-i)
1342 ac_prev=x_includes ;;
1343 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345 x_includes=$ac_optarg ;;
1347 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349 ac_prev=x_libraries ;;
1350 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352 x_libraries=$ac_optarg ;;
1354 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1355 Try \`$0 --help' for more information"
1358 *=*)
1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1360 # Reject names that are not valid shell variable names.
1361 case $ac_envvar in #(
1362 '' | [0-9]* | *[!_$as_cr_alnum]* )
1363 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1364 esac
1365 eval $ac_envvar=\$ac_optarg
1366 export $ac_envvar ;;
1369 # FIXME: should be removed in autoconf 3.0.
1370 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1371 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1373 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 esac
1377 done
1379 if test -n "$ac_prev"; then
1380 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381 as_fn_error $? "missing argument to $ac_option"
1384 if test -n "$ac_unrecognized_opts"; then
1385 case $enable_option_checking in
1386 no) ;;
1387 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1388 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 esac
1392 # Check all directory arguments for consistency.
1393 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394 datadir sysconfdir sharedstatedir localstatedir includedir \
1395 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396 libdir localedir mandir
1398 eval ac_val=\$$ac_var
1399 # Remove trailing slashes.
1400 case $ac_val in
1401 */ )
1402 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403 eval $ac_var=\$ac_val;;
1404 esac
1405 # Be sure to have absolute directory names.
1406 case $ac_val in
1407 [\\/$]* | ?:[\\/]* ) continue;;
1408 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409 esac
1410 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411 done
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422 if test "x$build_alias" = x; then
1423 cross_compiling=maybe
1424 elif test "x$build_alias" != "x$host_alias"; then
1425 cross_compiling=yes
1429 ac_tool_prefix=
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432 test "$silent" = yes && exec 6>/dev/null
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438 as_fn_error $? "working directory cannot be determined"
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 as_fn_error $? "pwd does not report name of working directory"
1443 # Find the source files, if location was not specified.
1444 if test -z "$srcdir"; then
1445 ac_srcdir_defaulted=yes
1446 # Try the directory containing this script, then the parent directory.
1447 ac_confdir=`$as_dirname -- "$as_myself" ||
1448 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449 X"$as_myself" : 'X\(//\)[^/]' \| \
1450 X"$as_myself" : 'X\(//\)$' \| \
1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452 $as_echo X"$as_myself" |
1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 s//\1/
1457 /^X\(\/\/\)[^/].*/{
1458 s//\1/
1461 /^X\(\/\/\)$/{
1462 s//\1/
1465 /^X\(\/\).*/{
1466 s//\1/
1469 s/.*/./; q'`
1470 srcdir=$ac_confdir
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 srcdir=..
1474 else
1475 ac_srcdir_defaulted=no
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1481 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1482 ac_abs_confdir=`(
1483 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1484 pwd)`
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 srcdir=.
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1492 case $srcdir in
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 esac
1495 for ac_var in $ac_precious_vars; do
1496 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_env_${ac_var}_value=\$${ac_var}
1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 done
1503 # Report the --help message.
1505 if test "$ac_init_help" = "long"; then
1506 # Omit some internal or obsolete options to make the list less imposing.
1507 # This message is too long to be a string in the A/UX 3.1 sh.
1508 cat <<_ACEOF
1509 \`configure' configures this package to adapt to many kinds of systems.
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE. See below for descriptions of some of the useful variables.
1516 Defaults for the options are specified in brackets.
1518 Configuration:
1519 -h, --help display this help and exit
1520 --help=short display options specific to this package
1521 --help=recursive display the short help of all the included packages
1522 -V, --version display version information and exit
1523 -q, --quiet, --silent do not print \`checking ...' messages
1524 --cache-file=FILE cache test results in FILE [disabled]
1525 -C, --config-cache alias for \`--cache-file=config.cache'
1526 -n, --no-create do not create output files
1527 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1529 Installation directories:
1530 --prefix=PREFIX install architecture-independent files in PREFIX
1531 [$ac_default_prefix]
1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 [PREFIX]
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1540 For better control, use the options below.
1542 Fine tuning of the installation directories:
1543 --bindir=DIR user executables [EPREFIX/bin]
1544 --sbindir=DIR system admin executables [EPREFIX/sbin]
1545 --libexecdir=DIR program executables [EPREFIX/libexec]
1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1549 --libdir=DIR object code libraries [EPREFIX/lib]
1550 --includedir=DIR C header files [PREFIX/include]
1551 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1554 --infodir=DIR info documentation [DATAROOTDIR/info]
1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1556 --mandir=DIR man documentation [DATAROOTDIR/man]
1557 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1558 --htmldir=DIR html documentation [DOCDIR]
1559 --dvidir=DIR dvi documentation [DOCDIR]
1560 --pdfdir=DIR pdf documentation [DOCDIR]
1561 --psdir=DIR ps documentation [DOCDIR]
1562 _ACEOF
1564 cat <<\_ACEOF
1566 X features:
1567 --x-includes=DIR X include files are in DIR
1568 --x-libraries=DIR X library files are in DIR
1570 System types:
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1576 if test -n "$ac_init_help"; then
1578 cat <<\_ACEOF
1580 Optional Features:
1581 --disable-option-checking ignore unrecognized --enable/--with options
1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584 --disable-libpng-config disable libpng-config test and configuration
1585 --enable-lto=yes|no Enable link time optimizations if the target
1586 compiler supports them (default=no)
1587 --enable-build-type=TYPE
1588 Select the build type. Available types are:
1589 personal, nightly, snapshot, milestone, release. Do
1590 NOT use this option unless you know what you are
1591 doing! (default=personal)
1592 --enable-debug=list Enable different types of debug. Commas or
1593 whitespaces can be used to separate the items in the
1594 list. Available types of debug are: all, none,
1595 messages, stack, mungwall, modules, symbols. If no
1596 list is provided then "all" is assumed.
1597 (default=none)
1598 --enable-distcc Use distcc as a front end to the compiler
1599 (default=no).
1600 --enable-ccache Use ccache as a front end to the compiler
1601 (default=no).
1602 --enable-target-variant=NAME
1603 Enable a specific target variant (default=none)
1604 --enable-amigaos-compliance=VERSION
1605 Enforce userspace AmigaOS compliance to a specific
1606 KickStart version (default=none).
1607 --disable-crosstools Do not build cross-compiler toolchain
1608 --enable-objc Enable Objectve-C support (default=no)
1609 --enable-java Enable Java support (default=no)
1610 --enable-includes=dir Alternative system include directory
1611 --enable-palm-debug-hack
1612 Enable palm debug output hack in palm native
1613 (default=no)
1614 --enable-usb30-code Enable usb3.0 code (default=no)
1615 --enable-nesting-supervisor
1616 Enable nesting supervisor support in unix
1617 (default=no)
1618 --disable-mmu Disable MMU support (default=enabled)
1619 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1620 --enable-x11-shm use X11 shared memory (default=auto)
1621 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1622 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1623 --disable-sdltest Do not try to compile and run a test SDL program
1624 --enable-dbus Enable DBUS support via dbus.library (default=no)
1626 Optional Packages:
1627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1629 --with-c-compiler=VERSION
1630 Use specified c compiler for building AROS
1631 --with-cxx-compiler=VERSION
1632 Use specified c++ compiler building AROS
1633 --with-toolchain=family Which toolchain family to crosscompile with
1634 (defaults to gnu)
1635 --with-kernel-gcc-version=VERSION
1636 Use gcc-VERSION for building bootstrap
1637 --with-optimization=FLAGS
1638 Use optimization flags FLAGS (default=-O2).
1639 --with-paranoia=(yes|no|FLAGS)
1640 Specific compiler warning FLAGS to enable for
1641 paranoia builds (default=-Wall -Werror)
1642 --with-xcode=PATH Specify XCode path for iOS targets
1643 (default=/Developer).
1644 --with-sdk-version=VERSION
1645 Use iOS SDK version VERSION (default=4.1).
1646 --with-sdk=PATH Specify Android SDK path
1647 (default=$default_android_sdk).
1648 --with-ndk=PATH Specify Android NDK path (default=none).
1649 --with-sdk-version=LEVEL
1650 Use Android SDK for API LEVEL (default=12).
1651 --with-ndk-version=LEVEL
1652 Use Android NDK for API LEVEL (default=9).
1653 --with-apk-version=(release|debug)
1654 Which version of AROSBootstrap.apk to compile.
1655 Release version needs key for signing, debug version
1656 will only run in emulator. (default=release)
1657 --with-kernel-toolchain-prefix=...
1658 Specify crosscompile toolchain prefix for kernel
1659 objects
1660 --with-elf-toolchain-prefix=...
1661 Specify crosscompile toolchain prefix to wrap for
1662 AROS objects
1663 --with-aros-toolchain=PREFIX
1664 Specify prebuilt AROS toolchain. Use yes for default
1665 name
1666 --with-aros-toolchain-install=DIR
1667 Where to install or search for cross tools binaries
1668 --with-binutils-version=VERSION
1669 Use binutils-VERSION for building AROS
1670 --with-gcc-version=VERSION
1671 Compile gcc-VERSION for AROS
1672 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1673 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1674 --with-float=<spec> Specify floating point ABI
1675 (default=$gcc_default_float_abi).
1676 --with-portssources=DIR Where to download sourcecode for external ports
1677 --with-bootloader=NAME Use a specific bootloader
1678 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1679 --with-theme=NAME Use a specific GUI Theme
1680 --with-resolution=XRESxYRESxDEPTH
1681 Default resolution of the initial WorkbenchScreen
1682 --with-serial-debug Enable serial debug output in native (default=no)
1683 --with-x use the X Window System
1684 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1685 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1687 Some influential environment variables:
1688 CXX C++ compiler command
1689 CXXFLAGS C++ compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1695 CC C compiler command
1696 CFLAGS C compiler flags
1697 CPP C preprocessor
1698 PYTHON the Python interpreter
1699 XMKMF Path to xmkmf, Makefile generator for X Window System
1701 Use these variables to override the choices made by `configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1704 Report bugs to the package provider.
1705 _ACEOF
1706 ac_status=$?
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1714 continue
1715 ac_builddir=.
1717 case "$ac_dir" in
1718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 esac ;;
1727 esac
1728 ac_abs_top_builddir=$ac_pwd
1729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir=$ac_top_build_prefix
1733 case $srcdir in
1734 .) # We are building in place.
1735 ac_srcdir=.
1736 ac_top_srcdir=$ac_top_builddir_sub
1737 ac_abs_top_srcdir=$ac_pwd ;;
1738 [\\/]* | ?:[\\/]* ) # Absolute name.
1739 ac_srcdir=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir=$srcdir
1741 ac_abs_top_srcdir=$srcdir ;;
1742 *) # Relative name.
1743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 esac
1747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" || { ac_status=$?; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1757 else
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 fi || ac_status=$?
1760 cd "$ac_pwd" || { ac_status=$?; break; }
1761 done
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1766 cat <<\_ACEOF
1767 configure
1768 generated by GNU Autoconf 2.69
1770 Copyright (C) 2012 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1773 _ACEOF
1774 exit
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_cxx_try_compile LINENO
1782 # ----------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_cxx_try_compile ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_cxx_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_cxx_try_compile
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_cpp ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } > conftest.i && {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_cpp
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968 else
1969 ac_header_compiler=no
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984 else
1985 ac_header_preproc=no
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 eval "$3=\$ac_header_compiler"
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_mongrel
2027 # ac_fn_c_try_run LINENO
2028 # ----------------------
2029 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2030 # that executables *can* be run.
2031 ac_fn_c_try_run ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if { { ac_try="$ac_link"
2035 case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_link") 2>&5
2042 ac_status=$?
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2045 { { case "(($ac_try" in
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_try") 2>&5
2052 ac_status=$?
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; }; }; then :
2055 ac_retval=0
2056 else
2057 $as_echo "$as_me: program exited with status $ac_status" >&5
2058 $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 ac_retval=$ac_status
2063 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 as_fn_set_status $ac_retval
2067 } # ac_fn_c_try_run
2069 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2070 # -------------------------------------------------------
2071 # Tests whether HEADER exists and can be compiled using the include files in
2072 # INCLUDES, setting the cache variable VAR accordingly.
2073 ac_fn_c_check_header_compile ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2084 #include <$2>
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 eval "$3=yes"
2088 else
2089 eval "$3=no"
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 } # ac_fn_c_check_header_compile
2100 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2101 # ----------------------------------------------------
2102 # Tries to find if the field MEMBER exists in type AGGR, after including
2103 # INCLUDES, setting cache variable VAR accordingly.
2104 ac_fn_c_check_member ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2108 $as_echo_n "checking for $2.$3... " >&6; }
2109 if eval \${$4+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static $2 ac_aggr;
2119 if (ac_aggr.$3)
2120 return 0;
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$4=yes"
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static $2 ac_aggr;
2135 if (sizeof ac_aggr.$3)
2136 return 0;
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 eval "$4=yes"
2143 else
2144 eval "$4=no"
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 eval ac_res=\$$4
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_member
2157 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2158 # ---------------------------------------------
2159 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2160 # accordingly.
2161 ac_fn_c_check_decl ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 as_decl_name=`echo $2|sed 's/ *(.*//'`
2165 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2167 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2175 main ()
2177 #ifndef $as_decl_name
2178 #ifdef __cplusplus
2179 (void) $as_decl_use;
2180 #else
2181 (void) $as_decl_name;
2182 #endif
2183 #endif
2186 return 0;
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 eval "$3=yes"
2191 else
2192 eval "$3=no"
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 } # ac_fn_c_check_decl
2203 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2204 # -------------------------------------------
2205 # Tests whether TYPE exists after having included INCLUDES, setting cache
2206 # variable VAR accordingly.
2207 ac_fn_c_check_type ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 eval "$3=no"
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2220 main ()
2222 if (sizeof ($2))
2223 return 0;
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2233 main ()
2235 if (sizeof (($2)))
2236 return 0;
2238 return 0;
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2243 else
2244 eval "$3=yes"
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 } # ac_fn_c_check_type
2257 # ac_fn_c_check_func LINENO FUNC VAR
2258 # ----------------------------------
2259 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2260 ac_fn_c_check_func ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if eval \${$3+:} false; then :
2266 $as_echo_n "(cached) " >&6
2267 else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2272 #define $2 innocuous_$2
2274 /* System header to define __stub macros and hopefully few prototypes,
2275 which can conflict with char $2 (); below.
2276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2277 <limits.h> exists even on freestanding compilers. */
2279 #ifdef __STDC__
2280 # include <limits.h>
2281 #else
2282 # include <assert.h>
2283 #endif
2285 #undef $2
2287 /* Override any GCC internal prototype to avoid an error.
2288 Use char because int might match the return type of a GCC
2289 builtin and then its argument prototype would still apply. */
2290 #ifdef __cplusplus
2291 extern "C"
2292 #endif
2293 char $2 ();
2294 /* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297 #if defined __stub_$2 || defined __stub___$2
2298 choke me
2299 #endif
2302 main ()
2304 return $2 ();
2306 return 0;
2308 _ACEOF
2309 if ac_fn_c_try_link "$LINENO"; then :
2310 eval "$3=yes"
2311 else
2312 eval "$3=no"
2314 rm -f core conftest.err conftest.$ac_objext \
2315 conftest$ac_exeext conftest.$ac_ext
2317 eval ac_res=\$$3
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322 } # ac_fn_c_check_func
2323 cat >config.log <<_ACEOF
2324 This file contains any messages produced by compilers while
2325 running configure, to aid debugging if configure makes a mistake.
2327 It was created by $as_me, which was
2328 generated by GNU Autoconf 2.69. Invocation command line was
2330 $ $0 $@
2332 _ACEOF
2333 exec 5>>config.log
2335 cat <<_ASUNAME
2336 ## --------- ##
2337 ## Platform. ##
2338 ## --------- ##
2340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2349 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2357 _ASUNAME
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2365 done
2366 IFS=$as_save_IFS
2368 } >&5
2370 cat >&5 <<_ACEOF
2373 ## ----------- ##
2374 ## Core tests. ##
2375 ## ----------- ##
2377 _ACEOF
2380 # Keep a trace of the command line.
2381 # Strip out --no-create and --no-recursion so they do not pile up.
2382 # Strip out --silent because we don't want to record it for future runs.
2383 # Also quote any args containing shell meta-characters.
2384 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_configure_args=
2386 ac_configure_args0=
2387 ac_configure_args1=
2388 ac_must_keep_next=false
2389 for ac_pass in 1 2
2391 for ac_arg
2393 case $ac_arg in
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2397 continue ;;
2398 *\'*)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 esac
2401 case $ac_pass in
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2407 else
2408 case $ac_arg in
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415 esac
2417 -* ) ac_must_keep_next=true ;;
2418 esac
2420 as_fn_append ac_configure_args " '$ac_arg'"
2422 esac
2423 done
2424 done
2425 { ac_configure_args0=; unset ac_configure_args0;}
2426 { ac_configure_args1=; unset ac_configure_args1;}
2428 # When interrupted or exit'd, cleanup temporary files, and complete
2429 # config.log. We remove comments because anyway the quotes in there
2430 # would cause problems or look ugly.
2431 # WARNING: Use '\'' to represent an apostrophe within the trap.
2432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433 trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2436 echo
2438 $as_echo "## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##"
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 esac |
2470 sort
2472 echo
2474 $as_echo "## ----------------- ##
2475 ## Output variables. ##
2476 ## ----------------- ##"
2477 echo
2478 for ac_var in $ac_subst_vars
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2488 if test -n "$ac_subst_files"; then
2489 $as_echo "## ------------------- ##
2490 ## File substitutions. ##
2491 ## ------------------- ##"
2492 echo
2493 for ac_var in $ac_subst_files
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2504 if test -s confdefs.h; then
2505 $as_echo "## ----------- ##
2506 ## confdefs.h. ##
2507 ## ----------- ##"
2508 echo
2509 cat confdefs.h
2510 echo
2512 test "$ac_signal" != 0 &&
2513 $as_echo "$as_me: caught signal $ac_signal"
2514 $as_echo "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2520 for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 done
2523 ac_signal=0
2525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2526 rm -f -r conftest* confdefs.h
2528 $as_echo "/* confdefs.h */" > confdefs.h
2530 # Predefined preprocessor variables.
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_NAME "$PACKAGE_NAME"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_STRING "$PACKAGE_STRING"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_URL "$PACKAGE_URL"
2554 _ACEOF
2557 # Let the site file select an alternate cache file if it wants to.
2558 # Prefer an explicitly selected file to automatically selected ones.
2559 ac_site_file1=NONE
2560 ac_site_file2=NONE
2561 if test -n "$CONFIG_SITE"; then
2562 # We do not want a PATH search for config.site.
2563 case $CONFIG_SITE in #((
2564 -*) ac_site_file1=./$CONFIG_SITE;;
2565 */*) ac_site_file1=$CONFIG_SITE;;
2566 *) ac_site_file1=./$CONFIG_SITE;;
2567 esac
2568 elif test "x$prefix" != xNONE; then
2569 ac_site_file1=$prefix/share/config.site
2570 ac_site_file2=$prefix/etc/config.site
2571 else
2572 ac_site_file1=$ac_default_prefix/share/config.site
2573 ac_site_file2=$ac_default_prefix/etc/config.site
2575 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2577 test "x$ac_site_file" = xNONE && continue
2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581 sed 's/^/| /' "$ac_site_file" >&5
2582 . "$ac_site_file" \
2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 as_fn_error $? "failed to load site script $ac_site_file
2586 See \`config.log' for more details" "$LINENO" 5; }
2588 done
2590 if test -r "$cache_file"; then
2591 # Some versions of bash will fail to source /dev/null (special files
2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595 $as_echo "$as_me: loading cache $cache_file" >&6;}
2596 case $cache_file in
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2599 esac
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 >$cache_file
2607 as_fn_append ac_header_list " stdlib.h"
2608 as_fn_append ac_header_list " unistd.h"
2609 as_fn_append ac_header_list " sys/param.h"
2610 # Check that the precious variables saved in the cache have kept the same
2611 # value.
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615 eval ac_new_set=\$ac_env_${ac_var}_set
2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617 eval ac_new_val=\$ac_env_${ac_var}_value
2618 case $ac_old_set,$ac_new_set in
2619 set,)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,set)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,);;
2629 if test "x$ac_old_val" != "x$ac_new_val"; then
2630 # differences in whitespace do not lead to failure.
2631 ac_old_val_w=`echo x $ac_old_val`
2632 ac_new_val_w=`echo x $ac_new_val`
2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636 ac_cache_corrupted=:
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640 eval $ac_var=\$ac_old_val
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2643 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2646 fi;;
2647 esac
2648 # Pass precious variables to config.status.
2649 if test "$ac_new_set" = set; then
2650 case $ac_new_val in
2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652 *) ac_arg=$ac_var=$ac_new_val ;;
2653 esac
2654 case " $ac_configure_args " in
2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 esac
2659 done
2660 if $ac_cache_corrupted; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 ac_aux_dir=
2680 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2681 if test -f "$ac_dir/install-sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install-sh -c"
2684 break
2685 elif test -f "$ac_dir/install.sh"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/install.sh -c"
2688 break
2689 elif test -f "$ac_dir/shtool"; then
2690 ac_aux_dir=$ac_dir
2691 ac_install_sh="$ac_aux_dir/shtool install -c"
2692 break
2694 done
2695 if test -z "$ac_aux_dir"; then
2696 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2699 # These three variables are undocumented and unsupported,
2700 # and are intended to be withdrawn in a future Autoconf release.
2701 # They can cause serious problems if a builder's source tree is in a directory
2702 # whose full name contains unusual characters.
2703 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2704 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2705 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2709 # Check what host we are running on.
2710 # If a target is not suggested, we use this one.
2711 # Note that what we call a target, Autoconf calls a host.
2712 # Make sure we can run config.sub.
2713 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2714 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2717 $as_echo_n "checking build system type... " >&6; }
2718 if ${ac_cv_build+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 ac_build_alias=$build_alias
2722 test "x$ac_build_alias" = x &&
2723 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2724 test "x$ac_build_alias" = x &&
2725 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2726 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2731 $as_echo "$ac_cv_build" >&6; }
2732 case $ac_cv_build in
2733 *-*-*) ;;
2734 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2735 esac
2736 build=$ac_cv_build
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_build
2739 shift
2740 build_cpu=$1
2741 build_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 build_os=$*
2746 IFS=$ac_save_IFS
2747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2751 $as_echo_n "checking host system type... " >&6; }
2752 if ${ac_cv_host+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test "x$host_alias" = x; then
2756 ac_cv_host=$ac_cv_build
2757 else
2758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2764 $as_echo "$ac_cv_host" >&6; }
2765 case $ac_cv_host in
2766 *-*-*) ;;
2767 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2768 esac
2769 host=$ac_cv_host
2770 ac_save_IFS=$IFS; IFS='-'
2771 set x $ac_cv_host
2772 shift
2773 host_cpu=$1
2774 host_vendor=$2
2775 shift; shift
2776 # Remember, the first character of IFS is used to create $*,
2777 # except with old shells:
2778 host_os=$*
2779 IFS=$ac_save_IFS
2780 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2784 # Default versions for the gnu tools we build
2785 default_gcc_version="4.6.4"
2786 default_binutils_version="2.23.2"
2788 # The AROS target is slightly different to the normal GNU style
2789 # format. We don't have the middle part, and we reverse the order
2790 # of the $(CPU) and $(OS) bits.
2792 # Don't strip the version of the target yet, it might be
2793 # useful on some systems.
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2796 $as_echo_n "checking for AROS style target... " >&6; }
2798 if test "$target" = "NONE" ; then
2799 target=$host_os-$host_cpu
2800 else
2801 if test "$target" = "" ; then
2802 target=$host_os-$host_cpu
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2806 $as_echo "$target" >&6; }
2808 if test "$host_os" = "mingw32" ; then
2809 PWDCMD="pwd -W"
2812 # Don't know where else to put this...
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2814 $as_echo_n "checking building AROS in... " >&6; }
2815 AROS_BUILDDIR=`${PWDCMD-pwd}`
2816 AROS_BUILDDIR_UNIX=${PWD}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2818 $as_echo "$AROS_BUILDDIR" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2821 $as_echo_n "checking AROS source in... " >&6; }
2822 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2823 SRCDIR=${srcpwd}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2825 $as_echo "$SRCDIR" >&6; }
2827 # Parse the target field into something useful.
2829 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2830 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2833 # Some debug output, to be removed again.
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2835 $as_echo_n "checking for target system (debug output)... " >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2837 $as_echo "$target_os" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2839 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2841 $as_echo "$target_cpu" >&6; }
2843 aros_nominal_width=800
2844 aros_nominal_height=600
2845 aros_nominal_depth=4
2848 default_c_compilers="gcc clang cc"
2850 # Check whether --with-c-compiler was given.
2851 if test "${with_c_compiler+set}" = set; then :
2852 withval=$with_c_compiler; use_c_compiler="$withval"
2853 else
2854 use_c_compiler=""
2857 if test "$use_c_compiler" = ""; then
2858 host_c_compilers="$default_c_compilers"
2859 else
2860 host_c_compilers="$use_c_compiler"
2863 default_cxx_compilers="g++ clang++ c++"
2865 # Check whether --with-cxx-compiler was given.
2866 if test "${with_cxx_compiler+set}" = set; then :
2867 withval=$with_cxx_compiler; use_cxx_compiler="$withval"
2868 else
2869 use_cxx_compiler=""
2872 if test "$use_cxx_compiler" = ""; then
2873 host_cxx_compilers="$default_cxx_compilers"
2874 else
2875 host_cxx_compilers="$use_cxx_compiler"
2879 # The first step is to find the host binaries.
2880 # Check for a compiler.
2881 # Due to a bug in autoconf check for c++ compiler first.
2882 # For mor info see, http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html.
2883 ac_ext=cpp
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2888 if test -z "$CXX"; then
2889 if test -n "$CCC"; then
2890 CXX=$CCC
2891 else
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in ${host_cxx_compilers}
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CXX+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CXX"; then
2903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 CXX=$ac_cv_prog_CXX
2923 if test -n "$CXX"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2925 $as_echo "$CXX" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2932 test -n "$CXX" && break
2933 done
2935 if test -z "$CXX"; then
2936 ac_ct_CXX=$CXX
2937 for ac_prog in ${host_cxx_compilers}
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$ac_ct_CXX"; then
2947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_CXX="$ac_prog"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2960 done
2961 done
2962 IFS=$as_save_IFS
2966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2967 if test -n "$ac_ct_CXX"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2969 $as_echo "$ac_ct_CXX" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2976 test -n "$ac_ct_CXX" && break
2977 done
2979 if test "x$ac_ct_CXX" = x; then
2980 CXX="g++"
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CXX=$ac_ct_CXX
2994 # Provide some information about the compiler.
2995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2996 set X $ac_compile
2997 ac_compiler=$2
2998 for ac_option in --version -v -V -qversion; do
2999 { { ac_try="$ac_compiler $ac_option >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3007 ac_status=$?
3008 if test -s conftest.err; then
3009 sed '10a\
3010 ... rest of stderr output deleted ...
3011 10q' conftest.err >conftest.er1
3012 cat conftest.er1 >&5
3014 rm -f conftest.er1 conftest.err
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3017 done
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3023 main ()
3027 return 0;
3029 _ACEOF
3030 ac_clean_files_save=$ac_clean_files
3031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032 # Try to create an executable without -o first, disregard a.out.
3033 # It will help us diagnose broken compilers, and finding out an intuition
3034 # of exeext.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3036 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3039 # The possible output files:
3040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3042 ac_rmfiles=
3043 for ac_file in $ac_files
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048 esac
3049 done
3050 rm -f $ac_rmfiles
3052 if { { ac_try="$ac_link_default"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link_default") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3066 # so that the user can short-circuit this test for compilers unknown to
3067 # Autoconf.
3068 for ac_file in $ac_files ''
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080 then :; else
3081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083 # We set ac_cv_exeext here because the later test for it is not
3084 # safe: cross compilers may not add the suffix if given an `-o'
3085 # argument, so we may need to know it at that point already.
3086 # Even if this section looks crufty: it has the advantage of
3087 # actually working.
3088 break;;
3090 break;;
3091 esac
3092 done
3093 test "$ac_cv_exeext" = no && ac_cv_exeext=
3095 else
3096 ac_file=''
3098 if test -z "$ac_file"; then :
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error 77 "C++ compiler cannot create executables
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3113 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3115 $as_echo "$ac_file" >&6; }
3116 ac_exeext=$ac_cv_exeext
3118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3121 $as_echo_n "checking for suffix of executables... " >&6; }
3122 if { { ac_try="$ac_link"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_link") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
3133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135 # work properly (i.e., refer to `conftest.exe'), while it won't with
3136 # `rm'.
3137 for ac_file in conftest.exe conftest conftest.*; do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 break;;
3143 * ) break;;
3144 esac
3145 done
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3150 See \`config.log' for more details" "$LINENO" 5; }
3152 rm -f conftest conftest$ac_cv_exeext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3154 $as_echo "$ac_cv_exeext" >&6; }
3156 rm -f conftest.$ac_ext
3157 EXEEXT=$ac_cv_exeext
3158 ac_exeext=$EXEEXT
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #include <stdio.h>
3163 main ()
3165 FILE *f = fopen ("conftest.out", "w");
3166 return ferror (f) || fclose (f) != 0;
3169 return 0;
3171 _ACEOF
3172 ac_clean_files="$ac_clean_files conftest.out"
3173 # Check that the compiler produces executables we can run. If not, either
3174 # the compiler is broken, or we cross compile.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3176 $as_echo_n "checking whether we are cross compiling... " >&6; }
3177 if test "$cross_compiling" != yes; then
3178 { { ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 if { ac_try='./conftest$ac_cv_exeext'
3190 { { case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot run C++ compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details" "$LINENO" 5; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3214 $as_echo "$cross_compiling" >&6; }
3216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3217 ac_clean_files=$ac_clean_files_save
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3219 $as_echo_n "checking for suffix of object files... " >&6; }
3220 if ${ac_cv_objext+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3227 main ()
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.o conftest.obj
3235 if { { ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compile") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 for ac_file in conftest.o conftest.obj conftest.*; do
3247 test -f "$ac_file" || continue;
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 break;;
3252 esac
3253 done
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details" "$LINENO" 5; }
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266 $as_echo "$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3270 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3271 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3285 return 0;
3287 _ACEOF
3288 if ac_fn_cxx_try_compile "$LINENO"; then :
3289 ac_compiler_gnu=yes
3290 else
3291 ac_compiler_gnu=no
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3298 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3299 if test $ac_compiler_gnu = yes; then
3300 GXX=yes
3301 else
3302 GXX=
3304 ac_test_CXXFLAGS=${CXXFLAGS+set}
3305 ac_save_CXXFLAGS=$CXXFLAGS
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3307 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3308 if ${ac_cv_prog_cxx_g+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3312 ac_cxx_werror_flag=yes
3313 ac_cv_prog_cxx_g=no
3314 CXXFLAGS="-g"
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3319 main ()
3323 return 0;
3325 _ACEOF
3326 if ac_fn_cxx_try_compile "$LINENO"; then :
3327 ac_cv_prog_cxx_g=yes
3328 else
3329 CXXFLAGS=""
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3334 main ()
3338 return 0;
3340 _ACEOF
3341 if ac_fn_cxx_try_compile "$LINENO"; then :
3343 else
3344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3345 CXXFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 if ac_fn_cxx_try_compile "$LINENO"; then :
3358 ac_cv_prog_cxx_g=yes
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3369 if test "$ac_test_CXXFLAGS" = set; then
3370 CXXFLAGS=$ac_save_CXXFLAGS
3371 elif test $ac_cv_prog_cxx_g = yes; then
3372 if test "$GXX" = yes; then
3373 CXXFLAGS="-g -O2"
3374 else
3375 CXXFLAGS="-g"
3377 else
3378 if test "$GXX" = yes; then
3379 CXXFLAGS="-O2"
3380 else
3381 CXXFLAGS=
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in ${host_c_compilers}
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3435 test -n "$CC" && break
3436 done
3438 if test -z "$CC"; then
3439 ac_ct_CC=$CC
3440 for ac_prog in ${host_c_compilers}
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -n "$ac_ct_CC"; then
3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_CC="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3470 if test -n "$ac_ct_CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3472 $as_echo "$ac_ct_CC" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3479 test -n "$ac_ct_CC" && break
3480 done
3482 if test "x$ac_ct_CC" = x; then
3483 CC=""
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491 CC=$ac_ct_CC
3496 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $? "no acceptable C compiler found in \$PATH
3499 See \`config.log' for more details" "$LINENO" 5; }
3501 # Provide some information about the compiler.
3502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3503 set X $ac_compile
3504 ac_compiler=$2
3505 for ac_option in --version -v -V -qversion; do
3506 { { ac_try="$ac_compiler $ac_option >&5"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3514 ac_status=$?
3515 if test -s conftest.err; then
3516 sed '10a\
3517 ... rest of stderr output deleted ...
3518 10q' conftest.err >conftest.er1
3519 cat conftest.er1 >&5
3521 rm -f conftest.er1 conftest.err
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }
3524 done
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3527 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3528 if ${ac_cv_c_compiler_gnu+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3535 main ()
3537 #ifndef __GNUC__
3538 choke me
3539 #endif
3542 return 0;
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_compiler_gnu=yes
3547 else
3548 ac_compiler_gnu=no
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3555 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3556 if test $ac_compiler_gnu = yes; then
3557 GCC=yes
3558 else
3559 GCC=
3561 ac_test_CFLAGS=${CFLAGS+set}
3562 ac_save_CFLAGS=$CFLAGS
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3564 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3565 if ${ac_cv_prog_cc_g+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 ac_save_c_werror_flag=$ac_c_werror_flag
3569 ac_c_werror_flag=yes
3570 ac_cv_prog_cc_g=no
3571 CFLAGS="-g"
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_g=yes
3585 else
3586 CFLAGS=""
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3600 else
3601 ac_c_werror_flag=$ac_save_c_werror_flag
3602 CFLAGS="-g"
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_g=yes
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_c_werror_flag=$ac_save_c_werror_flag
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3625 $as_echo "$ac_cv_prog_cc_g" >&6; }
3626 if test "$ac_test_CFLAGS" = set; then
3627 CFLAGS=$ac_save_CFLAGS
3628 elif test $ac_cv_prog_cc_g = yes; then
3629 if test "$GCC" = yes; then
3630 CFLAGS="-g -O2"
3631 else
3632 CFLAGS="-g"
3634 else
3635 if test "$GCC" = yes; then
3636 CFLAGS="-O2"
3637 else
3638 CFLAGS=
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3642 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3643 if ${ac_cv_prog_cc_c89+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 ac_cv_prog_cc_c89=no
3647 ac_save_CC=$CC
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdarg.h>
3651 #include <stdio.h>
3652 struct stat;
3653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654 struct buf { int x; };
3655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656 static char *e (p, i)
3657 char **p;
3658 int i;
3660 return p[i];
3662 static char *f (char * (*g) (char **, int), char **p, ...)
3664 char *s;
3665 va_list v;
3666 va_start (v,p);
3667 s = g (p, va_arg (v,int));
3668 va_end (v);
3669 return s;
3672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3673 function prototypes and stuff, but not '\xHH' hex character constants.
3674 These don't provoke an error unfortunately, instead are silently treated
3675 as 'x'. The following induces an error, until -std is added to get
3676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3677 array size at least. It's necessary to write '\x00'==0 to get something
3678 that's true only with -std. */
3679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3682 inside strings and character constants. */
3683 #define FOO(x) 'x'
3684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3686 int test (int i, double x);
3687 struct s1 {int (*f) (int a);};
3688 struct s2 {int (*f) (double a);};
3689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690 int argc;
3691 char **argv;
3693 main ()
3695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 return 0;
3699 _ACEOF
3700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3703 CC="$ac_save_CC $ac_arg"
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_c89=$ac_arg
3707 rm -f core conftest.err conftest.$ac_objext
3708 test "x$ac_cv_prog_cc_c89" != "xno" && break
3709 done
3710 rm -f conftest.$ac_ext
3711 CC=$ac_save_CC
3714 # AC_CACHE_VAL
3715 case "x$ac_cv_prog_cc_c89" in
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3718 $as_echo "none needed" >&6; } ;;
3719 xno)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721 $as_echo "unsupported" >&6; } ;;
3723 CC="$CC $ac_cv_prog_cc_c89"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3725 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726 esac
3727 if test "x$ac_cv_prog_cc_c89" != xno; then :
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 aros_host_def_cc="$CC"
3738 case $ac_cv_prog_cc_stdc in #(
3739 no) :
3740 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3741 *) :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3744 if ${ac_cv_prog_cc_c99+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 ac_cv_prog_cc_c99=no
3748 ac_save_CC=$CC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <stdarg.h>
3752 #include <stdbool.h>
3753 #include <stdlib.h>
3754 #include <wchar.h>
3755 #include <stdio.h>
3757 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3758 #define debug(...) fprintf (stderr, __VA_ARGS__)
3759 #define showlist(...) puts (#__VA_ARGS__)
3760 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3761 static void
3762 test_varargs_macros (void)
3764 int x = 1234;
3765 int y = 5678;
3766 debug ("Flag");
3767 debug ("X = %d\n", x);
3768 showlist (The first, second, and third items.);
3769 report (x>y, "x is %d but y is %d", x, y);
3772 // Check long long types.
3773 #define BIG64 18446744073709551615ull
3774 #define BIG32 4294967295ul
3775 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3776 #if !BIG_OK
3777 your preprocessor is broken;
3778 #endif
3779 #if BIG_OK
3780 #else
3781 your preprocessor is broken;
3782 #endif
3783 static long long int bignum = -9223372036854775807LL;
3784 static unsigned long long int ubignum = BIG64;
3786 struct incomplete_array
3788 int datasize;
3789 double data[];
3792 struct named_init {
3793 int number;
3794 const wchar_t *name;
3795 double average;
3798 typedef const char *ccp;
3800 static inline int
3801 test_restrict (ccp restrict text)
3803 // See if C++-style comments work.
3804 // Iterate through items via the restricted pointer.
3805 // Also check for declarations in for loops.
3806 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3807 continue;
3808 return 0;
3811 // Check varargs and va_copy.
3812 static void
3813 test_varargs (const char *format, ...)
3815 va_list args;
3816 va_start (args, format);
3817 va_list args_copy;
3818 va_copy (args_copy, args);
3820 const char *str;
3821 int number;
3822 float fnumber;
3824 while (*format)
3826 switch (*format++)
3828 case 's': // string
3829 str = va_arg (args_copy, const char *);
3830 break;
3831 case 'd': // int
3832 number = va_arg (args_copy, int);
3833 break;
3834 case 'f': // float
3835 fnumber = va_arg (args_copy, double);
3836 break;
3837 default:
3838 break;
3841 va_end (args_copy);
3842 va_end (args);
3846 main ()
3849 // Check bool.
3850 _Bool success = false;
3852 // Check restrict.
3853 if (test_restrict ("String literal") == 0)
3854 success = true;
3855 char *restrict newvar = "Another string";
3857 // Check varargs.
3858 test_varargs ("s, d' f .", "string", 65, 34.234);
3859 test_varargs_macros ();
3861 // Check flexible array members.
3862 struct incomplete_array *ia =
3863 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3864 ia->datasize = 10;
3865 for (int i = 0; i < ia->datasize; ++i)
3866 ia->data[i] = i * 1.234;
3868 // Check named initializers.
3869 struct named_init ni = {
3870 .number = 34,
3871 .name = L"Test wide string",
3872 .average = 543.34343,
3875 ni.number = 58;
3877 int dynamic_array[ni.number];
3878 dynamic_array[ni.number - 1] = 543;
3880 // work around unused variable warnings
3881 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3882 || dynamic_array[ni.number - 1] != 543);
3885 return 0;
3887 _ACEOF
3888 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_c99=$ac_arg
3894 rm -f core conftest.err conftest.$ac_objext
3895 test "x$ac_cv_prog_cc_c99" != "xno" && break
3896 done
3897 rm -f conftest.$ac_ext
3898 CC=$ac_save_CC
3901 # AC_CACHE_VAL
3902 case "x$ac_cv_prog_cc_c99" in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3906 xno)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3910 CC="$CC $ac_cv_prog_cc_c99"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3912 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3913 esac
3914 if test "x$ac_cv_prog_cc_c99" != xno; then :
3915 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3919 if ${ac_cv_prog_cc_c89+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 ac_cv_prog_cc_c89=no
3923 ac_save_CC=$CC
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdarg.h>
3927 #include <stdio.h>
3928 struct stat;
3929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3930 struct buf { int x; };
3931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3932 static char *e (p, i)
3933 char **p;
3934 int i;
3936 return p[i];
3938 static char *f (char * (*g) (char **, int), char **p, ...)
3940 char *s;
3941 va_list v;
3942 va_start (v,p);
3943 s = g (p, va_arg (v,int));
3944 va_end (v);
3945 return s;
3948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3949 function prototypes and stuff, but not '\xHH' hex character constants.
3950 These don't provoke an error unfortunately, instead are silently treated
3951 as 'x'. The following induces an error, until -std is added to get
3952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3953 array size at least. It's necessary to write '\x00'==0 to get something
3954 that's true only with -std. */
3955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958 inside strings and character constants. */
3959 #define FOO(x) 'x'
3960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3962 int test (int i, double x);
3963 struct s1 {int (*f) (int a);};
3964 struct s2 {int (*f) (double a);};
3965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3966 int argc;
3967 char **argv;
3969 main ()
3971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3973 return 0;
3975 _ACEOF
3976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3979 CC="$ac_save_CC $ac_arg"
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_prog_cc_c89=$ac_arg
3983 rm -f core conftest.err conftest.$ac_objext
3984 test "x$ac_cv_prog_cc_c89" != "xno" && break
3985 done
3986 rm -f conftest.$ac_ext
3987 CC=$ac_save_CC
3990 # AC_CACHE_VAL
3991 case "x$ac_cv_prog_cc_c89" in
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994 $as_echo "none needed" >&6; } ;;
3995 xno)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3997 $as_echo "unsupported" >&6; } ;;
3999 CC="$CC $ac_cv_prog_cc_c89"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4001 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4002 esac
4003 if test "x$ac_cv_prog_cc_c89" != xno; then :
4004 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4005 else
4006 ac_cv_prog_cc_stdc=no
4011 esac
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4013 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4014 if ${ac_cv_prog_cc_stdc+:} false; then :
4015 $as_echo_n "(cached) " >&6
4018 case $ac_cv_prog_cc_stdc in #(
4019 no) :
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;; #(
4022 '') :
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024 $as_echo "none needed" >&6; } ;; #(
4025 *) :
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4027 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4028 esac
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4037 # On Suns, sometimes $CPP names a directory.
4038 if test -n "$CPP" && test -d "$CPP"; then
4039 CPP=
4041 if test -z "$CPP"; then
4042 if ${ac_cv_prog_CPP+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 # Double quotes because CPP needs to be expanded
4046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4048 ac_preproc_ok=false
4049 for ac_c_preproc_warn_flag in '' yes
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064 Syntax error
4065 _ACEOF
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4068 else
4069 # Broken: fails on valid input.
4070 continue
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4074 # OK, works on sane cases. Now check whether nonexistent headers
4075 # can be detected and how.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4079 _ACEOF
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4081 # Broken: success on invalid input.
4082 continue
4083 else
4084 # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.i conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then :
4094 break
4097 done
4098 ac_cv_prog_CPP=$CPP
4101 CPP=$ac_cv_prog_CPP
4102 else
4103 ac_cv_prog_CPP=$CPP
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4106 $as_echo "$CPP" >&6; }
4107 ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123 Syntax error
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4127 else
4128 # Broken: fails on valid input.
4129 continue
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <ac_nonexistent.h>
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then :
4154 else
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4158 See \`config.log' for more details" "$LINENO" 5; }
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 # Check for a compatible awk
4169 for ac_prog in gawk nawk
4171 # Extract the first word of "$ac_prog", so it can be a program name with args.
4172 set dummy $ac_prog; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_AWK+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$AWK"; then
4179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_AWK="$ac_prog"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 AWK=$ac_cv_prog_AWK
4199 if test -n "$AWK"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4201 $as_echo "$AWK" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4208 test -n "$AWK" && break
4209 done
4211 req_avail=yes
4212 if test "$AWK" = ""; then
4213 req_avail=no
4215 if test "$AWK" = "no"; then
4216 req_avail=no
4218 if test "$req_avail" = "no"; then
4219 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4221 # Extract the first word of "mmake", so it can be a program name with args.
4222 set dummy mmake; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_MMAKE+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$MMAKE"; then
4229 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_MMAKE="mmake "
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4242 done
4243 done
4244 IFS=$as_save_IFS
4248 MMAKE=$ac_cv_prog_MMAKE
4249 if test -n "$MMAKE"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4251 $as_echo "$MMAKE" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 # Perform some default variable assignments. Note all of these will be
4260 # Regenerated from the script, so there is no need to cache them.
4262 aros_build_host=$host
4263 aros_host_cpp="$CPP"
4264 aros_host_cc="$CC"
4265 aros_host_cxx="$CXX"
4266 if test "$GCC" = "yes"; then
4267 aros_gcc_ld=`$CC -print-prog-name=ld`
4268 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4269 set dummy `basename $aros_gcc_ld`; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_path_aros_host_ld+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 case $aros_host_ld in
4276 [\\/]* | ?:[\\/]*)
4277 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in `dirname $aros_gcc_ld`
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4296 esac
4298 aros_host_ld=$ac_cv_path_aros_host_ld
4299 if test -n "$aros_host_ld"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4301 $as_echo "$aros_host_ld" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4309 if test "$aros_host_ld" = ""; then
4310 # Extract the first word of "ld", so it can be a program name with args.
4311 set dummy ld; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_path_aros_host_ld+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 case $aros_host_ld in
4318 [\\/]* | ?:[\\/]*)
4319 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4335 IFS=$as_save_IFS
4338 esac
4340 aros_host_ld=$ac_cv_path_aros_host_ld
4341 if test -n "$aros_host_ld"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4343 $as_echo "$aros_host_ld" >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4351 req_avail=yes
4352 if test "$aros_host_ld" = ""; then
4353 req_avail=no
4355 if test "$aros_host_ld" = "no"; then
4356 req_avail=no
4358 if test "$req_avail" = "no"; then
4359 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4361 aros_host_make="make"
4362 aros_host_cflags="$CFLAGS"
4363 aros_host_cxxflags="$CXXFLAGS"
4364 aros_host_ldflags="$LDFLAGS"
4365 aros_host_debug="-g -O0"
4366 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4367 aros_host_mkargs="--no-print-directory"
4368 aros_host_exe_suffix="$EXEEXT"
4369 aros_host_lib_suffix=""
4371 # Ignore all compliance, AROS ROMs = 0
4372 # KickStart v1.0 = 30
4373 # KickStart v1.3 = 34
4374 # KickStart v2.0 = 37
4375 # KickStart v3.0 = 39
4376 # KickStart v3.1 = 40
4377 # AmigaOS v3.5 = 44
4378 aros_amigaos_compliance=0
4380 for ac_prog in aclocal aclocal19 aclocal-1.9
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; 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_prog_aros_host_aclocal+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$aros_host_aclocal"; then
4390 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_aros_host_aclocal="$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4409 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4410 if test -n "$aros_host_aclocal"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4412 $as_echo "$aros_host_aclocal" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4419 test -n "$aros_host_aclocal" && break
4420 done
4422 for ac_prog in autoconf autoconf259 autoconf253
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; 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_prog_aros_host_autoconf+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -n "$aros_host_autoconf"; then
4432 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_aros_host_autoconf="$ac_prog"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4447 IFS=$as_save_IFS
4451 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4452 if test -n "$aros_host_autoconf"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4454 $as_echo "$aros_host_autoconf" >&6; }
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4461 test -n "$aros_host_autoconf" && break
4462 done
4464 for ac_prog in autoheader autoheader259 autoheader253
4466 # Extract the first word of "$ac_prog", so it can be a program name with args.
4467 set dummy $ac_prog; ac_word=$2
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469 $as_echo_n "checking for $ac_word... " >&6; }
4470 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -n "$aros_host_autoheader"; then
4474 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_prog_aros_host_autoheader="$ac_prog"
4484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4493 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4494 if test -n "$aros_host_autoheader"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4496 $as_echo "$aros_host_autoheader" >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4503 test -n "$aros_host_autoheader" && break
4504 done
4506 for ac_prog in automake automake19 automake-1.9
4508 # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if ${ac_cv_prog_aros_host_automake+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -n "$aros_host_automake"; then
4516 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_aros_host_automake="$ac_prog"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4531 IFS=$as_save_IFS
4535 aros_host_automake=$ac_cv_prog_aros_host_automake
4536 if test -n "$aros_host_automake"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4538 $as_echo "$aros_host_automake" >&6; }
4539 else
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4545 test -n "$aros_host_automake" && break
4546 done
4549 req_avail=yes
4550 if test "$aros_host_aclocal" = ""; then
4551 req_avail=no
4553 if test "$aros_host_aclocal" = "no"; then
4554 req_avail=no
4556 if test "$req_avail" = "no"; then
4557 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4559 req_avail=yes
4560 if test "$aros_host_automake" = ""; then
4561 req_avail=no
4563 if test "$aros_host_automake" = "no"; then
4564 req_avail=no
4566 if test "$req_avail" = "no"; then
4567 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4570 case "$aros_host_cc" in
4571 *clang*)
4572 aros_host_cc_pipe=""
4574 *gcc*)
4575 aros_host_cc_pipe="-pipe"
4577 icc)
4578 aros_host_cc_pipe=""
4581 aros_host_cc_pipe=""
4583 esac
4585 aros_kernel_cc_includes=""
4586 aros_target_cc_includes=""
4587 host_cc_elf=yes
4589 # ----------------------------------------------------------------------------------------
4590 # Host-specific defaults
4592 # This is the main host configuration section. It is where the host
4593 # can change the values of any variables it needs to change. We do
4594 # not look at anything that compiles to the target yet, we'll get
4595 # to that later.
4597 case "$host_os" in
4598 aros*)
4599 aros_host_arch="aros"
4600 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4601 case "$host_cpu" in
4602 *i?86*)
4603 aros_host_cpu="i386"
4605 *x86_64*)
4606 aros_host_cpu="x86_64"
4608 *powerpc*)
4609 aros_host_cpu="ppc"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4613 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4614 aros_host_cpu="$host_cpu"
4616 esac
4619 linux*)
4620 aros_host_arch="linux"
4621 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4622 android_build_os="linux-x86"
4623 android_tool="android"
4624 default_android_sdk="/opt/android-sdk-linux_x86"
4625 case "$host_cpu" in
4626 *i?86*)
4627 aros_host_cpu="i386"
4629 *x86_64*)
4630 aros_host_cpu="x86_64"
4632 *m68k*)
4633 aros_host_cpu="m68k"
4635 *powerpc*)
4636 aros_host_cpu="ppc"
4638 *arm*)
4639 aros_host_cpu="arm"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4643 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4644 aros_host_cpu="$host_cpu"
4646 esac
4649 freebsd*)
4650 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe -I/usr/local/include"
4651 aros_host_make="gmake"
4652 aros_host_arch="freebsd"
4653 aros_host_cpu="i386"
4655 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4657 case $host_os in
4658 freebsd[234]*)
4659 aros_object_format="elf_i386"
4663 aros_object_format="elf_i386_fbsd"
4665 esac
4669 darwin*)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/stddef.h" >&5
4671 $as_echo_n "checking for /usr/include/stddef.h... " >&6; }
4672 if ${ac_cv_file__usr_include_stddef_h+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 test "$cross_compiling" = yes &&
4676 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4677 if test -r "/usr/include/stddef.h"; then
4678 ac_cv_file__usr_include_stddef_h=yes
4679 else
4680 ac_cv_file__usr_include_stddef_h=no
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_stddef_h" >&5
4684 $as_echo "$ac_cv_file__usr_include_stddef_h" >&6; }
4685 if test "x$ac_cv_file__usr_include_stddef_h" = xyes; then :
4687 else
4688 as_fn_error $? "XCode incorrectly configured!
4689 please run 'xcode-select --install' before
4690 re-running configure" "$LINENO" 5
4694 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4695 aros_host_arch="darwin"
4696 host_cc_elf=no
4697 if [ -z ${SED+x} ]; then SED="gsed"; fi
4698 android_build_os="darwin-x86"
4699 android_tool="android"
4700 default_android_sdk="/android-sdk-mac_x86"
4701 case "$host_cpu" in
4702 *i?86*)
4703 aros_host_cpu="i386"
4705 *x86_64*)
4706 aros_host_cpu="x86_64"
4708 *powerpc*)
4709 aros_host_cpu="ppc"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4713 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4714 aros_host_cpu="$host_cpu"
4716 esac
4718 aros_host_ldflags="$aros_host_ldflags -liconv"
4722 dragonfly*)
4723 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4724 aros_host_make="gmake"
4725 aros_host_arch="dragonfly"
4726 case $host_cpu in
4727 *i?86*)
4728 aros_host_cpu="i386"
4730 *amd64*)
4731 aros_host_cpu="x86_64"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4735 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4736 aros_host_cpu="$host_cpu"
4738 esac
4741 netbsd*)
4742 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4743 aros_host_make="gmake"
4744 aros_host_arch="netbsd"
4745 case "$host_cpu" in
4746 *i?86*)
4747 aros_host_cpu="i386"
4749 *m68k*)
4750 aros_host_cpu="m68k"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4754 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4755 aros_host_cpu="$host_cpu"
4757 esac
4758 aros_host_lib_suffix=".0.0"
4761 openbsd*)
4762 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4763 aros_host_make="gmake"
4764 aros_host_arch="openbsd"
4765 case "$host_cpu" in
4766 *i?86*)
4767 aros_host_cpu="i386"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4771 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4772 aros_host_cpu="$host_cpu"
4774 esac
4777 solaris*)
4778 aros_host_arch="solaris"
4779 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4780 case "$host_cpu" in
4781 *i?86*)
4782 aros_host_cpu="i386"
4784 *sparc*)
4785 aros_host_cpu="sparc"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4789 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4790 aros_host_cpu="$host_cpu"
4792 esac
4795 morphos*)
4796 aros_host_arch="morphos"
4797 aros_host_cpu="ppc"
4798 host_cc_elf=no
4801 amiga*)
4802 aros_host_arch="amiga"
4803 host_cc_elf=no
4804 SORT="/gg/bin/sort"
4805 TEST="/gg/bin/test"
4806 UNIQ="/gg/bin/uniq"
4807 FOR="for"
4808 TOUCH="/gg/bin/touch"
4809 case "$host_cpu" in
4810 *m68k*)
4811 aros_host_cpu="m68k"
4813 *powerpc*)
4814 aros_host_cpu="ppc"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4818 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4819 aros_host_cpu="$host_cpu"
4821 esac
4824 cygwin*)
4825 aros_host_arch="cygwin"
4826 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4827 host_cc_elf=no
4828 android_build_os="windows"
4829 android_tool="android.bat"
4830 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4844 mingw32*)
4845 aros_host_arch="mingw32"
4846 aros_host_cflags="$aros_host_cflags $aros_host_cc_pipe"
4847 host_cc_elf=no
4848 android_build_os="windows"
4849 android_tool="android.bat"
4850 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4852 libpng_libextra="-lws2_32"
4854 case "$host_cpu" in
4855 *i?86*)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4858 $as_echo_n "checking for Windows native gcc target... " >&6; }
4859 host_cpu=`gcc -dumpmachine`
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4861 $as_echo "$host_cpu" >&6; }
4864 esac
4866 case "$host_cpu" in
4867 *i?86*)
4868 aros_host_cpu="i386"
4871 mingw32*)
4872 aros_host_cpu="i386"
4875 *x86_64*)
4876 aros_host_cpu="x86_64"
4877 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4882 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4883 aros_host_cpu="$host_cpu"
4885 esac
4888 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4890 esac
4892 # Extract the first word of "ar", so it can be a program name with args.
4893 set dummy ar; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_aros_host_ar+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$aros_host_ar"; then
4900 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_aros_host_ar="ar cr"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 aros_host_ar=$ac_cv_prog_aros_host_ar
4920 if test -n "$aros_host_ar"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4922 $as_echo "$aros_host_ar" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 req_avail=yes
4930 if test "$aros_host_ar" = ""; then
4931 req_avail=no
4933 if test "$aros_host_ar" = "no"; then
4934 req_avail=no
4936 if test "$req_avail" = "no"; then
4937 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$aros_host_ranlib"; then
4947 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_aros_host_ranlib="ranlib "
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4966 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4967 if test -n "$aros_host_ranlib"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4969 $as_echo "$aros_host_ranlib" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 req_avail=yes
4977 if test "$aros_host_ranlib" = ""; then
4978 req_avail=no
4980 if test "$aros_host_ranlib" = "no"; then
4981 req_avail=no
4983 if test "$req_avail" = "no"; then
4984 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4986 # Extract the first word of "strip", so it can be a program name with args.
4987 set dummy strip; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_aros_host_strip+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$aros_host_strip"; then
4994 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_aros_host_strip="strip "
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5009 IFS=$as_save_IFS
5013 aros_host_strip=$ac_cv_prog_aros_host_strip
5014 if test -n "$aros_host_strip"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5016 $as_echo "$aros_host_strip" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 req_avail=yes
5024 if test "$aros_host_strip" = ""; then
5025 req_avail=no
5027 if test "$aros_host_strip" = "no"; then
5028 req_avail=no
5030 if test "$req_avail" = "no"; then
5031 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5034 # Extract the first word of "rm", so it can be a program name with args.
5035 set dummy rm; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_RM+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$RM"; then
5042 ac_cv_prog_RM="$RM" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_RM="rm -rf"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5057 IFS=$as_save_IFS
5061 RM=$ac_cv_prog_RM
5062 if test -n "$RM"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5064 $as_echo "$RM" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 req_avail=yes
5072 if test "$RM" = ""; then
5073 req_avail=no
5075 if test "$RM" = "no"; then
5076 req_avail=no
5078 if test "$req_avail" = "no"; then
5079 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5081 # Extract the first word of "cp", so it can be a program name with args.
5082 set dummy cp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_CP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$CP"; then
5089 ac_cv_prog_CP="$CP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_CP="cp "
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 CP=$ac_cv_prog_CP
5109 if test -n "$CP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5111 $as_echo "$CP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 req_avail=yes
5119 if test "$CP" = ""; then
5120 req_avail=no
5122 if test "$CP" = "no"; then
5123 req_avail=no
5125 if test "$req_avail" = "no"; then
5126 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5128 # Extract the first word of "mv", so it can be a program name with args.
5129 set dummy mv; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if ${ac_cv_prog_MV+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 if test -n "$MV"; then
5136 ac_cv_prog_MV="$MV" # Let the user override the test.
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_MV="mv "
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5149 done
5150 done
5151 IFS=$as_save_IFS
5155 MV=$ac_cv_prog_MV
5156 if test -n "$MV"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5158 $as_echo "$MV" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5165 req_avail=yes
5166 if test "$MV" = ""; then
5167 req_avail=no
5169 if test "$MV" = "no"; then
5170 req_avail=no
5172 if test "$req_avail" = "no"; then
5173 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "echo", so it can be a program name with args.
5176 set dummy echo; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_ECHO+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$ECHO"; then
5183 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ECHO="echo "
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 ECHO=$ac_cv_prog_ECHO
5203 if test -n "$ECHO"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5205 $as_echo "$ECHO" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 req_avail=yes
5213 if test "$ECHO" = ""; then
5214 req_avail=no
5216 if test "$ECHO" = "no"; then
5217 req_avail=no
5219 if test "$req_avail" = "no"; then
5220 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5222 # Extract the first word of "mkdir", so it can be a program name with args.
5223 set dummy mkdir; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_prog_MKDIR+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$MKDIR"; then
5230 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_MKDIR="mkdir -p"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 MKDIR=$ac_cv_prog_MKDIR
5250 if test -n "$MKDIR"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5252 $as_echo "$MKDIR" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5259 req_avail=yes
5260 if test "$MKDIR" = ""; then
5261 req_avail=no
5263 if test "$MKDIR" = "no"; then
5264 req_avail=no
5266 if test "$req_avail" = "no"; then
5267 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5269 # Extract the first word of "touch", so it can be a program name with args.
5270 set dummy touch; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_TOUCH+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$TOUCH"; then
5277 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_TOUCH="touch "
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5292 IFS=$as_save_IFS
5296 TOUCH=$ac_cv_prog_TOUCH
5297 if test -n "$TOUCH"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5299 $as_echo "$TOUCH" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5306 req_avail=yes
5307 if test "$TOUCH" = ""; then
5308 req_avail=no
5310 if test "$TOUCH" = "no"; then
5311 req_avail=no
5313 if test "$req_avail" = "no"; then
5314 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5316 # Extract the first word of "sort", so it can be a program name with args.
5317 set dummy sort; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_SORT+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$SORT"; then
5324 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_SORT="sort "
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 SORT=$ac_cv_prog_SORT
5344 if test -n "$SORT"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5346 $as_echo "$SORT" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 req_avail=yes
5354 if test "$SORT" = ""; then
5355 req_avail=no
5357 if test "$SORT" = "no"; then
5358 req_avail=no
5360 if test "$req_avail" = "no"; then
5361 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5363 # Extract the first word of "uniq", so it can be a program name with args.
5364 set dummy uniq; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_UNIQ+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$UNIQ"; then
5371 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_UNIQ="uniq "
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5390 UNIQ=$ac_cv_prog_UNIQ
5391 if test -n "$UNIQ"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5393 $as_echo "$UNIQ" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5400 req_avail=yes
5401 if test "$UNIQ" = ""; then
5402 req_avail=no
5404 if test "$UNIQ" = "no"; then
5405 req_avail=no
5407 if test "$req_avail" = "no"; then
5408 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5410 # Extract the first word of "true", so it can be a program name with args.
5411 set dummy true; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_NOP+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$NOP"; then
5418 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_NOP="true "
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5437 NOP=$ac_cv_prog_NOP
5438 if test -n "$NOP"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5440 $as_echo "$NOP" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 req_avail=yes
5448 if test "$NOP" = ""; then
5449 req_avail=no
5451 if test "$NOP" = "no"; then
5452 req_avail=no
5454 if test "$req_avail" = "no"; then
5455 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5457 # Extract the first word of "cat", so it can be a program name with args.
5458 set dummy cat; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_CAT+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$CAT"; then
5465 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_CAT="cat "
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5478 done
5479 done
5480 IFS=$as_save_IFS
5484 CAT=$ac_cv_prog_CAT
5485 if test -n "$CAT"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5487 $as_echo "$CAT" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5494 req_avail=yes
5495 if test "$CAT" = ""; then
5496 req_avail=no
5498 if test "$CAT" = "no"; then
5499 req_avail=no
5501 if test "$req_avail" = "no"; then
5502 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5504 # Extract the first word of "bison", so it can be a program name with args.
5505 set dummy bison; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_BISON+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$BISON"; then
5512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_BISON="bison "
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 BISON=$ac_cv_prog_BISON
5532 if test -n "$BISON"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5534 $as_echo "$BISON" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 req_avail=yes
5542 if test "$BISON" = ""; then
5543 req_avail=no
5545 if test "$BISON" = "no"; then
5546 req_avail=no
5548 if test "$req_avail" = "no"; then
5549 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5551 # Extract the first word of "flex", so it can be a program name with args.
5552 set dummy flex; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_FLEX+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if test -n "$FLEX"; then
5559 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_FLEX="flex "
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5572 done
5573 done
5574 IFS=$as_save_IFS
5578 FLEX=$ac_cv_prog_FLEX
5579 if test -n "$FLEX"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5581 $as_echo "$FLEX" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5588 req_avail=yes
5589 if test "$FLEX" = ""; then
5590 req_avail=no
5592 if test "$FLEX" = "no"; then
5593 req_avail=no
5595 if test "$req_avail" = "no"; then
5596 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5598 # Extract the first word of "pngtopnm", so it can be a program name with args.
5599 set dummy pngtopnm; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$PNGTOPNM"; then
5606 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_PNGTOPNM="pngtopnm "
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5626 if test -n "$PNGTOPNM"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5628 $as_echo "$PNGTOPNM" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 req_avail=yes
5636 if test "$PNGTOPNM" = ""; then
5637 req_avail=no
5639 if test "$PNGTOPNM" = "no"; then
5640 req_avail=no
5642 if test "$req_avail" = "no"; then
5643 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5645 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5646 set dummy ppmtoilbm; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$PPMTOILBM"; then
5653 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5666 done
5667 done
5668 IFS=$as_save_IFS
5672 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5673 if test -n "$PPMTOILBM"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5675 $as_echo "$PPMTOILBM" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5682 req_avail=yes
5683 if test "$PPMTOILBM" = ""; then
5684 req_avail=no
5686 if test "$PPMTOILBM" = "no"; then
5687 req_avail=no
5689 if test "$req_avail" = "no"; then
5690 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5692 # Extract the first word of "sed", so it can be a program name with args.
5693 set dummy sed; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_SED+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$SED"; then
5700 ac_cv_prog_SED="$SED" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_SED="sed "
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5713 done
5714 done
5715 IFS=$as_save_IFS
5719 SED=$ac_cv_prog_SED
5720 if test -n "$SED"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5722 $as_echo "$SED" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5729 req_avail=yes
5730 if test "$SED" = ""; then
5731 req_avail=no
5733 if test "$SED" = "no"; then
5734 req_avail=no
5736 if test "$req_avail" = "no"; then
5737 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5739 # Extract the first word of "chmod", so it can be a program name with args.
5740 set dummy chmod; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_CHMOD+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$CHMOD"; then
5747 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_CHMOD="chmod "
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5760 done
5761 done
5762 IFS=$as_save_IFS
5766 CHMOD=$ac_cv_prog_CHMOD
5767 if test -n "$CHMOD"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5769 $as_echo "$CHMOD" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 req_avail=yes
5777 if test "$CHMOD" = ""; then
5778 req_avail=no
5780 if test "$CHMOD" = "no"; then
5781 req_avail=no
5783 if test "$req_avail" = "no"; then
5784 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5786 # Extract the first word of "patch", so it can be a program name with args.
5787 set dummy patch; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_PATCH+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$PATCH"; then
5794 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_PATCH="patch "
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5809 IFS=$as_save_IFS
5813 PATCH=$ac_cv_prog_PATCH
5814 if test -n "$PATCH"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5816 $as_echo "$PATCH" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5823 req_avail=yes
5824 if test "$PATCH" = ""; then
5825 req_avail=no
5827 if test "$PATCH" = "no"; then
5828 req_avail=no
5830 if test "$req_avail" = "no"; then
5831 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5840 if test -n "$PYTHON"; then
5841 # If the user set $PYTHON, use it and don't search something else.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
5843 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
5844 prog="import sys
5845 # split strings by '.' and convert to numeric. Append some zeros
5846 # because we need at least 4 digits for the hex conversion.
5847 # map returns an iterator in Python 3.0 and a list in 2.x
5848 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5849 minverhex = 0
5850 # xrange is not present in Python 3.0 and range returns an iterator
5851 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5852 sys.exit(sys.hexversion < minverhex)"
5853 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5854 ($PYTHON -c "$prog") >&5 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; then :
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859 $as_echo "yes" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5865 am_display_PYTHON=$PYTHON
5866 else
5867 # Otherwise, try each interpreter until we find one that satisfies
5868 # VERSION.
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5870 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5871 if ${am_cv_pathless_PYTHON+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5875 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
5876 test "$am_cv_pathless_PYTHON" = none && break
5877 prog="import sys
5878 # split strings by '.' and convert to numeric. Append some zeros
5879 # because we need at least 4 digits for the hex conversion.
5880 # map returns an iterator in Python 3.0 and a list in 2.x
5881 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5882 minverhex = 0
5883 # xrange is not present in Python 3.0 and range returns an iterator
5884 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5885 sys.exit(sys.hexversion < minverhex)"
5886 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5887 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; then :
5891 break
5893 done
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5896 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5897 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5898 if test "$am_cv_pathless_PYTHON" = none; then
5899 PYTHON=:
5900 else
5901 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5902 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_path_PYTHON+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 case $PYTHON in
5909 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5924 done
5925 done
5926 IFS=$as_save_IFS
5929 esac
5931 PYTHON=$ac_cv_path_PYTHON
5932 if test -n "$PYTHON"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5934 $as_echo "$PYTHON" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5942 am_display_PYTHON=$am_cv_pathless_PYTHON
5946 if test "$PYTHON" = :; then
5947 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5948 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5952 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5953 if ${am_cv_python_version+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5959 $as_echo "$am_cv_python_version" >&6; }
5960 PYTHON_VERSION=$am_cv_python_version
5964 PYTHON_PREFIX='${prefix}'
5966 PYTHON_EXEC_PREFIX='${exec_prefix}'
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5971 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5972 if ${am_cv_python_platform+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5978 $as_echo "$am_cv_python_platform" >&6; }
5979 PYTHON_PLATFORM=$am_cv_python_platform
5982 # Just factor out some code duplication.
5983 am_python_setup_sysconfig="\
5984 import sys
5985 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5986 # with python 3.x. See automake bug#10227.
5987 try:
5988 import sysconfig
5989 except ImportError:
5990 can_use_sysconfig = 0
5991 else:
5992 can_use_sysconfig = 1
5993 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5994 # <https://github.com/pypa/virtualenv/issues/118>
5995 try:
5996 from platform import python_implementation
5997 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5998 can_use_sysconfig = 0
5999 except ImportError:
6000 pass"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
6004 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
6005 if ${am_cv_python_pythondir+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test "x$prefix" = xNONE
6009 then
6010 am_py_prefix=$ac_default_prefix
6011 else
6012 am_py_prefix=$prefix
6014 am_cv_python_pythondir=`$PYTHON -c "
6015 $am_python_setup_sysconfig
6016 if can_use_sysconfig:
6017 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
6018 else:
6019 from distutils import sysconfig
6020 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
6021 sys.stdout.write(sitedir)"`
6022 case $am_cv_python_pythondir in
6023 $am_py_prefix*)
6024 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
6025 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
6028 case $am_py_prefix in
6029 /usr|/System*) ;;
6031 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
6033 esac
6035 esac
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6039 $as_echo "$am_cv_python_pythondir" >&6; }
6040 pythondir=$am_cv_python_pythondir
6044 pkgpythondir=\${pythondir}/$PACKAGE
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
6048 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
6049 if ${am_cv_python_pyexecdir+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test "x$exec_prefix" = xNONE
6053 then
6054 am_py_exec_prefix=$am_py_prefix
6055 else
6056 am_py_exec_prefix=$exec_prefix
6058 am_cv_python_pyexecdir=`$PYTHON -c "
6059 $am_python_setup_sysconfig
6060 if can_use_sysconfig:
6061 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
6062 else:
6063 from distutils import sysconfig
6064 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
6065 sys.stdout.write(sitedir)"`
6066 case $am_cv_python_pyexecdir in
6067 $am_py_exec_prefix*)
6068 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6069 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
6072 case $am_py_exec_prefix in
6073 /usr|/System*) ;;
6075 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
6077 esac
6079 esac
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6083 $as_echo "$am_cv_python_pyexecdir" >&6; }
6084 pyexecdir=$am_cv_python_pyexecdir
6088 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6096 # Check whether --enable-libpng-config was given.
6097 if test "${enable_libpng_config+set}" = set; then :
6098 enableval=$enable_libpng_config;
6101 if test "$enable_libpng_config" != "no"; then
6102 # Extract the first word of "libpng-config", so it can be a program name with args.
6103 set dummy libpng-config; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_arosconfig_use_libpngconfig+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$arosconfig_use_libpngconfig"; then
6110 ac_cv_prog_arosconfig_use_libpngconfig="$arosconfig_use_libpngconfig" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_arosconfig_use_libpngconfig="yes"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6123 done
6124 done
6125 IFS=$as_save_IFS
6127 test -z "$ac_cv_prog_arosconfig_use_libpngconfig" && ac_cv_prog_arosconfig_use_libpngconfig="no"
6130 arosconfig_use_libpngconfig=$ac_cv_prog_arosconfig_use_libpngconfig
6131 if test -n "$arosconfig_use_libpngconfig"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arosconfig_use_libpngconfig" >&5
6133 $as_echo "$arosconfig_use_libpngconfig" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6141 if test "$arosconfig_use_libpngconfig" = "yes"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng-config library" >&5
6143 $as_echo_n "checking libpng-config library... " >&6; }
6144 libpng_incdir="`libpng-config --cflags`"
6145 libpng_libextra="$libpng_libextra `libpng-config --ldflags`"
6146 libpng="`libpng-config --libs`"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpng" >&5
6148 $as_echo "$libpng" >&6; }
6149 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
6152 $as_echo_n "checking for png_read_png in -lpng... " >&6; }
6153 if ${ac_cv_lib_png_png_read_png+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 ac_check_lib_save_LIBS=$LIBS
6157 LIBS="-lpng $LIBS"
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6161 /* Override any GCC internal prototype to avoid an error.
6162 Use char because int might match the return type of a GCC
6163 builtin and then its argument prototype would still apply. */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 char png_read_png ();
6169 main ()
6171 return png_read_png ();
6173 return 0;
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"; then :
6177 ac_cv_lib_png_png_read_png=yes
6178 else
6179 ac_cv_lib_png_png_read_png=no
6181 rm -f core conftest.err conftest.$ac_objext \
6182 conftest$ac_exeext conftest.$ac_ext
6183 LIBS=$ac_check_lib_save_LIBS
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
6186 $as_echo "$ac_cv_lib_png_png_read_png" >&6; }
6187 if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
6188 libpng="-lpng"
6189 else
6190 libpng="no"
6193 if test "$libpng_libextra" != ""; then
6194 if test "$libpng" != "no"; then
6195 libpng_libextra="$libpng_libextra $libpng"
6199 req_avail=yes
6200 if test "$libpng" = ""; then
6201 req_avail=no
6203 if test "$libpng" = "no"; then
6204 req_avail=no
6206 if test "$req_avail" = "no"; then
6207 as_fn_error $? "libpng is required to build AROS. Please install and run configure again." "$LINENO" 5
6213 FOR=for
6215 IF=if
6217 TEST=test
6219 CMP=cmp
6223 # Check for some includes for the X11 HIDD and the kernel
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6227 if ${ac_cv_path_GREP+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -z "$GREP"; then
6231 ac_path_GREP_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_prog in grep ggrep; do
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6241 as_fn_executable_p "$ac_path_GREP" || continue
6242 # Check for GNU ac_path_GREP and select it if it is found.
6243 # Check for GNU $ac_path_GREP
6244 case `"$ac_path_GREP" --version 2>&1` in
6245 *GNU*)
6246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6248 ac_count=0
6249 $as_echo_n 0123456789 >"conftest.in"
6250 while :
6252 cat "conftest.in" "conftest.in" >"conftest.tmp"
6253 mv "conftest.tmp" "conftest.in"
6254 cp "conftest.in" "conftest.nl"
6255 $as_echo 'GREP' >> "conftest.nl"
6256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6258 as_fn_arith $ac_count + 1 && ac_count=$as_val
6259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6260 # Best one so far, save it but keep looking for a better one
6261 ac_cv_path_GREP="$ac_path_GREP"
6262 ac_path_GREP_max=$ac_count
6264 # 10*(2^10) chars as input seems more than enough
6265 test $ac_count -gt 10 && break
6266 done
6267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 esac
6270 $ac_path_GREP_found && break 3
6271 done
6272 done
6273 done
6274 IFS=$as_save_IFS
6275 if test -z "$ac_cv_path_GREP"; then
6276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6278 else
6279 ac_cv_path_GREP=$GREP
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6284 $as_echo "$ac_cv_path_GREP" >&6; }
6285 GREP="$ac_cv_path_GREP"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6289 $as_echo_n "checking for egrep... " >&6; }
6290 if ${ac_cv_path_EGREP+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6294 then ac_cv_path_EGREP="$GREP -E"
6295 else
6296 if test -z "$EGREP"; then
6297 ac_path_EGREP_found=false
6298 # Loop through the user's path and test for each of PROGNAME-LIST
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_prog in egrep; do
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6307 as_fn_executable_p "$ac_path_EGREP" || continue
6308 # Check for GNU ac_path_EGREP and select it if it is found.
6309 # Check for GNU $ac_path_EGREP
6310 case `"$ac_path_EGREP" --version 2>&1` in
6311 *GNU*)
6312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6314 ac_count=0
6315 $as_echo_n 0123456789 >"conftest.in"
6316 while :
6318 cat "conftest.in" "conftest.in" >"conftest.tmp"
6319 mv "conftest.tmp" "conftest.in"
6320 cp "conftest.in" "conftest.nl"
6321 $as_echo 'EGREP' >> "conftest.nl"
6322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324 as_fn_arith $ac_count + 1 && ac_count=$as_val
6325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6326 # Best one so far, save it but keep looking for a better one
6327 ac_cv_path_EGREP="$ac_path_EGREP"
6328 ac_path_EGREP_max=$ac_count
6330 # 10*(2^10) chars as input seems more than enough
6331 test $ac_count -gt 10 && break
6332 done
6333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6334 esac
6336 $ac_path_EGREP_found && break 3
6337 done
6338 done
6339 done
6340 IFS=$as_save_IFS
6341 if test -z "$ac_cv_path_EGREP"; then
6342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6344 else
6345 ac_cv_path_EGREP=$EGREP
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6351 $as_echo "$ac_cv_path_EGREP" >&6; }
6352 EGREP="$ac_cv_path_EGREP"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6356 $as_echo_n "checking for ANSI C header files... " >&6; }
6357 if ${ac_cv_header_stdc+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <stdlib.h>
6363 #include <stdarg.h>
6364 #include <string.h>
6365 #include <float.h>
6368 main ()
6372 return 0;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 ac_cv_header_stdc=yes
6377 else
6378 ac_cv_header_stdc=no
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 if test $ac_cv_header_stdc = yes; then
6383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <string.h>
6388 _ACEOF
6389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6390 $EGREP "memchr" >/dev/null 2>&1; then :
6392 else
6393 ac_cv_header_stdc=no
6395 rm -f conftest*
6399 if test $ac_cv_header_stdc = yes; then
6400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 #include <stdlib.h>
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "free" >/dev/null 2>&1; then :
6409 else
6410 ac_cv_header_stdc=no
6412 rm -f conftest*
6416 if test $ac_cv_header_stdc = yes; then
6417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418 if test "$cross_compiling" = yes; then :
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <ctype.h>
6424 #include <stdlib.h>
6425 #if ((' ' & 0x0FF) == 0x020)
6426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6428 #else
6429 # define ISLOWER(c) \
6430 (('a' <= (c) && (c) <= 'i') \
6431 || ('j' <= (c) && (c) <= 'r') \
6432 || ('s' <= (c) && (c) <= 'z'))
6433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6434 #endif
6436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6438 main ()
6440 int i;
6441 for (i = 0; i < 256; i++)
6442 if (XOR (islower (i), ISLOWER (i))
6443 || toupper (i) != TOUPPER (i))
6444 return 2;
6445 return 0;
6447 _ACEOF
6448 if ac_fn_c_try_run "$LINENO"; then :
6450 else
6451 ac_cv_header_stdc=no
6453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6454 conftest.$ac_objext conftest.beam conftest.$ac_ext
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6460 $as_echo "$ac_cv_header_stdc" >&6; }
6461 if test $ac_cv_header_stdc = yes; then
6463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6469 inttypes.h stdint.h unistd.h
6470 do :
6471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6475 cat >>confdefs.h <<_ACEOF
6476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477 _ACEOF
6481 done
6484 for ac_header in sys/ipc.h sys/shm.h \
6485 sys/mmap.h sys/mman.h sysexits.h \
6486 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6488 do :
6489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6492 cat >>confdefs.h <<_ACEOF
6493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 _ACEOF
6498 done
6501 for ac_header in sys/mount.h
6502 do :
6503 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6505 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6506 cat >>confdefs.h <<_ACEOF
6507 #define HAVE_SYS_MOUNT_H 1
6508 _ACEOF
6512 done
6515 ac_header_dirent=no
6516 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6517 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6519 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6520 if eval \${$as_ac_Header+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <sys/types.h>
6526 #include <$ac_hdr>
6529 main ()
6531 if ((DIR *) 0)
6532 return 0;
6534 return 0;
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 eval "$as_ac_Header=yes"
6539 else
6540 eval "$as_ac_Header=no"
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 eval ac_res=\$$as_ac_Header
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6546 $as_echo "$ac_res" >&6; }
6547 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6548 cat >>confdefs.h <<_ACEOF
6549 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6550 _ACEOF
6552 ac_header_dirent=$ac_hdr; break
6555 done
6556 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6557 if test $ac_header_dirent = dirent.h; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6559 $as_echo_n "checking for library containing opendir... " >&6; }
6560 if ${ac_cv_search_opendir+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_func_search_save_LIBS=$LIBS
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6570 #ifdef __cplusplus
6571 extern "C"
6572 #endif
6573 char opendir ();
6575 main ()
6577 return opendir ();
6579 return 0;
6581 _ACEOF
6582 for ac_lib in '' dir; do
6583 if test -z "$ac_lib"; then
6584 ac_res="none required"
6585 else
6586 ac_res=-l$ac_lib
6587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_search_opendir=$ac_res
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext
6594 if ${ac_cv_search_opendir+:} false; then :
6595 break
6597 done
6598 if ${ac_cv_search_opendir+:} false; then :
6600 else
6601 ac_cv_search_opendir=no
6603 rm conftest.$ac_ext
6604 LIBS=$ac_func_search_save_LIBS
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6607 $as_echo "$ac_cv_search_opendir" >&6; }
6608 ac_res=$ac_cv_search_opendir
6609 if test "$ac_res" != no; then :
6610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6616 $as_echo_n "checking for library containing opendir... " >&6; }
6617 if ${ac_cv_search_opendir+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 ac_func_search_save_LIBS=$LIBS
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 /* Override any GCC internal prototype to avoid an error.
6625 Use char because int might match the return type of a GCC
6626 builtin and then its argument prototype would still apply. */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 char opendir ();
6632 main ()
6634 return opendir ();
6636 return 0;
6638 _ACEOF
6639 for ac_lib in '' x; do
6640 if test -z "$ac_lib"; then
6641 ac_res="none required"
6642 else
6643 ac_res=-l$ac_lib
6644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6646 if ac_fn_c_try_link "$LINENO"; then :
6647 ac_cv_search_opendir=$ac_res
6649 rm -f core conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext
6651 if ${ac_cv_search_opendir+:} false; then :
6652 break
6654 done
6655 if ${ac_cv_search_opendir+:} false; then :
6657 else
6658 ac_cv_search_opendir=no
6660 rm conftest.$ac_ext
6661 LIBS=$ac_func_search_save_LIBS
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6664 $as_echo "$ac_cv_search_opendir" >&6; }
6665 ac_res=$ac_cv_search_opendir
6666 if test "$ac_res" != no; then :
6667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6674 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6675 if ${ac_cv_header_stat_broken+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <sys/stat.h>
6683 #if defined S_ISBLK && defined S_IFDIR
6684 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6685 #endif
6687 #if defined S_ISBLK && defined S_IFCHR
6688 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6689 #endif
6691 #if defined S_ISLNK && defined S_IFREG
6692 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6693 #endif
6695 #if defined S_ISSOCK && defined S_IFREG
6696 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6697 #endif
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 ac_cv_header_stat_broken=no
6702 else
6703 ac_cv_header_stat_broken=yes
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6708 $as_echo "$ac_cv_header_stat_broken" >&6; }
6709 if test $ac_cv_header_stat_broken = yes; then
6711 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6716 $as_echo_n "checking for ANSI C header files... " >&6; }
6717 if ${ac_cv_header_stdc+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #include <stdlib.h>
6723 #include <stdarg.h>
6724 #include <string.h>
6725 #include <float.h>
6728 main ()
6732 return 0;
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 ac_cv_header_stdc=yes
6737 else
6738 ac_cv_header_stdc=no
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 if test $ac_cv_header_stdc = yes; then
6743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <string.h>
6748 _ACEOF
6749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750 $EGREP "memchr" >/dev/null 2>&1; then :
6752 else
6753 ac_cv_header_stdc=no
6755 rm -f conftest*
6759 if test $ac_cv_header_stdc = yes; then
6760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #include <stdlib.h>
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "free" >/dev/null 2>&1; then :
6769 else
6770 ac_cv_header_stdc=no
6772 rm -f conftest*
6776 if test $ac_cv_header_stdc = yes; then
6777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778 if test "$cross_compiling" = yes; then :
6780 else
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #include <ctype.h>
6784 #include <stdlib.h>
6785 #if ((' ' & 0x0FF) == 0x020)
6786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6788 #else
6789 # define ISLOWER(c) \
6790 (('a' <= (c) && (c) <= 'i') \
6791 || ('j' <= (c) && (c) <= 'r') \
6792 || ('s' <= (c) && (c) <= 'z'))
6793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6794 #endif
6796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6798 main ()
6800 int i;
6801 for (i = 0; i < 256; i++)
6802 if (XOR (islower (i), ISLOWER (i))
6803 || toupper (i) != TOUPPER (i))
6804 return 2;
6805 return 0;
6807 _ACEOF
6808 if ac_fn_c_try_run "$LINENO"; then :
6810 else
6811 ac_cv_header_stdc=no
6813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6814 conftest.$ac_objext conftest.beam conftest.$ac_ext
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6820 $as_echo "$ac_cv_header_stdc" >&6; }
6821 if test $ac_cv_header_stdc = yes; then
6823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6828 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6829 if ${ac_cv_header_sys_wait_h+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <sys/types.h>
6835 #include <sys/wait.h>
6836 #ifndef WEXITSTATUS
6837 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6838 #endif
6839 #ifndef WIFEXITED
6840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6841 #endif
6844 main ()
6846 int s;
6847 wait (&s);
6848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6850 return 0;
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 ac_cv_header_sys_wait_h=yes
6855 else
6856 ac_cv_header_sys_wait_h=no
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6861 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6862 if test $ac_cv_header_sys_wait_h = yes; then
6864 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6869 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6870 if ${ac_cv_header_time+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 #include <sys/types.h>
6876 #include <sys/time.h>
6877 #include <time.h>
6880 main ()
6882 if ((struct tm *) 0)
6883 return 0;
6885 return 0;
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 ac_cv_header_time=yes
6890 else
6891 ac_cv_header_time=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6896 $as_echo "$ac_cv_header_time" >&6; }
6897 if test $ac_cv_header_time = yes; then
6899 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6903 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6904 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6908 _ACEOF
6911 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6916 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6917 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6921 _ACEOF
6924 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6926 else
6927 case " $LIBOBJS " in
6928 *" fileblocks.$ac_objext "* ) ;;
6929 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6931 esac
6936 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6937 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6939 cat >>confdefs.h <<_ACEOF
6940 #define HAVE_STRUCT_STAT_ST_RDEV 1
6941 _ACEOF
6944 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6950 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6951 if ${ac_cv_struct_tm+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 #include <sys/types.h>
6957 #include <time.h>
6960 main ()
6962 struct tm tm;
6963 int *p = &tm.tm_sec;
6964 return !p;
6966 return 0;
6968 _ACEOF
6969 if ac_fn_c_try_compile "$LINENO"; then :
6970 ac_cv_struct_tm=time.h
6971 else
6972 ac_cv_struct_tm=sys/time.h
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6977 $as_echo "$ac_cv_struct_tm" >&6; }
6978 if test $ac_cv_struct_tm = sys/time.h; then
6980 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6984 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6985 #include <$ac_cv_struct_tm>
6988 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6990 cat >>confdefs.h <<_ACEOF
6991 #define HAVE_STRUCT_TM_TM_ZONE 1
6992 _ACEOF
6997 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6999 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7001 else
7002 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7004 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7005 ac_have_decl=1
7006 else
7007 ac_have_decl=0
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_DECL_TZNAME $ac_have_decl
7012 _ACEOF
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7015 $as_echo_n "checking for tzname... " >&6; }
7016 if ${ac_cv_var_tzname+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 #include <time.h>
7022 #if !HAVE_DECL_TZNAME
7023 extern char *tzname[];
7024 #endif
7027 main ()
7029 return tzname[0][0];
7031 return 0;
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 ac_cv_var_tzname=yes
7036 else
7037 ac_cv_var_tzname=no
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7043 $as_echo "$ac_cv_var_tzname" >&6; }
7044 if test $ac_cv_var_tzname = yes; then
7046 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7051 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7052 if test "x$ac_cv_type_off_t" = xyes; then :
7054 else
7056 cat >>confdefs.h <<_ACEOF
7057 #define off_t long int
7058 _ACEOF
7062 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7063 if test "x$ac_cv_type_pid_t" = xyes; then :
7065 else
7067 cat >>confdefs.h <<_ACEOF
7068 #define pid_t int
7069 _ACEOF
7073 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7074 if test "x$ac_cv_type_size_t" = xyes; then :
7076 else
7078 cat >>confdefs.h <<_ACEOF
7079 #define size_t unsigned int
7080 _ACEOF
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7085 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7086 if ${ac_cv_type_uid_t+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 #include <sys/types.h>
7093 _ACEOF
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "uid_t" >/dev/null 2>&1; then :
7096 ac_cv_type_uid_t=yes
7097 else
7098 ac_cv_type_uid_t=no
7100 rm -f conftest*
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7104 $as_echo "$ac_cv_type_uid_t" >&6; }
7105 if test $ac_cv_type_uid_t = no; then
7107 $as_echo "#define uid_t int" >>confdefs.h
7110 $as_echo "#define gid_t int" >>confdefs.h
7115 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
7116 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7118 cat >>confdefs.h <<_ACEOF
7119 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7120 _ACEOF
7126 # Look for some functions
7127 for ac_func in getpagesize kqueue statfs statvfs \
7128 clone kse_create rfork_thread thr_create sa_register \
7129 getcontext makecontext setcontext sigaltstack swapcontext
7130 do :
7131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7134 cat >>confdefs.h <<_ACEOF
7135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7136 _ACEOF
7139 done
7145 for ac_header in $ac_header_list
7146 do :
7147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7148 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153 _ACEOF
7157 done
7166 for ac_func in getpagesize
7167 do :
7168 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7169 if test "x$ac_cv_func_getpagesize" = xyes; then :
7170 cat >>confdefs.h <<_ACEOF
7171 #define HAVE_GETPAGESIZE 1
7172 _ACEOF
7175 done
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7178 $as_echo_n "checking for working mmap... " >&6; }
7179 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 if test "$cross_compiling" = yes; then :
7183 ac_cv_func_mmap_fixed_mapped=no
7184 else
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 $ac_includes_default
7188 /* malloc might have been renamed as rpl_malloc. */
7189 #undef malloc
7191 /* Thanks to Mike Haertel and Jim Avera for this test.
7192 Here is a matrix of mmap possibilities:
7193 mmap private not fixed
7194 mmap private fixed at somewhere currently unmapped
7195 mmap private fixed at somewhere already mapped
7196 mmap shared not fixed
7197 mmap shared fixed at somewhere currently unmapped
7198 mmap shared fixed at somewhere already mapped
7199 For private mappings, we should verify that changes cannot be read()
7200 back from the file, nor mmap's back from the file at a different
7201 address. (There have been systems where private was not correctly
7202 implemented like the infamous i386 svr4.0, and systems where the
7203 VM page cache was not coherent with the file system buffer cache
7204 like early versions of FreeBSD and possibly contemporary NetBSD.)
7205 For shared mappings, we should conversely verify that changes get
7206 propagated back to all the places they're supposed to be.
7208 Grep wants private fixed already mapped.
7209 The main things grep needs to know about mmap are:
7210 * does it exist and is it safe to write into the mmap'd area
7211 * how to use it (BSD variants) */
7213 #include <fcntl.h>
7214 #include <sys/mman.h>
7216 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7217 char *malloc ();
7218 #endif
7220 /* This mess was copied from the GNU getpagesize.h. */
7221 #ifndef HAVE_GETPAGESIZE
7222 # ifdef _SC_PAGESIZE
7223 # define getpagesize() sysconf(_SC_PAGESIZE)
7224 # else /* no _SC_PAGESIZE */
7225 # ifdef HAVE_SYS_PARAM_H
7226 # include <sys/param.h>
7227 # ifdef EXEC_PAGESIZE
7228 # define getpagesize() EXEC_PAGESIZE
7229 # else /* no EXEC_PAGESIZE */
7230 # ifdef NBPG
7231 # define getpagesize() NBPG * CLSIZE
7232 # ifndef CLSIZE
7233 # define CLSIZE 1
7234 # endif /* no CLSIZE */
7235 # else /* no NBPG */
7236 # ifdef NBPC
7237 # define getpagesize() NBPC
7238 # else /* no NBPC */
7239 # ifdef PAGESIZE
7240 # define getpagesize() PAGESIZE
7241 # endif /* PAGESIZE */
7242 # endif /* no NBPC */
7243 # endif /* no NBPG */
7244 # endif /* no EXEC_PAGESIZE */
7245 # else /* no HAVE_SYS_PARAM_H */
7246 # define getpagesize() 8192 /* punt totally */
7247 # endif /* no HAVE_SYS_PARAM_H */
7248 # endif /* no _SC_PAGESIZE */
7250 #endif /* no HAVE_GETPAGESIZE */
7253 main ()
7255 char *data, *data2, *data3;
7256 const char *cdata2;
7257 int i, pagesize;
7258 int fd, fd2;
7260 pagesize = getpagesize ();
7262 /* First, make a file with some known garbage in it. */
7263 data = (char *) malloc (pagesize);
7264 if (!data)
7265 return 1;
7266 for (i = 0; i < pagesize; ++i)
7267 *(data + i) = rand ();
7268 umask (0);
7269 fd = creat ("conftest.mmap", 0600);
7270 if (fd < 0)
7271 return 2;
7272 if (write (fd, data, pagesize) != pagesize)
7273 return 3;
7274 close (fd);
7276 /* Next, check that the tail of a page is zero-filled. File must have
7277 non-zero length, otherwise we risk SIGBUS for entire page. */
7278 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7279 if (fd2 < 0)
7280 return 4;
7281 cdata2 = "";
7282 if (write (fd2, cdata2, 1) != 1)
7283 return 5;
7284 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7285 if (data2 == MAP_FAILED)
7286 return 6;
7287 for (i = 0; i < pagesize; ++i)
7288 if (*(data2 + i))
7289 return 7;
7290 close (fd2);
7291 if (munmap (data2, pagesize))
7292 return 8;
7294 /* Next, try to mmap the file at a fixed address which already has
7295 something else allocated at it. If we can, also make sure that
7296 we see the same garbage. */
7297 fd = open ("conftest.mmap", O_RDWR);
7298 if (fd < 0)
7299 return 9;
7300 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7301 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7302 return 10;
7303 for (i = 0; i < pagesize; ++i)
7304 if (*(data + i) != *(data2 + i))
7305 return 11;
7307 /* Finally, make sure that changes to the mapped area do not
7308 percolate back to the file as seen by read(). (This is a bug on
7309 some variants of i386 svr4.0.) */
7310 for (i = 0; i < pagesize; ++i)
7311 *(data2 + i) = *(data2 + i) + 1;
7312 data3 = (char *) malloc (pagesize);
7313 if (!data3)
7314 return 12;
7315 if (read (fd, data3, pagesize) != pagesize)
7316 return 13;
7317 for (i = 0; i < pagesize; ++i)
7318 if (*(data + i) != *(data3 + i))
7319 return 14;
7320 close (fd);
7321 return 0;
7323 _ACEOF
7324 if ac_fn_c_try_run "$LINENO"; then :
7325 ac_cv_func_mmap_fixed_mapped=yes
7326 else
7327 ac_cv_func_mmap_fixed_mapped=no
7329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7330 conftest.$ac_objext conftest.beam conftest.$ac_ext
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7335 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7336 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7338 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7341 rm -f conftest.mmap conftest.txt
7344 #-----------------------------------------------------------------------------
7347 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7348 # it switched on by default, and we use the host compiler, so it compiles AROS
7349 # code with this enabled resulting in link failures as we don't have support
7350 # for it.
7352 # We use two methods to disable it. For the host compiler (used to compile
7353 # some hosted modules), we test to see if the compiler supports stack
7354 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7355 # work on all platforms.
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7359 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7360 save_cflags="$CFLAGS"
7361 CFLAGS="$CFLAGS -fno-stack-protector"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7366 main ()
7370 return 0;
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 use_no_stack_protector="yes"
7375 else
7376 use_no_stack_protector="no"
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7380 $as_echo "$use_no_stack_protector" >&6; }
7381 if test "x-$use_no_stack_protector" = "x-yes" ; then
7382 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7384 CFLAGS="$save_cflags"
7386 #-----------------------------------------------------------------------------
7388 # Disable pointer-signedness warnings if the compiler recognises the option
7389 # (this only works for the host compiler at the moment)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7392 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7393 save_cflags="$CFLAGS"
7394 CFLAGS="$CFLAGS -Wno-pointer-sign"
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7399 main ()
7403 return 0;
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 use_no_sign_warning="yes"
7408 else
7409 use_no_sign_warning="no"
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7413 $as_echo "$use_no_sign_warning" >&6; }
7414 if test "x-$use_no_sign_warning" = "x-yes" ; then
7415 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7417 CFLAGS="$save_cflags"
7419 #-----------------------------------------------------------------------------
7421 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7424 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7425 save_cflags="$CFLAGS"
7426 CFLAGS="$CFLAGS -fgnu89-inline"
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7431 main ()
7435 return 0;
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 use_gnu89_inline="yes"
7440 else
7441 use_gnu89_inline="no"
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7445 $as_echo "$use_gnu89_inline" >&6; }
7446 if test "x-$use_gnu89_inline" = "x-yes" ; then
7447 gnu89_inline="-fgnu89-inline"
7449 CFLAGS="$save_cflags"
7452 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
7453 # On GCC >= 4.0 -iquote should be used
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
7456 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
7457 CFLAGS="$CFLAGS -iquote."
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7462 main ()
7466 return 0;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 has_iquote="yes"
7471 else
7472 has_iquote="no"
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
7476 $as_echo "$has_iquote" >&6; }
7477 if test "x-$has_iquote" = "x-yes" ; then
7478 host_cflags_iquote=-iquote
7479 host_cflags_iquote_end=
7480 else
7481 host_cflags_iquote=-I
7482 host_cflags_iquote_end=-I-
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: Performing target configuration..." >&5
7486 $as_echo "$as_me: Performing target configuration..." >&6;}
7489 aros_nowarn_flags="NOWARN_UNUSED_COMMAND_LINE_ARGUMENT NOWARN_UNKNOWN_WARNING_OPTION NOWARN_POINTER_SIGN NOWARN_PARENTHESES"
7491 toolchain_needs_sysroot=no
7493 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7494 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7495 aros_config_ldflags=""
7497 aros_shared_default=yes
7499 aros_shared_cflags="-fPIC"
7500 aros_shared_aflags=""
7501 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7502 aros_kernel_ldflags="-Wl,-rpath,./lib"
7504 aros_kernel_ar_flags="cr"
7505 aros_target_ar_flags="cr"
7506 aros_target_nm_flags="-C -ul"
7507 aros_target_strip_flags="--strip-unneeded -R.comment"
7509 aros_compiler_libs=
7510 aros_arch_libs=
7512 aros_target_genmap="-Wl,-Map -Xlinker"
7514 # Native flavour stuff
7515 aros_serial_debug="0"
7517 # Palm native flavour stuff
7518 aros_palm_debug_hack="0"
7520 # Unix flavour stuff
7521 aros_nesting_supervisor="0"
7523 # Collect-aros stuff: "-ius" to ignore undefined symbols
7524 ignore_undefined_symbols=""
7526 # Check for X11 by default
7527 need_x11="auto"
7529 host_x_gfx=no
7530 host_sdl_gfx=no
7531 host_android_gfx=no
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which toolchain family to use ..." >&5
7535 $as_echo_n "checking Which toolchain family to use ...... " >&6; }
7537 # Check whether --with-toolchain was given.
7538 if test "${with_toolchain+set}" = set; then :
7539 withval=$with_toolchain; aros_toolchain="$withval"
7540 else
7541 aros_toolchain="gnu"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_toolchain" >&5
7545 $as_echo "$aros_toolchain" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable link time optimizations (LTO)" >&5
7549 $as_echo_n "checking if we should enable link time optimizations (LTO)... " >&6; }
7550 # Check whether --enable-lto was given.
7551 if test "${enable_lto+set}" = set; then :
7552 enableval=$enable_lto; aros_config_lto="$enableval"
7553 else
7554 aros_config_lto="no"
7557 if test "$aros_config_lto" != "no"; then
7558 aros_config_lto="yes"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_config_lto" >&5
7561 $as_echo "$aros_config_lto" >&6; }
7563 use_ld_wrapper=yes
7565 case "$aros_toolchain" in
7566 *llvm*)
7567 # toolchain_needs_sysroot=yes
7568 toolchain_c_compiler="clang"
7569 toolchain_cxx_compiler="clang++"
7570 toolchain_cpp_preprocessor="clang -E"
7571 toolchain_ld="ld.lld"
7572 aros_ld="ld"
7573 toolchain_as="llvm-as"
7574 toolchain_ar="llvm-ar"
7575 toolchain_ranlib="llvm-ranlib"
7576 toolchain_nm="llvm-nm"
7577 toolchain_strip="true"
7578 toolchain_objcopy="llvm-objcopy"
7579 toolchain_objdump="llvm-objdump"
7581 *gnu*)
7582 toolchain_c_compiler="gcc"
7583 toolchain_cxx_compiler="g++"
7584 toolchain_cpp_preprocessor="gcc -E"
7585 toolchain_as="as"
7586 aros_ld="ld"
7587 if test "$aros_config_lto" != "yes"; then
7588 toolchain_ld="ld"
7589 toolchain_ar="ar"
7590 toolchain_ranlib="ranlib"
7591 toolchain_nm="nm"
7592 else
7593 toolchain_ld="ld.bfd"
7594 toolchain_ar="gcc-ar"
7595 toolchain_ranlib="gcc-ranlib"
7596 toolchain_nm="gcc-nm"
7598 toolchain_strip="strip"
7599 toolchain_objcopy="objcopy"
7600 toolchain_objdump="objdump"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown toolchain family!\"" >&5
7604 $as_echo "$as_me: WARNING: \"Unknown toolchain family!\"" >&2;}
7605 toolchain_c_compiler="cc"
7606 toolchain_cxx_compiler="c++"
7607 toolchain_cpp_preprocessor="cpp"
7608 toolchain_ld="ld"
7609 aros_ld="ld"
7610 toolchain_as="as"
7611 toolchain_ar="ar"
7612 toolchain_ranlib="ranlib"
7613 toolchain_nm="nm"
7614 toolchain_strip="strip"
7615 toolchain_objcopy="objcopy"
7616 toolchain_objdump="objdump"
7618 esac
7620 #-----------------------------------------------------------------------------
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of build to do" >&5
7623 $as_echo_n "checking which type of build to do... " >&6; }
7624 # Check whether --enable-build_type was given.
7625 if test "${enable_build_type+set}" = set; then :
7626 enableval=$enable_build_type; build_type=$enableval
7627 else
7628 build_type="personal"
7632 if test "$build_type" = "nightly"; then
7633 build_type_string="NIGHTLY"
7634 elif test "$build_type" = "snapshot"; then
7635 build_type_string="SNAPSHOT"
7636 elif test "$build_type" = "milestone"; then
7637 build_type_string="MILESTONE"
7638 elif test "$build_type" = "release"; then
7639 build_type_string="RELEASE"
7640 else
7641 build_type_string="PERSONAL"
7642 build_type="personal"
7645 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7648 $as_echo "$build_type" >&6; }
7650 #-----------------------------------------------------------------------------
7651 all_debug_types="messages stack modules mungwall symbols"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7654 $as_echo_n "checking which debug types to enable... " >&6; }
7655 # Check whether --enable-debug was given.
7656 if test "${enable_debug+set}" = set; then :
7657 enableval=$enable_debug; debug="$enableval"
7658 else
7659 debug=""
7663 if test "$debug" = "" -o "$debug" = "no"; then
7664 debug="none"
7665 elif test "$debug" = "yes"; then
7666 debug="all"
7669 if test "$debug" = "all" ; then
7670 debug="messages stack modules symbols"
7671 for d in $all_debug_types; do
7672 export aros_${d}_debug="1"
7673 done
7674 else
7675 for d in $all_debug_types; do
7676 export aros_${d}_debug="0"
7677 done
7680 if test "$debug" != "none"; then
7681 debug=`echo $debug | sed s/,/\ /g`
7682 for d in $debug; do
7683 found="0"
7684 for d2 in $all_debug_types; do
7685 if test "$d2" = "$d"; then
7686 found="1"
7687 break
7689 done
7690 if test "$found" = "0"; then
7691 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7693 export aros_${d}_debug="1"
7694 done
7695 aros_debug="yes"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7698 $as_echo "$debug" >&6; }
7700 if test "$aros_messages_debug" = "1"; then
7701 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7702 else
7703 aros_messages_debug=""
7705 if test "$aros_symbols_debug" = "1"; then
7706 aros_symbols_debug="-g"
7707 else
7708 aros_symbols_debug=""
7711 # These are the flags to pass when compiling debugged programs
7712 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7713 aros_debug_aflags=""
7714 aros_debug_ldflags="$aros_symbols_debug"
7716 #-----------------------------------------------------------------------------
7717 # Checking for distcc and ccache.
7719 # Always apply the transforms in this particular order. Basically you should
7720 # always run 'ccache distcc compiler' in that order for the best performance.
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7723 $as_echo_n "checking whether to enable distcc... " >&6; }
7724 # Check whether --enable-distcc was given.
7725 if test "${enable_distcc+set}" = set; then :
7726 enableval=$enable_distcc; distcc="$enableval"
7727 else
7728 distcc="no"
7731 if test "$distcc" != "" -a "$distcc" != "no"; then
7732 # AC_CHECK_PROG will print out the result in this case
7733 # Extract the first word of "distcc", so it can be a program name with args.
7734 set dummy distcc; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_path_DISTCC+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 case $DISTCC in
7741 [\\/]* | ?:[\\/]*)
7742 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7760 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7762 esac
7764 DISTCC=$ac_cv_path_DISTCC
7765 if test -n "$DISTCC"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7767 $as_echo "$DISTCC" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7780 $as_echo_n "checking whether to enable ccache... " >&6; }
7781 # Check whether --enable-ccache was given.
7782 if test "${enable_ccache+set}" = set; then :
7783 enableval=$enable_ccache; ccache="$enableval"
7784 else
7785 ccache="no"
7788 if test "$ccache" != "" -a "$ccache" != "no"; then
7789 # AC_CHECK_PROG will print out the result in this case
7790 # Extract the first word of "ccache", so it can be a program name with args.
7791 set dummy ccache; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_CCACHE+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$CCACHE"; then
7798 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_CCACHE="ccache"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 CCACHE=$ac_cv_prog_CCACHE
7818 if test -n "$CCACHE"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7820 $as_echo "$CCACHE" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7832 #-----------------------------------------------------------------------------
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7834 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7836 # Check whether --with-kernel-gcc-version was given.
7837 if test "${with_kernel_gcc_version+set}" = set; then :
7838 withval=$with_kernel_gcc_version; kernel_tool_version="$withval"
7839 else
7840 kernel_tool_version=""
7843 if test "$kernel_tool_version" != "" ; then
7844 msg_result=$kernel_tool_version
7845 else
7846 msg_result="default"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7849 $as_echo "$msg_result" >&6; }
7851 #-----------------------------------------------------------------------------
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7853 $as_echo_n "checking what optimization flags to use... " >&6; }
7855 # Check whether --with-optimization was given.
7856 if test "${with_optimization+set}" = set; then :
7857 withval=$with_optimization; optimization="$withval"
7858 else
7859 optimization="unknown"
7862 if test "$optimization" = "unknown"; then
7863 if test "$debug" != "none"; then
7864 optimization="-O0"
7865 else
7866 optimization="-O2"
7869 aros_optimization_cflags="$optimization"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7871 $as_echo "$optimization" >&6; }
7873 paranoia_default=yes
7874 #-----------------------------------------------------------------------------
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which paranoia flags to use" >&5
7876 $as_echo_n "checking which paranoia flags to use... " >&6; }
7878 # Check whether --with-paranoia was given.
7879 if test "${with_paranoia+set}" = set; then :
7880 withval=$with_paranoia; paranoia_flags="$withval"
7881 else
7882 paranoia_flags="$paranoia_default"
7885 if test "$paranoia_flags" = "no"; then
7886 paranoia_flags=""
7887 msg_result="none"
7888 else
7889 if test "$paranoia_flags" = "yes"; then
7890 paranoia_flags="-Wall -Werror"
7892 msg_result="$paranoia_flags"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
7895 $as_echo "$msg_result" >&6; }
7896 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7898 #-----------------------------------------------------------------------------
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7900 $as_echo_n "checking what target variant to enable... " >&6; }
7901 # Check whether --enable-target_variant was given.
7902 if test "${enable_target_variant+set}" = set; then :
7903 enableval=$enable_target_variant; target_variant=$enableval
7904 else
7905 target_variant=""
7908 if test "$target_variant" = ""; then
7909 aros_target_variant=""
7910 aros_target_suffix=""
7911 enableval="none"
7912 else
7913 aros_target_variant="$target_variant"
7914 aros_target_suffix="-$target_variant"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7917 $as_echo "$enableval" >&6; }
7919 #-----------------------------------------------------------------------------
7920 # Target-specific defaults. You can override then on a per-target basis.
7922 # Bootloader name. Currently used by PC target.
7923 target_bootloader="none"
7924 ENABLE_EXECSMP=
7926 #-----------------------------------------------------------------------------
7927 # Additional options for some specific targets
7929 case "$aros_target_variant" in
7930 ios)
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7932 $as_echo_n "checking XCode path... " >&6; }
7934 # Check whether --with-xcode was given.
7935 if test "${with_xcode+set}" = set; then :
7936 withval=$with_xcode; aros_xcode_path="$withval"
7937 else
7938 aros_xcode_path="/Developer"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7942 $as_echo "$aros_xcode_path" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7945 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7947 # Check whether --with-sdk-version was given.
7948 if test "${with_sdk_version+set}" = set; then :
7949 withval=$with_sdk_version; aros_sdk_version="$withval"
7950 else
7951 aros_sdk_version="4.1"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7955 $as_echo "$aros_sdk_version" >&6; }
7959 "android")
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7961 $as_echo_n "checking Android SDK path... " >&6; }
7963 # Check whether --with-sdk was given.
7964 if test "${with_sdk+set}" = set; then :
7965 withval=$with_sdk; aros_android_sdk="$withval"
7966 else
7967 aros_android_sdk=$default_android_sdk
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7971 $as_echo "$aros_android_sdk" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7974 $as_echo_n "checking Android NDK path... " >&6; }
7976 # Check whether --with-ndk was given.
7977 if test "${with_ndk+set}" = set; then :
7978 withval=$with_ndk; aros_android_ndk="$withval"
7979 else
7980 aros_android_ndk="none"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7984 $as_echo "$aros_android_ndk" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7987 $as_echo_n "checking what Android SDK version to use... " >&6; }
7989 # Check whether --with-sdk-version was given.
7990 if test "${with_sdk_version+set}" = set; then :
7991 withval=$with_sdk_version; aros_sdk_version="$withval"
7992 else
7993 aros_sdk_version="12"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7997 $as_echo "$aros_sdk_version" >&6; }
7999 aros_android_level=android-$aros_sdk_version
8000 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
8001 echo "Platform $aros_android_level is not installed in your SDK"
8002 echo "Use --with-sdk-version=<API level number> to select another platform version"
8003 echo "You can check what plaform versions are installed in your SDK"
8004 echo "by examining contents of $aros_android_sdk/platforms directory"
8005 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
8008 export PATH="$aros_android_sdk/tools:$PATH"
8009 # Extract the first word of "$android_tool", so it can be a program name with args.
8010 set dummy $android_tool; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_android_tool+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 case $android_tool in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8037 esac
8039 android_tool=$ac_cv_path_android_tool
8040 if test -n "$android_tool"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
8042 $as_echo "$android_tool" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8049 req_avail=yes
8050 if test "$android_tool" = ""; then
8051 req_avail=no
8053 if test "$android_tool" = "no"; then
8054 req_avail=no
8056 if test "$req_avail" = "no"; then
8057 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
8060 if test "$aros_android_ndk" != "none"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
8062 $as_echo_n "checking what Android NDK version to use... " >&6; }
8064 # Check whether --with-ndk-version was given.
8065 if test "${with_ndk_version+set}" = set; then :
8066 withval=$with_ndk_version; aros_ndk_version="$withval"
8067 else
8068 aros_ndk_version="9"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
8072 $as_echo "$aros_ndk_version" >&6; }
8075 # Extract the first word of "ant", so it can be a program name with args.
8076 set dummy ant; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_path_ant+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 case $ant in
8083 [\\/]* | ?:[\\/]*)
8084 ac_cv_path_ant="$ant" # Let the user override the test with a path.
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8098 done
8099 done
8100 IFS=$as_save_IFS
8103 esac
8105 ant=$ac_cv_path_ant
8106 if test -n "$ant"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
8108 $as_echo "$ant" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8115 if test "$ant" = ""; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
8117 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build debug or release apk" >&5
8121 $as_echo_n "checking Build debug or release apk... " >&6; }
8123 # Check whether --with-apk-version was given.
8124 if test "${with_apk_version+set}" = set; then :
8125 withval=$with_apk_version; aros_android_antapk=$withval
8126 else
8127 aros_android_antapk=release
8130 if test $aros_android_antapk != release -a $aros_android_antapk != debug; then
8131 as_fn_error $? "apk-version has to be release or debug" "$LINENO" 5
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_antapk" >&5
8134 $as_echo "$aros_android_antapk" >&6; }
8136 if test "$host_os" = "mingw32"; then
8137 android_tool="cmd //c $android_tool"
8140 need_dlopen="no"
8143 esac
8145 #-----------------------------------------------------------------------------
8146 # External toolchains
8147 kernel_tool_prefix="none"
8148 aros_tool_prefix="none"
8149 elf_tool_prefix="${target_cpu}-elf-"
8151 # This is the target configuration switch.
8152 case "$target_os" in
8153 linux*)
8154 aros_target_arch="linux"
8155 aros_target_family="unix"
8156 case "$target_cpu" in
8157 *m68k*)
8158 aros_target_cpu="m68k"
8159 aros_object_format="m68kelf"
8160 aros_flavour="emulcompat"
8161 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8162 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8163 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8164 gcc_target_cpu="mc68000"
8166 *i?86*)
8167 aros_target_cpu="i386"
8168 aros_object_format="elf_i386"
8169 aros_flavour="emulation"
8170 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8171 aros_kernel_ldflags="-Wl,-melf_i386"
8172 aros_nominal_depth=8
8173 gcc_target_cpu="i386"
8174 pci_hidd_target="hidd-pci-linux"
8175 android_tool_dir_prefix="x86"
8176 android_tool_prefix="i686-android-linux"
8177 android_ndk_arch="x86"
8179 *x86_64*)
8180 aros_target_cpu="x86_64"
8181 aros_object_format="elf_x86_64"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8184 aros_config_cflags="$aros_config_cflags -mcmodel=large -mno-red-zone -fno-omit-frame-pointer"
8185 aros_nominal_depth=8
8186 pci_hidd_target="hidd-pci-linux"
8188 *powerpc*)
8189 aros_target_cpu="ppc"
8190 aros_object_format="elf32ppc"
8191 aros_flavour="emulation"
8192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8193 aros_nominal_depth=8
8194 gcc_target_cpu="ppc"
8196 # TODO
8197 # Same as powerpc, but I need this for the nightly build to work again.
8198 # Actually, the nightly should be made working with powerpc target.
8199 # That just was too much work for the moment, another week or two.
8200 *ppc*)
8201 aros_target_cpu="ppc"
8202 aros_object_format="elf32ppc"
8203 aros_flavour="emulation"
8204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8205 aros_nominal_depth=8
8206 gcc_target_cpu="ppc"
8208 *aarch64*)
8209 aros_target_cpu="aarch64"
8210 target_cpu="aarch64"
8211 aros_object_format="aarch64elf_aros"
8212 aros_flavour="emulation"
8213 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8214 gcc_target_cpu="aarch64"
8215 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8216 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8217 aros_arch_libs="-laeabi"
8218 gcc_default_float_abi="hard"
8219 kernel_tool_prefix="aarch64-linux-gnueabihf-"
8221 *armhf*)
8222 aros_target_cpu="arm"
8223 target_cpu="arm"
8224 aros_object_format="armelf_aros"
8225 aros_flavour="emulation"
8226 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8227 gcc_target_cpu="arm"
8228 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8229 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8230 aros_arch_libs="-laeabi"
8231 gcc_default_float_abi="hard"
8232 android_tool_dir_prefix="arm-linux-androideabi"
8233 android_tool_prefix="arm-linux-androideabi"
8234 android_ndk_arch="arm"
8235 kernel_tool_prefix="arm-linux-gnueabihf-"
8237 *arm*)
8238 aros_target_cpu="arm"
8239 aros_object_format="armelf_aros"
8240 aros_flavour="emulation"
8241 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8242 gcc_target_cpu="arm"
8243 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
8244 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
8245 aros_arch_libs="-laeabi"
8246 android_tool_dir_prefix="arm-linux-androideabi"
8247 android_tool_prefix="arm-linux-androideabi"
8248 android_ndk_arch="arm"
8249 kernel_tool_prefix="arm-linux-gnueabi-"
8252 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
8254 esac
8255 case "$aros_target_variant" in
8256 android)
8258 if test "$android_ndk_arch" = ""; then
8259 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
8262 aros_nominal_width=320
8263 aros_nominal_height=480
8264 if test "$aros_android_ndk" = "none"; then
8265 aros_kernel_cflags="-mandroid"
8266 aros_kernel_ldflags="-mandroid"
8267 CFLAGS="-mandroid"
8268 else
8269 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$kernel_tool_version/prebuilt/$android_build_os/bin:$PATH"
8270 kernel_tool_version=""
8271 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
8272 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8273 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8274 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8275 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8277 need_x11=no
8278 host_android_gfx=yes
8279 # Disable implicit PIC mode
8280 aros_target_cflags="$aros_target_cflags -fno-pic"
8281 kernel_tool_prefix="$android_tool_prefix-"
8283 esac
8287 aros_target_arch="pc"
8288 aros_shared_default="no"
8289 target_bootloader="grub2"
8290 case "$target_cpu" in
8291 *i?86*)
8292 aros_target_cpu="i386"
8295 if test "$aros_object_format" = "" ; then
8296 aros_object_format="elf_i386"
8298 aros_flavour="standalone"
8299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8300 aros_kernel_ldflags="-Wl,-melf_i386"
8301 aros_nominal_width=640
8302 aros_nominal_height=480
8303 gcc_target_cpu="i386"
8305 *x86_64*)
8306 aros_target_cpu="x86_64"
8307 aros_serial_debug=1
8308 if test "$aros_object_format" = "" ; then
8309 aros_object_format="elf_x86_64"
8311 aros_flavour="standalone"
8312 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8313 aros_config_cflags="$aros_config_cflags -mcmodel=large -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
8314 aros_kernel_ldflags=""
8315 aros_nominal_width=640
8316 aros_nominal_height=480
8317 case "$aros_target_variant" in
8318 smp)
8319 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8321 esac
8324 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
8326 esac
8329 prep)
8330 aros_target_arch="prep"
8331 aros_shared_default="no"
8332 aros_target_cpu="ppc"
8333 aros_object_format="elf32ppc"
8334 aros_flavour="ppcnative"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8336 aros_kernel_ldflags=""
8337 aros_nominal_width=640
8338 aros_nominal_height=480
8339 gcc_target_cpu="ppc"
8342 freebsd*)
8343 aros_target_arch="freebsd"
8344 aros_target_family="unix"
8345 aros_target_cpu="i386"
8346 aros_flavour="emulation"
8347 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8348 gcc_target_cpu="i386"
8350 aros_target_strip_flags="-x"
8353 darwin*)
8354 aros_target_arch="darwin"
8355 aros_target_family="unix"
8356 aros_flavour="emulation"
8357 case "$target_cpu" in
8358 *i?86*)
8359 aros_ios_platform="iPhoneSimulator"
8360 aros_target_cpu="i386"
8361 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8362 aros_kernel_ldflags=""
8363 aros_macosx_version="10.4"
8364 aros_nominal_depth=8
8365 gcc_target_cpu="i386"
8366 aros_object_format="elf_i386"
8367 aros_kernel_ar_flags="-cr"
8368 aros_target_strip_flags="-x"
8369 kernel_tool_flags="-m32"
8371 *x86_64*)
8372 aros_target_cpu="x86_64"
8373 aros_object_format="elf_x86_64"
8374 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8375 aros_macosx_version="10.6"
8376 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8377 aros_kernel_cflags="-m64"
8378 aros_kernel_ldflags="-m64"
8379 aros_target_cflags="-mcmodel=large"
8380 aros_nominal_depth=8
8381 aros_kernel_ar="ar"
8382 aros_kernel_ar_flags="-cr"
8383 aros_kernel_ld="ld"
8384 aros_kernel_as="as"
8385 aros_kernel_ranlib="ranlib"
8386 aros_kernel_nm="nm"
8387 aros_kernel_strip="strip"
8388 kernel_tool_prefix="i686-apple-darwin10-"
8390 *ppc*)
8391 aros_target_cpu="ppc"
8392 aros_object_format="elf32ppc"
8393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8394 aros_kernel_ldflags=""
8395 aros_macosx_version="10.0"
8396 aros_nominal_depth=8
8397 gcc_target_cpu="ppc"
8398 aros_kernel_ar="ar"
8399 aros_kernel_ar_flags="-cr"
8400 aros_kernel_ld="ld -arch ppc"
8401 aros_kernel_as="as -arch ppc"
8402 aros_kernel_ranlib="ranlib -arch ppc"
8403 aros_kernel_nm="nm -arch ppc"
8404 aros_kernel_strip="strip -arch ppc"
8405 kernel_tool_prefix="powerpc-apple-darwin10-"
8407 *arm*)
8408 aros_ios_platform="iPhoneOS"
8409 aros_target_cpu="arm"
8410 aros_object_format="armelf_aros"
8411 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8412 aros_arch_libs="-laeabi"
8413 aros_nominal_depth=8
8414 gcc_target_cpu="arm"
8415 aros_kernel_ar="ar"
8416 aros_kernel_ar_flags="-cr"
8417 aros_kernel_ld="ld -arch arm"
8418 aros_kernel_ranlib="ranlib -arch arm"
8419 kernel_tool_prefix="arm-apple-darwin10-"
8420 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8423 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
8425 esac
8426 case "$aros_target_variant" in
8427 ios)
8428 aros_ios_version="3.0"
8429 aros_nominal_width=320
8430 aros_nominal_height=480
8431 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
8432 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
8433 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8434 need_x11=no
8435 # This is here because it may depend on iOS or SDK version
8436 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8437 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8438 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8441 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8442 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8444 esac
8447 dragonfly*)
8448 aros_target_arch="dragonfly"
8449 aros_target_family="unix"
8450 aros_flavour="emulation"
8451 case "$target_cpu" in
8452 *i?86*)
8453 aros_target_cpu="i386"
8454 aros_object_format="elf_i386"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8457 *x86_64*)
8458 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8459 aros_target_cpu="x86_64"
8460 aros_object_format="elf_x86_64"
8461 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8464 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8466 esac
8469 netbsd*)
8470 aros_target_arch="netbsd"
8471 aros_target_family="unix"
8472 case "$target_cpu" in
8473 *m68k*)
8474 aros_target_cpu="m68k"
8475 aros_object_format="m68kelf"
8476 aros_flavour="emulcompat"
8477 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8478 gcc_target_cpu="mc68000"
8480 *i?86*)
8481 aros_target_cpu="i386"
8482 aros_object_format="elf_i386"
8483 aros_flavour="emulation"
8484 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8485 aros_nominal_depth=8
8486 gcc_target_cpu="i386"
8489 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8491 esac
8492 aros_target_genmap="-Wl,-M -Xlinker >"
8493 aros_flavour="emulation"
8494 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8497 openbsd*)
8498 aros_target_arch="openbsd"
8499 aros_target_family="unix"
8500 case "$target_cpu" in
8501 *i?86*)
8502 aros_target_cpu="i386"
8503 aros_object_format="elf_i386"
8504 aros_flavour="emulation"
8505 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8506 gcc_target_cpu="i386"
8509 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8511 esac
8512 aros_target_genmap="-Wl,-M -Xlinker >"
8513 aros_target_nm_flags="-u"
8514 aros_flavour="emulation"
8517 solaris*)
8518 aros_target_arch="solaris"
8519 aros_target_family="unix"
8520 case "$target_cpu" in
8521 *i?86*)
8522 aros_target_cpu="i386"
8523 aros_object_format="elf_i386"
8524 aros_flavour="emulation"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8526 aros_nominal_depth=8
8527 gcc_target_cpu="i386"
8529 *sparc*)
8530 aros_target_cpu="sparc"
8531 aros_object_format="elf_sparc"
8532 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8533 gcc_target_cpu="sparc"
8536 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8538 esac
8539 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8540 aros_flavour="emulation"
8543 morphos*)
8544 aros_target_arch="morphos"
8545 aros_shared_default="no"
8546 aros_target_cpu="ppc"
8547 aros_object_format="elf_ppc"
8548 aros_flavour="nativecompat"
8549 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8550 gcc_target_cpu="ppc"
8553 sam440)
8554 aros_target_arch="sam440"
8555 aros_shared_default="no"
8556 aros_target_cpu="ppc"
8557 aros_object_format="elf32ppc"
8558 aros_flavour="ppcnative"
8559 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8560 aros_kernel_ldflags=""
8561 aros_nominal_width=1024
8562 aros_nominal_height=768
8563 aros_nominal_depth=24
8564 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8565 gcc_target_cpu="powerpc"
8568 efika)
8569 aros_target_arch="efika"
8570 aros_shared_default="no"
8571 aros_target_cpu="arm"
8572 aros_object_format="armelf_aros"
8573 aros_flavour="standalone"
8574 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8575 aros_kernel_ldflags=""
8576 aros_nominal_width=1024
8577 aros_nominal_height=600
8578 aros_arch_libs="-laeabi"
8579 gcc_default_cpu="armv7-a"
8580 gcc_default_fpu="vfpv3"
8581 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8582 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing -fno-asynchronous-unwind-tables"
8583 aros_optimization_cflags="$aros_optimization_cflags -Os"
8584 case "$target_cpu" in
8585 *armhf*)
8586 gcc_default_float_abi="hard"
8587 target_cpu=arm
8588 aros_target_cpu=arm
8590 *arm*)
8591 gcc_default_float_abi="softfp"
8594 as_fn_error $? "\"Unknown CPU for EfikaMX $target_cpu\"" "$LINENO" 5
8596 esac
8599 chrp)
8600 aros_target_arch="chrp"
8601 aros_shared_default="no"
8602 aros_target_cpu="ppc"
8603 aros_object_format="elf32ppc"
8604 aros_flavour="ppcnative"
8605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8606 aros_kernel_ldflags=""
8607 aros_nominal_width=640
8608 aros_nominal_height=480
8609 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8610 gcc_target_cpu="powerpc"
8611 case "$aros_target_variant" in
8612 efika)
8613 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8615 esac
8618 r*pi)
8619 aros_flavour="standalone"
8620 aros_target_arch="raspi"
8622 aros_shared_default="no"
8624 aros_target_mkdep="$aros_target_mkdep -D__GNUC__"
8626 case "$target_cpu" in
8627 *aarch64*)
8628 aros_target_cpu="aarch64"
8629 gcc_default_cpu="aarch64"
8630 aros_object_format="aarch64elf_aros"
8632 *armhf*)
8633 aros_target_cpu="arm"
8634 gcc_default_cpu="armv6zk"
8635 gcc_default_cpu_tune="arm1176jzf-s"
8636 aros_object_format="armelf_aros"
8637 aros_config_cflags="$aros_config_cflags -marm"
8638 aros_config_aflags="$aros_config_aflags -marm"
8639 aros_kernel_cflags="$aros_kernel_cflags -marm"
8640 aros_target_cflags="$aros_kernel_cflags -marm"
8641 aros_target_mkdep="$aros_target_mkdep -Darm"
8642 aros_arch_libs="-laeabi"
8644 *arm*)
8645 aros_target_cpu="arm"
8646 gcc_default_cpu="armv6zk"
8647 gcc_default_cpu_tune="arm1176jzf-s"
8648 aros_object_format="armelf_aros"
8649 aros_config_cflags="$aros_config_cflags -marm"
8650 aros_config_aflags="$aros_config_aflags -marm"
8651 aros_kernel_cflags="$aros_kernel_cflags -marm"
8652 aros_target_cflags="$aros_kernel_cflags -marm"
8653 aros_target_mkdep="$aros_target_mkdep -Darm"
8654 aros_arch_libs="-laeabi"
8657 as_fn_error $? "\"Unknown CPU for RasPi $target_cpu\"" "$LINENO" 5
8659 esac
8661 aros_config_cflags="$aros_config_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8662 aros_config_aflags="$aros_config_aflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8663 aros_kernel_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8664 aros_target_cflags="$aros_kernel_cflags -Wno-error -fno-asynchronous-unwind-tables -fno-exceptions"
8666 case "$aros_target_variant" in
8667 smp)
8668 ENABLE_EXECSMP="#define __AROSEXEC_SMP__"
8670 esac
8673 stm32f7_discovery)
8674 aros_flavour="standalone"
8675 aros_target_arch="stm32f7_discovery"
8676 aros_target_cpu="arm"
8677 aros_target_cpu_mode="thumb2"
8678 aros_object_format="armelf_aros"
8679 aros_shared_default="no"
8681 # stm32f7 has DSP opcode support
8682 gcc_default_cpu="armv7e-m"
8683 # gcc_default_cpu="armv7-m"
8684 gcc_default_cpu_tune="cortex-m7"
8685 gcc_default_fpu="fpv4-sp-d16"
8686 # GCC does not recognize fpv5-sp-d16 which should be the correct one to use, or not...
8687 # gcc_default_fpu="fpv5-sp-d16"
8688 gcc_default_float_abi="hard"
8690 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dthumb"
8693 amiga*)
8694 aros_target_arch="amiga"
8695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8696 aros_shared_default="no"
8698 case "$target_cpu" in
8699 *m68k*)
8700 # Check whether --enable-amigaos_compliance was given.
8701 if test "${enable_amigaos_compliance+set}" = set; then :
8702 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8705 aros_enable_mmu=no
8706 aros_target_cpu="m68k"
8707 aros_object_format="m68kelf"
8708 aros_flavour="standcompat"
8709 gcc_target_cpu="m68000"
8710 aros_nowarn_flags="$aros_nowarn_flags NOWARN_VOLATILE_REGISTER_VAR"
8711 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -DNOLIBINLINE"
8712 aros_optimization_cflags="$aros_optimization_cflags -Os"
8713 aros_config_aflags="$aros_config_aflags"
8714 aros_target_strip_flags="-R.comment --strip-debug"
8715 aros_nominal_width=640
8716 aros_nominal_height=256
8717 aros_nominal_depth=2
8719 *ppc*)
8720 aros_cpu="ppc"
8721 aros_flavour="native"
8722 gcc_target_cpu="ppc"
8725 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8727 esac
8730 mingw*)
8731 aros_target_arch="mingw32"
8732 aros_shared_default="no"
8733 aros_flavour="emulation"
8734 aros_shared_cflags=""
8735 need_crosstools="yes"
8736 need_dlopen="no"
8737 rescomp="windres"
8738 case "$target_cpu" in
8739 *i?86*)
8740 aros_target_cpu="i386"
8741 aros_object_format="elf_i386"
8742 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8743 aros_nominal_depth=8
8744 gcc_target_cpu="i386"
8746 kernel_tool_prefix="i386-mingw32-"
8748 *x86_64*)
8749 aros_target_cpu="x86_64"
8750 aros_object_format="elf_x86_64"
8751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8752 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8753 aros_nominal_depth=8
8754 kernel_tool_prefix="x86_64-w64-mingw32-"
8756 *arm*)
8757 aros_target_cpu="arm"
8758 aros_object_format="armelf_aros"
8759 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8760 aros_arch_libs="-laeabi"
8761 aros_nominal_depth=8
8762 gcc_target_cpu="arm"
8763 gcc_default_float_abi="soft"
8764 kernel_tool_prefix="arm-mingw32ce-"
8765 aros_nominal_width=160
8766 aros_nominal_height=160
8769 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8771 esac
8772 if test $host_os = "cygwin"; then
8773 aros_kernel_cflags="-mno-cygwin"
8776 pp*)
8777 aros_target_arch="pp"
8778 aros_shared_default="no"
8779 case "$target_cpu" in
8780 *m68k*)
8781 aros_target_cpu="m68k"
8782 aros_object_format="m68kelf"
8783 aros_flavour="palmnative"
8784 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8785 aros_nominal_width=160
8786 aros_nominal_height=160
8787 aros_nominal_depth=1
8788 aros_target_ar_flags="cru"
8789 aros_compiler_libs="-lgcc1"
8790 aros_shared_default=no
8791 aros_shared_cflags="-fpic"
8792 aros_shared_aflags=""
8793 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8794 aros_kernel_ldflags="-Wl,-rpath,./lib"
8795 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8796 aros_debug_aflags=""
8797 aros_debug_ldflags="$aros_symbols_debug"
8798 aros_mungwall_debug="0"
8799 aros_modules_debug="0"
8800 gcc_target_cpu="mc68000"
8801 ignore_undefined_symbols="-ius"
8804 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8806 esac
8809 mac*)
8810 aros_target_arch="mac"
8811 aros_shared_default="no"
8812 case "$target_cpu" in
8813 *m68k*)
8814 aros_target_cpu="m68k"
8815 aros_object_format="m68kelf"
8816 aros_flavour="mac68knative"
8817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8818 aros_nominal_width=512
8819 aros_nominal_height=384
8820 aros_nominal_depth=8
8821 aros_target_ar_flags="cru"
8822 aros_compiler_libs="-lgcc1"
8823 aros_shared_default=no
8824 aros_shared_cflags="-fpic"
8825 aros_shared_aflags=""
8826 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8827 aros_kernel_ldflags="-Wl,-rpath,./lib"
8828 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8829 aros_debug_aflags=""
8830 aros_debug_ldflags="$aros_symbols_debug"
8831 aros_mungwall_debug="0"
8832 aros_modules_debug="0"
8833 gcc_target_cpu="mc68000"
8834 ignore_undefined_symbols="-ius"
8837 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8839 esac
8843 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8845 esac
8847 #-----------------------------------------------------------------------------
8848 crosstools_guess="yes"
8849 aros_target_toolchain="no"
8850 aros_config_sysroot=""
8851 aros_kernel_sysroot=""
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8854 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8856 # Check whether --with-kernel-toolchain-prefix was given.
8857 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8858 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8862 $as_echo "$kernel_tool_prefix" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8865 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8867 # Check whether --with-elf-toolchain-prefix was given.
8868 if test "${with_elf_toolchain_prefix+set}" = set; then :
8869 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8870 crosstools_guess="no"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8874 $as_echo "$elf_tool_prefix" >&6; }
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8877 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8879 # Check whether --with-aros-toolchain was given.
8880 if test "${with_aros_toolchain+set}" = set; then :
8881 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8882 crosstools_guess="no"
8885 if test "$aros_tool_prefix" = "yes" ; then
8886 aros_tool_prefix=$aros_target_cpu-aros-
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8889 $as_echo "$aros_tool_prefix" >&6; }
8891 #-----------------------------------------------------------------------------
8892 # Checking if we should build crosstools..
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8894 $as_echo_n "checking whether to build crosstools... " >&6; }
8895 # Check whether --enable-crosstools was given.
8896 if test "${enable_crosstools+set}" = set; then :
8897 enableval=$enable_crosstools; crosstools="$enableval"
8898 else
8899 crosstools="$crosstools_guess"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8903 $as_echo "$crosstools" >&6; }
8905 if test "${crosstools}" = "yes"; then
8906 if test "${crosstools_guess}" = "no"; then
8907 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8911 if test "${crosstools}" = "yes" || test "${crosstools_guess}" = "no"; then
8912 aros_target_toolchain="yes"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8916 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8918 # Check whether --with-aros-toolchain-install was given.
8919 if test "${with_aros_toolchain_install+set}" = set; then :
8920 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8923 if test "x$aros_toolchain_install" = "x"; then
8924 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8925 else
8926 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8927 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8928 if test "$crosstools_guess" = "no" ; then
8929 toolchain_needs_sysroot=yes
8931 if test "x-$aros_flavour" != "x-emulation" -a "x-$aros_flavour" != "x-emulcompat" ; then
8932 aros_kernel_sysroot = $aros_config_sysroot
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8937 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If we need to use --sysroot" >&5
8940 $as_echo_n "checking If we need to use --sysroot... " >&6; }
8941 if test "$toolchain_needs_sysroot" = "yes" ; then
8942 aros_config_sysroot="--sysroot $AROS_BUILDDIR_UNIX/bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolchain_needs_sysroot" >&5
8945 $as_echo "$toolchain_needs_sysroot" >&6; }
8947 #-----------------------------------------------------------------------------
8948 if test "$aros_toolchain" = "gnu" ; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target binutils version to use" >&5
8950 $as_echo_n "checking what specific target binutils version to use... " >&6; }
8953 # Check whether --with-binutils-version was given.
8954 if test "${with_binutils_version+set}" = set; then :
8955 withval=$with_binutils_version; use_binutils_version="$withval"
8956 else
8957 use_binutils_version=""
8960 if test "$use_binutils_version" = ""; then
8961 target_binutils_version="$default_binutils_version"
8962 else
8963 target_binutils_version="$use_binutils_version"
8965 if test "$aros_toolchain" = "gnu" ; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_binutils_version" >&5
8967 $as_echo "$target_binutils_version" >&6; }
8971 # Helper to identify gcc version
8974 #-----------------------------------------------------------------------------
8975 if test "$aros_toolchain" = "gnu" ; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
8977 $as_echo_n "checking what specific target gcc version to use... " >&6; }
8980 # Check whether --with-gcc-version was given.
8981 if test "${with_gcc_version+set}" = set; then :
8982 withval=$with_gcc_version; use_gcc_version="$withval"
8983 else
8984 use_gcc_version=""
8987 if test "$use_gcc_version" = ""; then
8988 if test "${crosstools}" = "no"; then
8989 if test "x$aros_toolchain_install" != "x"; then
8991 target_gcc_version=""
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
8993 $as_echo_n "checking gcc version... " >&6; }
8994 if ${ax_cv_gcc_version+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8998 ax_cv_gcc_version="`$AROS_CROSSTOOLSDIR/${aros_tool_prefix}${toolchain_cpp_preprocessor} -dumpversion`"
8999 if test "x$ax_cv_gcc_version" = "x"; then :
9001 ax_cv_gcc_version=""
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
9007 $as_echo "$ax_cv_gcc_version" >&6; }
9008 target_gcc_version=$ax_cv_gcc_version
9013 if test "$use_gcc_version" = ""; then
9014 target_gcc_version="$default_gcc_version"
9016 else
9017 target_gcc_version="$use_gcc_version"
9019 if test "$aros_toolchain" = "gnu" ; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_gcc_version" >&5
9021 $as_echo "$target_gcc_version" >&6; }
9023 GCC_VERSION_MAJOR=$(echo $target_gcc_version | cut -d'.' -f1)
9024 GCC_VERSION_MINOR=$(echo $target_gcc_version | cut -d'.' -f2)
9025 GCC_VERSION_PATCH=$(echo $target_gcc_version | cut -d'.' -f3)
9027 gcc_fix_bitfields="false"
9028 if test "$GCC_VERSION_MAJOR" -gt "4" ; then
9029 gcc_fix_bitfields="true"
9030 else
9031 if test "$GCC_VERSION_MAJOR" -gt "3" ; then
9032 if test "$GCC_VERSION_MINOR" -gt "6" ; then
9033 gcc_fix_bitfields="true"
9038 if test "$gcc_fix_bitfields" = "true" ; then
9039 case "$aros_target_cpu" in
9040 *x86_64*)
9041 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9042 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9044 i386)
9045 aros_kernel_cflags="$aros_kernel_cflags -mno-ms-bitfields"
9046 aros_target_cflags="$aros_target_cflags -mno-ms-bitfields"
9048 esac
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Objective-C suppport" >&5
9053 $as_echo_n "checking whether to enable Objective-C suppport... " >&6; }
9054 # Check whether --enable-objc was given.
9055 if test "${enable_objc+set}" = set; then :
9056 enableval=$enable_objc; objc="$enableval"
9057 else
9058 objc="no"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $objc" >&5
9062 $as_echo "$objc" >&6; }
9063 if test "x$objc" = "xyes"; then
9064 objc_target="$objc"
9065 else
9066 objc_target="no-objc"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Java suppport" >&5
9070 $as_echo_n "checking whether to enable Java suppport... " >&6; }
9071 # Check whether --enable-java was given.
9072 if test "${enable_java+set}" = set; then :
9073 enableval=$enable_java; java="$enableval"
9074 else
9075 java="no"
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $java" >&5
9079 $as_echo "$java" >&6; }
9080 if test "x$java" != "xno"; then
9081 java_target="$java"
9082 else
9083 java_target="no-java"
9086 spec_obj_format="-m $aros_object_format"
9087 # Now process extra architecture-specific options.
9088 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
9089 # as well as floating-point ABI.
9090 case "$aros_target_cpu" in
9091 *x86_64*)
9092 spec_obj_format="%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
9094 arm*)
9095 if test "$gcc_default_cpu" = ""; then
9096 gcc_default_cpu="armv6"
9098 if test "$gcc_default_fpu" = ""; then
9099 gcc_default_fpu="vfp"
9101 if test "$gcc_default_float_abi" = ""; then
9102 if test "$target_cpu" = "armhf"; then
9103 gcc_default_float_abi="hard"
9104 else
9105 gcc_default_float_abi="softfp"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
9110 $as_echo_n "checking Which minimum CPU to use... " >&6; }
9112 # Check whether --with-cpu was given.
9113 if test "${with_cpu+set}" = set; then :
9114 withval=$with_cpu; aros_gcc_cpu="$withval"
9115 else
9116 aros_gcc_cpu=$gcc_default_cpu
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
9120 $as_echo "$aros_gcc_cpu" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
9123 $as_echo_n "checking Which minimum FPU to use... " >&6; }
9125 # Check whether --with-fpu was given.
9126 if test "${with_fpu+set}" = set; then :
9127 withval=$with_fpu; aros_gcc_fpu="$withval"
9128 else
9129 aros_gcc_fpu=$gcc_default_fpu
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
9133 $as_echo "$aros_gcc_fpu" >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
9136 $as_echo_n "checking Which floating point ABI to use... " >&6; }
9138 # Check whether --with-float was given.
9139 if test "${with_float+set}" = set; then :
9140 withval=$with_float; aros_gcc_float_abi="$withval"
9141 else
9142 aros_gcc_float_abi=$gcc_default_float_abi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
9146 $as_echo "$aros_gcc_float_abi" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which ARM mode to use" >&5
9149 $as_echo_n "checking Which ARM mode to use... " >&6; }
9150 if test "$aros_target_cpu_mode" = ""; then
9151 aros_target_cpu_mode="arm32"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $aros_target_cpu_mode" >&5
9153 $as_echo "Defaulting to $aros_target_cpu_mode" >&6; }
9154 else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpu_mode" >&5
9156 $as_echo "$aros_target_cpu_mode" >&6; }
9159 case "$aros_target_cpu_mode" in
9160 arm32)
9161 gcc_default_mode="arm"
9162 aros_isa_flags="-m$gcc_default_mode -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9164 arm64)
9165 as_fn_error $? "ARM 64-bit mode is unsupported" "$LINENO" 5
9167 thumb)
9168 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9170 thumb1)
9171 as_fn_error $? "Thumb1 16-bit mode is unsupported" "$LINENO" 5
9173 thumb2)
9174 gcc_default_mode="thumb"
9175 # Do not specify -mthumb-interwork as it may add extra code to support arm/thumb interwork
9176 aros_isa_flags="-m$gcc_default_mode -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi"
9179 as_fn_error $? "Unsupported ARM mode specified $aros_target_cpu_mode" "$LINENO" 5
9181 esac
9183 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -fno-exceptions"
9184 aros_config_aflags="$aros_config_aflags -fno-asynchronous-unwind-tables -fno-exceptions"
9186 i386)
9187 aros_isa_flags="-m32 -march=i486"
9188 aros_kernel_cflags="$aros_kernel_cflags $aros_isa_flags"
9189 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
9191 esac
9193 # Some architectures may need custom ELF specs.
9194 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
9195 elf_specs_in=config/${aros_object_format}-specs.in
9196 else
9197 elf_specs_in=config/elf-specs.in
9200 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
9201 # Since we override specs, we may need to put these defines there
9202 if test "$gcc_target_cpu" != ""; then
9203 gcc_target_cpu="-D__${gcc_target_cpu}__"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
9207 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
9209 # Check whether --with-portssources was given.
9210 if test "${with_portssources+set}" = set; then :
9211 withval=$with_portssources; with_portssrcdir=$withval
9212 else
9213 with_portssrcdir="default"
9216 if test "$with_portssrcdir" = "default"; then
9217 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9218 else
9219 AROS_PORTSSRCDIR="$with_portssrcdir"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
9222 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
9225 $as_echo_n "checking which bootloader to use... " >&6; }
9227 # Check whether --with-bootloader was given.
9228 if test "${with_bootloader+set}" = set; then :
9229 withval=$with_bootloader; target_bootloader=$withval
9230 else
9231 target_bootloader=$target_bootloader
9234 if test "$target_bootloader" = "none"; then
9235 aros_target_bootloader=""
9236 else
9237 aros_target_bootloader="$target_bootloader"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
9240 $as_echo "$target_bootloader" >&6; }
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
9243 $as_echo_n "checking which icon-set to use... " >&6; }
9245 # Check whether --with-iconset was given.
9246 if test "${with_iconset+set}" = set; then :
9247 withval=$with_iconset; target_iconset=$withval
9248 else
9249 target_iconset="default"
9252 if test "$target_iconset" = "default"; then
9253 aros_target_iconset="Gorilla"
9254 target_iconset="default (Gorilla)"
9255 else
9256 aros_target_iconset="$target_iconset"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
9259 $as_echo "$target_iconset" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
9262 $as_echo_n "checking which GUI Theme to use... " >&6; }
9264 # Check whether --with-theme was given.
9265 if test "${with_theme+set}" = set; then :
9266 withval=$with_theme; target_guitheme=$withval
9267 else
9268 target_guitheme="default"
9271 if test "$target_guitheme" = "default"; then
9272 aros_target_guitheme="Ice"
9273 else
9274 aros_target_guitheme="$target_guitheme"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
9277 $as_echo "$aros_target_guitheme" >&6; }
9279 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9280 # for target code)
9281 cross_compiling=no
9283 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9284 cross_compiling=yes
9287 if test "$aros_host_cpu" == "x86_64" ; then
9288 if test "$aros_target_cpu" == "i386" ; then
9289 cross_compiling=no
9293 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9294 if test "$aros_host_arch" != "$aros_target_arch" ; then
9295 cross_compiling=yes
9297 else
9298 if test "$host_cc_elf" = "no" ; then
9299 cross_compiling=yes
9303 if test "$cross_compiling" = "no" ; then
9304 kernel_tool_prefix=""
9305 if test "$host_cc_elf" = "yes" ; then
9306 elf_tool_prefix=""
9310 if test "$kernel_tool_version" != ""; then
9311 kernel_tool_version="-$kernel_tool_version"
9314 #######################################################################
9315 ## Compute what toolchains to use, and their paths ##
9316 #######################################################################
9318 # This takes, as input:
9319 # crosstools {yes,no}
9320 # kernel_tool_version {"",[version]}
9321 # target_tool_version {"",[version]}
9322 # kernel_tool_prefix {none,[some-arch-os-]}
9323 # gnu-toolchain -:
9324 # target_tool_prefix ${aros_target_cpu}-aros-
9325 # aros_tool_prefix ${aros_target_cpu}-aros-
9327 # The output is
9328 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9329 # Where the 'kernel' binaries are located
9330 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
9331 # Where the 'target' binaries are located
9332 # (not the symlink farm - that is aros_target_*!)
9334 # The rules are:
9335 # if crosstools then
9336 # if kernel_tools_prefix = "no-kernel-prefix-"
9337 # aros_kernel_* = crosstools cc paths
9338 # aros_kernel_cc = elf cc wrapper around crosstools cc
9339 # else
9340 # VALIDATE(${kernel_tools_prefix}*)
9341 # aros_kernel_* = ${kernel_tools_prefix}*
9342 # if ${kernel_tools_prefix}cc is an AROS gcc
9343 # aros_kernel_cc = ${kernel_tools_prefix}cc
9344 # else
9345 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
9346 # fi
9347 # fi
9349 # orig_target_* = aros built crosstools
9350 # orig_target_cc = elf cc wrapper around crosstools cc
9351 # else
9352 # VALIDATE(${kernel_tools_prefix}*)
9354 # orig_target_* = aros_kernel_*
9355 # if aros_kernel_cc is an AROS gcc
9356 # orig_target_cc = aros_kernel_cc
9357 # else
9358 # orig_target_cc = aros cc wrapper around aros_kernel_cc
9359 # fi
9360 # fi
9362 if test "$aros_toolchain" = "gnu" ; then
9363 target_tool_prefix="${aros_target_cpu}-aros-"
9364 elif test "$aros_toolchain" = "llvm" ; then
9365 target_tool_prefix="bin/"
9368 if test "$kernel_tool_prefix" != "" ; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
9370 $as_echo_n "checking which kernel tools... " >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
9372 $as_echo "$kernel_tool_prefix" >&6; };
9375 if test "$kernel_tool_prefix" = "none" ; then
9376 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9377 as_fn_error $? "--with-kernel-toolchain-prefix= is required for this arch" "$LINENO" 5
9379 else
9380 # Kernel tools required - find them
9381 # Note that 'normally', aros_kernel_* overrides will be
9382 # empty, unless specified in the per-arch sections above.
9383 if test "x$aros_kernel_cpp" = "x"; then
9384 aros_kernel_cpp=${kernel_tool_prefix}${CPP}
9386 if test "${kernel_tool_version}" != ""; then
9387 if test "$aros_kernel_cpp" != ""; then
9388 ac_prog_args=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9389 ac_prog_cmd=`expr "X$aros_kernel_cpp" : '^\S*'`
9390 aros_kernel_cpp="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9394 if test "$aros_kernel_cpp" = ""; then
9395 if test "$cross_compiling" = "yes" ; then
9396 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
9397 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 case $aros_kernel_cpp in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9427 if test -n "$aros_kernel_cpp"; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9429 $as_echo "$aros_kernel_cpp" >&6; }
9430 else
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9436 else
9437 if test "$GCC" = "yes"; then
9438 aros_gcc_cpp=`$CC -print-prog-name=cpp`
9439 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
9440 set dummy `basename $aros_gcc_cpp`; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 case $aros_kernel_cpp in
9447 [\\/]* | ?:[\\/]*)
9448 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in `dirname $aros_gcc_cpp`
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9458 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9462 done
9463 done
9464 IFS=$as_save_IFS
9467 esac
9469 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9470 if test -n "$aros_kernel_cpp"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9472 $as_echo "$aros_kernel_cpp" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9480 if test "$aros_kernel_cpp" = ""; then
9481 # Extract the first word of "cpp", so it can be a program name with args.
9482 set dummy cpp; 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_cpp+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 case $aros_kernel_cpp in
9489 [\\/]* | ?:[\\/]*)
9490 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in $PATH
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_cpp="$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_cpp=$ac_cv_path_aros_kernel_cpp
9512 if test -n "$aros_kernel_cpp"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9514 $as_echo "$aros_kernel_cpp" >&6; }
9515 else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9523 else
9524 ac_tool_optarg=`expr "X$aros_kernel_cpp" : '[^ ]* \(.*\)'`
9525 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
9526 set dummy $aros_kernel_cpp; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 case $aros_kernel_cpp in
9533 [\\/]* | ?:[\\/]*)
9534 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9553 esac
9555 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
9556 if test -n "$aros_kernel_cpp"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
9558 $as_echo "$aros_kernel_cpp" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9565 aros_kernel_cpp="$aros_kernel_cpp $ac_tool_optarg"
9568 req_avail=yes
9569 if test "$aros_kernel_cpp" = ""; then
9570 req_avail=no
9572 if test "$aros_kernel_cpp" = "no"; then
9573 req_avail=no
9575 if test "$req_avail" = "no"; then
9576 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
9579 if test "x$aros_kernel_cc" = "x"; then
9580 aros_kernel_cc=${kernel_tool_prefix}${CC}
9582 if test "${kernel_tool_version}" != ""; then
9583 if test "$aros_kernel_cc" != ""; then
9584 ac_prog_args=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9585 ac_prog_cmd=`expr "X$aros_kernel_cc" : '^\S*'`
9586 aros_kernel_cc="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9590 if test "$aros_kernel_cc" = ""; then
9591 if test "$cross_compiling" = "yes" ; then
9592 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
9593 set dummy ${kernel_tool_prefix}cc; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 case $aros_kernel_cc in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9615 done
9616 done
9617 IFS=$as_save_IFS
9620 esac
9622 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9623 if test -n "$aros_kernel_cc"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9625 $as_echo "$aros_kernel_cc" >&6; }
9626 else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9632 else
9633 if test "$GCC" = "yes"; then
9634 aros_gcc_cc=`$CC -print-prog-name=cc`
9635 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
9636 set dummy `basename $aros_gcc_cc`; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 case $aros_kernel_cc in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in `dirname $aros_gcc_cc`
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9658 done
9659 done
9660 IFS=$as_save_IFS
9663 esac
9665 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9666 if test -n "$aros_kernel_cc"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9668 $as_echo "$aros_kernel_cc" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9676 if test "$aros_kernel_cc" = ""; then
9677 # Extract the first word of "cc", so it can be a program name with args.
9678 set dummy cc; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 case $aros_kernel_cc in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9700 done
9701 done
9702 IFS=$as_save_IFS
9705 esac
9707 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9708 if test -n "$aros_kernel_cc"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9710 $as_echo "$aros_kernel_cc" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9719 else
9720 ac_tool_optarg=`expr "X$aros_kernel_cc" : '[^ ]* \(.*\)'`
9721 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
9722 set dummy $aros_kernel_cc; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if ${ac_cv_path_aros_kernel_cc+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 case $aros_kernel_cc in
9729 [\\/]* | ?:[\\/]*)
9730 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9744 done
9745 done
9746 IFS=$as_save_IFS
9749 esac
9751 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9752 if test -n "$aros_kernel_cc"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
9754 $as_echo "$aros_kernel_cc" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9761 aros_kernel_cc="$aros_kernel_cc $ac_tool_optarg"
9764 req_avail=yes
9765 if test "$aros_kernel_cc" = ""; then
9766 req_avail=no
9768 if test "$aros_kernel_cc" = "no"; then
9769 req_avail=no
9771 if test "$req_avail" = "no"; then
9772 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
9775 if test "x$aros_kernel_cxx" = "x"; then
9776 aros_kernel_cxx=${kernel_tool_prefix}${CXX}
9778 if test "${kernel_tool_version}" != ""; then
9779 if test "$aros_kernel_cxx" != ""; then
9780 ac_prog_args=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9781 ac_prog_cmd=`expr "X$aros_kernel_cxx" : '^\S*'`
9782 aros_kernel_cxx="$ac_prog_cmd$${kernel_tool_version} $ac_prog_args"
9786 if test "$aros_kernel_cxx" = ""; then
9787 if test "$cross_compiling" = "yes" ; then
9788 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9789 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 case $aros_kernel_cxx in
9796 [\\/]* | ?:[\\/]*)
9797 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9811 done
9812 done
9813 IFS=$as_save_IFS
9816 esac
9818 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9819 if test -n "$aros_kernel_cxx"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9821 $as_echo "$aros_kernel_cxx" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9828 else
9829 if test "$GCC" = "yes"; then
9830 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9831 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9832 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 case $aros_kernel_cxx in
9839 [\\/]* | ?:[\\/]*)
9840 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in `dirname $aros_gcc_cxx`
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9859 esac
9861 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9862 if test -n "$aros_kernel_cxx"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9864 $as_echo "$aros_kernel_cxx" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9872 if test "$aros_kernel_cxx" = ""; then
9873 # Extract the first word of "cxx", so it can be a program name with args.
9874 set dummy cxx; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 case $aros_kernel_cxx in
9881 [\\/]* | ?:[\\/]*)
9882 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9896 done
9897 done
9898 IFS=$as_save_IFS
9901 esac
9903 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9904 if test -n "$aros_kernel_cxx"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9906 $as_echo "$aros_kernel_cxx" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9915 else
9916 ac_tool_optarg=`expr "X$aros_kernel_cxx" : '[^ ]* \(.*\)'`
9917 # Extract the first word of "$aros_kernel_cxx", so it can be a program name with args.
9918 set dummy $aros_kernel_cxx; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 case $aros_kernel_cxx in
9925 [\\/]* | ?:[\\/]*)
9926 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9942 IFS=$as_save_IFS
9945 esac
9947 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9948 if test -n "$aros_kernel_cxx"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9950 $as_echo "$aros_kernel_cxx" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9957 aros_kernel_cxx="$aros_kernel_cxx $ac_tool_optarg"
9960 # If it's set, make sure it's really there
9961 if test "x$aros_kernel_cxx" != "x" ; then
9962 req_avail=yes
9963 if test "$aros_kernel_cxx" = ""; then
9964 req_avail=no
9966 if test "$aros_kernel_cxx" = "no"; then
9967 req_avail=no
9969 if test "$req_avail" = "no"; then
9970 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9974 if test "$aros_kernel_ld" = ""; then
9975 if test "$cross_compiling" = "yes" ; then
9976 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9977 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 case $aros_kernel_ld in
9984 [\\/]* | ?:[\\/]*)
9985 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9999 done
10000 done
10001 IFS=$as_save_IFS
10004 esac
10006 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10007 if test -n "$aros_kernel_ld"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10009 $as_echo "$aros_kernel_ld" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10016 else
10017 if test "$GCC" = "yes"; then
10018 aros_gcc_ld=`$CC -print-prog-name=ld`
10019 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10020 set dummy `basename $aros_gcc_ld`; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 case $aros_kernel_ld in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in `dirname $aros_gcc_ld`
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10042 done
10043 done
10044 IFS=$as_save_IFS
10047 esac
10049 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10050 if test -n "$aros_kernel_ld"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10052 $as_echo "$aros_kernel_ld" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10060 if test "$aros_kernel_ld" = ""; then
10061 # Extract the first word of "ld", so it can be a program name with args.
10062 set dummy ld; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 case $aros_kernel_ld in
10069 [\\/]* | ?:[\\/]*)
10070 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10084 done
10085 done
10086 IFS=$as_save_IFS
10089 esac
10091 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10092 if test -n "$aros_kernel_ld"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10094 $as_echo "$aros_kernel_ld" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10103 else
10104 ac_tool_optarg=`expr "X$aros_kernel_ld" : '[^ ]* \(.*\)'`
10105 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10106 set dummy $aros_kernel_ld; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 case $aros_kernel_ld in
10113 [\\/]* | ?:[\\/]*)
10114 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10128 done
10129 done
10130 IFS=$as_save_IFS
10133 esac
10135 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10136 if test -n "$aros_kernel_ld"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10138 $as_echo "$aros_kernel_ld" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10145 aros_kernel_ld="$aros_kernel_ld $ac_tool_optarg"
10148 req_avail=yes
10149 if test "$aros_kernel_ld" = ""; then
10150 req_avail=no
10152 if test "$aros_kernel_ld" = "no"; then
10153 req_avail=no
10155 if test "$req_avail" = "no"; then
10156 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10159 if test "$aros_kernel_as" = ""; then
10160 if test "$cross_compiling" = "yes" ; then
10161 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
10162 set dummy ${kernel_tool_prefix}as; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if ${ac_cv_path_aros_kernel_as+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 case $aros_kernel_as in
10169 [\\/]* | ?:[\\/]*)
10170 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10184 done
10185 done
10186 IFS=$as_save_IFS
10189 esac
10191 aros_kernel_as=$ac_cv_path_aros_kernel_as
10192 if test -n "$aros_kernel_as"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10194 $as_echo "$aros_kernel_as" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10201 else
10202 if test "$GCC" = "yes"; then
10203 aros_gcc_as=`$CC -print-prog-name=as`
10204 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
10205 set dummy `basename $aros_gcc_as`; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_path_aros_kernel_as+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 case $aros_kernel_as in
10212 [\\/]* | ?:[\\/]*)
10213 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in `dirname $aros_gcc_as`
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10227 done
10228 done
10229 IFS=$as_save_IFS
10232 esac
10234 aros_kernel_as=$ac_cv_path_aros_kernel_as
10235 if test -n "$aros_kernel_as"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10237 $as_echo "$aros_kernel_as" >&6; }
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10245 if test "$aros_kernel_as" = ""; then
10246 # Extract the first word of "as", so it can be a program name with args.
10247 set dummy as; ac_word=$2
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249 $as_echo_n "checking for $ac_word... " >&6; }
10250 if ${ac_cv_path_aros_kernel_as+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 case $aros_kernel_as in
10254 [\\/]* | ?:[\\/]*)
10255 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10269 done
10270 done
10271 IFS=$as_save_IFS
10274 esac
10276 aros_kernel_as=$ac_cv_path_aros_kernel_as
10277 if test -n "$aros_kernel_as"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10279 $as_echo "$aros_kernel_as" >&6; }
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10288 else
10289 ac_tool_optarg=`expr "X$aros_kernel_as" : '[^ ]* \(.*\)'`
10290 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
10291 set dummy $aros_kernel_as; ac_word=$2
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293 $as_echo_n "checking for $ac_word... " >&6; }
10294 if ${ac_cv_path_aros_kernel_as+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 case $aros_kernel_as in
10298 [\\/]* | ?:[\\/]*)
10299 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10318 esac
10320 aros_kernel_as=$ac_cv_path_aros_kernel_as
10321 if test -n "$aros_kernel_as"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
10323 $as_echo "$aros_kernel_as" >&6; }
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10330 aros_kernel_as="$aros_kernel_as $ac_tool_optarg"
10333 req_avail=yes
10334 if test "$aros_kernel_as" = ""; then
10335 req_avail=no
10337 if test "$aros_kernel_as" = "no"; then
10338 req_avail=no
10340 if test "$req_avail" = "no"; then
10341 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10344 if test "$aros_kernel_ar" = ""; then
10345 if test "$cross_compiling" = "yes" ; then
10346 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
10347 set dummy ${kernel_tool_prefix}ar; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 case $aros_kernel_ar in
10354 [\\/]* | ?:[\\/]*)
10355 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10369 done
10370 done
10371 IFS=$as_save_IFS
10374 esac
10376 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10377 if test -n "$aros_kernel_ar"; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10379 $as_echo "$aros_kernel_ar" >&6; }
10380 else
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10386 else
10387 if test "$GCC" = "yes"; then
10388 aros_gcc_ar=`$CC -print-prog-name=ar`
10389 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10390 set dummy `basename $aros_gcc_ar`; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 case $aros_kernel_ar in
10397 [\\/]* | ?:[\\/]*)
10398 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in `dirname $aros_gcc_ar`
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10412 done
10413 done
10414 IFS=$as_save_IFS
10417 esac
10419 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10420 if test -n "$aros_kernel_ar"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10422 $as_echo "$aros_kernel_ar" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10430 if test "$aros_kernel_ar" = ""; then
10431 # Extract the first word of "ar", so it can be a program name with args.
10432 set dummy ar; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 case $aros_kernel_ar in
10439 [\\/]* | ?:[\\/]*)
10440 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10454 done
10455 done
10456 IFS=$as_save_IFS
10459 esac
10461 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10462 if test -n "$aros_kernel_ar"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10464 $as_echo "$aros_kernel_ar" >&6; }
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10473 else
10474 ac_tool_optarg=`expr "X$aros_kernel_ar" : '[^ ]* \(.*\)'`
10475 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10476 set dummy $aros_kernel_ar; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 case $aros_kernel_ar in
10483 [\\/]* | ?:[\\/]*)
10484 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10494 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10498 done
10499 done
10500 IFS=$as_save_IFS
10503 esac
10505 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10506 if test -n "$aros_kernel_ar"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10508 $as_echo "$aros_kernel_ar" >&6; }
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10515 aros_kernel_ar="$aros_kernel_ar $ac_tool_optarg"
10518 req_avail=yes
10519 if test "$aros_kernel_ar" = ""; then
10520 req_avail=no
10522 if test "$aros_kernel_ar" = "no"; then
10523 req_avail=no
10525 if test "$req_avail" = "no"; then
10526 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10529 if test "$aros_kernel_ranlib" = ""; then
10530 if test "$cross_compiling" = "yes" ; then
10531 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
10532 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 case $aros_kernel_ranlib in
10539 [\\/]* | ?:[\\/]*)
10540 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10554 done
10555 done
10556 IFS=$as_save_IFS
10559 esac
10561 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10562 if test -n "$aros_kernel_ranlib"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10564 $as_echo "$aros_kernel_ranlib" >&6; }
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10571 else
10572 if test "$GCC" = "yes"; then
10573 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10574 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10575 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 case $aros_kernel_ranlib in
10582 [\\/]* | ?:[\\/]*)
10583 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in `dirname $aros_gcc_ranlib`
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10597 done
10598 done
10599 IFS=$as_save_IFS
10602 esac
10604 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10605 if test -n "$aros_kernel_ranlib"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10607 $as_echo "$aros_kernel_ranlib" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10615 if test "$aros_kernel_ranlib" = ""; then
10616 # Extract the first word of "ranlib", so it can be a program name with args.
10617 set dummy ranlib; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 case $aros_kernel_ranlib in
10624 [\\/]* | ?:[\\/]*)
10625 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10639 done
10640 done
10641 IFS=$as_save_IFS
10644 esac
10646 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10647 if test -n "$aros_kernel_ranlib"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10649 $as_echo "$aros_kernel_ranlib" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10658 else
10659 ac_tool_optarg=`expr "X$aros_kernel_ranlib" : '[^ ]* \(.*\)'`
10660 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10661 set dummy $aros_kernel_ranlib; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 case $aros_kernel_ranlib in
10668 [\\/]* | ?:[\\/]*)
10669 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10685 IFS=$as_save_IFS
10688 esac
10690 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10691 if test -n "$aros_kernel_ranlib"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10693 $as_echo "$aros_kernel_ranlib" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10700 aros_kernel_ranlib="$aros_kernel_ranlib $ac_tool_optarg"
10703 req_avail=yes
10704 if test "$aros_kernel_ranlib" = ""; then
10705 req_avail=no
10707 if test "$aros_kernel_ranlib" = "no"; then
10708 req_avail=no
10710 if test "$req_avail" = "no"; then
10711 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10714 if test "$aros_kernel_nm" = ""; then
10715 if test "$cross_compiling" = "yes" ; then
10716 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
10717 set dummy ${kernel_tool_prefix}nm; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 case $aros_kernel_nm in
10724 [\\/]* | ?:[\\/]*)
10725 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10739 done
10740 done
10741 IFS=$as_save_IFS
10744 esac
10746 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10747 if test -n "$aros_kernel_nm"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10749 $as_echo "$aros_kernel_nm" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10756 else
10757 if test "$GCC" = "yes"; then
10758 aros_gcc_nm=`$CC -print-prog-name=nm`
10759 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10760 set dummy `basename $aros_gcc_nm`; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 case $aros_kernel_nm in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in `dirname $aros_gcc_nm`
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10787 esac
10789 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10790 if test -n "$aros_kernel_nm"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10792 $as_echo "$aros_kernel_nm" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10800 if test "$aros_kernel_nm" = ""; then
10801 # Extract the first word of "nm", so it can be a program name with args.
10802 set dummy nm; ac_word=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 case $aros_kernel_nm in
10809 [\\/]* | ?:[\\/]*)
10810 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10820 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10824 done
10825 done
10826 IFS=$as_save_IFS
10829 esac
10831 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10832 if test -n "$aros_kernel_nm"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10834 $as_echo "$aros_kernel_nm" >&6; }
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; }
10843 else
10844 ac_tool_optarg=`expr "X$aros_kernel_nm" : '[^ ]* \(.*\)'`
10845 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10846 set dummy $aros_kernel_nm; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 case $aros_kernel_nm in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10873 esac
10875 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10876 if test -n "$aros_kernel_nm"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10878 $as_echo "$aros_kernel_nm" >&6; }
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10885 aros_kernel_nm="$aros_kernel_nm $ac_tool_optarg"
10888 req_avail=yes
10889 if test "$aros_kernel_nm" = ""; then
10890 req_avail=no
10892 if test "$aros_kernel_nm" = "no"; then
10893 req_avail=no
10895 if test "$req_avail" = "no"; then
10896 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10899 if test "$aros_kernel_strip" = ""; then
10900 if test "$cross_compiling" = "yes" ; then
10901 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10902 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 case $aros_kernel_strip in
10909 [\\/]* | ?:[\\/]*)
10910 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10924 done
10925 done
10926 IFS=$as_save_IFS
10929 esac
10931 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10932 if test -n "$aros_kernel_strip"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10934 $as_echo "$aros_kernel_strip" >&6; }
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10941 else
10942 if test "$GCC" = "yes"; then
10943 aros_gcc_strip=`$CC -print-prog-name=strip`
10944 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10945 set dummy `basename $aros_gcc_strip`; ac_word=$2
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 case $aros_kernel_strip in
10952 [\\/]* | ?:[\\/]*)
10953 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in `dirname $aros_gcc_strip`
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10967 done
10968 done
10969 IFS=$as_save_IFS
10972 esac
10974 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10975 if test -n "$aros_kernel_strip"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10977 $as_echo "$aros_kernel_strip" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10985 if test "$aros_kernel_strip" = ""; then
10986 # Extract the first word of "strip", so it can be a program name with args.
10987 set dummy strip; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 case $aros_kernel_strip in
10994 [\\/]* | ?:[\\/]*)
10995 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11009 done
11010 done
11011 IFS=$as_save_IFS
11014 esac
11016 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11017 if test -n "$aros_kernel_strip"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11019 $as_echo "$aros_kernel_strip" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11028 else
11029 ac_tool_optarg=`expr "X$aros_kernel_strip" : '[^ ]* \(.*\)'`
11030 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
11031 set dummy $aros_kernel_strip; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_path_aros_kernel_strip+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 case $aros_kernel_strip in
11038 [\\/]* | ?:[\\/]*)
11039 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11053 done
11054 done
11055 IFS=$as_save_IFS
11058 esac
11060 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
11061 if test -n "$aros_kernel_strip"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
11063 $as_echo "$aros_kernel_strip" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11070 aros_kernel_strip="$aros_kernel_strip $ac_tool_optarg"
11073 req_avail=yes
11074 if test "$aros_kernel_strip" = ""; then
11075 req_avail=no
11077 if test "$aros_kernel_strip" = "no"; then
11078 req_avail=no
11080 if test "$req_avail" = "no"; then
11081 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
11084 # Objcopy and objdump are not required for the kernel
11085 # toolchain on many architectures.
11086 # So we'll look for them, but not make them strictly required.
11088 if test "$aros_kernel_objcopy" = ""; then
11089 if test "$cross_compiling" = "yes" ; then
11090 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
11091 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 case $aros_kernel_objcopy in
11098 [\\/]* | ?:[\\/]*)
11099 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11113 done
11114 done
11115 IFS=$as_save_IFS
11118 esac
11120 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11121 if test -n "$aros_kernel_objcopy"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11123 $as_echo "$aros_kernel_objcopy" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11130 else
11131 if test "$GCC" = "yes"; then
11132 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
11133 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
11134 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 case $aros_kernel_objcopy in
11141 [\\/]* | ?:[\\/]*)
11142 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in `dirname $aros_gcc_objcopy`
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11156 done
11157 done
11158 IFS=$as_save_IFS
11161 esac
11163 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11164 if test -n "$aros_kernel_objcopy"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11166 $as_echo "$aros_kernel_objcopy" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11174 if test "$aros_kernel_objcopy" = ""; then
11175 # Extract the first word of "objcopy", so it can be a program name with args.
11176 set dummy objcopy; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 case $aros_kernel_objcopy in
11183 [\\/]* | ?:[\\/]*)
11184 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11198 done
11199 done
11200 IFS=$as_save_IFS
11203 esac
11205 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11206 if test -n "$aros_kernel_objcopy"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11208 $as_echo "$aros_kernel_objcopy" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11217 else
11218 ac_tool_optarg=`expr "X$aros_kernel_objcopy" : '[^ ]* \(.*\)'`
11219 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
11220 set dummy $aros_kernel_objcopy; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 case $aros_kernel_objcopy in
11227 [\\/]* | ?:[\\/]*)
11228 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11242 done
11243 done
11244 IFS=$as_save_IFS
11247 esac
11249 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
11250 if test -n "$aros_kernel_objcopy"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
11252 $as_echo "$aros_kernel_objcopy" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11259 aros_kernel_objcopy="$aros_kernel_objcopy $ac_tool_optarg"
11263 if test "$aros_kernel_objdump" = ""; then
11264 if test "$cross_compiling" = "yes" ; then
11265 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
11266 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 case $aros_kernel_objdump in
11273 [\\/]* | ?:[\\/]*)
11274 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11288 done
11289 done
11290 IFS=$as_save_IFS
11293 esac
11295 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11296 if test -n "$aros_kernel_objdump"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11298 $as_echo "$aros_kernel_objdump" >&6; }
11299 else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11305 else
11306 if test "$GCC" = "yes"; then
11307 aros_gcc_objdump=`$CC -print-prog-name=objdump`
11308 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
11309 set dummy `basename $aros_gcc_objdump`; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 case $aros_kernel_objdump in
11316 [\\/]* | ?:[\\/]*)
11317 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in `dirname $aros_gcc_objdump`
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11336 esac
11338 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11339 if test -n "$aros_kernel_objdump"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11341 $as_echo "$aros_kernel_objdump" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11349 if test "$aros_kernel_objdump" = ""; then
11350 # Extract the first word of "objdump", so it can be a program name with args.
11351 set dummy objdump; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 case $aros_kernel_objdump in
11358 [\\/]* | ?:[\\/]*)
11359 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11373 done
11374 done
11375 IFS=$as_save_IFS
11378 esac
11380 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11381 if test -n "$aros_kernel_objdump"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11383 $as_echo "$aros_kernel_objdump" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11392 else
11393 ac_tool_optarg=`expr "X$aros_kernel_objdump" : '[^ ]* \(.*\)'`
11394 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
11395 set dummy $aros_kernel_objdump; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 case $aros_kernel_objdump in
11402 [\\/]* | ?:[\\/]*)
11403 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11413 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
11414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 break 2
11417 done
11418 done
11419 IFS=$as_save_IFS
11422 esac
11424 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
11425 if test -n "$aros_kernel_objdump"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
11427 $as_echo "$aros_kernel_objdump" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11434 aros_kernel_objdump="$aros_kernel_objdump $ac_tool_optarg"
11437 if test "x${crosstools}" != "xyes" ; then
11438 req_avail=yes
11439 if test "$aros_kernel_objcopy" = ""; then
11440 req_avail=no
11442 if test "$aros_kernel_objcopy" = "no"; then
11443 req_avail=no
11445 if test "$req_avail" = "no"; then
11446 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
11448 req_avail=yes
11449 if test "$aros_kernel_objdump" = ""; then
11450 req_avail=no
11452 if test "$aros_kernel_objdump" = "no"; then
11453 req_avail=no
11455 if test "$req_avail" = "no"; then
11456 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
11462 $as_echo_n "checking which target tools to use... " >&6; }
11463 if test "$aros_target_toolchain" = "yes"; then
11464 if test "$aros_toolchain" = "llvm" ; then
11465 msg_result="llvm"
11466 else
11467 msg_result=$target_tool_prefix
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg_result" >&5
11470 $as_echo "$msg_result" >&6; }
11471 # We are building AROS crosstools
11472 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
11473 orig_target_cc="${tmp_tool_prefix}${toolchain_c_compiler}${target_tool_version}"
11474 orig_target_cxx="${tmp_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}"
11475 orig_target_cpp="${tmp_tool_prefix}${toolchain_cpp_preprocessor}"
11476 orig_target_ld="${tmp_tool_prefix}${toolchain_ld}"
11477 orig_target_as="${tmp_tool_prefix}${toolchain_as}"
11478 orig_target_ar="${tmp_tool_prefix}${toolchain_ar}"
11479 orig_target_ranlib="${tmp_tool_prefix}${toolchain_ranlib}"
11480 orig_target_nm="${tmp_tool_prefix}${toolchain_nm}"
11481 orig_target_strip="${tmp_tool_prefix}${toolchain_strip}"
11482 orig_target_objcopy="${tmp_tool_prefix}${toolchain_objcopy}"
11483 orig_target_objdump="${tmp_tool_prefix}${toolchain_objdump}"
11484 else
11485 # Determine whether AROS or ELF tools should be used
11486 if test "$aros_tool_prefix" = "none"; then
11487 aros_tool_prefix="${elf_tool_prefix}"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
11491 $as_echo "$aros_tool_prefix" >&6; }
11492 # We are *not* building AROS crosstools - use the AROS or ELF tools
11494 if test "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" = ""; then
11495 if test "$cross_compiling" = "yes" ; then
11496 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
11497 set dummy ${target_tool_prefix}cpp; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_orig_target_cpp+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 case $orig_target_cpp in
11504 [\\/]* | ?:[\\/]*)
11505 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11511 IFS=$as_save_IFS
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 break 2
11519 done
11520 done
11521 IFS=$as_save_IFS
11524 esac
11526 orig_target_cpp=$ac_cv_path_orig_target_cpp
11527 if test -n "$orig_target_cpp"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11529 $as_echo "$orig_target_cpp" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11536 else
11537 if test "$GCC" = "yes"; then
11538 aros_gcc_cpp=`$CC -print-prog-name=cpp`
11539 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
11540 set dummy `basename $aros_gcc_cpp`; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if ${ac_cv_path_orig_target_cpp+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 case $orig_target_cpp in
11547 [\\/]* | ?:[\\/]*)
11548 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in `dirname $aros_gcc_cpp`
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11562 done
11563 done
11564 IFS=$as_save_IFS
11567 esac
11569 orig_target_cpp=$ac_cv_path_orig_target_cpp
11570 if test -n "$orig_target_cpp"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11572 $as_echo "$orig_target_cpp" >&6; }
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11580 if test "$orig_target_cpp" = ""; then
11581 # Extract the first word of "cpp", so it can be a program name with args.
11582 set dummy cpp; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_path_orig_target_cpp+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 case $orig_target_cpp in
11589 [\\/]* | ?:[\\/]*)
11590 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11604 done
11605 done
11606 IFS=$as_save_IFS
11609 esac
11611 orig_target_cpp=$ac_cv_path_orig_target_cpp
11612 if test -n "$orig_target_cpp"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11614 $as_echo "$orig_target_cpp" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11623 else
11624 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}" : '[^ ]* \(.*\)'`
11625 # Extract the first word of "${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}", so it can be a program name with args.
11626 set dummy ${aros_tool_prefix}${toolchain_cpp_preprocessor}${target_tool_version}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_path_orig_target_cpp+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 case $orig_target_cpp in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11648 done
11649 done
11650 IFS=$as_save_IFS
11653 esac
11655 orig_target_cpp=$ac_cv_path_orig_target_cpp
11656 if test -n "$orig_target_cpp"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
11658 $as_echo "$orig_target_cpp" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11665 orig_target_cpp="$orig_target_cpp $ac_tool_optarg"
11668 req_avail=yes
11669 if test "$orig_target_cpp" = ""; then
11670 req_avail=no
11672 if test "$orig_target_cpp" = "no"; then
11673 req_avail=no
11675 if test "$req_avail" = "no"; then
11676 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11679 if test "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" = ""; then
11680 if test "$cross_compiling" = "yes" ; then
11681 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11682 set dummy ${target_tool_prefix}gcc; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_path_orig_target_cc+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 case $orig_target_cc in
11689 [\\/]* | ?:[\\/]*)
11690 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11700 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 break 2
11704 done
11705 done
11706 IFS=$as_save_IFS
11709 esac
11711 orig_target_cc=$ac_cv_path_orig_target_cc
11712 if test -n "$orig_target_cc"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11714 $as_echo "$orig_target_cc" >&6; }
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11721 else
11722 if test "$GCC" = "yes"; then
11723 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11724 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11725 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if ${ac_cv_path_orig_target_cc+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 case $orig_target_cc in
11732 [\\/]* | ?:[\\/]*)
11733 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in `dirname $aros_gcc_gcc`
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11747 done
11748 done
11749 IFS=$as_save_IFS
11752 esac
11754 orig_target_cc=$ac_cv_path_orig_target_cc
11755 if test -n "$orig_target_cc"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11757 $as_echo "$orig_target_cc" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11765 if test "$orig_target_cc" = ""; then
11766 # Extract the first word of "gcc", so it can be a program name with args.
11767 set dummy gcc; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_path_orig_target_cc+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $orig_target_cc in
11774 [\\/]* | ?:[\\/]*)
11775 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11785 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11789 done
11790 done
11791 IFS=$as_save_IFS
11794 esac
11796 orig_target_cc=$ac_cv_path_orig_target_cc
11797 if test -n "$orig_target_cc"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11799 $as_echo "$orig_target_cc" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11808 else
11809 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11810 # Extract the first word of "${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}", so it can be a program name with args.
11811 set dummy ${aros_tool_prefix}${toolchain_c_compiler}${target_tool_version}; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_path_orig_target_cc+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 case $orig_target_cc in
11818 [\\/]* | ?:[\\/]*)
11819 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11833 done
11834 done
11835 IFS=$as_save_IFS
11838 esac
11840 orig_target_cc=$ac_cv_path_orig_target_cc
11841 if test -n "$orig_target_cc"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
11843 $as_echo "$orig_target_cc" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11850 orig_target_cc="$orig_target_cc $ac_tool_optarg"
11853 req_avail=yes
11854 if test "$orig_target_cc" = ""; then
11855 req_avail=no
11857 if test "$orig_target_cc" = "no"; then
11858 req_avail=no
11860 if test "$req_avail" = "no"; then
11861 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
11864 if test "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" = ""; then
11865 if test "$cross_compiling" = "yes" ; then
11866 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
11867 set dummy ${target_tool_prefix}g++; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if ${ac_cv_path_orig_target_cxx+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $orig_target_cxx in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11894 esac
11896 orig_target_cxx=$ac_cv_path_orig_target_cxx
11897 if test -n "$orig_target_cxx"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11899 $as_echo "$orig_target_cxx" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11906 else
11907 if test "$GCC" = "yes"; then
11908 aros_gcc_g++=`$CC -print-prog-name=g++`
11909 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11910 set dummy `basename $aros_gcc_g++`; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_orig_target_cxx+:} false; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 case $orig_target_cxx in
11917 [\\/]* | ?:[\\/]*)
11918 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in `dirname $aros_gcc_g++`
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11937 esac
11939 orig_target_cxx=$ac_cv_path_orig_target_cxx
11940 if test -n "$orig_target_cxx"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11942 $as_echo "$orig_target_cxx" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11950 if test "$orig_target_cxx" = ""; then
11951 # Extract the first word of "g++", so it can be a program name with args.
11952 set dummy g++; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_path_orig_target_cxx+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 case $orig_target_cxx in
11959 [\\/]* | ?:[\\/]*)
11960 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11974 done
11975 done
11976 IFS=$as_save_IFS
11979 esac
11981 orig_target_cxx=$ac_cv_path_orig_target_cxx
11982 if test -n "$orig_target_cxx"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11984 $as_echo "$orig_target_cxx" >&6; }
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11993 else
11994 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}" : '[^ ]* \(.*\)'`
11995 # Extract the first word of "${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}", so it can be a program name with args.
11996 set dummy ${aros_tool_prefix}${toolchain_cxx_compiler}${target_tool_version}; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_orig_target_cxx+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 case $orig_target_cxx in
12003 [\\/]* | ?:[\\/]*)
12004 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12018 done
12019 done
12020 IFS=$as_save_IFS
12023 esac
12025 orig_target_cxx=$ac_cv_path_orig_target_cxx
12026 if test -n "$orig_target_cxx"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
12028 $as_echo "$orig_target_cxx" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12035 orig_target_cxx="$orig_target_cxx $ac_tool_optarg"
12038 req_avail=yes
12039 if test "$orig_target_cxx" = ""; then
12040 req_avail=no
12042 if test "$orig_target_cxx" = "no"; then
12043 req_avail=no
12045 if test "$req_avail" = "no"; then
12046 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
12049 if test "${aros_tool_prefix}${toolchain_ld}" = ""; then
12050 if test "$cross_compiling" = "yes" ; then
12051 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
12052 set dummy ${target_tool_prefix}gcc; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_orig_target_ld+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 case $orig_target_ld in
12059 [\\/]* | ?:[\\/]*)
12060 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12074 done
12075 done
12076 IFS=$as_save_IFS
12079 esac
12081 orig_target_ld=$ac_cv_path_orig_target_ld
12082 if test -n "$orig_target_ld"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12084 $as_echo "$orig_target_ld" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12091 else
12092 if test "$GCC" = "yes"; then
12093 aros_gcc_gcc=`$CC -print-prog-name=gcc`
12094 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
12095 set dummy `basename $aros_gcc_gcc`; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_path_orig_target_ld+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 case $orig_target_ld in
12102 [\\/]* | ?:[\\/]*)
12103 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in `dirname $aros_gcc_gcc`
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12122 esac
12124 orig_target_ld=$ac_cv_path_orig_target_ld
12125 if test -n "$orig_target_ld"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12127 $as_echo "$orig_target_ld" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; }
12135 if test "$orig_target_ld" = ""; then
12136 # Extract the first word of "gcc", so it can be a program name with args.
12137 set dummy gcc; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_path_orig_target_ld+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 case $orig_target_ld in
12144 [\\/]* | ?:[\\/]*)
12145 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12159 done
12160 done
12161 IFS=$as_save_IFS
12164 esac
12166 orig_target_ld=$ac_cv_path_orig_target_ld
12167 if test -n "$orig_target_ld"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12169 $as_echo "$orig_target_ld" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12178 else
12179 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ld}" : '[^ ]* \(.*\)'`
12180 # Extract the first word of "${aros_tool_prefix}${toolchain_ld}", so it can be a program name with args.
12181 set dummy ${aros_tool_prefix}${toolchain_ld}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_path_orig_target_ld+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 case $orig_target_ld in
12188 [\\/]* | ?:[\\/]*)
12189 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12203 done
12204 done
12205 IFS=$as_save_IFS
12208 esac
12210 orig_target_ld=$ac_cv_path_orig_target_ld
12211 if test -n "$orig_target_ld"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
12213 $as_echo "$orig_target_ld" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12220 orig_target_ld="$orig_target_ld $ac_tool_optarg"
12223 req_avail=yes
12224 if test "$orig_target_ld" = ""; then
12225 req_avail=no
12227 if test "$orig_target_ld" = "no"; then
12228 req_avail=no
12230 if test "$req_avail" = "no"; then
12231 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
12234 if test "aros_tool_prefix}${toolchain_as}" = ""; then
12235 if test "$cross_compiling" = "yes" ; then
12236 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
12237 set dummy ${target_tool_prefix}as; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_orig_target_as+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 case $orig_target_as in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12259 done
12260 done
12261 IFS=$as_save_IFS
12264 esac
12266 orig_target_as=$ac_cv_path_orig_target_as
12267 if test -n "$orig_target_as"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12269 $as_echo "$orig_target_as" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12276 else
12277 if test "$GCC" = "yes"; then
12278 aros_gcc_as=`$CC -print-prog-name=as`
12279 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
12280 set dummy `basename $aros_gcc_as`; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if ${ac_cv_path_orig_target_as+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 case $orig_target_as in
12287 [\\/]* | ?:[\\/]*)
12288 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in `dirname $aros_gcc_as`
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12302 done
12303 done
12304 IFS=$as_save_IFS
12307 esac
12309 orig_target_as=$ac_cv_path_orig_target_as
12310 if test -n "$orig_target_as"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12312 $as_echo "$orig_target_as" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12320 if test "$orig_target_as" = ""; then
12321 # Extract the first word of "as", so it can be a program name with args.
12322 set dummy as; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_path_orig_target_as+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 case $orig_target_as in
12329 [\\/]* | ?:[\\/]*)
12330 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12344 done
12345 done
12346 IFS=$as_save_IFS
12349 esac
12351 orig_target_as=$ac_cv_path_orig_target_as
12352 if test -n "$orig_target_as"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12354 $as_echo "$orig_target_as" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12363 else
12364 ac_tool_optarg=`expr "Xaros_tool_prefix}${toolchain_as}" : '[^ ]* \(.*\)'`
12365 # Extract the first word of "aros_tool_prefix}${toolchain_as}", so it can be a program name with args.
12366 set dummy aros_tool_prefix}${toolchain_as}; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if ${ac_cv_path_orig_target_as+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 case $orig_target_as in
12373 [\\/]* | ?:[\\/]*)
12374 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12393 esac
12395 orig_target_as=$ac_cv_path_orig_target_as
12396 if test -n "$orig_target_as"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
12398 $as_echo "$orig_target_as" >&6; }
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12405 orig_target_as="$orig_target_as $ac_tool_optarg"
12408 req_avail=yes
12409 if test "$orig_target_as" = ""; then
12410 req_avail=no
12412 if test "$orig_target_as" = "no"; then
12413 req_avail=no
12415 if test "$req_avail" = "no"; then
12416 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
12419 if test "${aros_tool_prefix}${toolchain_ar}" = ""; then
12420 if test "$cross_compiling" = "yes" ; then
12421 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12422 set dummy ${target_tool_prefix}ar; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_path_orig_target_ar+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 case $orig_target_ar in
12429 [\\/]* | ?:[\\/]*)
12430 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12449 esac
12451 orig_target_ar=$ac_cv_path_orig_target_ar
12452 if test -n "$orig_target_ar"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12454 $as_echo "$orig_target_ar" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12461 else
12462 if test "$GCC" = "yes"; then
12463 aros_gcc_ar=`$CC -print-prog-name=ar`
12464 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12465 set dummy `basename $aros_gcc_ar`; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_path_orig_target_ar+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 case $orig_target_ar in
12472 [\\/]* | ?:[\\/]*)
12473 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in `dirname $aros_gcc_ar`
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12487 done
12488 done
12489 IFS=$as_save_IFS
12492 esac
12494 orig_target_ar=$ac_cv_path_orig_target_ar
12495 if test -n "$orig_target_ar"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12497 $as_echo "$orig_target_ar" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12505 if test "$orig_target_ar" = ""; then
12506 # Extract the first word of "ar", so it can be a program name with args.
12507 set dummy ar; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if ${ac_cv_path_orig_target_ar+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 case $orig_target_ar in
12514 [\\/]* | ?:[\\/]*)
12515 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12529 done
12530 done
12531 IFS=$as_save_IFS
12534 esac
12536 orig_target_ar=$ac_cv_path_orig_target_ar
12537 if test -n "$orig_target_ar"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12539 $as_echo "$orig_target_ar" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12548 else
12549 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ar}" : '[^ ]* \(.*\)'`
12550 # Extract the first word of "${aros_tool_prefix}${toolchain_ar}", so it can be a program name with args.
12551 set dummy ${aros_tool_prefix}${toolchain_ar}; 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_ar+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $orig_target_ar in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_orig_target_ar="$orig_target_ar" # 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_ar="$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_ar=$ac_cv_path_orig_target_ar
12581 if test -n "$orig_target_ar"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
12583 $as_echo "$orig_target_ar" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12590 orig_target_ar="$orig_target_ar $ac_tool_optarg"
12593 req_avail=yes
12594 if test "$orig_target_ar" = ""; then
12595 req_avail=no
12597 if test "$orig_target_ar" = "no"; then
12598 req_avail=no
12600 if test "$req_avail" = "no"; then
12601 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
12604 if test "${aros_tool_prefix}${toolchain_ranlib}" = ""; then
12605 if test "$cross_compiling" = "yes" ; then
12606 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
12607 set dummy ${target_tool_prefix}ar; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 case $orig_target_ranlib in
12614 [\\/]* | ?:[\\/]*)
12615 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12619 for as_dir in $PATH
12621 IFS=$as_save_IFS
12622 test -z "$as_dir" && as_dir=.
12623 for ac_exec_ext in '' $ac_executable_extensions; do
12624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12625 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12627 break 2
12629 done
12630 done
12631 IFS=$as_save_IFS
12634 esac
12636 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12637 if test -n "$orig_target_ranlib"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12639 $as_echo "$orig_target_ranlib" >&6; }
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12646 else
12647 if test "$GCC" = "yes"; then
12648 aros_gcc_ar=`$CC -print-prog-name=ar`
12649 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
12650 set dummy `basename $aros_gcc_ar`; ac_word=$2
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12652 $as_echo_n "checking for $ac_word... " >&6; }
12653 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 case $orig_target_ranlib in
12657 [\\/]* | ?:[\\/]*)
12658 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in `dirname $aros_gcc_ar`
12664 IFS=$as_save_IFS
12665 test -z "$as_dir" && as_dir=.
12666 for ac_exec_ext in '' $ac_executable_extensions; do
12667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 break 2
12672 done
12673 done
12674 IFS=$as_save_IFS
12677 esac
12679 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12680 if test -n "$orig_target_ranlib"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12682 $as_echo "$orig_target_ranlib" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12690 if test "$orig_target_ranlib" = ""; then
12691 # Extract the first word of "ar", so it can be a program name with args.
12692 set dummy ar; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 case $orig_target_ranlib in
12699 [\\/]* | ?:[\\/]*)
12700 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12714 done
12715 done
12716 IFS=$as_save_IFS
12719 esac
12721 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12722 if test -n "$orig_target_ranlib"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12724 $as_echo "$orig_target_ranlib" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12733 else
12734 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_ranlib}" : '[^ ]* \(.*\)'`
12735 # Extract the first word of "${aros_tool_prefix}${toolchain_ranlib}", so it can be a program name with args.
12736 set dummy ${aros_tool_prefix}${toolchain_ranlib}; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if ${ac_cv_path_orig_target_ranlib+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 case $orig_target_ranlib in
12743 [\\/]* | ?:[\\/]*)
12744 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12758 done
12759 done
12760 IFS=$as_save_IFS
12763 esac
12765 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
12766 if test -n "$orig_target_ranlib"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
12768 $as_echo "$orig_target_ranlib" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12775 orig_target_ranlib="$orig_target_ranlib $ac_tool_optarg"
12778 req_avail=yes
12779 if test "$orig_target_ranlib" = ""; then
12780 req_avail=no
12782 if test "$orig_target_ranlib" = "no"; then
12783 req_avail=no
12785 if test "$req_avail" = "no"; then
12786 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
12789 if test "${aros_tool_prefix}${toolchain_nm}" = ""; then
12790 if test "$cross_compiling" = "yes" ; then
12791 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
12792 set dummy ${target_tool_prefix}nm; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_path_orig_target_nm+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 case $orig_target_nm in
12799 [\\/]* | ?:[\\/]*)
12800 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12814 done
12815 done
12816 IFS=$as_save_IFS
12819 esac
12821 orig_target_nm=$ac_cv_path_orig_target_nm
12822 if test -n "$orig_target_nm"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12824 $as_echo "$orig_target_nm" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12831 else
12832 if test "$GCC" = "yes"; then
12833 aros_gcc_nm=`$CC -print-prog-name=nm`
12834 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
12835 set dummy `basename $aros_gcc_nm`; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_path_orig_target_nm+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 case $orig_target_nm in
12842 [\\/]* | ?:[\\/]*)
12843 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in `dirname $aros_gcc_nm`
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12857 done
12858 done
12859 IFS=$as_save_IFS
12862 esac
12864 orig_target_nm=$ac_cv_path_orig_target_nm
12865 if test -n "$orig_target_nm"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12867 $as_echo "$orig_target_nm" >&6; }
12868 else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12875 if test "$orig_target_nm" = ""; then
12876 # Extract the first word of "nm", so it can be a program name with args.
12877 set dummy nm; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_path_orig_target_nm+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 case $orig_target_nm in
12884 [\\/]* | ?:[\\/]*)
12885 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12899 done
12900 done
12901 IFS=$as_save_IFS
12904 esac
12906 orig_target_nm=$ac_cv_path_orig_target_nm
12907 if test -n "$orig_target_nm"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12909 $as_echo "$orig_target_nm" >&6; }
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12918 else
12919 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_nm}" : '[^ ]* \(.*\)'`
12920 # Extract the first word of "${aros_tool_prefix}${toolchain_nm}", so it can be a program name with args.
12921 set dummy ${aros_tool_prefix}${toolchain_nm}; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if ${ac_cv_path_orig_target_nm+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 case $orig_target_nm in
12928 [\\/]* | ?:[\\/]*)
12929 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 break 2
12943 done
12944 done
12945 IFS=$as_save_IFS
12948 esac
12950 orig_target_nm=$ac_cv_path_orig_target_nm
12951 if test -n "$orig_target_nm"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12953 $as_echo "$orig_target_nm" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12960 orig_target_nm="$orig_target_nm $ac_tool_optarg"
12963 req_avail=yes
12964 if test "$orig_target_nm" = ""; then
12965 req_avail=no
12967 if test "$orig_target_nm" = "no"; then
12968 req_avail=no
12970 if test "$req_avail" = "no"; then
12971 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12974 if test "${aros_tool_prefix}${toolchain_strip}" = ""; then
12975 if test "$cross_compiling" = "yes" ; then
12976 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12977 set dummy ${target_tool_prefix}strip; ac_word=$2
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979 $as_echo_n "checking for $ac_word... " >&6; }
12980 if ${ac_cv_path_orig_target_strip+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 case $orig_target_strip in
12984 [\\/]* | ?:[\\/]*)
12985 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12999 done
13000 done
13001 IFS=$as_save_IFS
13004 esac
13006 orig_target_strip=$ac_cv_path_orig_target_strip
13007 if test -n "$orig_target_strip"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13009 $as_echo "$orig_target_strip" >&6; }
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13016 else
13017 if test "$GCC" = "yes"; then
13018 aros_gcc_strip=`$CC -print-prog-name=strip`
13019 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
13020 set dummy `basename $aros_gcc_strip`; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if ${ac_cv_path_orig_target_strip+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 case $orig_target_strip in
13027 [\\/]* | ?:[\\/]*)
13028 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in `dirname $aros_gcc_strip`
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13038 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13042 done
13043 done
13044 IFS=$as_save_IFS
13047 esac
13049 orig_target_strip=$ac_cv_path_orig_target_strip
13050 if test -n "$orig_target_strip"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13052 $as_echo "$orig_target_strip" >&6; }
13053 else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13060 if test "$orig_target_strip" = ""; then
13061 # Extract the first word of "strip", so it can be a program name with args.
13062 set dummy strip; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_orig_target_strip+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 case $orig_target_strip in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13089 esac
13091 orig_target_strip=$ac_cv_path_orig_target_strip
13092 if test -n "$orig_target_strip"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13094 $as_echo "$orig_target_strip" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13103 else
13104 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_strip}" : '[^ ]* \(.*\)'`
13105 # Extract the first word of "${aros_tool_prefix}${toolchain_strip}", so it can be a program name with args.
13106 set dummy ${aros_tool_prefix}${toolchain_strip}; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 $as_echo_n "checking for $ac_word... " >&6; }
13109 if ${ac_cv_path_orig_target_strip+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 case $orig_target_strip in
13113 [\\/]* | ?:[\\/]*)
13114 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13128 done
13129 done
13130 IFS=$as_save_IFS
13133 esac
13135 orig_target_strip=$ac_cv_path_orig_target_strip
13136 if test -n "$orig_target_strip"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
13138 $as_echo "$orig_target_strip" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13145 orig_target_strip="$orig_target_strip $ac_tool_optarg"
13148 req_avail=yes
13149 if test "$orig_target_strip" = ""; then
13150 req_avail=no
13152 if test "$orig_target_strip" = "no"; then
13153 req_avail=no
13155 if test "$req_avail" = "no"; then
13156 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
13159 if test "${aros_tool_prefix}${toolchain_objcopy}" = ""; then
13160 if test "$cross_compiling" = "yes" ; then
13161 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
13162 set dummy ${target_tool_prefix}objcopy; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 case $orig_target_objcopy in
13169 [\\/]* | ?:[\\/]*)
13170 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13184 done
13185 done
13186 IFS=$as_save_IFS
13189 esac
13191 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13192 if test -n "$orig_target_objcopy"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13194 $as_echo "$orig_target_objcopy" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13201 else
13202 if test "$GCC" = "yes"; then
13203 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
13204 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
13205 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 case $orig_target_objcopy in
13212 [\\/]* | ?:[\\/]*)
13213 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in `dirname $aros_gcc_objcopy`
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_exec_ext in '' $ac_executable_extensions; do
13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 break 2
13227 done
13228 done
13229 IFS=$as_save_IFS
13232 esac
13234 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13235 if test -n "$orig_target_objcopy"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13237 $as_echo "$orig_target_objcopy" >&6; }
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13245 if test "$orig_target_objcopy" = ""; then
13246 # Extract the first word of "objcopy", so it can be a program name with args.
13247 set dummy objcopy; ac_word=$2
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249 $as_echo_n "checking for $ac_word... " >&6; }
13250 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 case $orig_target_objcopy in
13254 [\\/]* | ?:[\\/]*)
13255 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13265 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13269 done
13270 done
13271 IFS=$as_save_IFS
13274 esac
13276 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13277 if test -n "$orig_target_objcopy"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13279 $as_echo "$orig_target_objcopy" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13288 else
13289 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objcopy}" : '[^ ]* \(.*\)'`
13290 # Extract the first word of "${aros_tool_prefix}${toolchain_objcopy}", so it can be a program name with args.
13291 set dummy ${aros_tool_prefix}${toolchain_objcopy}; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_path_orig_target_objcopy+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 case $orig_target_objcopy in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13318 esac
13320 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
13321 if test -n "$orig_target_objcopy"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
13323 $as_echo "$orig_target_objcopy" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13330 orig_target_objcopy="$orig_target_objcopy $ac_tool_optarg"
13333 req_avail=yes
13334 if test "$orig_target_objcopy" = ""; then
13335 req_avail=no
13337 if test "$orig_target_objcopy" = "no"; then
13338 req_avail=no
13340 if test "$req_avail" = "no"; then
13341 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
13344 if test "${aros_tool_prefix}${toolchain_objdump}" = ""; then
13345 if test "$cross_compiling" = "yes" ; then
13346 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
13347 set dummy ${target_tool_prefix}objdump; ac_word=$2
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349 $as_echo_n "checking for $ac_word... " >&6; }
13350 if ${ac_cv_path_orig_target_objdump+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 case $orig_target_objdump in
13354 [\\/]* | ?:[\\/]*)
13355 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13374 esac
13376 orig_target_objdump=$ac_cv_path_orig_target_objdump
13377 if test -n "$orig_target_objdump"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13379 $as_echo "$orig_target_objdump" >&6; }
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13386 else
13387 if test "$GCC" = "yes"; then
13388 aros_gcc_objdump=`$CC -print-prog-name=objdump`
13389 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
13390 set dummy `basename $aros_gcc_objdump`; ac_word=$2
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392 $as_echo_n "checking for $ac_word... " >&6; }
13393 if ${ac_cv_path_orig_target_objdump+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 case $orig_target_objdump in
13397 [\\/]* | ?:[\\/]*)
13398 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in `dirname $aros_gcc_objdump`
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13412 done
13413 done
13414 IFS=$as_save_IFS
13417 esac
13419 orig_target_objdump=$ac_cv_path_orig_target_objdump
13420 if test -n "$orig_target_objdump"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13422 $as_echo "$orig_target_objdump" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13430 if test "$orig_target_objdump" = ""; then
13431 # Extract the first word of "objdump", so it can be a program name with args.
13432 set dummy objdump; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_path_orig_target_objdump+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 case $orig_target_objdump in
13439 [\\/]* | ?:[\\/]*)
13440 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13450 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13454 done
13455 done
13456 IFS=$as_save_IFS
13459 esac
13461 orig_target_objdump=$ac_cv_path_orig_target_objdump
13462 if test -n "$orig_target_objdump"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13464 $as_echo "$orig_target_objdump" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13473 else
13474 ac_tool_optarg=`expr "X${aros_tool_prefix}${toolchain_objdump}" : '[^ ]* \(.*\)'`
13475 # Extract the first word of "${aros_tool_prefix}${toolchain_objdump}", so it can be a program name with args.
13476 set dummy ${aros_tool_prefix}${toolchain_objdump}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_orig_target_objdump+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 case $orig_target_objdump in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13498 done
13499 done
13500 IFS=$as_save_IFS
13503 esac
13505 orig_target_objdump=$ac_cv_path_orig_target_objdump
13506 if test -n "$orig_target_objdump"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
13508 $as_echo "$orig_target_objdump" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13515 orig_target_objdump="$orig_target_objdump $ac_tool_optarg"
13518 req_avail=yes
13519 if test "$orig_target_objdump" = ""; then
13520 req_avail=no
13522 if test "$orig_target_objdump" = "no"; then
13523 req_avail=no
13525 if test "$req_avail" = "no"; then
13526 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
13530 if test "$kernel_tool_prefix" = "none" ; then
13531 # No kernel tools specified
13532 # Assume target tools == kernel tools with ELF wrapper
13533 aros_kernel_cc=$orig_target_cc
13534 aros_kernel_cxx=$orig_target_cxx
13535 aros_kernel_cpp=$orig_target_cpp
13536 aros_kernel_ld=$orig_target_ld
13537 aros_kernel_as=$orig_target_as
13538 aros_kernel_ar=$orig_target_ar
13539 aros_kernel_ranlib=$orig_target_ranlib
13540 aros_kernel_nm=$orig_target_nm
13541 aros_kernel_strip=$orig_target_strip
13542 aros_kernel_objcopy=$orig_target_objcopy
13543 aros_kernel_objdump=$orig_target_objdump
13544 use_kernel_cc_wrapper=yes
13547 # At this point, all aros_kernel_* and aros_target_*
13548 # tools should be set up correctly
13550 CC="$aros_kernel_cc $kernel_tool_flags"
13551 CPP="$aros_kernel_cpp"
13553 #-----------------------------------------------------------------------------
13555 # Find all the tools we need to compile. This could be cross-compiling
13556 # though! If that is the case we use the GNU form of the target and
13557 # simply add this to the front of the binary name. This is rather simple,
13558 # but it should work under most circumstances.
13560 # The default tools are to use the same as the host, but only if the
13561 # host and target CPU are the same. With GCC this is normally enough.
13564 aros_cc_pre=""
13565 aros_shared_ld="$aros_host_ld"
13567 aros_target_mkdep="$aros_host_mkdep"
13569 # The default tools executables to be linked to.
13570 if test "$rescomp" != ""; then
13571 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
13572 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574 $as_echo_n "checking for $ac_word... " >&6; }
13575 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 case $aros_kernel_rescomp in
13579 [\\/]* | ?:[\\/]*)
13580 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13594 done
13595 done
13596 IFS=$as_save_IFS
13599 esac
13601 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
13602 if test -n "$aros_kernel_rescomp"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
13604 $as_echo "$aros_kernel_rescomp" >&6; }
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13611 req_avail=yes
13612 if test "$aros_kernel_rescomp" = ""; then
13613 req_avail=no
13615 if test "$aros_kernel_rescomp" = "no"; then
13616 req_avail=no
13618 if test "$req_avail" = "no"; then
13619 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
13623 # Set up the sources for the symlink farm
13624 if test "$crosstools" = "yes"; then
13625 crosstools_target=tools-crosstools
13628 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
13629 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
13631 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/host/config"
13632 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
13633 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
13634 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
13635 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
13636 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
13637 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
13639 # aros_cc_pre is a variable that is added to the front of the compiler name
13640 # in the generated aros-gcc shell script. We need this to enable the cache
13641 # to work across cleaned builds. Also, support DISTCC using the correct
13642 # environment variable.
13645 if test "x${DISTCC}" != "x" ; then
13646 if test "x${CCACHE}" != "x" ; then
13647 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
13648 else
13649 aros_cc_pre="${DISTCC} "
13651 else
13652 if test "x${CCACHE}" != "x" ; then
13653 aros_cc_pre="${CCACHE} "
13657 aros_target_nostdinc_cflags=-nostdinc
13659 aros_target_nostartup_ldflags=-nostartfiles
13661 aros_target_nix_ldflags=-nix
13663 aros_target_detach_ldflags=-detach
13665 aros_target_nostdlib_ldflags=-nostdlib
13668 # Target tools
13670 if test "$aros_target_toolchain" != "yes"; then
13671 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
13672 if test "$GCC" = "yes"; then
13673 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
13675 else
13676 # We do not know which c compiler version we are going to build and what we need to know
13677 # here is different for different versions so this will be set later during the
13678 # build of crosstools.
13679 if test "$aros_toolchain" = "gnu" ; then
13680 prefix="$AROS_CROSSTOOLSDIR/${aros_target_cpu}-aros-"
13681 elif test "$aros_toolchain" = "llvm" ; then
13682 prefix="$AROS_CROSSTOOLSDIR/bin/"
13684 aros_target_cc_path=@aros_target_cc_path@
13686 aros_target_cpp="${prefix}${toolchain_cpp_preprocessor}"
13687 aros_target_cc="${prefix}${toolchain_c_compiler}"
13688 aros_target_cxx="${prefix}${toolchain_cxx_compiler}"
13689 aros_target_as="${prefix}${toolchain_as}"
13690 if test "${use_ld_wrapper}" = "yes"; then
13691 aros_target_ld="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}"
13692 else
13693 aros_target_ld="${prefix}${toolchain_ld}"
13695 aros_toolchain_ld="${prefix}${toolchain_ld}"
13697 aros_target_ar="${prefix}${toolchain_ar} $aros_target_ar_flags"
13698 aros_target_objcopy="${prefix}${toolchain_objcopy}"
13699 aros_target_objdump="${prefix}${toolchain_objdump}"
13700 aros_target_ranlib="${prefix}${toolchain_ranlib} $aros_target_ranlib_flags"
13701 aros_target_nm="${prefix}${toolchain_nm} $aros_target_nm_flags"
13702 aros_target_strip="${prefix}${toolchain_strip}"
13703 aros_plain_nm="${prefix}${toolchain_nm}"
13704 aros_plain_ar="${prefix}${toolchain_ar}"
13706 # Check whether --enable-includes was given.
13707 if test "${enable_includes+set}" = set; then :
13708 enableval=$enable_includes; aros_target_incl=$enable_includes
13709 else
13710 aros_target_incl=`$aros_kernel_cc -print-sysroot`/`$aros_kernel_cc --print-sysroot-headers-suffix 2>/dev/null || echo usr/include`
13714 if test "$aros_kernel_includes" = ""; then
13715 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13716 aros_kernel_includes="-isystem $aros_target_incl"
13720 if test "$aros_kernel_includes" != "" ; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
13722 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
13723 if test "$aros_kernel_cc_includes" = "" ; then
13724 # Try to guess where the directory is.
13725 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
13726 if test -d $aros_kernel_cc_includes; then
13727 # Check if there is also an include-fixed directory and add it
13728 # to kernel compiler's include path as it may contain some of
13729 # the headers we need.
13730 if test -d "$aros_kernel_cc_includes"-fixed; then
13731 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
13733 # Check for specific includes directory. Needed for Ubuntu 11.10 and Debian
13734 if test -d "/usr/include/${aros_target_cpu}-linux-gnu"; then
13735 aros_kernel_cc_includes+=" -isystem /usr/include/${aros_target_cpu}-linux-gnu"
13737 else
13738 # The directory doesn't exist, we need to do some more work.
13739 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
13741 # These are the headers we're looking for.
13742 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13743 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13744 zutil.h stdint.h"
13746 dirs=
13747 for h in $headers; do
13748 # Which other headers are needed by each of the above?
13749 deps=$(echo "#include <$h>" | \
13750 $aros_kernel_cc -E -M - 2>/dev/null | \
13751 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13753 # Copy all the needed headers to a directory beneath gendir.
13754 for d in $deps; do
13755 h=$(basename $d)
13756 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
13757 sed -n "s,^.*/include\(/.*\),\1,p")
13758 ! test -d $dir && mkdir -p $dir
13759 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13760 done
13761 done
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
13765 $as_echo "$aros_kernel_cc_includes" >&6; }
13766 # Adding -nostdinc to kernel includes as they are always used together.
13767 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
13770 if test "$crosstools" != "yes"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
13772 $as_echo_n "checking for the target compiler's include path... " >&6; }
13773 if test "$aros_target_cc_includes" = "" ; then
13774 #try to guess where the directory is
13775 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
13776 if ! test -d $aros_target_cc_includes; then
13777 #the directory doesn't exist, we need to do some more work
13778 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
13780 #these are the headers we're looking for
13781 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
13782 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
13783 zutil.h"
13785 dirs=
13786 for h in $headers; do
13787 #which other headers each of the above headers needs?
13788 deps=$(echo "#include <$h>" | \
13789 $orig_target_cc -E -M - 2>/dev/null | \
13790 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
13792 #copy all the needed headers to a directory beneath gendir
13793 for d in $deps; do
13794 h=$(basename $d)
13795 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
13796 sed -n "s,^.*/include\(/.*\),\1,p")
13797 ! test -d $dir && mkdir -p $dir
13798 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
13799 done
13800 done
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
13804 $as_echo "$aros_target_cc_includes" >&6; }
13805 else
13806 # We do not know which c compiler version we are going to build and what we need to know
13807 # here is different for different versions so this will be set later during the
13808 # build of crosstools.
13809 aros_target_cc_includes=@aros_target_cc_includes@
13813 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
13814 # On GCC >= 4.0 -iquote should be used
13817 save_cc="$CC"
13818 save_cflags="$CFLAGS"
13819 CFLAGS="-iquote."
13820 kernel_cflags_iquote=$host_cflags_iquote
13821 kernel_cflags_iquote_end=$host_cflags_iquote_end
13822 if test "x-$cross_compiling" = "x-yes"; then
13823 CC="$aros_kernel_cc"
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
13825 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
13826 if test "x-$crosstools" != "x-yes"; then
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13831 main ()
13835 return 0;
13837 _ACEOF
13838 if ac_fn_c_try_compile "$LINENO"; then :
13839 use_no_stack_protector="yes"
13840 else
13841 use_no_stack_protector="no"
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 else
13845 # we do know it is supported for the smallest version of gcc we are going to build
13846 # we assume it's also supported by later versions
13847 use_no_stack_protector=yes
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
13850 $as_echo "$use_no_stack_protector" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
13852 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
13853 if test "x-$crosstools" != "x-yes"; then
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13858 main ()
13862 return 0;
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866 has_iquote="yes"
13867 else
13868 has_iquote="no"
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 else
13872 # we do know it is supported for the smallest version of gcc we are going to build
13873 # we assume it's also supported by later versions
13874 has_iquote=yes
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13877 $as_echo "$has_iquote" >&6; }
13878 if test "x-$has_iquote" = "x-yes" ; then
13879 kernel_cflags_iquote=-iquote
13880 kernel_cflags_iquote_end=
13881 else
13882 kernel_cflags_iquote=-I
13883 kernel_cflags_iquote_end=-I-
13886 if test "x-$use_no_stack_protector" = "x-yes" ; then
13887 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13890 #-----------------------------------------------------------------------------
13892 # Check if we can explicitly choose older version of symbol hashing
13894 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13895 CC="$aros_kernel_cc"
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13897 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13902 main ()
13906 return 0;
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 use_hash_style="yes"
13911 else
13912 use_hash_style="no"
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13917 $as_echo "$use_hash_style" >&6; }
13918 if test "x-$use_hash_style" = "x-yes" ; then
13919 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13921 CC="$save_cc"
13922 CFLAGS="$save_cflags"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13931 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13933 # Check whether --with-resolution was given.
13934 if test "${with_resolution+set}" = set; then :
13935 withval=$with_resolution; resolution=$withval
13936 else
13937 resolution=none
13940 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13941 if test "$resolution" = "yes" ; then
13942 resolution="none"
13944 if test "$resolution" = "no" ; then
13945 resolution="none"
13947 if test "$resolution" != "none" ; then
13948 aros_nominal_width=`echo $resolution | cut -d'x' -f1`
13949 aros_nominal_height=`echo $resolution | cut -d'x' -f2`
13950 aros_nominal_depth=`echo $resolution | cut -d'x' -f3`
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&5
13953 $as_echo "$aros_nominal_width x $aros_nominal_height x $aros_nominal_depth" >&6; }
13954 aros_cv_nominal_width=$aros_nominal_width
13955 aros_cv_nominal_height=$aros_nominal_height
13956 aros_cv_nominal_depth=$aros_nominal_depth
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether serial debug is enabled" >&5
13959 $as_echo_n "checking whether serial debug is enabled... " >&6; }
13961 # Check whether --with-serial-debug was given.
13962 if test "${with_serial_debug+set}" = set; then :
13963 withval=$with_serial_debug; serial_debug=$withval
13964 else
13965 serial_debug=none
13968 if test "$aros_serial_debug" = 0 ; then
13969 serial_debug_forced=""
13970 if test "$serial_debug" = "yes" ; then
13971 serial_debug="1"
13973 if test "$serial_debug" = "no" ; then
13974 serial_debug="none"
13976 else
13977 serial_debug_forced="(forced)"
13978 serial_debug=$aros_serial_debug
13980 if test "$serial_debug" != "none" ; then
13981 aros_serial_debug=$serial_debug
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13983 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether palm debug hack is enabled" >&5
13990 $as_echo_n "checking whether palm debug hack is enabled... " >&6; }
13991 # Check whether --enable-palm_debug_hack was given.
13992 if test "${enable_palm_debug_hack+set}" = set; then :
13993 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13994 else
13995 palm_debug_hack="no"
13998 if test "$palm_debug_hack" = "yes" ; then
13999 aros_palm_debug_hack="1"
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
14002 $as_echo "$palm_debug_hack" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usb3.0 code is enabled" >&5
14005 $as_echo_n "checking whether usb3.0 code is enabled... " >&6; }
14006 # Check whether --enable-usb30_code was given.
14007 if test "${enable_usb30_code+set}" = set; then :
14008 enableval=$enable_usb30_code; usb30_code="yes"
14009 else
14010 usb30_code="no"
14013 if test "$usb30_code" = "yes" ; then
14014 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
14015 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
14018 $as_echo "$usb30_code" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nesting supervisor support is enabled" >&5
14021 $as_echo_n "checking whether nesting supervisor support is enabled... " >&6; }
14022 # Check whether --enable-nesting_supervisor was given.
14023 if test "${enable_nesting_supervisor+set}" = set; then :
14024 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
14025 else
14026 nesting_supervisor="no"
14029 if test "$nesting_supervisor" = "yes" ; then
14030 aros_nesting_supervisor="1"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
14033 $as_echo "$nesting_supervisor" >&6; }
14035 if test "$aros_enable_mmu" = "" ; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MMU support is enabled" >&5
14037 $as_echo_n "checking whether MMU support is enabled... " >&6; }
14038 # Check whether --enable-mmu was given.
14039 if test "${enable_mmu+set}" = set; then :
14040 enableval=$enable_mmu; aros_enable_mmu=$enableval
14041 else
14042 aros_enable_mmu="yes"
14045 if test "$aros_enable_mmu" = "" ; then
14046 aros_enable_mmu="yes"
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
14049 $as_echo "$aros_enable_mmu" >&6; }
14051 if test "$aros_enable_mmu" = "no" ; then
14052 aros_enable_mmu="0"
14053 else
14054 aros_enable_mmu="1"
14058 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
14060 if test "x-$need_dlopen" != "x-no" ; then
14061 save_libs="$LIBS"
14062 LIBS=""
14063 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14064 if test "x$ac_cv_func_dlopen" = xyes; then :
14065 have_dl="yes"
14066 else
14067 have_dl="no"
14070 if test "x-$have_dl" = "x-no" ; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14073 if ${ac_cv_lib_dl_dlopen+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-ldl $LIBS"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14084 #ifdef __cplusplus
14085 extern "C"
14086 #endif
14087 char dlopen ();
14089 main ()
14091 return dlopen ();
14093 return 0;
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 ac_cv_lib_dl_dlopen=yes
14098 else
14099 ac_cv_lib_dl_dlopen=no
14101 rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14108 have_dl="yes"
14109 aros_host_ldflags="$aros_host_ldflags -ldl"
14110 else
14111 have_dl="no"
14115 if test "x-$have_dl" = "x-no" ; then
14116 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
14118 LIBS="$save_libs"
14122 # Check whether --enable-x11_hidd was given.
14123 if test "${enable_x11_hidd+set}" = set; then :
14124 enableval=$enable_x11_hidd; x11_hidd="$enableval"
14125 else
14126 x11_hidd="$need_x11"
14129 case "x-$x11_hidd" in
14130 x-yes|x-no|x-auto) ;;
14131 *) x11_hidd="$need_x11" ;;
14132 esac
14134 ENABLE_X11=0
14136 if test "x-$x11_hidd" != "x-no" ; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14139 $as_echo_n "checking for X... " >&6; }
14142 # Check whether --with-x was given.
14143 if test "${with_x+set}" = set; then :
14144 withval=$with_x;
14147 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14148 if test "x$with_x" = xno; then
14149 # The user explicitly disabled X.
14150 have_x=disabled
14151 else
14152 case $x_includes,$x_libraries in #(
14153 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14154 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 # One or both of the vars are not set, and there is no cached value.
14158 ac_x_includes=no ac_x_libraries=no
14159 rm -f -r conftest.dir
14160 if mkdir conftest.dir; then
14161 cd conftest.dir
14162 cat >Imakefile <<'_ACEOF'
14163 incroot:
14164 @echo incroot='${INCROOT}'
14165 usrlibdir:
14166 @echo usrlibdir='${USRLIBDIR}'
14167 libdir:
14168 @echo libdir='${LIBDIR}'
14169 _ACEOF
14170 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14171 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14172 for ac_var in incroot usrlibdir libdir; do
14173 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14174 done
14175 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14176 for ac_extension in a so sl dylib la dll; do
14177 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14178 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14179 ac_im_usrlibdir=$ac_im_libdir; break
14181 done
14182 # Screen out bogus values from the imake configuration. They are
14183 # bogus both because they are the default anyway, and because
14184 # using them would break gcc on systems where it needs fixed includes.
14185 case $ac_im_incroot in
14186 /usr/include) ac_x_includes= ;;
14187 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14188 esac
14189 case $ac_im_usrlibdir in
14190 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14191 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14192 esac
14194 cd ..
14195 rm -f -r conftest.dir
14198 # Standard set of common directories for X headers.
14199 # Check X11 before X11Rn because it is often a symlink to the current release.
14200 ac_x_header_dirs='
14201 /usr/X11/include
14202 /usr/X11R7/include
14203 /usr/X11R6/include
14204 /usr/X11R5/include
14205 /usr/X11R4/include
14207 /usr/include/X11
14208 /usr/include/X11R7
14209 /usr/include/X11R6
14210 /usr/include/X11R5
14211 /usr/include/X11R4
14213 /usr/local/X11/include
14214 /usr/local/X11R7/include
14215 /usr/local/X11R6/include
14216 /usr/local/X11R5/include
14217 /usr/local/X11R4/include
14219 /usr/local/include/X11
14220 /usr/local/include/X11R7
14221 /usr/local/include/X11R6
14222 /usr/local/include/X11R5
14223 /usr/local/include/X11R4
14225 /usr/X386/include
14226 /usr/x386/include
14227 /usr/XFree86/include/X11
14229 /usr/include
14230 /usr/local/include
14231 /usr/unsupported/include
14232 /usr/athena/include
14233 /usr/local/x11r5/include
14234 /usr/lpp/Xamples/include
14236 /usr/openwin/include
14237 /usr/openwin/share/include'
14239 if test "$ac_x_includes" = no; then
14240 # Guess where to find include files, by looking for Xlib.h.
14241 # First, try using that file with no special directory specified.
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 #include <X11/Xlib.h>
14245 _ACEOF
14246 if ac_fn_c_try_cpp "$LINENO"; then :
14247 # We can compile using X headers with no special include directory.
14248 ac_x_includes=
14249 else
14250 for ac_dir in $ac_x_header_dirs; do
14251 if test -r "$ac_dir/X11/Xlib.h"; then
14252 ac_x_includes=$ac_dir
14253 break
14255 done
14257 rm -f conftest.err conftest.i conftest.$ac_ext
14258 fi # $ac_x_includes = no
14260 if test "$ac_x_libraries" = no; then
14261 # Check for the libraries.
14262 # See if we find them without any special options.
14263 # Don't add to $LIBS permanently.
14264 ac_save_LIBS=$LIBS
14265 LIBS="-lX11 $LIBS"
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14268 #include <X11/Xlib.h>
14270 main ()
14272 XrmInitialize ()
14274 return 0;
14276 _ACEOF
14277 if ac_fn_c_try_link "$LINENO"; then :
14278 LIBS=$ac_save_LIBS
14279 # We can link X programs with no special library path.
14280 ac_x_libraries=
14281 else
14282 LIBS=$ac_save_LIBS
14283 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14285 # Don't even attempt the hair of trying to link an X program!
14286 for ac_extension in a so sl dylib la dll; do
14287 if test -r "$ac_dir/libX11.$ac_extension"; then
14288 ac_x_libraries=$ac_dir
14289 break 2
14291 done
14292 done
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14296 fi # $ac_x_libraries = no
14298 case $ac_x_includes,$ac_x_libraries in #(
14299 no,* | *,no | *\'*)
14300 # Didn't find X, or a directory has "'" in its name.
14301 ac_cv_have_x="have_x=no";; #(
14303 # Record where we found X for the cache.
14304 ac_cv_have_x="have_x=yes\
14305 ac_x_includes='$ac_x_includes'\
14306 ac_x_libraries='$ac_x_libraries'"
14307 esac
14309 ;; #(
14310 *) have_x=yes;;
14311 esac
14312 eval "$ac_cv_have_x"
14313 fi # $with_x != no
14315 if test "$have_x" != yes; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14317 $as_echo "$have_x" >&6; }
14318 no_x=yes
14319 else
14320 # If each of the values was on the command line, it overrides each guess.
14321 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14322 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14323 # Update the cache value to reflect the command line values.
14324 ac_cv_have_x="have_x=yes\
14325 ac_x_includes='$x_includes'\
14326 ac_x_libraries='$x_libraries'"
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14328 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14332 if test -n "$x_includes"; then
14333 X_CFLAGS="$X_CFLAGS -I$x_includes"
14336 if test -n "$x_libraries"; then
14337 X_LIBS="$X_LIBS -L$x_libraries"
14340 if test "x-$no_x" = "x-yes" ; then
14342 if test "x-$x11_hidd" != "x-auto" ; then
14343 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
14346 else
14347 host_x_gfx=yes
14348 ENABLE_X11=1
14350 aros_host_x11_cflags="$X_CFLAGS"
14351 aros_host_x11_ldflags="$X_LIBS -lX11"
14353 # Check whether --enable-x11_shm was given.
14354 if test "${enable_x11_shm+set}" = set; then :
14355 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
14356 else
14357 x11_hidd_shm="auto"
14360 case "x-$x11_hidd_shm" in
14361 x-yes|x-no|x-auto) ;;
14362 *) x11_hidd_shm="auto" ;;
14363 esac
14365 have_xshm=no
14367 if test "x-$x11_hidd_shm" != "x-no" ; then
14369 for ac_header in sys/ipc.h
14370 do :
14371 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14372 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_SYS_IPC_H 1
14375 _ACEOF
14379 done
14381 for ac_header in sys/shm.h
14382 do :
14383 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14384 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_SYS_SHM_H 1
14387 _ACEOF
14391 done
14394 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
14396 save_cflags="$CFLAGS"
14397 save_ldflags="$LDFLAGS"
14398 CFLAGS="$CFLAGS $X_CFLAGS"
14399 LDFLAGS="$LDFLAGS $X_LIBS"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
14401 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
14402 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 ac_check_lib_save_LIBS=$LIBS
14406 LIBS="-lXext $LIBS"
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14410 /* Override any GCC internal prototype to avoid an error.
14411 Use char because int might match the return type of a GCC
14412 builtin and then its argument prototype would still apply. */
14413 #ifdef __cplusplus
14414 extern "C"
14415 #endif
14416 char XShmQueryExtension ();
14418 main ()
14420 return XShmQueryExtension ();
14422 return 0;
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"; then :
14426 ac_cv_lib_Xext_XShmQueryExtension=yes
14427 else
14428 ac_cv_lib_Xext_XShmQueryExtension=no
14430 rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14432 LIBS=$ac_check_lib_save_LIBS
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
14435 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
14436 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
14437 have_xshm=yes
14440 CFLAGS="$save_cflags"
14441 LDFLAGS="$save_ldflags"
14445 if test "x-$have_xshm" = "x-yes" ; then
14446 DO_XSHM_SUPPORT="1"
14447 elif test "x-$x11_hidd_shm" = "x-yes" ; then
14448 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
14449 else
14450 DO_XSHM_SUPPORT="0"
14454 # Check whether --enable-x11_vidmode was given.
14455 if test "${enable_x11_vidmode+set}" = set; then :
14456 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
14457 else
14458 x11_hidd_vidmode="auto"
14461 case "x-$x11_hidd_vidmode" in
14462 x-yes|x-no|x-auto) ;;
14463 *) x11_hidd_vidmode="auto" ;;
14464 esac
14466 have_vidmode=no
14468 if test "x-$x11_hidd_vidmode" != "x-no" ; then
14470 save_cflags="$CFLAGS"
14471 save_ldflags="$LDFLAGS"
14472 CFLAGS="$CFLAGS $X_CFLAGS"
14473 LDFLAGS="$LDFLAGS $X_LIBS"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
14475 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
14476 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 ac_check_lib_save_LIBS=$LIBS
14480 LIBS="-lXxf86vm $LIBS"
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14484 /* Override any GCC internal prototype to avoid an error.
14485 Use char because int might match the return type of a GCC
14486 builtin and then its argument prototype would still apply. */
14487 #ifdef __cplusplus
14488 extern "C"
14489 #endif
14490 char XF86VidModeQueryExtension ();
14492 main ()
14494 return XF86VidModeQueryExtension ();
14496 return 0;
14498 _ACEOF
14499 if ac_fn_c_try_link "$LINENO"; then :
14500 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
14501 else
14502 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
14509 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
14510 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
14511 have_vidmode=yes
14514 CFLAGS="$save_cflags"
14515 LDFLAGS="$save_ldflags"
14518 if test "x-$have_vidmode" = "x-yes" ; then
14519 DO_VIDMODE_SUPPORT="1"
14520 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
14521 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
14522 else
14523 DO_VIDMODE_SUPPORT="0"
14528 # Check whether --enable-sdl_hidd was given.
14529 if test "${enable_sdl_hidd+set}" = set; then :
14530 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
14531 else
14532 sdl_hidd="auto"
14535 case "x-$sdl_hidd" in
14536 x-yes|x-no|x-auto) ;;
14537 *) sdl_hidd="auto" ;;
14538 esac
14540 if test "x-$sdl_hidd" != "x-no" ; then
14542 SDL_VERSION=1.2.5
14544 # Check whether --with-sdl-prefix was given.
14545 if test "${with_sdl_prefix+set}" = set; then :
14546 withval=$with_sdl_prefix; sdl_prefix="$withval"
14547 else
14548 sdl_prefix=""
14552 # Check whether --with-sdl-exec-prefix was given.
14553 if test "${with_sdl_exec_prefix+set}" = set; then :
14554 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
14555 else
14556 sdl_exec_prefix=""
14559 # Check whether --enable-sdltest was given.
14560 if test "${enable_sdltest+set}" = set; then :
14561 enableval=$enable_sdltest;
14562 else
14563 enable_sdltest=yes
14567 if test x$sdl_exec_prefix != x ; then
14568 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
14569 if test x${SDL_CONFIG+set} != xset ; then
14570 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
14573 if test x$sdl_prefix != x ; then
14574 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
14575 if test x${SDL_CONFIG+set} != xset ; then
14576 SDL_CONFIG=$sdl_prefix/bin/sdl-config
14580 as_save_PATH="$PATH"
14581 if test "x$prefix" != xNONE; then
14582 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
14584 # Extract the first word of "sdl-config", so it can be a program name with args.
14585 set dummy sdl-config; ac_word=$2
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14587 $as_echo_n "checking for $ac_word... " >&6; }
14588 if ${ac_cv_path_SDL_CONFIG+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 case $SDL_CONFIG in
14592 [\\/]* | ?:[\\/]*)
14593 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 break 2
14607 done
14608 done
14609 IFS=$as_save_IFS
14611 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
14613 esac
14615 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
14616 if test -n "$SDL_CONFIG"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
14618 $as_echo "$SDL_CONFIG" >&6; }
14619 else
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14625 PATH="$as_save_PATH"
14626 min_sdl_version=$SDL_VERSION
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
14628 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
14629 no_sdl=""
14630 if test "$SDL_CONFIG" = "no" ; then
14631 no_sdl=yes
14632 else
14633 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
14634 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
14636 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
14637 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14638 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
14639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14640 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
14641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14642 if test "x$enable_sdltest" = "xyes" ; then
14643 ac_save_CFLAGS="$CFLAGS"
14644 ac_save_CXXFLAGS="$CXXFLAGS"
14645 ac_save_LIBS="$LIBS"
14646 CFLAGS="$CFLAGS $SDL_CFLAGS"
14647 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14648 LIBS="$LIBS $SDL_LIBS"
14649 rm -f conf.sdltest
14650 if test "$cross_compiling" = yes; then :
14651 echo $ac_n "cross compiling; assumed OK... $ac_c"
14652 else
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14656 #include <stdio.h>
14657 #include <stdlib.h>
14658 #include <string.h>
14659 #include "SDL.h"
14661 char*
14662 my_strdup (char *str)
14664 char *new_str;
14666 if (str)
14668 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14669 strcpy (new_str, str);
14671 else
14672 new_str = NULL;
14674 return new_str;
14677 int main (int argc, char *argv[])
14679 int major, minor, micro;
14680 char *tmp_version;
14682 /* This hangs on some systems (?)
14683 system ("touch conf.sdltest");
14685 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
14687 /* HP/UX 9 (%@#!) writes to sscanf strings */
14688 tmp_version = my_strdup("$min_sdl_version");
14689 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14690 printf("%s, bad version string\n", "$min_sdl_version");
14691 exit(1);
14694 if (($sdl_major_version > major) ||
14695 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
14696 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
14698 return 0;
14700 else
14702 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
14703 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
14704 printf("*** best to upgrade to the required version.\n");
14705 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
14706 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
14707 printf("*** config.cache before re-running configure\n");
14708 return 1;
14713 _ACEOF
14714 if ac_fn_c_try_run "$LINENO"; then :
14716 else
14717 no_sdl=yes
14719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14720 conftest.$ac_objext conftest.beam conftest.$ac_ext
14723 CFLAGS="$ac_save_CFLAGS"
14724 CXXFLAGS="$ac_save_CXXFLAGS"
14725 LIBS="$ac_save_LIBS"
14728 if test "x$no_sdl" = x ; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14730 $as_echo "yes" >&6; }
14731 have_sdl="yes"
14732 else
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14735 if test "$SDL_CONFIG" = "no" ; then
14736 echo "*** The sdl-config script installed by SDL could not be found"
14737 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14738 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14739 echo "*** full path to sdl-config."
14740 else
14741 if test -f conf.sdltest ; then
14743 else
14744 echo "*** Could not run SDL test program, checking why..."
14745 CFLAGS="$CFLAGS $SDL_CFLAGS"
14746 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14747 LIBS="$LIBS $SDL_LIBS"
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14751 #include <stdio.h>
14752 #include "SDL.h"
14754 int main(int argc, char *argv[])
14755 { return 0; }
14756 #undef main
14757 #define main K_and_R_C_main
14760 main ()
14762 return 0;
14764 return 0;
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 echo "*** The test program compiled, but did not run. This usually means"
14769 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14770 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14771 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14772 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14773 echo "*** is required on your system"
14774 echo "***"
14775 echo "*** If you have an old version installed, it is best to remove it, although"
14776 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14777 else
14778 echo "*** The test program failed to compile or link. See the file config.log for the"
14779 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14780 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14781 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext conftest.$ac_ext
14785 CFLAGS="$ac_save_CFLAGS"
14786 CXXFLAGS="$ac_save_CXXFLAGS"
14787 LIBS="$ac_save_LIBS"
14790 SDL_CFLAGS=""
14791 SDL_LIBS=""
14792 have_sdl="no"
14796 rm -f conf.sdltest
14799 if test "x-$have_sdl" != "x-yes" ; then
14801 if test "x-$sdl_hidd" != "x-auto" ; then
14802 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14805 else
14806 host_sdl_gfx=yes
14807 aros_host_sdl_cflags=$SDL_CFLAGS
14808 aros_host_sdl_libs=$SDL_LIBS
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building of dbus.library is enabled" >&5
14816 $as_echo_n "checking whether building of dbus.library is enabled... " >&6; }
14817 # Check whether --enable-dbus was given.
14818 if test "${enable_dbus+set}" = set; then :
14819 enableval=$enable_dbus; dbus="yes"
14820 else
14821 dbus="no"
14824 if test "$dbus" = "yes" ; then
14825 ENABLE_DBUS=1
14826 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14827 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14828 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14829 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14830 else
14831 ENABLE_DBUS=0
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14834 $as_echo "$dbus" >&6; }
14836 if test "$use_kernel_cc_wrapper" = "yes" ; then
14837 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-${toolchain_c_compiler}"
14841 # Generic
14855 # Compatability with other Amiga-like operation systems
14858 # Host related
14887 # Target Related
14960 # Hosted Graphics Related
14978 # Native version related
14982 # Palm native version related
14985 # Unix/Hosted version related
14988 # MMU related
14991 # Apple iOS related
14996 # ARM default GCC target related
15003 # Android related
15008 # DBUS related
15015 #X11 related
15018 # Debug related
15024 # Collect-aros stuff: "-ius" to ignore undefined symbols
15027 # C compiler related
15032 #ObjC compiler related
15035 #Java related
15038 # USB3.0 code
15041 case "$aros_flavour" in
15042 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
15043 aros_flavour="emulation" ;;
15044 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
15045 aros_flavour="emulation" ;;
15046 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
15047 aros_flavour="standalone";;
15048 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15049 aros_flavour="standalone";;
15050 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
15051 aros_flavour="native" ;;
15052 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
15053 aros_flavour="native" ;;
15054 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
15055 aros_flavour="linklib" ;;
15056 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15057 aros_flavour="palmnative" ;;
15058 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
15059 aros_flavour="mac68knative" ;;
15060 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
15061 aros_flavour="ppcnative" ;;
15062 esac
15064 if test ! -d ${aros_inc_dir} ; then
15065 ${MKDIR} ${aros_inc_dir}
15067 if test ! -d ${aros_geninc_dir} ; then
15068 ${MKDIR} ${aros_geninc_dir}
15070 if test ! -d ${aros_hostcfg_dir} ; then
15071 ${MKDIR} ${aros_hostcfg_dir}
15073 if test ! -d ${aros_targetcfg_dir} ; then
15074 ${MKDIR} ${aros_targetcfg_dir}
15076 if test ! -d ${aros_tools_dir} ; then
15077 ${MKDIR} ${aros_tools_dir}
15079 if test ! -d ${aros_scripts_dir} ; then
15080 ${MKDIR} ${aros_scripts_dir}
15083 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
15086 # Generic build tools (metamake, etc)
15087 ac_config_commands="$ac_config_commands genmf-executable-support"
15089 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in mmake.config compiler/include/mmakefile:compiler/include/mmakefile.in ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
15092 # Binutils
15093 ac_config_commands="$ac_config_commands binutils-support"
15095 if test "${use_ld_wrapper}" = "yes"; then
15096 ac_config_files="$ac_config_files ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in"
15099 # Bare Elf support script and spec
15100 if test "${use_kernel_cc_wrapper}" = "yes"; then
15101 ac_config_commands="$ac_config_commands elf-compiler-support"
15103 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in"
15107 # Host compiler support scripts and spec
15108 if test "${aros_target_toolchain}" = "no"; then
15109 ac_config_commands="$ac_config_commands host-compiler-wrapper-support"
15111 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in"
15115 # Android support
15116 if test "$aros_target_variant" == "android"; then
15117 ac_config_files="$ac_config_files ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
15121 # cmake helper
15122 ac_config_files="$ac_config_files ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in"
15125 cat >confcache <<\_ACEOF
15126 # This file is a shell script that caches the results of configure
15127 # tests run on this system so they can be shared between configure
15128 # scripts and configure runs, see configure's option --config-cache.
15129 # It is not useful on other systems. If it contains results you don't
15130 # want to keep, you may remove or edit it.
15132 # config.status only pays attention to the cache file if you give it
15133 # the --recheck option to rerun configure.
15135 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15137 # following values.
15139 _ACEOF
15141 # The following way of writing the cache mishandles newlines in values,
15142 # but we know of no workaround that is simple, portable, and efficient.
15143 # So, we kill variables containing newlines.
15144 # Ultrix sh set writes to stderr and can't be redirected directly,
15145 # and sets the high bit in the cache file unless we assign to the vars.
15147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15148 eval ac_val=\$$ac_var
15149 case $ac_val in #(
15150 *${as_nl}*)
15151 case $ac_var in #(
15152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15154 esac
15155 case $ac_var in #(
15156 _ | IFS | as_nl) ;; #(
15157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15158 *) { eval $ac_var=; unset $ac_var;} ;;
15159 esac ;;
15160 esac
15161 done
15163 (set) 2>&1 |
15164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15165 *${as_nl}ac_space=\ *)
15166 # `set' does not quote correctly, so add quotes: double-quote
15167 # substitution turns \\\\ into \\, and sed turns \\ into \.
15168 sed -n \
15169 "s/'/'\\\\''/g;
15170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15171 ;; #(
15173 # `set' quotes correctly as required by POSIX, so do not add quotes.
15174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15176 esac |
15177 sort
15179 sed '
15180 /^ac_cv_env_/b end
15181 t clear
15182 :clear
15183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15184 t end
15185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15186 :end' >>confcache
15187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15188 if test -w "$cache_file"; then
15189 if test "x$cache_file" != "x/dev/null"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15191 $as_echo "$as_me: updating cache $cache_file" >&6;}
15192 if test ! -f "$cache_file" || test -h "$cache_file"; then
15193 cat confcache >"$cache_file"
15194 else
15195 case $cache_file in #(
15196 */* | ?:*)
15197 mv -f confcache "$cache_file"$$ &&
15198 mv -f "$cache_file"$$ "$cache_file" ;; #(
15200 mv -f confcache "$cache_file" ;;
15201 esac
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15209 rm -f confcache
15211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15212 # Let make expand exec_prefix.
15213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15215 DEFS=-DHAVE_CONFIG_H
15217 ac_libobjs=
15218 ac_ltlibobjs=
15220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15221 # 1. Remove the extension, and $U if already installed.
15222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15225 # will be set to the directory where LIBOBJS objects are built.
15226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15228 done
15229 LIBOBJS=$ac_libobjs
15231 LTLIBOBJS=$ac_ltlibobjs
15235 : "${CONFIG_STATUS=./config.status}"
15236 ac_write_fail=0
15237 ac_clean_files_save=$ac_clean_files
15238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15240 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15241 as_write_fail=0
15242 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15243 #! $SHELL
15244 # Generated by $as_me.
15245 # Run this file to recreate the current configuration.
15246 # Compiler output produced by configure, useful for debugging
15247 # configure, is in config.log if it exists.
15249 debug=false
15250 ac_cs_recheck=false
15251 ac_cs_silent=false
15253 SHELL=\${CONFIG_SHELL-$SHELL}
15254 export SHELL
15255 _ASEOF
15256 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15257 ## -------------------- ##
15258 ## M4sh Initialization. ##
15259 ## -------------------- ##
15261 # Be more Bourne compatible
15262 DUALCASE=1; export DUALCASE # for MKS sh
15263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15264 emulate sh
15265 NULLCMD=:
15266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15267 # is contrary to our usage. Disable this feature.
15268 alias -g '${1+"$@"}'='"$@"'
15269 setopt NO_GLOB_SUBST
15270 else
15271 case `(set -o) 2>/dev/null` in #(
15272 *posix*) :
15273 set -o posix ;; #(
15274 *) :
15276 esac
15280 as_nl='
15282 export as_nl
15283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15287 # Prefer a ksh shell builtin over an external printf program on Solaris,
15288 # but without wasting forks for bash or zsh.
15289 if test -z "$BASH_VERSION$ZSH_VERSION" \
15290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15291 as_echo='print -r --'
15292 as_echo_n='print -rn --'
15293 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15294 as_echo='printf %s\n'
15295 as_echo_n='printf %s'
15296 else
15297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15299 as_echo_n='/usr/ucb/echo -n'
15300 else
15301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15302 as_echo_n_body='eval
15303 arg=$1;
15304 case $arg in #(
15305 *"$as_nl"*)
15306 expr "X$arg" : "X\\(.*\\)$as_nl";
15307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15308 esac;
15309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15311 export as_echo_n_body
15312 as_echo_n='sh -c $as_echo_n_body as_echo'
15314 export as_echo_body
15315 as_echo='sh -c $as_echo_body as_echo'
15318 # The user is always right.
15319 if test "${PATH_SEPARATOR+set}" != set; then
15320 PATH_SEPARATOR=:
15321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15323 PATH_SEPARATOR=';'
15328 # IFS
15329 # We need space, tab and new line, in precisely that order. Quoting is
15330 # there to prevent editors from complaining about space-tab.
15331 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15332 # splitting by setting IFS to empty value.)
15333 IFS=" "" $as_nl"
15335 # Find who we are. Look in the path if we contain no directory separator.
15336 as_myself=
15337 case $0 in #((
15338 *[\\/]* ) as_myself=$0 ;;
15339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340 for as_dir in $PATH
15342 IFS=$as_save_IFS
15343 test -z "$as_dir" && as_dir=.
15344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15345 done
15346 IFS=$as_save_IFS
15349 esac
15350 # We did not find ourselves, most probably we were run as `sh COMMAND'
15351 # in which case we are not to be found in the path.
15352 if test "x$as_myself" = x; then
15353 as_myself=$0
15355 if test ! -f "$as_myself"; then
15356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15357 exit 1
15360 # Unset variables that we do not need and which cause bugs (e.g. in
15361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15362 # suppresses any "Segmentation fault" message there. '((' could
15363 # trigger a bug in pdksh 5.2.14.
15364 for as_var in BASH_ENV ENV MAIL MAILPATH
15365 do eval test x\${$as_var+set} = xset \
15366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15367 done
15368 PS1='$ '
15369 PS2='> '
15370 PS4='+ '
15372 # NLS nuisances.
15373 LC_ALL=C
15374 export LC_ALL
15375 LANGUAGE=C
15376 export LANGUAGE
15378 # CDPATH.
15379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15382 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15383 # ----------------------------------------
15384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15386 # script with STATUS, using 1 if that was 0.
15387 as_fn_error ()
15389 as_status=$1; test $as_status -eq 0 && as_status=1
15390 if test "$4"; then
15391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15394 $as_echo "$as_me: error: $2" >&2
15395 as_fn_exit $as_status
15396 } # as_fn_error
15399 # as_fn_set_status STATUS
15400 # -----------------------
15401 # Set $? to STATUS, without forking.
15402 as_fn_set_status ()
15404 return $1
15405 } # as_fn_set_status
15407 # as_fn_exit STATUS
15408 # -----------------
15409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15410 as_fn_exit ()
15412 set +e
15413 as_fn_set_status $1
15414 exit $1
15415 } # as_fn_exit
15417 # as_fn_unset VAR
15418 # ---------------
15419 # Portably unset VAR.
15420 as_fn_unset ()
15422 { eval $1=; unset $1;}
15424 as_unset=as_fn_unset
15425 # as_fn_append VAR VALUE
15426 # ----------------------
15427 # Append the text in VALUE to the end of the definition contained in VAR. Take
15428 # advantage of any shell optimizations that allow amortized linear growth over
15429 # repeated appends, instead of the typical quadratic growth present in naive
15430 # implementations.
15431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15432 eval 'as_fn_append ()
15434 eval $1+=\$2
15436 else
15437 as_fn_append ()
15439 eval $1=\$$1\$2
15441 fi # as_fn_append
15443 # as_fn_arith ARG...
15444 # ------------------
15445 # Perform arithmetic evaluation on the ARGs, and store the result in the
15446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15447 # must be portable across $(()) and expr.
15448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15449 eval 'as_fn_arith ()
15451 as_val=$(( $* ))
15453 else
15454 as_fn_arith ()
15456 as_val=`expr "$@" || test $? -eq 1`
15458 fi # as_fn_arith
15461 if expr a : '\(a\)' >/dev/null 2>&1 &&
15462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15463 as_expr=expr
15464 else
15465 as_expr=false
15468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15469 as_basename=basename
15470 else
15471 as_basename=false
15474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15475 as_dirname=dirname
15476 else
15477 as_dirname=false
15480 as_me=`$as_basename -- "$0" ||
15481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15482 X"$0" : 'X\(//\)$' \| \
15483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15484 $as_echo X/"$0" |
15485 sed '/^.*\/\([^/][^/]*\)\/*$/{
15486 s//\1/
15489 /^X\/\(\/\/\)$/{
15490 s//\1/
15493 /^X\/\(\/\).*/{
15494 s//\1/
15497 s/.*/./; q'`
15499 # Avoid depending upon Character Ranges.
15500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15503 as_cr_digits='0123456789'
15504 as_cr_alnum=$as_cr_Letters$as_cr_digits
15506 ECHO_C= ECHO_N= ECHO_T=
15507 case `echo -n x` in #(((((
15508 -n*)
15509 case `echo 'xy\c'` in
15510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15511 xy) ECHO_C='\c';;
15512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15513 ECHO_T=' ';;
15514 esac;;
15516 ECHO_N='-n';;
15517 esac
15519 rm -f conf$$ conf$$.exe conf$$.file
15520 if test -d conf$$.dir; then
15521 rm -f conf$$.dir/conf$$.file
15522 else
15523 rm -f conf$$.dir
15524 mkdir conf$$.dir 2>/dev/null
15526 if (echo >conf$$.file) 2>/dev/null; then
15527 if ln -s conf$$.file conf$$ 2>/dev/null; then
15528 as_ln_s='ln -s'
15529 # ... but there are two gotchas:
15530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15532 # In both cases, we have to default to `cp -pR'.
15533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15534 as_ln_s='cp -pR'
15535 elif ln conf$$.file conf$$ 2>/dev/null; then
15536 as_ln_s=ln
15537 else
15538 as_ln_s='cp -pR'
15540 else
15541 as_ln_s='cp -pR'
15543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15544 rmdir conf$$.dir 2>/dev/null
15547 # as_fn_mkdir_p
15548 # -------------
15549 # Create "$as_dir" as a directory, including parents if necessary.
15550 as_fn_mkdir_p ()
15553 case $as_dir in #(
15554 -*) as_dir=./$as_dir;;
15555 esac
15556 test -d "$as_dir" || eval $as_mkdir_p || {
15557 as_dirs=
15558 while :; do
15559 case $as_dir in #(
15560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15561 *) as_qdir=$as_dir;;
15562 esac
15563 as_dirs="'$as_qdir' $as_dirs"
15564 as_dir=`$as_dirname -- "$as_dir" ||
15565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15566 X"$as_dir" : 'X\(//\)[^/]' \| \
15567 X"$as_dir" : 'X\(//\)$' \| \
15568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15569 $as_echo X"$as_dir" |
15570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15571 s//\1/
15574 /^X\(\/\/\)[^/].*/{
15575 s//\1/
15578 /^X\(\/\/\)$/{
15579 s//\1/
15582 /^X\(\/\).*/{
15583 s//\1/
15586 s/.*/./; q'`
15587 test -d "$as_dir" && break
15588 done
15589 test -z "$as_dirs" || eval "mkdir $as_dirs"
15590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15593 } # as_fn_mkdir_p
15594 if mkdir -p . 2>/dev/null; then
15595 as_mkdir_p='mkdir -p "$as_dir"'
15596 else
15597 test -d ./-p && rmdir ./-p
15598 as_mkdir_p=false
15602 # as_fn_executable_p FILE
15603 # -----------------------
15604 # Test if FILE is an executable regular file.
15605 as_fn_executable_p ()
15607 test -f "$1" && test -x "$1"
15608 } # as_fn_executable_p
15609 as_test_x='test -x'
15610 as_executable_p=as_fn_executable_p
15612 # Sed expression to map a string onto a valid CPP name.
15613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15615 # Sed expression to map a string onto a valid variable name.
15616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15619 exec 6>&1
15620 ## ----------------------------------- ##
15621 ## Main body of $CONFIG_STATUS script. ##
15622 ## ----------------------------------- ##
15623 _ASEOF
15624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15627 # Save the log message, to keep $0 and so on meaningful, and to
15628 # report actual input values of CONFIG_FILES etc. instead of their
15629 # values after options handling.
15630 ac_log="
15631 This file was extended by $as_me, which was
15632 generated by GNU Autoconf 2.69. Invocation command line was
15634 CONFIG_FILES = $CONFIG_FILES
15635 CONFIG_HEADERS = $CONFIG_HEADERS
15636 CONFIG_LINKS = $CONFIG_LINKS
15637 CONFIG_COMMANDS = $CONFIG_COMMANDS
15638 $ $0 $@
15640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15643 _ACEOF
15645 case $ac_config_files in *"
15646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15647 esac
15649 case $ac_config_headers in *"
15650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15651 esac
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 # Files that config.status was made for.
15656 config_files="$ac_config_files"
15657 config_headers="$ac_config_headers"
15658 config_commands="$ac_config_commands"
15660 _ACEOF
15662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15663 ac_cs_usage="\
15664 \`$as_me' instantiates files and other configuration actions
15665 from templates according to the current configuration. Unless the files
15666 and actions are specified as TAGs, all are instantiated by default.
15668 Usage: $0 [OPTION]... [TAG]...
15670 -h, --help print this help, then exit
15671 -V, --version print version number and configuration settings, then exit
15672 --config print configuration, then exit
15673 -q, --quiet, --silent
15674 do not print progress messages
15675 -d, --debug don't remove temporary files
15676 --recheck update $as_me by reconfiguring in the same conditions
15677 --file=FILE[:TEMPLATE]
15678 instantiate the configuration file FILE
15679 --header=FILE[:TEMPLATE]
15680 instantiate the configuration header FILE
15682 Configuration files:
15683 $config_files
15685 Configuration headers:
15686 $config_headers
15688 Configuration commands:
15689 $config_commands
15691 Report bugs to the package provider."
15693 _ACEOF
15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15696 ac_cs_version="\\
15697 config.status
15698 configured by $0, generated by GNU Autoconf 2.69,
15699 with options \\"\$ac_cs_config\\"
15701 Copyright (C) 2012 Free Software Foundation, Inc.
15702 This config.status script is free software; the Free Software Foundation
15703 gives unlimited permission to copy, distribute and modify it."
15705 ac_pwd='$ac_pwd'
15706 srcdir='$srcdir'
15707 test -n "\$AWK" || AWK=awk
15708 _ACEOF
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 # The default lists apply if the user does not specify any file.
15712 ac_need_defaults=:
15713 while test $# != 0
15715 case $1 in
15716 --*=?*)
15717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15719 ac_shift=:
15721 --*=)
15722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15723 ac_optarg=
15724 ac_shift=:
15727 ac_option=$1
15728 ac_optarg=$2
15729 ac_shift=shift
15731 esac
15733 case $ac_option in
15734 # Handling of the options.
15735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15736 ac_cs_recheck=: ;;
15737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15738 $as_echo "$ac_cs_version"; exit ;;
15739 --config | --confi | --conf | --con | --co | --c )
15740 $as_echo "$ac_cs_config"; exit ;;
15741 --debug | --debu | --deb | --de | --d | -d )
15742 debug=: ;;
15743 --file | --fil | --fi | --f )
15744 $ac_shift
15745 case $ac_optarg in
15746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15747 '') as_fn_error $? "missing file argument" ;;
15748 esac
15749 as_fn_append CONFIG_FILES " '$ac_optarg'"
15750 ac_need_defaults=false;;
15751 --header | --heade | --head | --hea )
15752 $ac_shift
15753 case $ac_optarg in
15754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15755 esac
15756 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15757 ac_need_defaults=false;;
15758 --he | --h)
15759 # Conflict between --help and --header
15760 as_fn_error $? "ambiguous option: \`$1'
15761 Try \`$0 --help' for more information.";;
15762 --help | --hel | -h )
15763 $as_echo "$ac_cs_usage"; exit ;;
15764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15765 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15766 ac_cs_silent=: ;;
15768 # This is an error.
15769 -*) as_fn_error $? "unrecognized option: \`$1'
15770 Try \`$0 --help' for more information." ;;
15772 *) as_fn_append ac_config_targets " $1"
15773 ac_need_defaults=false ;;
15775 esac
15776 shift
15777 done
15779 ac_configure_extra_args=
15781 if $ac_cs_silent; then
15782 exec 6>/dev/null
15783 ac_configure_extra_args="$ac_configure_extra_args --silent"
15786 _ACEOF
15787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15788 if \$ac_cs_recheck; then
15789 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15790 shift
15791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15792 CONFIG_SHELL='$SHELL'
15793 export CONFIG_SHELL
15794 exec "\$@"
15797 _ACEOF
15798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15799 exec 5>>config.log
15801 echo
15802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15803 ## Running $as_me. ##
15804 _ASBOX
15805 $as_echo "$ac_log"
15806 } >&5
15808 _ACEOF
15809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15811 # INIT-COMMANDS
15813 aros_tools_dir=${aros_tools_dir}
15816 aros_host_exe_suffix=${aros_host_exe_suffix}
15817 aros_tools_dir=${aros_tools_dir}
15818 aros_target_cpu=${aros_target_cpu}
15819 aros_target_arch=${aros_target_arch}
15820 aros_target_suffix=${aros_target_suffix}
15821 orig_target_nm=${orig_target_nm}
15822 orig_target_as=${orig_target_as}
15823 orig_target_ar=${orig_target_ar}
15824 orig_target_ranlib=${orig_target_ranlib}
15825 orig_target_objdump=${orig_target_objdump}
15826 orig_target_objcopy=${orig_target_objcopy}
15827 orig_target_strip=${orig_target_strip}
15828 aros_kernel_ld=${aros_kernel_ld}
15832 aros_host_exe_suffix=${aros_host_exe_suffix}
15833 aros_tools_dir=${aros_tools_dir}
15834 aros_target_cpu=${aros_target_cpu}
15835 aros_target_arch=${aros_target_arch}
15836 aros_target_suffix=${aros_target_suffix}
15837 aros_kernel_ld=${aros_kernel_ld}
15841 aros_host_exe_suffix=${aros_host_exe_suffix}
15842 aros_tools_dir=${aros_tools_dir}
15843 aros_target_cpu=${aros_target_cpu}
15844 aros_target_arch=${aros_target_arch}
15845 aros_target_suffix=${aros_target_suffix}
15849 _ACEOF
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853 # Handling of arguments.
15854 for ac_config_target in $ac_config_targets
15856 case $ac_config_target in
15857 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15858 "genmf-executable-support") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf-executable-support" ;;
15859 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15860 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15861 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15862 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15863 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15864 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15865 "${aros_targetcfg_dir}/build.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/build.cfg:config/build.cfg.in" ;;
15866 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15867 "compiler/include/mmakefile") CONFIG_FILES="$CONFIG_FILES compiler/include/mmakefile:compiler/include/mmakefile.in" ;;
15868 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15869 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15870 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15871 "binutils-support") CONFIG_COMMANDS="$CONFIG_COMMANDS binutils-support" ;;
15872 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${aros_ld}:scripts/aros-ld.in" ;;
15873 "elf-compiler-support") CONFIG_COMMANDS="$CONFIG_COMMANDS elf-compiler-support" ;;
15874 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15875 "${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" ;;
15876 "host-compiler-wrapper-support") CONFIG_COMMANDS="$CONFIG_COMMANDS host-compiler-wrapper-support" ;;
15877 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15878 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cpp_preprocessor}:scripts/aros-${toolchain_cpp_preprocessor}.in" ;;
15879 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_c_compiler}:scripts/aros-${toolchain_c_compiler}.in" ;;
15880 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-${toolchain_cxx_compiler}:scripts/aros-${toolchain_cxx_compiler}.in" ;;
15881 "${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" ;;
15882 "${aros_targetcfg_dir}/conf.cmake") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/conf.cmake:config/conf.cmake.in" ;;
15884 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15885 esac
15886 done
15889 # If the user did not use the arguments to specify the items to instantiate,
15890 # then the envvar interface is used. Set only those that are not.
15891 # We use the long form for the default assignment because of an extremely
15892 # bizarre bug on SunOS 4.1.3.
15893 if $ac_need_defaults; then
15894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15899 # Have a temporary directory for convenience. Make it in the build tree
15900 # simply because there is no reason against having it here, and in addition,
15901 # creating and moving files from /tmp can sometimes cause problems.
15902 # Hook for its removal unless debugging.
15903 # Note that there is a small window in which the directory will not be cleaned:
15904 # after its creation but before its name has been assigned to `$tmp'.
15905 $debug ||
15907 tmp= ac_tmp=
15908 trap 'exit_status=$?
15909 : "${ac_tmp:=$tmp}"
15910 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15912 trap 'as_fn_exit 1' 1 2 13 15
15914 # Create a (secure) tmp directory for tmp files.
15917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15918 test -d "$tmp"
15919 } ||
15921 tmp=./conf$$-$RANDOM
15922 (umask 077 && mkdir "$tmp")
15923 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15924 ac_tmp=$tmp
15926 # Set up the scripts for CONFIG_FILES section.
15927 # No need to generate them if there are no CONFIG_FILES.
15928 # This happens for instance with `./config.status config.h'.
15929 if test -n "$CONFIG_FILES"; then
15932 ac_cr=`echo X | tr X '\015'`
15933 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15934 # But we know of no other shell where ac_cr would be empty at this
15935 # point, so we can use a bashism as a fallback.
15936 if test "x$ac_cr" = x; then
15937 eval ac_cr=\$\'\\r\'
15939 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15940 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15941 ac_cs_awk_cr='\\r'
15942 else
15943 ac_cs_awk_cr=$ac_cr
15946 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15947 _ACEOF
15951 echo "cat >conf$$subs.awk <<_ACEOF" &&
15952 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15953 echo "_ACEOF"
15954 } >conf$$subs.sh ||
15955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15956 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15957 ac_delim='%!_!# '
15958 for ac_last_try in false false false false false :; do
15959 . ./conf$$subs.sh ||
15960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15962 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15963 if test $ac_delim_n = $ac_delim_num; then
15964 break
15965 elif $ac_last_try; then
15966 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15967 else
15968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15970 done
15971 rm -f conf$$subs.sh
15973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15975 _ACEOF
15976 sed -n '
15978 s/^/S["/; s/!.*/"]=/
15981 s/^[^!]*!//
15982 :repl
15983 t repl
15984 s/'"$ac_delim"'$//
15985 t delim
15988 s/\(.\{148\}\)..*/\1/
15989 t more1
15990 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15993 b repl
15994 :more1
15995 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15998 s/.\{148\}//
15999 t nl
16000 :delim
16002 s/\(.\{148\}\)..*/\1/
16003 t more2
16004 s/["\\]/\\&/g; s/^/"/; s/$/"/
16007 :more2
16008 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16011 s/.\{148\}//
16012 t delim
16013 ' <conf$$subs.awk | sed '
16014 /^[^""]/{
16016 s/\n//
16018 ' >>$CONFIG_STATUS || ac_write_fail=1
16019 rm -f conf$$subs.awk
16020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 _ACAWK
16022 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16023 for (key in S) S_is_set[key] = 1
16024 FS = "\a"
16028 line = $ 0
16029 nfields = split(line, field, "@")
16030 substed = 0
16031 len = length(field[1])
16032 for (i = 2; i < nfields; i++) {
16033 key = field[i]
16034 keylen = length(key)
16035 if (S_is_set[key]) {
16036 value = S[key]
16037 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16038 len += length(value) + length(field[++i])
16039 substed = 1
16040 } else
16041 len += 1 + keylen
16044 print line
16047 _ACAWK
16048 _ACEOF
16049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16051 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16052 else
16054 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16055 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16056 _ACEOF
16058 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16059 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16060 # trailing colons and then remove the whole line if VPATH becomes empty
16061 # (actually we leave an empty line to preserve line numbers).
16062 if test "x$srcdir" = x.; then
16063 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16065 s///
16066 s/^/:/
16067 s/[ ]*$/:/
16068 s/:\$(srcdir):/:/g
16069 s/:\${srcdir}:/:/g
16070 s/:@srcdir@:/:/g
16071 s/^:*//
16072 s/:*$//
16074 s/\(=[ ]*\).*/\1/
16076 s/\n//
16077 s/^[^=]*=[ ]*$//
16081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082 fi # test -n "$CONFIG_FILES"
16084 # Set up the scripts for CONFIG_HEADERS section.
16085 # No need to generate them if there are no CONFIG_HEADERS.
16086 # This happens for instance with `./config.status Makefile'.
16087 if test -n "$CONFIG_HEADERS"; then
16088 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16089 BEGIN {
16090 _ACEOF
16092 # Transform confdefs.h into an awk script `defines.awk', embedded as
16093 # here-document in config.status, that substitutes the proper values into
16094 # config.h.in to produce config.h.
16096 # Create a delimiter string that does not exist in confdefs.h, to ease
16097 # handling of long lines.
16098 ac_delim='%!_!# '
16099 for ac_last_try in false false :; do
16100 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16101 if test -z "$ac_tt"; then
16102 break
16103 elif $ac_last_try; then
16104 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16105 else
16106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16108 done
16110 # For the awk script, D is an array of macro values keyed by name,
16111 # likewise P contains macro parameters if any. Preserve backslash
16112 # newline sequences.
16114 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16115 sed -n '
16116 s/.\{148\}/&'"$ac_delim"'/g
16117 t rset
16118 :rset
16119 s/^[ ]*#[ ]*define[ ][ ]*/ /
16120 t def
16122 :def
16123 s/\\$//
16124 t bsnl
16125 s/["\\]/\\&/g
16126 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16127 D["\1"]=" \3"/p
16128 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16130 :bsnl
16131 s/["\\]/\\&/g
16132 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16133 D["\1"]=" \3\\\\\\n"\\/p
16134 t cont
16135 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16136 t cont
16138 :cont
16140 s/.\{148\}/&'"$ac_delim"'/g
16141 t clear
16142 :clear
16143 s/\\$//
16144 t bsnlc
16145 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16147 :bsnlc
16148 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16149 b cont
16150 ' <confdefs.h | sed '
16151 s/'"$ac_delim"'/"\\\
16152 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 for (key in D) D_is_set[key] = 1
16156 FS = "\a"
16158 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16159 line = \$ 0
16160 split(line, arg, " ")
16161 if (arg[1] == "#") {
16162 defundef = arg[2]
16163 mac1 = arg[3]
16164 } else {
16165 defundef = substr(arg[1], 2)
16166 mac1 = arg[2]
16168 split(mac1, mac2, "(") #)
16169 macro = mac2[1]
16170 prefix = substr(line, 1, index(line, defundef) - 1)
16171 if (D_is_set[macro]) {
16172 # Preserve the white space surrounding the "#".
16173 print prefix "define", macro P[macro] D[macro]
16174 next
16175 } else {
16176 # Replace #undef with comments. This is necessary, for example,
16177 # in the case of _POSIX_SOURCE, which is predefined and required
16178 # on some systems where configure will not decide to define it.
16179 if (defundef == "undef") {
16180 print "/*", prefix defundef, macro, "*/"
16181 next
16185 { print }
16186 _ACAWK
16187 _ACEOF
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16190 fi # test -n "$CONFIG_HEADERS"
16193 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16194 shift
16195 for ac_tag
16197 case $ac_tag in
16198 :[FHLC]) ac_mode=$ac_tag; continue;;
16199 esac
16200 case $ac_mode$ac_tag in
16201 :[FHL]*:*);;
16202 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16203 :[FH]-) ac_tag=-:-;;
16204 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16205 esac
16206 ac_save_IFS=$IFS
16207 IFS=:
16208 set x $ac_tag
16209 IFS=$ac_save_IFS
16210 shift
16211 ac_file=$1
16212 shift
16214 case $ac_mode in
16215 :L) ac_source=$1;;
16216 :[FH])
16217 ac_file_inputs=
16218 for ac_f
16220 case $ac_f in
16221 -) ac_f="$ac_tmp/stdin";;
16222 *) # Look for the file first in the build tree, then in the source tree
16223 # (if the path is not absolute). The absolute path cannot be DOS-style,
16224 # because $ac_f cannot contain `:'.
16225 test -f "$ac_f" ||
16226 case $ac_f in
16227 [\\/$]*) false;;
16228 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16229 esac ||
16230 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16231 esac
16232 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16233 as_fn_append ac_file_inputs " '$ac_f'"
16234 done
16236 # Let's still pretend it is `configure' which instantiates (i.e., don't
16237 # use $as_me), people would be surprised to read:
16238 # /* config.h. Generated by config.status. */
16239 configure_input='Generated from '`
16240 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16241 `' by configure.'
16242 if test x"$ac_file" != x-; then
16243 configure_input="$ac_file. $configure_input"
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16245 $as_echo "$as_me: creating $ac_file" >&6;}
16247 # Neutralize special characters interpreted by sed in replacement strings.
16248 case $configure_input in #(
16249 *\&* | *\|* | *\\* )
16250 ac_sed_conf_input=`$as_echo "$configure_input" |
16251 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16252 *) ac_sed_conf_input=$configure_input;;
16253 esac
16255 case $ac_tag in
16256 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16258 esac
16260 esac
16262 ac_dir=`$as_dirname -- "$ac_file" ||
16263 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16264 X"$ac_file" : 'X\(//\)[^/]' \| \
16265 X"$ac_file" : 'X\(//\)$' \| \
16266 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16267 $as_echo X"$ac_file" |
16268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16269 s//\1/
16272 /^X\(\/\/\)[^/].*/{
16273 s//\1/
16276 /^X\(\/\/\)$/{
16277 s//\1/
16280 /^X\(\/\).*/{
16281 s//\1/
16284 s/.*/./; q'`
16285 as_dir="$ac_dir"; as_fn_mkdir_p
16286 ac_builddir=.
16288 case "$ac_dir" in
16289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16291 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16292 # A ".." for each directory in $ac_dir_suffix.
16293 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16294 case $ac_top_builddir_sub in
16295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16297 esac ;;
16298 esac
16299 ac_abs_top_builddir=$ac_pwd
16300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16301 # for backward compatibility:
16302 ac_top_builddir=$ac_top_build_prefix
16304 case $srcdir in
16305 .) # We are building in place.
16306 ac_srcdir=.
16307 ac_top_srcdir=$ac_top_builddir_sub
16308 ac_abs_top_srcdir=$ac_pwd ;;
16309 [\\/]* | ?:[\\/]* ) # Absolute name.
16310 ac_srcdir=$srcdir$ac_dir_suffix;
16311 ac_top_srcdir=$srcdir
16312 ac_abs_top_srcdir=$srcdir ;;
16313 *) # Relative name.
16314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16315 ac_top_srcdir=$ac_top_build_prefix$srcdir
16316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16317 esac
16318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16321 case $ac_mode in
16324 # CONFIG_FILE
16327 _ACEOF
16329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16330 # If the template does not know about datarootdir, expand it.
16331 # FIXME: This hack should be removed a few years after 2.60.
16332 ac_datarootdir_hack=; ac_datarootdir_seen=
16333 ac_sed_dataroot='
16334 /datarootdir/ {
16338 /@datadir@/p
16339 /@docdir@/p
16340 /@infodir@/p
16341 /@localedir@/p
16342 /@mandir@/p'
16343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16344 *datarootdir*) ac_datarootdir_seen=yes;;
16345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16348 _ACEOF
16349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16350 ac_datarootdir_hack='
16351 s&@datadir@&$datadir&g
16352 s&@docdir@&$docdir&g
16353 s&@infodir@&$infodir&g
16354 s&@localedir@&$localedir&g
16355 s&@mandir@&$mandir&g
16356 s&\\\${datarootdir}&$datarootdir&g' ;;
16357 esac
16358 _ACEOF
16360 # Neutralize VPATH when `$srcdir' = `.'.
16361 # Shell code in configure.ac might set extrasub.
16362 # FIXME: do we really want to maintain this feature?
16363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16364 ac_sed_extra="$ac_vpsub
16365 $extrasub
16366 _ACEOF
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16370 s|@configure_input@|$ac_sed_conf_input|;t t
16371 s&@top_builddir@&$ac_top_builddir_sub&;t t
16372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16373 s&@srcdir@&$ac_srcdir&;t t
16374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16375 s&@top_srcdir@&$ac_top_srcdir&;t t
16376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16377 s&@builddir@&$ac_builddir&;t t
16378 s&@abs_builddir@&$ac_abs_builddir&;t t
16379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16380 $ac_datarootdir_hack
16382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16390 which seems to be undefined. Please make sure it is defined" >&5
16391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16392 which seems to be undefined. Please make sure it is defined" >&2;}
16394 rm -f "$ac_tmp/stdin"
16395 case $ac_file in
16396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16398 esac \
16399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16403 # CONFIG_HEADER
16405 if test x"$ac_file" != x-; then
16407 $as_echo "/* $configure_input */" \
16408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16409 } >"$ac_tmp/config.h" \
16410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16414 else
16415 rm -f "$ac_file"
16416 mv "$ac_tmp/config.h" "$ac_file" \
16417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16419 else
16420 $as_echo "/* $configure_input */" \
16421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16422 || as_fn_error $? "could not create -" "$LINENO" 5
16426 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16427 $as_echo "$as_me: executing $ac_file commands" >&6;}
16429 esac
16432 case $ac_file$ac_mode in
16433 "genmf-executable-support":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
16434 "binutils-support":C)
16435 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16436 mkdir -p $prefix
16437 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16439 chmod a+x ${prefix2}-ld
16441 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
16442 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
16443 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
16444 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
16445 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
16446 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
16447 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
16449 "elf-compiler-support":C)
16450 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16451 mkdir -p $prefix
16452 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
16454 chmod a+x ${prefix2}-gcc
16456 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix2}-ld$aros_host_exe_suffix
16458 "host-compiler-wrapper-support":C)
16459 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
16460 mkdir -p $prefix
16461 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
16463 chmod a+x ${prefix2}-${toolchain_c_compiler} ${prefix2}-${toolchain_cxx_compiler} ${prefix2}-${toolchain_cpp_preprocessor}
16466 esac
16467 done # for ac_tag
16470 as_fn_exit 0
16471 _ACEOF
16472 ac_clean_files=$ac_clean_files_save
16474 test $ac_write_fail = 0 ||
16475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16478 # configure is writing to config.log, and then calls config.status.
16479 # config.status does its own redirection, appending to config.log.
16480 # Unfortunately, on DOS this fails, as config.log is still kept open
16481 # by configure, so config.status won't be able to write to it; its
16482 # output is simply discarded. So we exec the FD to /dev/null,
16483 # effectively closing config.log, so it can be properly (re)opened and
16484 # appended to by config.status. When coming back to configure, we
16485 # need to make the FD available again.
16486 if test "$no_create" != yes; then
16487 ac_cs_success=:
16488 ac_config_status_args=
16489 test "$silent" = yes &&
16490 ac_config_status_args="$ac_config_status_args --quiet"
16491 exec 5>/dev/null
16492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16493 exec 5>>config.log
16494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16495 # would make configure fail if this is the last instruction.
16496 $ac_cs_success || as_fn_exit 1
16498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16505 #XXX compatability...
16506 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
16508 if test -n "$aros_shared_cflags" ; then
16509 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
16510 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg