Added options to disable vbr move and copymem patches.
[AROS.git] / configure
blob1aa9203b6081e375c3c678d13819f399fe2de991
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 aros_cflags_format_security
638 aros_cflags_strict_overflow
639 aros_cflags_enum_compare
640 aros_cflags_array_bounds
641 aros_cflags_unused_but_set_variable
642 crosstools_cxx_target
643 crosstools_target
644 aros_target_strip_flags
645 aros_target_genmap
646 aros_debug_ldflags
647 aros_debug_aflags
648 aros_debug_cflags
649 aros_target_cflags
650 aros_kernel_ldflags
651 aros_kernel_objcflags
652 aros_kernel_includes
653 aros_kernel_cflags
654 aros_shared_ldflags
655 aros_shared_aflags
656 aros_shared_cflags
657 aros_config_ldflags
658 aros_config_aflags
659 aros_config_cflags
660 aros_arch_libs
661 aros_compiler_libs
662 aros_object_format
663 aros_shared_ld
664 aros_shared_default
665 aros_target_nm
666 aros_target_strip
667 aros_target_objcopy
668 aros_target_objdump
669 aros_target_cc_path
670 aros_target_cc_includes
671 aros_target_ld
672 aros_target_as
673 aros_target_cpp
674 aros_target_cxx
675 aros_target_cc
676 aros_plain_ar
677 aros_plain_nm
678 aros_target_ranlib
679 aros_target_ar
680 aros_target_suffix
681 aros_target_variant
682 aros_target_cpu
683 aros_target_family
684 aros_target_arch
685 aros_target_bootloader
686 aros_target_iconset
687 aros_target_guitheme
688 aros_tools_dir
689 aros_host_lib_suffix
690 aros_host_exe_suffix
691 aros_host_mkargs
692 aros_host_mkdep
693 aros_host_debug
694 aros_host_ldflags
695 gnu89_inline
696 aros_host_cxxflags
697 aros_host_cflags
698 aros_host_make
699 aros_host_cxx
700 aros_host_cc
701 aros_host_cpp
702 aros_host_cpu
703 aros_host_arch
704 aros_cc_pre
705 aros_amigaos_compliance
706 AROS_PORTSSRCDIR
707 AROS_CROSSTOOLSDIR
708 SRCDIR
709 AROS_BUILDDIR_UNIX
710 AROS_BUILDDIR
711 aros_target_toolchain
712 aros_flavour_uc
713 aros_flavour
714 aros_cpu
715 aros_arch
716 SDL_LIBS
717 SDL_CFLAGS
718 SDL_CONFIG
719 XMKMF
720 aros_cflags_iquote_end
721 aros_cflags_iquote
722 kernel_cflags_iquote_end
723 kernel_cflags_iquote
724 host_cflags_iquote_end
725 host_cflags_iquote
726 aros_target_nostdlib_ldflags
727 aros_target_detach_ldflags
728 aros_target_nix_ldflags
729 aros_target_nostartup_ldflags
730 aros_target_nostdinc_cflags
731 aros_kernel_rescomp
732 orig_target_objdump
733 orig_target_objcopy
734 orig_target_strip
735 orig_target_nm
736 orig_target_ranlib
737 orig_target_ar
738 orig_target_as
739 orig_target_ld
740 orig_target_cxx
741 orig_target_cc
742 orig_target_cpp
743 aros_kernel_objdump
744 aros_kernel_objcopy
745 aros_kernel_strip
746 aros_kernel_nm
747 aros_kernel_ranlib
748 aros_kernel_ar
749 aros_kernel_as
750 aros_kernel_ld
751 aros_kernel_cxx
752 aros_kernel_cc
753 aros_kernel_cpp
755 android_tool
756 CCACHE
757 DISTCC
758 LIBOBJS
759 EGREP
760 GREP
762 TEST
765 pkgpyexecdir
766 pyexecdir
767 pkgpythondir
768 pythondir
769 PYTHON_PLATFORM
770 PYTHON_EXEC_PREFIX
771 PYTHON_PREFIX
772 PYTHON_VERSION
773 PYTHON
774 PATCH
775 CHMOD
777 PPMTOILBM
778 PNGTOPNM
779 FLEX
780 BISON
783 UNIQ
784 SORT
785 TOUCH
786 MKDIR
787 ECHO
791 aros_host_strip
792 aros_host_ranlib
793 aros_host_ar
794 aros_host_automake
795 aros_host_autoheader
796 aros_host_autoconf
797 aros_host_aclocal
798 aros_host_ld
799 MMAKE
802 ac_ct_CXX
803 CXXFLAGS
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_build_type
862 enable_debug
863 enable_distcc
864 enable_ccache
865 with_gcc_version
866 with_optimization
867 with_paranoia
868 enable_target_variant
869 with_xcode
870 with_sdk_version
871 with_sdk
872 with_ndk
873 with_ndk_version
874 enable_amigaos_compliance
875 with_kernel_toolchain_prefix
876 with_elf_toolchain_prefix
877 with_aros_toolchain
878 enable_crosstools
879 with_aros_toolchain_install
880 with_cpu
881 with_fpu
882 with_float
883 with_aros_gcc
884 with_portssources
885 with_bootloader
886 with_iconset
887 with_theme
888 enable_includes
889 with_resolution
890 with_serial_debug
891 enable_palm_debug_hack
892 enable_nesting_supervisor
893 enable_mmu
894 enable_x11_hidd
895 with_x
896 enable_x11_shm
897 enable_x11_vidmode
898 enable_sdl_hidd
899 with_sdl_prefix
900 with_sdl_exec_prefix
901 enable_sdltest
902 enable_dbus
904 ac_precious_vars='build_alias
905 host_alias
906 target_alias
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
913 CXXFLAGS
916 PYTHON
917 XMKMF'
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
968 ac_prev=
969 ac_dashdash=
970 for ac_option
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
989 ac_dashdash=yes ;;
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 esac
1326 done
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used" >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383 test "$silent" = yes && exec 6>/dev/null
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1412 /^X\(\/\/\)$/{
1413 s//\1/
1416 /^X\(\/\).*/{
1417 s//\1/
1420 s/.*/./; q'`
1421 srcdir=$ac_confdir
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 srcdir=..
1425 else
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1515 cat <<\_ACEOF
1517 X features:
1518 --x-includes=DIR X include files are in DIR
1519 --x-libraries=DIR X library files are in DIR
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 _ACEOF
1527 if test -n "$ac_init_help"; then
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-build-type=TYPE
1536 Select the build type. Available types are:
1537 personal, nightly, snapshot, milestone, release. Do
1538 NOT use this option unless you know what you are
1539 doing! (default=personal)
1540 --enable-debug=list Enable different types of debug. Commas or
1541 whitespaces can be used to separate the items in the
1542 list. Available types of debug are: all, none,
1543 messages, stack, mungwall, modules, symbols. If no
1544 list is provided then "all" is assumed.
1545 (default=none)
1546 --enable-distcc Use distcc as a front end to the compiler
1547 (default=no).
1548 --enable-ccache Use ccache as a front end to the compiler
1549 (default=no).
1550 --enable-target-variant=NAME
1551 Enable a specific target variant(default=none)
1552 --enable-amigaos-compliance=VERSION
1553 Enforce userspace AmigaOS compliance to a specific
1554 KickStart version (default=none).
1555 --disable-crosstools Do not build cross-compiler toolchain
1556 --enable-includes=dir Alternative system include directory
1557 --enable-palm-debug-hack
1558 Enable palm debug output hack in palm native
1559 (default=no)
1560 --enable-nesting-supervisor
1561 Enable nesting supervisor support in unix
1562 (default=no)
1563 --disable-mmu Disable MMU support (default=enabled)
1564 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1565 --enable-x11-shm use X11 shared memory (default=auto)
1566 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1567 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1568 --disable-sdltest Do not try to compile and run a test SDL program
1569 --enable-dbus Enable DBUS support via dbus.library (default=no)
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-kernel-gcc-version=VERSION
1575 Use host gcc-VERSION for building AROS
1576 --with-gcc-version=VERSION
1577 Use host gcc-VERSION for building AROS
1578 --with-optimization=FLAGS
1579 Use optimization flags FLAGS (default=-O2).
1580 --with-paranoia=FLAGS CC flags to enable paranoia
1581 --with-xcode=PATH Specify XCode path for iOS targets
1582 (default=/Developer).
1583 --with-sdk-version=VERSION
1584 Use iOS SDK version VERSION (default=4.1).
1585 --with-sdk=PATH Specify Android SDK path
1586 (default=$default_android_sdk).
1587 --with-ndk=PATH Specify Android NDK path (default=none).
1588 --with-sdk-version=LEVEL
1589 Use Android SDK for API LEVEL (default=12).
1590 --with-ndk-version=LEVEL
1591 Use Android NDK for API LEVEL (default=9).
1592 --with-kernel-toolchain-prefix=...
1593 Specify crosscompile toolchain prefix for kernel
1594 objects
1595 --with-elf-toolchain-prefix=...
1596 Specify crosscompile toolchain prefix to wrap for
1597 AROS objects
1598 --with-aros-toolchain=PREFIX
1599 Specify prebuilt AROS toolchain
1600 --with-aros-toolchain-install=DIR
1601 Where to install or search for cross tools binaries
1602 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1603 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1604 --with-float=<spec> Specify floating point ABI
1605 (default=$gcc_default_float_abi).
1606 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1607 --with-portssources=DIR Where to download sourcecode for external ports
1608 --with-bootloader=NAME Use a specific bootloader
1609 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1610 --with-theme=NAME Use a specific GUI Theme
1611 --with-resolution=XRESxYRESxDEPTH
1612 Default resolution of the initial WorkbenchScreen
1613 --with-serial-debug Enable serial debug output in native (default=no)
1614 --with-x use the X Window System
1615 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1616 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1618 Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
1623 LIBS libraries to pass to the linker, e.g. -l<library>
1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CPP C preprocessor
1629 PYTHON the Python interpreter
1630 XMKMF Path to xmkmf, Makefile generator for X Window System
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.68
1701 Copyright (C) 2010 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_c_try_cpp LINENO
1789 # ----------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_cpp ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } > conftest.i && {
1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_cpp
1825 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828 # the include files in INCLUDES and setting the cache variable VAR
1829 # accordingly.
1830 ac_fn_c_check_header_mongrel ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if eval \${$3+:} false; then :
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 else
1843 # Is the header compilable?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845 $as_echo_n "checking $2 usability... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_header_compiler=yes
1853 else
1854 ac_header_compiler=no
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858 $as_echo "$ac_header_compiler" >&6; }
1860 # Is the header present?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862 $as_echo_n "checking $2 presence... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_cpp "$LINENO"; then :
1868 ac_header_preproc=yes
1869 else
1870 ac_header_preproc=no
1872 rm -f conftest.err conftest.i conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874 $as_echo "$ac_header_preproc" >&6; }
1876 # So? What about this header?
1877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 yes:no: )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 no:yes:* )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1888 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1892 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_header_mongrel
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1937 ac_status=$?
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_c_try_run
1954 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists and can be compiled using the include files in
1957 # INCLUDES, setting the cache variable VAR accordingly.
1958 ac_fn_c_check_header_compile ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_compile
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_c_try_link ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 $as_test_x conftest$ac_exeext
2013 }; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=1
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2029 } # ac_fn_c_try_link
2031 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2032 # ----------------------------------------------------
2033 # Tries to find if the field MEMBER exists in type AGGR, after including
2034 # INCLUDES, setting cache variable VAR accordingly.
2035 ac_fn_c_check_member ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2039 $as_echo_n "checking for $2.$3... " >&6; }
2040 if eval \${$4+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static $2 ac_aggr;
2050 if (ac_aggr.$3)
2051 return 0;
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$4=yes"
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static $2 ac_aggr;
2066 if (sizeof ac_aggr.$3)
2067 return 0;
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$4=yes"
2074 else
2075 eval "$4=no"
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$4
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_member
2088 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089 # ---------------------------------------------
2090 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_decl ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 as_decl_name=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 #ifndef $as_decl_name
2109 #ifdef __cplusplus
2110 (void) $as_decl_use;
2111 #else
2112 (void) $as_decl_name;
2113 #endif
2114 #endif
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_decl
2134 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2135 # -------------------------------------------
2136 # Tests whether TYPE exists after having included INCLUDES, setting cache
2137 # variable VAR accordingly.
2138 ac_fn_c_check_type ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 eval "$3=no"
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof ($2))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 if (sizeof (($2)))
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2174 else
2175 eval "$3=yes"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_type
2188 # ac_fn_c_check_func LINENO FUNC VAR
2189 # ----------------------------------
2190 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2191 ac_fn_c_check_func ()
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2203 #define $2 innocuous_$2
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $2 (); below.
2207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2208 <limits.h> exists even on freestanding compilers. */
2210 #ifdef __STDC__
2211 # include <limits.h>
2212 #else
2213 # include <assert.h>
2214 #endif
2216 #undef $2
2218 /* Override any GCC internal prototype to avoid an error.
2219 Use char because int might match the return type of a GCC
2220 builtin and then its argument prototype would still apply. */
2221 #ifdef __cplusplus
2222 extern "C"
2223 #endif
2224 char $2 ();
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined __stub_$2 || defined __stub___$2
2229 choke me
2230 #endif
2233 main ()
2235 return $2 ();
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_link "$LINENO"; then :
2241 eval "$3=yes"
2242 else
2243 eval "$3=no"
2245 rm -f core conftest.err conftest.$ac_objext \
2246 conftest$ac_exeext conftest.$ac_ext
2248 eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_func
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by $as_me, which was
2259 generated by GNU Autoconf 2.68. Invocation command line was
2261 $ $0 $@
2263 _ACEOF
2264 exec 5>>config.log
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288 _ASUNAME
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2299 } >&5
2301 cat >&5 <<_ACEOF
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2308 _ACEOF
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2322 for ac_arg
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2351 as_fn_append ac_configure_args " '$ac_arg'"
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2367 echo
2369 $as_echo "## ---------------- ##
2370 ## Cache variables. ##
2371 ## ---------------- ##"
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
2390 (set) 2>&1 |
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2393 sed -n \
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 esac |
2401 sort
2403 echo
2405 $as_echo "## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##"
2408 echo
2409 for ac_var in $ac_subst_vars
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2419 if test -n "$ac_subst_files"; then
2420 $as_echo "## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##"
2423 echo
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2427 case $ac_val in
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 esac
2430 $as_echo "$ac_var='\''$ac_val'\''"
2431 done | sort
2432 echo
2435 if test -s confdefs.h; then
2436 $as_echo "## ----------- ##
2437 ## confdefs.h. ##
2438 ## ----------- ##"
2439 echo
2440 cat confdefs.h
2441 echo
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2446 } >&5
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 exit $exit_status
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 done
2454 ac_signal=0
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2459 $as_echo "/* confdefs.h */" > confdefs.h
2461 # Predefined preprocessor variables.
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2485 _ACEOF
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 ac_site_file1=NONE
2491 ac_site_file2=NONE
2492 if test -n "$CONFIG_SITE"; then
2493 # We do not want a PATH search for config.site.
2494 case $CONFIG_SITE in #((
2495 -*) ac_site_file1=./$CONFIG_SITE;;
2496 */*) ac_site_file1=$CONFIG_SITE;;
2497 *) ac_site_file1=./$CONFIG_SITE;;
2498 esac
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502 else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE && continue
2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file" \
2514 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error $? "failed to load site script $ac_site_file
2517 See \`config.log' for more details" "$LINENO" 5; }
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special files
2523 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2524 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " stdlib.h"
2539 as_fn_append ac_header_list " unistd.h"
2540 as_fn_append ac_header_list " sys/param.h"
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 ac_aux_dir=
2611 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2612 if test -f "$ac_dir/install-sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install-sh -c"
2615 break
2616 elif test -f "$ac_dir/install.sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2619 break
2620 elif test -f "$ac_dir/shtool"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 break
2625 done
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 # Check what host we are running on.
2641 # If a target is not suggested, we use this one.
2642 # Note that what we call a target, Autoconf calls a host.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if ${ac_cv_build+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2666 esac
2667 build=$ac_cv_build
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_build
2670 shift
2671 build_cpu=$1
2672 build_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 build_os=$*
2677 IFS=$ac_save_IFS
2678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if ${ac_cv_host+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test "x$host_alias" = x; then
2687 ac_cv_host=$ac_cv_build
2688 else
2689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2699 esac
2700 host=$ac_cv_host
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_host
2703 shift
2704 host_cpu=$1
2705 host_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 host_os=$*
2710 IFS=$ac_save_IFS
2711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2715 # The AROS target is slightly different to the normal GNU style
2716 # format. We don't have the middle part, and we reverse the order
2717 # of the $(CPU) and $(OS) bits.
2719 # Don't strip the version of the target yet, it might be
2720 # useful on some systems.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2723 $as_echo_n "checking for AROS style target... " >&6; }
2725 if test "$target" = "NONE" ; then
2726 target=$host_os-$host_cpu
2727 else
2728 if test "$target" = "" ; then
2729 target=$host_os-$host_cpu
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2733 $as_echo "$target" >&6; }
2735 if test "$host_os" = "mingw32" ; then
2736 PWDCMD="pwd -W"
2739 # Don't know where else to put this...
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2741 $as_echo_n "checking building AROS in... " >&6; }
2742 AROS_BUILDDIR=`${PWDCMD-pwd}`
2743 AROS_BUILDDIR_UNIX=${PWD}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2745 $as_echo "$AROS_BUILDDIR" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2748 $as_echo_n "checking AROS source in... " >&6; }
2749 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2750 SRCDIR=${srcpwd}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2752 $as_echo "$SRCDIR" >&6; }
2754 # Parse the target field into something useful.
2756 target_os=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2757 target_cpu=`echo $target | sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2760 # Some debug output, to be removed again.
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2762 $as_echo_n "checking for target system (debug output)... " >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2764 $as_echo "$target_os" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2766 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2768 $as_echo "$target_cpu" >&6; }
2770 aros_default_wbwidth=800
2771 aros_default_wbheight=600
2772 aros_default_wbdepth=4
2775 # The first step is to find the host binaries.
2776 # Check for a compiler.
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2804 done
2805 done
2806 IFS=$as_save_IFS
2810 CC=$ac_cv_prog_CC
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_CC"; then
2822 ac_ct_CC=$CC
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 CC=$ac_ct_CC
2870 else
2871 CC="$ac_cv_prog_CC"
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CC="${ac_tool_prefix}cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2915 if test -z "$CC"; then
2916 # Extract the first word of "cc", so it can be a program name with args.
2917 set dummy cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 ac_prog_rejected=no
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935 ac_prog_rejected=yes
2936 continue
2938 ac_cv_prog_CC="cc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2946 if test $ac_prog_rejected = yes; then
2947 # We found a bogon in the path, so make sure we never use it.
2948 set dummy $ac_cv_prog_CC
2949 shift
2950 if test $# != 0; then
2951 # We chose a different compiler from the bogus one.
2952 # However, it has the same basename, so the bogon will be chosen
2953 # first if we set CC to just the basename; use the full file name.
2954 shift
2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$CC" && break
3013 done
3015 if test -z "$CC"; then
3016 ac_ct_CC=$CC
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CC="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$ac_ct_CC" && break
3057 done
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "no acceptable C compiler found in \$PATH
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082 set X $ac_compile
3083 ac_compiler=$2
3084 for ac_option in --version -v -V -qversion; do
3085 { { ac_try="$ac_compiler $ac_option >&5"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093 ac_status=$?
3094 if test -s conftest.err; then
3095 sed '10a\
3096 ... rest of stderr output deleted ...
3097 10q' conftest.err >conftest.er1
3098 cat conftest.er1 >&5
3100 rm -f conftest.er1 conftest.err
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }
3103 done
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 ac_clean_files_save=$ac_clean_files
3117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118 # Try to create an executable without -o first, disregard a.out.
3119 # It will help us diagnose broken compilers, and finding out an intuition
3120 # of exeext.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122 $as_echo_n "checking whether the C compiler works... " >&6; }
3123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125 # The possible output files:
3126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 ac_rmfiles=
3129 for ac_file in $ac_files
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3134 esac
3135 done
3136 rm -f $ac_rmfiles
3138 if { { ac_try="$ac_link_default"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link_default") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3152 # so that the user can short-circuit this test for compilers unknown to
3153 # Autoconf.
3154 for ac_file in $ac_files ''
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 [ab].out )
3161 # We found the default executable, but exeext='' is most
3162 # certainly right.
3163 break;;
3164 *.* )
3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166 then :; else
3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 # We set ac_cv_exeext here because the later test for it is not
3170 # safe: cross compilers may not add the suffix if given an `-o'
3171 # argument, so we may need to know it at that point already.
3172 # Even if this section looks crufty: it has the advantage of
3173 # actually working.
3174 break;;
3176 break;;
3177 esac
3178 done
3179 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181 else
3182 ac_file=''
3184 if test -z "$ac_file"; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error 77 "C compiler cannot create executables
3193 See \`config.log' for more details" "$LINENO" 5; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 break;;
3229 * ) break;;
3230 esac
3231 done
3232 else
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3244 ac_exeext=$EXEEXT
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247 #include <stdio.h>
3249 main ()
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3255 return 0;
3257 _ACEOF
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if ${ac_cv_objext+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 main ()
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 break;;
3338 esac
3339 done
3340 else
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3354 ac_objext=$OBJEXT
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if ${ac_cv_c_compiler_gnu+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3366 #ifndef __GNUC__
3367 choke me
3368 #endif
3371 return 0;
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_compiler_gnu=yes
3376 else
3377 ac_compiler_gnu=no
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3386 GCC=yes
3387 else
3388 GCC=
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if ${ac_cv_prog_cc_g+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_g=yes
3414 else
3415 CFLAGS=""
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 main ()
3424 return 0;
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3429 else
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3431 CFLAGS="-g"
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_g=yes
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3459 CFLAGS="-g -O2"
3460 else
3461 CFLAGS="-g"
3463 else
3464 if test "$GCC" = yes; then
3465 CFLAGS="-O2"
3466 else
3467 CFLAGS=
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if ${ac_cv_prog_cc_c89+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <stdarg.h>
3480 #include <stdio.h>
3481 #include <sys/types.h>
3482 #include <sys/stat.h>
3483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484 struct buf { int x; };
3485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486 static char *e (p, i)
3487 char **p;
3488 int i;
3490 return p[i];
3492 static char *f (char * (*g) (char **, int), char **p, ...)
3494 char *s;
3495 va_list v;
3496 va_start (v,p);
3497 s = g (p, va_arg (v,int));
3498 va_end (v);
3499 return s;
3502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
3505 as 'x'. The following induces an error, until -std is added to get
3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
3508 that's true only with -std. */
3509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3513 #define FOO(x) 'x'
3514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516 int test (int i, double x);
3517 struct s1 {int (*f) (int a);};
3518 struct s2 {int (*f) (double a);};
3519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520 int argc;
3521 char **argv;
3523 main ()
3525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 return 0;
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 CC="$ac_save_CC $ac_arg"
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_prog_cc_c89=$ac_arg
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 $as_echo "none needed" >&6; } ;;
3549 xno)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3551 $as_echo "unsupported" >&6; } ;;
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3557 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 case $ac_cv_prog_cc_stdc in #(
3568 no) :
3569 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3570 *) :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3573 if ${ac_cv_prog_cc_c99+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_cv_prog_cc_c99=no
3577 ac_save_CC=$CC
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdbool.h>
3582 #include <stdlib.h>
3583 #include <wchar.h>
3584 #include <stdio.h>
3586 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3587 #define debug(...) fprintf (stderr, __VA_ARGS__)
3588 #define showlist(...) puts (#__VA_ARGS__)
3589 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3590 static void
3591 test_varargs_macros (void)
3593 int x = 1234;
3594 int y = 5678;
3595 debug ("Flag");
3596 debug ("X = %d\n", x);
3597 showlist (The first, second, and third items.);
3598 report (x>y, "x is %d but y is %d", x, y);
3601 // Check long long types.
3602 #define BIG64 18446744073709551615ull
3603 #define BIG32 4294967295ul
3604 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3605 #if !BIG_OK
3606 your preprocessor is broken;
3607 #endif
3608 #if BIG_OK
3609 #else
3610 your preprocessor is broken;
3611 #endif
3612 static long long int bignum = -9223372036854775807LL;
3613 static unsigned long long int ubignum = BIG64;
3615 struct incomplete_array
3617 int datasize;
3618 double data[];
3621 struct named_init {
3622 int number;
3623 const wchar_t *name;
3624 double average;
3627 typedef const char *ccp;
3629 static inline int
3630 test_restrict (ccp restrict text)
3632 // See if C++-style comments work.
3633 // Iterate through items via the restricted pointer.
3634 // Also check for declarations in for loops.
3635 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3636 continue;
3637 return 0;
3640 // Check varargs and va_copy.
3641 static void
3642 test_varargs (const char *format, ...)
3644 va_list args;
3645 va_start (args, format);
3646 va_list args_copy;
3647 va_copy (args_copy, args);
3649 const char *str;
3650 int number;
3651 float fnumber;
3653 while (*format)
3655 switch (*format++)
3657 case 's': // string
3658 str = va_arg (args_copy, const char *);
3659 break;
3660 case 'd': // int
3661 number = va_arg (args_copy, int);
3662 break;
3663 case 'f': // float
3664 fnumber = va_arg (args_copy, double);
3665 break;
3666 default:
3667 break;
3670 va_end (args_copy);
3671 va_end (args);
3675 main ()
3678 // Check bool.
3679 _Bool success = false;
3681 // Check restrict.
3682 if (test_restrict ("String literal") == 0)
3683 success = true;
3684 char *restrict newvar = "Another string";
3686 // Check varargs.
3687 test_varargs ("s, d' f .", "string", 65, 34.234);
3688 test_varargs_macros ();
3690 // Check flexible array members.
3691 struct incomplete_array *ia =
3692 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3693 ia->datasize = 10;
3694 for (int i = 0; i < ia->datasize; ++i)
3695 ia->data[i] = i * 1.234;
3697 // Check named initializers.
3698 struct named_init ni = {
3699 .number = 34,
3700 .name = L"Test wide string",
3701 .average = 543.34343,
3704 ni.number = 58;
3706 int dynamic_array[ni.number];
3707 dynamic_array[ni.number - 1] = 543;
3709 // work around unused variable warnings
3710 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3711 || dynamic_array[ni.number - 1] != 543);
3714 return 0;
3716 _ACEOF
3717 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3719 CC="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_c99=$ac_arg
3723 rm -f core conftest.err conftest.$ac_objext
3724 test "x$ac_cv_prog_cc_c99" != "xno" && break
3725 done
3726 rm -f conftest.$ac_ext
3727 CC=$ac_save_CC
3730 # AC_CACHE_VAL
3731 case "x$ac_cv_prog_cc_c99" in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 $as_echo "none needed" >&6; } ;;
3735 xno)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737 $as_echo "unsupported" >&6; } ;;
3739 CC="$CC $ac_cv_prog_cc_c99"
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3741 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3742 esac
3743 if test "x$ac_cv_prog_cc_c99" != xno; then :
3744 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3748 if ${ac_cv_prog_cc_c89+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdio.h>
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3763 char **p;
3764 int i;
3766 return p[i];
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3770 char *s;
3771 va_list v;
3772 va_start (v,p);
3773 s = g (p, va_arg (v,int));
3774 va_end (v);
3775 return s;
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3789 #define FOO(x) 'x'
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3796 int argc;
3797 char **argv;
3799 main ()
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 return 0;
3805 _ACEOF
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 CC="$ac_save_CC $ac_arg"
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_c89=$ac_arg
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3815 done
3816 rm -f conftest.$ac_ext
3817 CC=$ac_save_CC
3820 # AC_CACHE_VAL
3821 case "x$ac_cv_prog_cc_c89" in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3825 xno)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3832 esac
3833 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3835 else
3836 ac_cv_prog_cc_stdc=no
3841 esac
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3843 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3844 if ${ac_cv_prog_cc_stdc+:} false; then :
3845 $as_echo_n "(cached) " >&6
3848 case $ac_cv_prog_cc_stdc in #(
3849 no) :
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;; #(
3852 '') :
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;; #(
3855 *) :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3857 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3858 esac
3860 ac_ext=cpp
3861 ac_cpp='$CXXCPP $CPPFLAGS'
3862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865 if test -z "$CXX"; then
3866 if test -n "$CCC"; then
3867 CXX=$CCC
3868 else
3869 if test -n "$ac_tool_prefix"; then
3870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CXX+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CXX"; then
3880 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3895 IFS=$as_save_IFS
3899 CXX=$ac_cv_prog_CXX
3900 if test -n "$CXX"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3902 $as_echo "$CXX" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$CXX" && break
3910 done
3912 if test -z "$CXX"; then
3913 ac_ct_CXX=$CXX
3914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$ac_ct_CXX"; then
3924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_prog_ac_ct_CXX="$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3939 IFS=$as_save_IFS
3943 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3944 if test -n "$ac_ct_CXX"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3946 $as_echo "$ac_ct_CXX" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 test -n "$ac_ct_CXX" && break
3954 done
3956 if test "x$ac_ct_CXX" = x; then
3957 CXX="g++"
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CXX=$ac_ct_CXX
3971 # Provide some information about the compiler.
3972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3973 set X $ac_compile
3974 ac_compiler=$2
3975 for ac_option in --version -v -V -qversion; do
3976 { { ac_try="$ac_compiler $ac_option >&5"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3984 ac_status=$?
3985 if test -s conftest.err; then
3986 sed '10a\
3987 ... rest of stderr output deleted ...
3988 10q' conftest.err >conftest.er1
3989 cat conftest.er1 >&5
3991 rm -f conftest.er1 conftest.err
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 done
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3997 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3998 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 main ()
4007 #ifndef __GNUC__
4008 choke me
4009 #endif
4012 return 0;
4014 _ACEOF
4015 if ac_fn_cxx_try_compile "$LINENO"; then :
4016 ac_compiler_gnu=yes
4017 else
4018 ac_compiler_gnu=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4025 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4026 if test $ac_compiler_gnu = yes; then
4027 GXX=yes
4028 else
4029 GXX=
4031 ac_test_CXXFLAGS=${CXXFLAGS+set}
4032 ac_save_CXXFLAGS=$CXXFLAGS
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4034 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4035 if ${ac_cv_prog_cxx_g+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4039 ac_cxx_werror_flag=yes
4040 ac_cv_prog_cxx_g=no
4041 CXXFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4046 main ()
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4054 ac_cv_prog_cxx_g=yes
4055 else
4056 CXXFLAGS=""
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_cxx_try_compile "$LINENO"; then :
4070 else
4071 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4072 CXXFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 if ac_fn_cxx_try_compile "$LINENO"; then :
4085 ac_cv_prog_cxx_g=yes
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4095 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4096 if test "$ac_test_CXXFLAGS" = set; then
4097 CXXFLAGS=$ac_save_CXXFLAGS
4098 elif test $ac_cv_prog_cxx_g = yes; then
4099 if test "$GXX" = yes; then
4100 CXXFLAGS="-g -O2"
4101 else
4102 CXXFLAGS="-g"
4104 else
4105 if test "$GXX" = yes; then
4106 CXXFLAGS="-O2"
4107 else
4108 CXXFLAGS=
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4124 # On Suns, sometimes $CPP names a directory.
4125 if test -n "$CPP" && test -d "$CPP"; then
4126 CPP=
4128 if test -z "$CPP"; then
4129 if ${ac_cv_prog_CPP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 # Double quotes because CPP needs to be expanded
4133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4135 ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4155 else
4156 # Broken: fails on valid input.
4157 continue
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: success on invalid input.
4169 continue
4170 else
4171 # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.i conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then :
4181 break
4184 done
4185 ac_cv_prog_CPP=$CPP
4188 CPP=$ac_cv_prog_CPP
4189 else
4190 ac_cv_prog_CPP=$CPP
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4193 $as_echo "$CPP" >&6; }
4194 ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #ifdef __STDC__
4206 # include <limits.h>
4207 #else
4208 # include <assert.h>
4209 #endif
4210 Syntax error
4211 _ACEOF
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4214 else
4215 # Broken: fails on valid input.
4216 continue
4218 rm -f conftest.err conftest.i conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <ac_nonexistent.h>
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4228 continue
4229 else
4230 # Passes both tests.
4231 ac_preproc_ok=:
4232 break
4234 rm -f conftest.err conftest.i conftest.$ac_ext
4236 done
4237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238 rm -f conftest.i conftest.err conftest.$ac_ext
4239 if $ac_preproc_ok; then :
4241 else
4242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4245 See \`config.log' for more details" "$LINENO" 5; }
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 # Check for a compatible awk
4256 for ac_prog in gawk nawk
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_AWK+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$AWK"; then
4266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_AWK="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 AWK=$ac_cv_prog_AWK
4286 if test -n "$AWK"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4288 $as_echo "$AWK" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$AWK" && break
4296 done
4298 if test "$AWK" = ""; then
4299 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4301 # Extract the first word of "mmake", so it can be a program name with args.
4302 set dummy mmake; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_MMAKE+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$MMAKE"; then
4309 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_MMAKE="mmake "
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 MMAKE=$ac_cv_prog_MMAKE
4329 if test -n "$MMAKE"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4331 $as_echo "$MMAKE" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4339 # Perform some default variable assignments. Note all of these will be
4340 # Regenerated from the script, so there is no need to cache them.
4342 aros_host_cpp="$CPP"
4343 aros_host_cc="$CC"
4344 aros_host_cxx="$CXX"
4345 if test "$GCC" = "yes"; then
4346 aros_gcc_ld=`$CC -print-prog-name=ld`
4347 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4348 set dummy `basename $aros_gcc_ld`; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_path_aros_host_ld+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 case $aros_host_ld in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in `dirname $aros_gcc_ld`
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4375 esac
4377 aros_host_ld=$ac_cv_path_aros_host_ld
4378 if test -n "$aros_host_ld"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4380 $as_echo "$aros_host_ld" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4388 if test "$aros_host_ld" = ""; then
4389 # Extract the first word of "ld", so it can be a program name with args.
4390 set dummy ld; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_aros_host_ld+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 case $aros_host_ld in
4397 [\\/]* | ?:[\\/]*)
4398 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4417 esac
4419 aros_host_ld=$ac_cv_path_aros_host_ld
4420 if test -n "$aros_host_ld"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4422 $as_echo "$aros_host_ld" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4430 if test "$aros_host_ld" = ""; then
4431 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4433 aros_host_make="make"
4434 aros_host_cflags=$CFLAGS
4435 aros_host_cxxflags=$CXXFLAGS
4436 aros_host_ldflags=$LDFLAGS
4437 aros_host_debug="-g -O0"
4438 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4439 aros_host_mkargs="--no-print-directory"
4440 aros_host_exe_suffix="$EXEEXT"
4441 aros_host_lib_suffix=""
4443 # Ignore all compliance, AROS ROMs = 0
4444 # KickStart v1.0 = 30
4445 # KickStart v1.3 = 34
4446 # KickStart v2.0 = 37
4447 # KickStart v3.0 = 39
4448 # KickStart v3.1 = 40
4449 # AmigaOS v3.5 = 44
4450 aros_amigaos_compliance=0
4452 for ac_prog in aclocal aclocal19 aclocal-1.9
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$aros_host_aclocal"; then
4462 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_aros_host_aclocal="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4482 if test -n "$aros_host_aclocal"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4484 $as_echo "$aros_host_aclocal" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$aros_host_aclocal" && break
4492 done
4494 for ac_prog in autoconf autoconf259 autoconf253
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$aros_host_autoconf"; then
4504 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_aros_host_autoconf="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4524 if test -n "$aros_host_autoconf"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4526 $as_echo "$aros_host_autoconf" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$aros_host_autoconf" && break
4534 done
4536 for ac_prog in autoheader autoheader259 autoheader253
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$aros_host_autoheader"; then
4546 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_aros_host_autoheader="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4566 if test -n "$aros_host_autoheader"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4568 $as_echo "$aros_host_autoheader" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$aros_host_autoheader" && break
4576 done
4578 for ac_prog in automake automake19 automake-1.9
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_aros_host_automake+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$aros_host_automake"; then
4588 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_aros_host_automake="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 aros_host_automake=$ac_cv_prog_aros_host_automake
4608 if test -n "$aros_host_automake"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4610 $as_echo "$aros_host_automake" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$aros_host_automake" && break
4618 done
4621 if test "$aros_host_aclocal" = ""; then
4622 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 if test "$aros_host_automake" = ""; then
4625 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4628 case "$aros_host_cc" in
4629 *gcc*)
4630 aros_host_cc_pipe="-pipe"
4632 icc)
4633 aros_host_cc_pipe=""
4636 aros_host_cc_pipe=""
4638 esac
4640 aros_kernel_cc_includes=""
4641 aros_target_cc_includes=""
4642 host_cc_elf=yes
4644 # ----------------------------------------------------------------------------------------
4645 # Host-specific defaults
4647 # This is the main host configuration section. It is where the host
4648 # can change the values of any variables it needs to change. We do
4649 # not look at anything that compiles to the target yet, we'll get
4650 # to that later.
4652 case "$host_os" in
4653 aros*)
4654 aros_host_arch="aros"
4655 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4656 case "$host_cpu" in
4657 *i?86*)
4658 aros_host_cpu="i386"
4660 *x86_64*)
4661 aros_host_cpu="x86_64"
4663 *powerpc*)
4664 aros_host_cpu="ppc"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4668 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4669 aros_host_cpu="$host_cpu"
4671 esac
4674 linux*)
4675 aros_host_arch="linux"
4676 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4677 android_build_os="linux-x86"
4678 android_tool="android"
4679 default_android_sdk="/opt/android-sdk-linux_x86"
4680 case "$host_cpu" in
4681 *i?86*)
4682 aros_host_cpu="i386"
4684 *x86_64*)
4685 aros_host_cpu="x86_64"
4687 *m68k*)
4688 aros_host_cpu="m68k"
4690 *powerpc*)
4691 aros_host_cpu="ppc"
4693 *arm*)
4694 aros_host_cpu="arm"
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4698 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4699 aros_host_cpu="$host_cpu"
4701 esac
4704 freebsd*)
4705 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4706 aros_host_make="gmake"
4707 aros_host_arch="freebsd"
4708 aros_host_cpu="i386"
4710 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4712 case $host_os in
4713 freebsd[234]*)
4714 aros_object_format="elf_i386"
4718 aros_object_format="elf_i386_fbsd"
4720 esac
4724 darwin*)
4725 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4726 aros_host_arch="darwin"
4727 host_cc_elf=no
4728 android_build_os="darwin-x86"
4729 android_tool="android"
4730 default_android_sdk="/android-sdk-mac_x86"
4731 case "$host_cpu" in
4732 *i?86*)
4733 aros_host_cpu="i386"
4735 *x86_64*)
4736 aros_host_cpu="x86_64"
4738 *powerpc*)
4739 aros_host_cpu="ppc"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4743 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4744 aros_host_cpu="$host_cpu"
4746 esac
4748 aros_host_ldflags="$aros_host_ldflags -liconv"
4752 dragonfly*)
4753 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4754 aros_host_make="gmake"
4755 aros_host_arch="dragonfly"
4756 case $host_cpu in
4757 *i?86*)
4758 aros_host_cpu="i386"
4760 *amd64*)
4761 aros_host_cpu="x86_64"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4765 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4766 aros_host_cpu="$host_cpu"
4768 esac
4771 netbsd*)
4772 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4773 aros_host_make="gmake"
4774 aros_host_arch="netbsd"
4775 case "$host_cpu" in
4776 *i?86*)
4777 aros_host_cpu="i386"
4779 *m68k*)
4780 aros_host_cpu="m68k"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu="$host_cpu"
4787 esac
4788 aros_host_lib_suffix=".0.0"
4791 openbsd*)
4792 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4793 aros_host_make="gmake"
4794 aros_host_arch="openbsd"
4795 case "$host_cpu" in
4796 *i?86*)
4797 aros_host_cpu="i386"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4801 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4802 aros_host_cpu="$host_cpu"
4804 esac
4807 solaris*)
4808 aros_host_arch="solaris"
4809 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4810 case "$host_cpu" in
4811 *i?86*)
4812 aros_host_cpu="i386"
4814 *sparc*)
4815 aros_host_cpu="sparc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 morphos*)
4826 aros_host_arch="morphos"
4827 aros_host_cpu="ppc"
4828 host_cc_elf=no
4831 amiga*)
4832 aros_host_arch="amiga"
4833 host_cc_elf=no
4834 SORT="/gg/bin/sort"
4835 TEST="/gg/bin/test"
4836 UNIQ="/gg/bin/uniq"
4837 FOR="for"
4838 TOUCH="/gg/bin/touch"
4839 case "$host_cpu" in
4840 *m68k*)
4841 aros_host_cpu="m68k"
4843 *powerpc*)
4844 aros_host_cpu="ppc"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4848 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4849 aros_host_cpu="$host_cpu"
4851 esac
4854 cygwin*)
4855 aros_host_arch="cygwin"
4856 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4857 host_cc_elf=no
4858 android_build_os="windows"
4859 android_tool="android.bat"
4860 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4862 case "$host_cpu" in
4863 *i?86*)
4864 aros_host_cpu="i386"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4868 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4869 aros_host_cpu="$host_cpu"
4871 esac
4874 mingw32*)
4875 aros_host_arch="mingw32"
4876 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4877 host_cc_elf=no
4878 android_build_os="windows"
4879 android_tool="android.bat"
4880 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4882 case "$host_cpu" in
4883 *i?86*)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4886 $as_echo_n "checking for Windows native gcc target... " >&6; }
4887 host_cpu=`gcc -dumpmachine`
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4889 $as_echo "$host_cpu" >&6; }
4892 esac
4894 case "$host_cpu" in
4895 *i?86*)
4896 aros_host_cpu="i386"
4899 mingw32*)
4900 aros_host_cpu="i386"
4903 *x86_64*)
4904 aros_host_cpu="x86_64"
4905 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4910 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4911 aros_host_cpu="$host_cpu"
4913 esac
4916 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4918 esac
4920 # Extract the first word of "ar", so it can be a program name with args.
4921 set dummy ar; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_aros_host_ar+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$aros_host_ar"; then
4928 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_aros_host_ar="ar cr"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4941 done
4942 done
4943 IFS=$as_save_IFS
4947 aros_host_ar=$ac_cv_prog_aros_host_ar
4948 if test -n "$aros_host_ar"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4950 $as_echo "$aros_host_ar" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 if test "$aros_host_ar" = ""; then
4958 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4960 # Extract the first word of "ranlib", so it can be a program name with args.
4961 set dummy ranlib; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$aros_host_ranlib"; then
4968 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_aros_host_ranlib="ranlib "
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4988 if test -n "$aros_host_ranlib"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4990 $as_echo "$aros_host_ranlib" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4997 if test "$aros_host_ranlib" = ""; then
4998 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
5000 # Extract the first word of "strip", so it can be a program name with args.
5001 set dummy strip; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_aros_host_strip+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$aros_host_strip"; then
5008 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_aros_host_strip="strip "
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 aros_host_strip=$ac_cv_prog_aros_host_strip
5028 if test -n "$aros_host_strip"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5030 $as_echo "$aros_host_strip" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 if test "$aros_host_strip" = ""; then
5038 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "rm", so it can be a program name with args.
5042 set dummy rm; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_RM+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$RM"; then
5049 ac_cv_prog_RM="$RM" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RM="rm -rf"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 RM=$ac_cv_prog_RM
5069 if test -n "$RM"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5071 $as_echo "$RM" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 if test "$RM" = ""; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 if test "$CP" = ""; then
5119 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5121 # Extract the first word of "mv", so it can be a program name with args.
5122 set dummy mv; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_MV+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$MV"; then
5129 ac_cv_prog_MV="$MV" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_MV="mv "
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 MV=$ac_cv_prog_MV
5149 if test -n "$MV"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5151 $as_echo "$MV" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 if test "$MV" = ""; then
5159 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5161 # Extract the first word of "echo", so it can be a program name with args.
5162 set dummy echo; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_ECHO+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ECHO"; then
5169 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ECHO="echo "
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 ECHO=$ac_cv_prog_ECHO
5189 if test -n "$ECHO"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5191 $as_echo "$ECHO" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 if test "$ECHO" = ""; then
5199 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5201 # Extract the first word of "mkdir", so it can be a program name with args.
5202 set dummy mkdir; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_MKDIR+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$MKDIR"; then
5209 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_MKDIR="mkdir -p"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 MKDIR=$ac_cv_prog_MKDIR
5229 if test -n "$MKDIR"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5231 $as_echo "$MKDIR" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 if test "$MKDIR" = ""; then
5239 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5241 # Extract the first word of "touch", so it can be a program name with args.
5242 set dummy touch; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_TOUCH+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$TOUCH"; then
5249 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_TOUCH="touch "
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 TOUCH=$ac_cv_prog_TOUCH
5269 if test -n "$TOUCH"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5271 $as_echo "$TOUCH" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 if test "$TOUCH" = ""; then
5279 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5281 # Extract the first word of "sort", so it can be a program name with args.
5282 set dummy sort; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_SORT+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$SORT"; then
5289 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_SORT="sort "
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 SORT=$ac_cv_prog_SORT
5309 if test -n "$SORT"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5311 $as_echo "$SORT" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 if test "$SORT" = ""; then
5319 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5321 # Extract the first word of "uniq", so it can be a program name with args.
5322 set dummy uniq; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_UNIQ+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$UNIQ"; then
5329 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_UNIQ="uniq "
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 UNIQ=$ac_cv_prog_UNIQ
5349 if test -n "$UNIQ"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5351 $as_echo "$UNIQ" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 if test "$UNIQ" = ""; then
5359 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5361 # Extract the first word of "true", so it can be a program name with args.
5362 set dummy true; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_NOP+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$NOP"; then
5369 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_NOP="true "
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 NOP=$ac_cv_prog_NOP
5389 if test -n "$NOP"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5391 $as_echo "$NOP" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 if test "$NOP" = ""; then
5399 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5401 # Extract the first word of "cat", so it can be a program name with args.
5402 set dummy cat; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_CAT+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$CAT"; then
5409 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_CAT="cat "
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 CAT=$ac_cv_prog_CAT
5429 if test -n "$CAT"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5431 $as_echo "$CAT" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "$CAT" = ""; then
5439 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5441 # Extract the first word of "bison", so it can be a program name with args.
5442 set dummy bison; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_BISON+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$BISON"; then
5449 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_BISON="bison "
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5468 BISON=$ac_cv_prog_BISON
5469 if test -n "$BISON"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5471 $as_echo "$BISON" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 if test "$BISON" = ""; then
5479 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5481 # Extract the first word of "flex", so it can be a program name with args.
5482 set dummy flex; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_FLEX+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$FLEX"; then
5489 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_FLEX="flex "
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 FLEX=$ac_cv_prog_FLEX
5509 if test -n "$FLEX"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5511 $as_echo "$FLEX" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$FLEX" = ""; then
5519 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5521 # Extract the first word of "pngtopnm", so it can be a program name with args.
5522 set dummy pngtopnm; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$PNGTOPNM"; then
5529 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_PNGTOPNM="pngtopnm "
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5549 if test -n "$PNGTOPNM"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5551 $as_echo "$PNGTOPNM" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 if test "$PNGTOPNM" = ""; then
5559 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5561 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5562 set dummy ppmtoilbm; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$PPMTOILBM"; then
5569 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5582 done
5583 done
5584 IFS=$as_save_IFS
5588 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5589 if test -n "$PPMTOILBM"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5591 $as_echo "$PPMTOILBM" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$PPMTOILBM" = ""; then
5599 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5601 # Extract the first word of "sed", so it can be a program name with args.
5602 set dummy sed; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_SED+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$SED"; then
5609 ac_cv_prog_SED="$SED" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_SED="sed "
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 SED=$ac_cv_prog_SED
5629 if test -n "$SED"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5631 $as_echo "$SED" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$SED" = ""; then
5639 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5641 # Extract the first word of "chmod", so it can be a program name with args.
5642 set dummy chmod; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_CHMOD+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$CHMOD"; then
5649 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_CHMOD="chmod "
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 CHMOD=$ac_cv_prog_CHMOD
5669 if test -n "$CHMOD"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5671 $as_echo "$CHMOD" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5678 if test "$CHMOD" = ""; then
5679 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5681 # Extract the first word of "patch", so it can be a program name with args.
5682 set dummy patch; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_PATCH+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$PATCH"; then
5689 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_PATCH="patch "
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 PATCH=$ac_cv_prog_PATCH
5709 if test -n "$PATCH"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5711 $as_echo "$PATCH" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5718 if test "$PATCH" = ""; then
5719 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5728 if test -n "$PYTHON"; then
5729 # If the user set $PYTHON, use it and don't search something else.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5731 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5732 prog="import sys
5733 # split strings by '.' and convert to numeric. Append some zeros
5734 # because we need at least 4 digits for the hex conversion.
5735 # map returns an iterator in Python 3.0 and a list in 2.x
5736 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5737 minverhex = 0
5738 # xrange is not present in Python 3.0 and range returns an iterator
5739 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5740 sys.exit(sys.hexversion < minverhex)"
5741 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5742 ($PYTHON -c "$prog") >&5 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; then :
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747 $as_echo "yes" >&6; }
5748 else
5749 as_fn_error $? "too old" "$LINENO" 5
5751 am_display_PYTHON=$PYTHON
5752 else
5753 # Otherwise, try each interpreter until we find one that satisfies
5754 # VERSION.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5756 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5757 if ${am_cv_pathless_PYTHON+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5761 for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5762 test "$am_cv_pathless_PYTHON" = none && break
5763 prog="import sys
5764 # split strings by '.' and convert to numeric. Append some zeros
5765 # because we need at least 4 digits for the hex conversion.
5766 # map returns an iterator in Python 3.0 and a list in 2.x
5767 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
5768 minverhex = 0
5769 # xrange is not present in Python 3.0 and range returns an iterator
5770 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5771 sys.exit(sys.hexversion < minverhex)"
5772 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5773 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then :
5777 break
5779 done
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5782 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5783 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5784 if test "$am_cv_pathless_PYTHON" = none; then
5785 PYTHON=:
5786 else
5787 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5788 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_path_PYTHON+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 case $PYTHON in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5815 esac
5817 PYTHON=$ac_cv_path_PYTHON
5818 if test -n "$PYTHON"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5820 $as_echo "$PYTHON" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5828 am_display_PYTHON=$am_cv_pathless_PYTHON
5832 if test "$PYTHON" = :; then
5833 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5834 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5838 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5839 if ${am_cv_python_version+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5845 $as_echo "$am_cv_python_version" >&6; }
5846 PYTHON_VERSION=$am_cv_python_version
5850 PYTHON_PREFIX='${prefix}'
5852 PYTHON_EXEC_PREFIX='${exec_prefix}'
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5857 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5858 if ${am_cv_python_platform+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5864 $as_echo "$am_cv_python_platform" >&6; }
5865 PYTHON_PLATFORM=$am_cv_python_platform
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5871 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5872 if ${am_cv_python_pythondir+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test "x$prefix" = xNONE
5876 then
5877 am_py_prefix=$ac_default_prefix
5878 else
5879 am_py_prefix=$prefix
5881 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
5882 case $am_cv_python_pythondir in
5883 $am_py_prefix*)
5884 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5885 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5888 case $am_py_prefix in
5889 /usr|/System*) ;;
5891 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5893 esac
5895 esac
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5899 $as_echo "$am_cv_python_pythondir" >&6; }
5900 pythondir=$am_cv_python_pythondir
5904 pkgpythondir=\${pythondir}/$PACKAGE
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5908 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5909 if ${am_cv_python_pyexecdir+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test "x$exec_prefix" = xNONE
5913 then
5914 am_py_exec_prefix=$am_py_prefix
5915 else
5916 am_py_exec_prefix=$exec_prefix
5918 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
5919 case $am_cv_python_pyexecdir in
5920 $am_py_exec_prefix*)
5921 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5922 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5925 case $am_py_exec_prefix in
5926 /usr|/System*) ;;
5928 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5930 esac
5932 esac
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5936 $as_echo "$am_cv_python_pyexecdir" >&6; }
5937 pyexecdir=$am_cv_python_pyexecdir
5941 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5949 FOR=for
5951 IF=if
5953 TEST=test
5955 CMP=cmp
5959 # Check for some includes for the X11 HIDD and the kernel
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5963 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5964 if ${ac_cv_path_GREP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -z "$GREP"; then
5968 ac_path_GREP_found=false
5969 # Loop through the user's path and test for each of PROGNAME-LIST
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_prog in grep ggrep; do
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5979 # Check for GNU ac_path_GREP and select it if it is found.
5980 # Check for GNU $ac_path_GREP
5981 case `"$ac_path_GREP" --version 2>&1` in
5982 *GNU*)
5983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5985 ac_count=0
5986 $as_echo_n 0123456789 >"conftest.in"
5987 while :
5989 cat "conftest.in" "conftest.in" >"conftest.tmp"
5990 mv "conftest.tmp" "conftest.in"
5991 cp "conftest.in" "conftest.nl"
5992 $as_echo 'GREP' >> "conftest.nl"
5993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5995 as_fn_arith $ac_count + 1 && ac_count=$as_val
5996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5997 # Best one so far, save it but keep looking for a better one
5998 ac_cv_path_GREP="$ac_path_GREP"
5999 ac_path_GREP_max=$ac_count
6001 # 10*(2^10) chars as input seems more than enough
6002 test $ac_count -gt 10 && break
6003 done
6004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6005 esac
6007 $ac_path_GREP_found && break 3
6008 done
6009 done
6010 done
6011 IFS=$as_save_IFS
6012 if test -z "$ac_cv_path_GREP"; then
6013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 else
6016 ac_cv_path_GREP=$GREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6021 $as_echo "$ac_cv_path_GREP" >&6; }
6022 GREP="$ac_cv_path_GREP"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6026 $as_echo_n "checking for egrep... " >&6; }
6027 if ${ac_cv_path_EGREP+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6031 then ac_cv_path_EGREP="$GREP -E"
6032 else
6033 if test -z "$EGREP"; then
6034 ac_path_EGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_prog in egrep; do
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6045 # Check for GNU ac_path_EGREP and select it if it is found.
6046 # Check for GNU $ac_path_EGREP
6047 case `"$ac_path_EGREP" --version 2>&1` in
6048 *GNU*)
6049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6051 ac_count=0
6052 $as_echo_n 0123456789 >"conftest.in"
6053 while :
6055 cat "conftest.in" "conftest.in" >"conftest.tmp"
6056 mv "conftest.tmp" "conftest.in"
6057 cp "conftest.in" "conftest.nl"
6058 $as_echo 'EGREP' >> "conftest.nl"
6059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6061 as_fn_arith $ac_count + 1 && ac_count=$as_val
6062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6063 # Best one so far, save it but keep looking for a better one
6064 ac_cv_path_EGREP="$ac_path_EGREP"
6065 ac_path_EGREP_max=$ac_count
6067 # 10*(2^10) chars as input seems more than enough
6068 test $ac_count -gt 10 && break
6069 done
6070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6071 esac
6073 $ac_path_EGREP_found && break 3
6074 done
6075 done
6076 done
6077 IFS=$as_save_IFS
6078 if test -z "$ac_cv_path_EGREP"; then
6079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6081 else
6082 ac_cv_path_EGREP=$EGREP
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6088 $as_echo "$ac_cv_path_EGREP" >&6; }
6089 EGREP="$ac_cv_path_EGREP"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6093 $as_echo_n "checking for ANSI C header files... " >&6; }
6094 if ${ac_cv_header_stdc+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <stdlib.h>
6100 #include <stdarg.h>
6101 #include <string.h>
6102 #include <float.h>
6105 main ()
6109 return 0;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_header_stdc=yes
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <string.h>
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev/null 2>&1; then :
6129 else
6130 ac_cv_header_stdc=no
6132 rm -f conftest*
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <stdlib.h>
6142 _ACEOF
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 $EGREP "free" >/dev/null 2>&1; then :
6146 else
6147 ac_cv_header_stdc=no
6149 rm -f conftest*
6153 if test $ac_cv_header_stdc = yes; then
6154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6155 if test "$cross_compiling" = yes; then :
6157 else
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #include <ctype.h>
6161 #include <stdlib.h>
6162 #if ((' ' & 0x0FF) == 0x020)
6163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6165 #else
6166 # define ISLOWER(c) \
6167 (('a' <= (c) && (c) <= 'i') \
6168 || ('j' <= (c) && (c) <= 'r') \
6169 || ('s' <= (c) && (c) <= 'z'))
6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6171 #endif
6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6175 main ()
6177 int i;
6178 for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i))
6180 || toupper (i) != TOUPPER (i))
6181 return 2;
6182 return 0;
6184 _ACEOF
6185 if ac_fn_c_try_run "$LINENO"; then :
6187 else
6188 ac_cv_header_stdc=no
6190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6191 conftest.$ac_objext conftest.beam conftest.$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6197 $as_echo "$ac_cv_header_stdc" >&6; }
6198 if test $ac_cv_header_stdc = yes; then
6200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6206 inttypes.h stdint.h unistd.h
6207 do :
6208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 _ACEOF
6218 done
6221 for ac_header in sys/ipc.h sys/shm.h \
6222 sys/mmap.h sys/mman.h sysexits.h \
6223 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6225 do :
6226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 _ACEOF
6235 done
6238 for ac_header in sys/mount.h
6239 do :
6240 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6242 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_SYS_MOUNT_H 1
6245 _ACEOF
6249 done
6252 ac_header_dirent=no
6253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6254 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6256 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6257 if eval \${$as_ac_Header+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 #include <$ac_hdr>
6266 main ()
6268 if ((DIR *) 0)
6269 return 0;
6271 return 0;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 eval "$as_ac_Header=yes"
6276 else
6277 eval "$as_ac_Header=no"
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 eval ac_res=\$$as_ac_Header
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6283 $as_echo "$ac_res" >&6; }
6284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6287 _ACEOF
6289 ac_header_dirent=$ac_hdr; break
6292 done
6293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6294 if test $ac_header_dirent = dirent.h; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6296 $as_echo_n "checking for library containing opendir... " >&6; }
6297 if ${ac_cv_search_opendir+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 ac_func_search_save_LIBS=$LIBS
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char opendir ();
6312 main ()
6314 return opendir ();
6316 return 0;
6318 _ACEOF
6319 for ac_lib in '' dir; do
6320 if test -z "$ac_lib"; then
6321 ac_res="none required"
6322 else
6323 ac_res=-l$ac_lib
6324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6326 if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_search_opendir=$ac_res
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext
6331 if ${ac_cv_search_opendir+:} false; then :
6332 break
6334 done
6335 if ${ac_cv_search_opendir+:} false; then :
6337 else
6338 ac_cv_search_opendir=no
6340 rm conftest.$ac_ext
6341 LIBS=$ac_func_search_save_LIBS
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6344 $as_echo "$ac_cv_search_opendir" >&6; }
6345 ac_res=$ac_cv_search_opendir
6346 if test "$ac_res" != no; then :
6347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6353 $as_echo_n "checking for library containing opendir... " >&6; }
6354 if ${ac_cv_search_opendir+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 ac_func_search_save_LIBS=$LIBS
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6361 /* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 char opendir ();
6369 main ()
6371 return opendir ();
6373 return 0;
6375 _ACEOF
6376 for ac_lib in '' x; do
6377 if test -z "$ac_lib"; then
6378 ac_res="none required"
6379 else
6380 ac_res=-l$ac_lib
6381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 ac_cv_search_opendir=$ac_res
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext
6388 if ${ac_cv_search_opendir+:} false; then :
6389 break
6391 done
6392 if ${ac_cv_search_opendir+:} false; then :
6394 else
6395 ac_cv_search_opendir=no
6397 rm conftest.$ac_ext
6398 LIBS=$ac_func_search_save_LIBS
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6401 $as_echo "$ac_cv_search_opendir" >&6; }
6402 ac_res=$ac_cv_search_opendir
6403 if test "$ac_res" != no; then :
6404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6411 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6412 if ${ac_cv_header_stat_broken+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <sys/types.h>
6418 #include <sys/stat.h>
6420 #if defined S_ISBLK && defined S_IFDIR
6421 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6422 #endif
6424 #if defined S_ISBLK && defined S_IFCHR
6425 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6426 #endif
6428 #if defined S_ISLNK && defined S_IFREG
6429 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6430 #endif
6432 #if defined S_ISSOCK && defined S_IFREG
6433 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6434 #endif
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_header_stat_broken=no
6439 else
6440 ac_cv_header_stat_broken=yes
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6445 $as_echo "$ac_cv_header_stat_broken" >&6; }
6446 if test $ac_cv_header_stat_broken = yes; then
6448 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6453 $as_echo_n "checking for ANSI C header files... " >&6; }
6454 if ${ac_cv_header_stdc+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <stdlib.h>
6460 #include <stdarg.h>
6461 #include <string.h>
6462 #include <float.h>
6465 main ()
6469 return 0;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 ac_cv_header_stdc=yes
6474 else
6475 ac_cv_header_stdc=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test $ac_cv_header_stdc = yes; then
6480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 #include <string.h>
6485 _ACEOF
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "memchr" >/dev/null 2>&1; then :
6489 else
6490 ac_cv_header_stdc=no
6492 rm -f conftest*
6496 if test $ac_cv_header_stdc = yes; then
6497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 #include <stdlib.h>
6502 _ACEOF
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 $EGREP "free" >/dev/null 2>&1; then :
6506 else
6507 ac_cv_header_stdc=no
6509 rm -f conftest*
6513 if test $ac_cv_header_stdc = yes; then
6514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6515 if test "$cross_compiling" = yes; then :
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <ctype.h>
6521 #include <stdlib.h>
6522 #if ((' ' & 0x0FF) == 0x020)
6523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6525 #else
6526 # define ISLOWER(c) \
6527 (('a' <= (c) && (c) <= 'i') \
6528 || ('j' <= (c) && (c) <= 'r') \
6529 || ('s' <= (c) && (c) <= 'z'))
6530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6531 #endif
6533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6535 main ()
6537 int i;
6538 for (i = 0; i < 256; i++)
6539 if (XOR (islower (i), ISLOWER (i))
6540 || toupper (i) != TOUPPER (i))
6541 return 2;
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_run "$LINENO"; then :
6547 else
6548 ac_cv_header_stdc=no
6550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6551 conftest.$ac_objext conftest.beam conftest.$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6557 $as_echo "$ac_cv_header_stdc" >&6; }
6558 if test $ac_cv_header_stdc = yes; then
6560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6565 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6566 if ${ac_cv_header_sys_wait_h+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 #include <sys/wait.h>
6573 #ifndef WEXITSTATUS
6574 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6575 #endif
6576 #ifndef WIFEXITED
6577 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6578 #endif
6581 main ()
6583 int s;
6584 wait (&s);
6585 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6587 return 0;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_header_sys_wait_h=yes
6592 else
6593 ac_cv_header_sys_wait_h=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6598 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6599 if test $ac_cv_header_sys_wait_h = yes; then
6601 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6606 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6607 if ${ac_cv_header_time+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 #include <sys/time.h>
6614 #include <time.h>
6617 main ()
6619 if ((struct tm *) 0)
6620 return 0;
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_header_time=yes
6627 else
6628 ac_cv_header_time=no
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6633 $as_echo "$ac_cv_header_time" >&6; }
6634 if test $ac_cv_header_time = yes; then
6636 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6640 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6641 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6645 _ACEOF
6648 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6653 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6654 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6658 _ACEOF
6661 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6663 else
6664 case " $LIBOBJS " in
6665 *" fileblocks.$ac_objext "* ) ;;
6666 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6668 esac
6673 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6674 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_STRUCT_STAT_ST_RDEV 1
6678 _ACEOF
6681 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6687 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6688 if ${ac_cv_struct_tm+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 #include <time.h>
6697 main ()
6699 struct tm tm;
6700 int *p = &tm.tm_sec;
6701 return !p;
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 ac_cv_struct_tm=time.h
6708 else
6709 ac_cv_struct_tm=sys/time.h
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6714 $as_echo "$ac_cv_struct_tm" >&6; }
6715 if test $ac_cv_struct_tm = sys/time.h; then
6717 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6721 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6722 #include <$ac_cv_struct_tm>
6725 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_STRUCT_TM_TM_ZONE 1
6729 _ACEOF
6734 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6736 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6738 else
6739 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6741 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6742 ac_have_decl=1
6743 else
6744 ac_have_decl=0
6747 cat >>confdefs.h <<_ACEOF
6748 #define HAVE_DECL_TZNAME $ac_have_decl
6749 _ACEOF
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6752 $as_echo_n "checking for tzname... " >&6; }
6753 if ${ac_cv_var_tzname+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <time.h>
6759 #if !HAVE_DECL_TZNAME
6760 extern char *tzname[];
6761 #endif
6764 main ()
6766 return tzname[0][0];
6768 return 0;
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 ac_cv_var_tzname=yes
6773 else
6774 ac_cv_var_tzname=no
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6780 $as_echo "$ac_cv_var_tzname" >&6; }
6781 if test $ac_cv_var_tzname = yes; then
6783 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6788 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_off_t" = xyes; then :
6791 else
6793 cat >>confdefs.h <<_ACEOF
6794 #define off_t long int
6795 _ACEOF
6799 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6800 if test "x$ac_cv_type_pid_t" = xyes; then :
6802 else
6804 cat >>confdefs.h <<_ACEOF
6805 #define pid_t int
6806 _ACEOF
6810 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6811 if test "x$ac_cv_type_size_t" = xyes; then :
6813 else
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6817 _ACEOF
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6822 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6823 if ${ac_cv_type_uid_t+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6830 _ACEOF
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 $EGREP "uid_t" >/dev/null 2>&1; then :
6833 ac_cv_type_uid_t=yes
6834 else
6835 ac_cv_type_uid_t=no
6837 rm -f conftest*
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6841 $as_echo "$ac_cv_type_uid_t" >&6; }
6842 if test $ac_cv_type_uid_t = no; then
6844 $as_echo "#define uid_t int" >>confdefs.h
6847 $as_echo "#define gid_t int" >>confdefs.h
6852 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6853 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6857 _ACEOF
6863 # Look for some functions
6864 for ac_func in getpagesize kqueue statfs statvfs \
6865 clone kse_create rfork_thread thr_create sa_register \
6866 getcontext makecontext setcontext sigaltstack swapcontext
6867 do :
6868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6873 _ACEOF
6876 done
6882 for ac_header in $ac_header_list
6883 do :
6884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6885 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6888 cat >>confdefs.h <<_ACEOF
6889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 _ACEOF
6894 done
6903 for ac_func in getpagesize
6904 do :
6905 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6906 if test "x$ac_cv_func_getpagesize" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_GETPAGESIZE 1
6909 _ACEOF
6912 done
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6915 $as_echo_n "checking for working mmap... " >&6; }
6916 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test "$cross_compiling" = yes; then :
6920 ac_cv_func_mmap_fixed_mapped=no
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 /* malloc might have been renamed as rpl_malloc. */
6926 #undef malloc
6928 /* Thanks to Mike Haertel and Jim Avera for this test.
6929 Here is a matrix of mmap possibilities:
6930 mmap private not fixed
6931 mmap private fixed at somewhere currently unmapped
6932 mmap private fixed at somewhere already mapped
6933 mmap shared not fixed
6934 mmap shared fixed at somewhere currently unmapped
6935 mmap shared fixed at somewhere already mapped
6936 For private mappings, we should verify that changes cannot be read()
6937 back from the file, nor mmap's back from the file at a different
6938 address. (There have been systems where private was not correctly
6939 implemented like the infamous i386 svr4.0, and systems where the
6940 VM page cache was not coherent with the file system buffer cache
6941 like early versions of FreeBSD and possibly contemporary NetBSD.)
6942 For shared mappings, we should conversely verify that changes get
6943 propagated back to all the places they're supposed to be.
6945 Grep wants private fixed already mapped.
6946 The main things grep needs to know about mmap are:
6947 * does it exist and is it safe to write into the mmap'd area
6948 * how to use it (BSD variants) */
6950 #include <fcntl.h>
6951 #include <sys/mman.h>
6953 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6954 char *malloc ();
6955 #endif
6957 /* This mess was copied from the GNU getpagesize.h. */
6958 #ifndef HAVE_GETPAGESIZE
6959 # ifdef _SC_PAGESIZE
6960 # define getpagesize() sysconf(_SC_PAGESIZE)
6961 # else /* no _SC_PAGESIZE */
6962 # ifdef HAVE_SYS_PARAM_H
6963 # include <sys/param.h>
6964 # ifdef EXEC_PAGESIZE
6965 # define getpagesize() EXEC_PAGESIZE
6966 # else /* no EXEC_PAGESIZE */
6967 # ifdef NBPG
6968 # define getpagesize() NBPG * CLSIZE
6969 # ifndef CLSIZE
6970 # define CLSIZE 1
6971 # endif /* no CLSIZE */
6972 # else /* no NBPG */
6973 # ifdef NBPC
6974 # define getpagesize() NBPC
6975 # else /* no NBPC */
6976 # ifdef PAGESIZE
6977 # define getpagesize() PAGESIZE
6978 # endif /* PAGESIZE */
6979 # endif /* no NBPC */
6980 # endif /* no NBPG */
6981 # endif /* no EXEC_PAGESIZE */
6982 # else /* no HAVE_SYS_PARAM_H */
6983 # define getpagesize() 8192 /* punt totally */
6984 # endif /* no HAVE_SYS_PARAM_H */
6985 # endif /* no _SC_PAGESIZE */
6987 #endif /* no HAVE_GETPAGESIZE */
6990 main ()
6992 char *data, *data2, *data3;
6993 const char *cdata2;
6994 int i, pagesize;
6995 int fd, fd2;
6997 pagesize = getpagesize ();
6999 /* First, make a file with some known garbage in it. */
7000 data = (char *) malloc (pagesize);
7001 if (!data)
7002 return 1;
7003 for (i = 0; i < pagesize; ++i)
7004 *(data + i) = rand ();
7005 umask (0);
7006 fd = creat ("conftest.mmap", 0600);
7007 if (fd < 0)
7008 return 2;
7009 if (write (fd, data, pagesize) != pagesize)
7010 return 3;
7011 close (fd);
7013 /* Next, check that the tail of a page is zero-filled. File must have
7014 non-zero length, otherwise we risk SIGBUS for entire page. */
7015 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7016 if (fd2 < 0)
7017 return 4;
7018 cdata2 = "";
7019 if (write (fd2, cdata2, 1) != 1)
7020 return 5;
7021 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7022 if (data2 == MAP_FAILED)
7023 return 6;
7024 for (i = 0; i < pagesize; ++i)
7025 if (*(data2 + i))
7026 return 7;
7027 close (fd2);
7028 if (munmap (data2, pagesize))
7029 return 8;
7031 /* Next, try to mmap the file at a fixed address which already has
7032 something else allocated at it. If we can, also make sure that
7033 we see the same garbage. */
7034 fd = open ("conftest.mmap", O_RDWR);
7035 if (fd < 0)
7036 return 9;
7037 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7038 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7039 return 10;
7040 for (i = 0; i < pagesize; ++i)
7041 if (*(data + i) != *(data2 + i))
7042 return 11;
7044 /* Finally, make sure that changes to the mapped area do not
7045 percolate back to the file as seen by read(). (This is a bug on
7046 some variants of i386 svr4.0.) */
7047 for (i = 0; i < pagesize; ++i)
7048 *(data2 + i) = *(data2 + i) + 1;
7049 data3 = (char *) malloc (pagesize);
7050 if (!data3)
7051 return 12;
7052 if (read (fd, data3, pagesize) != pagesize)
7053 return 13;
7054 for (i = 0; i < pagesize; ++i)
7055 if (*(data + i) != *(data3 + i))
7056 return 14;
7057 close (fd);
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_run "$LINENO"; then :
7062 ac_cv_func_mmap_fixed_mapped=yes
7063 else
7064 ac_cv_func_mmap_fixed_mapped=no
7066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7067 conftest.$ac_objext conftest.beam conftest.$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7072 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7073 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7075 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7078 rm -f conftest.mmap conftest.txt
7083 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7084 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7085 aros_config_ldflags=""
7087 aros_shared_default=yes
7089 aros_shared_cflags="-fPIC"
7090 aros_shared_aflags=""
7091 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7092 aros_kernel_ldflags="-Wl,-rpath,./lib"
7094 aros_kernel_ar_flags="cr"
7095 aros_target_ar_flags="cr"
7096 aros_target_nm_flags="-C -ul"
7097 aros_target_strip_flags="--strip-unneeded -R.comment"
7099 aros_compiler_libs=
7100 aros_arch_libs=
7102 aros_target_genmap="-Wl,-Map -Xlinker"
7104 # Native flavour stuff
7105 aros_serial_debug="0"
7107 # Palm native flavour stuff
7108 aros_palm_debug_hack="0"
7110 # Unix flavour stuff
7111 aros_nesting_supervisor="0"
7113 # Collect-aros stuff: "-ius" to ignore undefined symbols
7114 ignore_undefined_symbols=""
7116 # Check for X11 by default
7117 need_x11="auto"
7119 #-----------------------------------------------------------------------------
7122 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7123 # it switched on by default, and we use the host compiler, so it compiles AROS
7124 # code with this enabled resulting in link failures as we don't have support
7125 # for it.
7127 # We use two methods to disable it. For the host compiler (used to compile
7128 # some hosted modules), we test to see if the compiler supports stack
7129 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7130 # work on all platforms.
7132 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7133 # (this is done unconditionally, as it should have no effect on compilers
7134 # without the stack protection feature). This may be specific to the way that
7135 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7136 # strong enough to disable it in a generic way though, so we'll live with it
7137 # until another vendor ships GCC with it enabled in a different way, and deal
7138 # with it then.
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7142 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7143 save_cflags="$CFLAGS"
7144 CFLAGS="$CFLAGS -fno-stack-protector"
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7149 main ()
7153 return 0;
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 use_no_stack_protector="yes"
7158 else
7159 use_no_stack_protector="no"
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7163 $as_echo "$use_no_stack_protector" >&6; }
7164 if test "x-$use_no_stack_protector" = "x-yes" ; then
7165 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7167 CFLAGS="$save_cflags"
7169 #-----------------------------------------------------------------------------
7171 # Disable pointer-signedness warnings if the compiler recognises the option
7172 # (this only works for the host compiler at the moment)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7175 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7176 save_cflags="$CFLAGS"
7177 CFLAGS="$CFLAGS -Wno-pointer-sign"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7182 main ()
7186 return 0;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 use_no_sign_warning="yes"
7191 else
7192 use_no_sign_warning="no"
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7196 $as_echo "$use_no_sign_warning" >&6; }
7197 if test "x-$use_no_sign_warning" = "x-yes" ; then
7198 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7200 CFLAGS="$save_cflags"
7202 #-----------------------------------------------------------------------------
7204 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7207 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7208 save_cflags="$CFLAGS"
7209 CFLAGS="$CFLAGS -fgnu89-inline"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 main ()
7218 return 0;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 use_gnu89_inline="yes"
7223 else
7224 use_gnu89_inline="no"
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7228 $as_echo "$use_gnu89_inline" >&6; }
7229 if test "x-$use_gnu89_inline" = "x-yes" ; then
7230 gnu89_inline="-fgnu89-inline"
7232 CFLAGS="$save_cflags"
7234 #-----------------------------------------------------------------------------
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7237 $as_echo_n "checking for type of build... " >&6; }
7238 # Check whether --enable-build_type was given.
7239 if test "${enable_build_type+set}" = set; then :
7240 enableval=$enable_build_type; build_type=$enableval
7241 else
7242 build_type="personal"
7246 if test "$build_type" = "nightly"; then
7247 build_type_string="NIGHTLY"
7248 elif test "$build_type" = "snapshot"; then
7249 build_type_string="SNAPSHOT"
7250 elif test "$build_type" = "milestone"; then
7251 build_type_string="MILESTONE"
7252 elif test "$build_type" = "release"; then
7253 build_type_string="RELEASE"
7254 else
7255 build_type_string="PERSONAL"
7256 build_type="personal"
7259 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7262 $as_echo "$build_type" >&6; }
7264 #-----------------------------------------------------------------------------
7265 all_debug_types="messages stack modules mungwall symbols"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7268 $as_echo_n "checking which debug types to enable... " >&6; }
7269 # Check whether --enable-debug was given.
7270 if test "${enable_debug+set}" = set; then :
7271 enableval=$enable_debug; debug="$enableval"
7272 else
7273 debug=""
7277 if test "$debug" = "" -o "$debug" = "no"; then
7278 debug="none"
7279 elif test "$debug" = "yes"; then
7280 debug="all"
7283 if test "$debug" = "all" ; then
7284 debug="messages stack modules symbols"
7285 for d in $all_debug_types; do
7286 export aros_${d}_debug="1"
7287 done
7288 else
7289 for d in $all_debug_types; do
7290 export aros_${d}_debug="0"
7291 done
7294 if test "$debug" != "none"; then
7295 debug=`echo $debug | sed s/,/\ /g`
7296 for d in $debug; do
7297 found="0"
7298 for d2 in $all_debug_types; do
7299 if test "$d2" = "$d"; then
7300 found="1"
7301 break
7303 done
7304 if test "$found" = "0"; then
7305 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7307 export aros_${d}_debug="1"
7308 done
7309 aros_debug="yes"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7312 $as_echo "$debug" >&6; }
7314 if test "$aros_messages_debug" = "1"; then
7315 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7316 else
7317 aros_messages_debug=""
7319 if test "$aros_symbols_debug" = "1"; then
7320 aros_symbols_debug="-g"
7321 else
7322 aros_symbols_debug=""
7325 # These are the flags to pass when compiling debugged programs
7326 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7327 aros_debug_aflags=""
7328 aros_debug_ldflags="$aros_symbols_debug"
7330 #-----------------------------------------------------------------------------
7331 # Checking for distcc and ccache.
7333 # Always apply the transforms in this particular order. Basically you should
7334 # always run 'ccache distcc compiler' in that order for the best performance.
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7337 $as_echo_n "checking whether to enable distcc... " >&6; }
7338 # Check whether --enable-distcc was given.
7339 if test "${enable_distcc+set}" = set; then :
7340 enableval=$enable_distcc; distcc="$enableval"
7341 else
7342 distcc="no"
7345 if test "$distcc" != "" -a "$distcc" != "no"; then
7346 # AC_CHECK_PROG will print out the result in this case
7347 # Extract the first word of "distcc", so it can be a program name with args.
7348 set dummy distcc; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_path_DISTCC+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 case $DISTCC in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7374 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7376 esac
7378 DISTCC=$ac_cv_path_DISTCC
7379 if test -n "$DISTCC"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7381 $as_echo "$DISTCC" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7394 $as_echo_n "checking whether to enable ccache... " >&6; }
7395 # Check whether --enable-ccache was given.
7396 if test "${enable_ccache+set}" = set; then :
7397 enableval=$enable_ccache; ccache="$enableval"
7398 else
7399 ccache="no"
7402 if test "$ccache" != "" -a "$ccache" != "no"; then
7403 # AC_CHECK_PROG will print out the result in this case
7404 # Extract the first word of "ccache", so it can be a program name with args.
7405 set dummy ccache; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_CCACHE+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$CCACHE"; then
7412 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_CCACHE="ccache"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7431 CCACHE=$ac_cv_prog_CCACHE
7432 if test -n "$CCACHE"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7434 $as_echo "$CCACHE" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 #-----------------------------------------------------------------------------
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7448 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7450 # Check whether --with-gcc-version was given.
7451 if test "${with_gcc_version+set}" = set; then :
7452 withval=$with_gcc_version; kernel_tool_version="$withval"
7453 else
7454 kernel_tool_version="default"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7458 $as_echo "$kernel_tool_version" >&6; }
7460 #-----------------------------------------------------------------------------
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7462 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7464 # Check whether --with-gcc-version was given.
7465 if test "${with_gcc_version+set}" = set; then :
7466 withval=$with_gcc_version; target_tool_version="$withval"
7467 else
7468 target_tool_version="default"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7472 $as_echo "$target_tool_version" >&6; }
7474 #-----------------------------------------------------------------------------
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7476 $as_echo_n "checking what optimization flags to use... " >&6; }
7478 # Check whether --with-optimization was given.
7479 if test "${with_optimization+set}" = set; then :
7480 withval=$with_optimization; optimization="$withval"
7481 else
7482 optimization="unknown"
7485 if test "$optimization" = "unknown"; then
7486 if test "$debug" != "none"; then
7487 optimization="-O0"
7488 else
7489 optimization="-O2"
7492 aros_config_cflags="$aros_config_cflags $optimization"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7494 $as_echo "$optimization" >&6; }
7496 #-----------------------------------------------------------------------------
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7498 $as_echo_n "checking what paranoia flags to use... " >&6; }
7500 # Check whether --with-paranoia was given.
7501 if test "${with_paranoia+set}" = set; then :
7502 withval=$with_paranoia; paranoia_flags="$withval"
7503 else
7504 paranoia_flags="default"
7507 if test "$paranoia_flags" = "default"; then
7508 paranoia_flags=""
7509 else if test "$paranoia_flags" = "yes"; then
7510 paranoia_flags="-Wall -Werror"
7511 fi fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7513 $as_echo "$paranoia_flags" >&6; }
7514 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7516 #-----------------------------------------------------------------------------
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7518 $as_echo_n "checking what target variant to enable... " >&6; }
7519 # Check whether --enable-target_variant was given.
7520 if test "${enable_target_variant+set}" = set; then :
7521 enableval=$enable_target_variant; target_variant=$enableval
7522 else
7523 target_variant=""
7526 if test "$target_variant" = ""; then
7527 aros_target_variant=""
7528 aros_target_suffix=""
7529 enableval="none"
7530 else
7531 aros_target_variant="$target_variant"
7532 aros_target_suffix="-$target_variant"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7535 $as_echo "$enableval" >&6; }
7537 #-----------------------------------------------------------------------------
7538 # Target-specific defaults. You can override then on a per-target basis.
7540 # Bootloader name. Currently used by PC target.
7541 target_bootloader="none"
7543 #-----------------------------------------------------------------------------
7544 # Additional options for some specific targets
7546 case "$aros_target_variant" in
7547 ios)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7549 $as_echo_n "checking XCode path... " >&6; }
7551 # Check whether --with-xcode was given.
7552 if test "${with_xcode+set}" = set; then :
7553 withval=$with_xcode; aros_xcode_path="$withval"
7554 else
7555 aros_xcode_path="/Developer"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7559 $as_echo "$aros_xcode_path" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7562 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7564 # Check whether --with-sdk-version was given.
7565 if test "${with_sdk_version+set}" = set; then :
7566 withval=$with_sdk_version; aros_sdk_version="$withval"
7567 else
7568 aros_sdk_version="4.1"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7572 $as_echo "$aros_sdk_version" >&6; }
7576 "android")
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7578 $as_echo_n "checking Android SDK path... " >&6; }
7580 # Check whether --with-sdk was given.
7581 if test "${with_sdk+set}" = set; then :
7582 withval=$with_sdk; aros_android_sdk="$withval"
7583 else
7584 aros_android_sdk=$default_android_sdk
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7588 $as_echo "$aros_android_sdk" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7591 $as_echo_n "checking Android NDK path... " >&6; }
7593 # Check whether --with-ndk was given.
7594 if test "${with_ndk+set}" = set; then :
7595 withval=$with_ndk; aros_android_ndk="$withval"
7596 else
7597 aros_android_ndk="none"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7601 $as_echo "$aros_android_ndk" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7604 $as_echo_n "checking what Android SDK version to use... " >&6; }
7606 # Check whether --with-sdk-version was given.
7607 if test "${with_sdk_version+set}" = set; then :
7608 withval=$with_sdk_version; aros_sdk_version="$withval"
7609 else
7610 aros_sdk_version="12"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7614 $as_echo "$aros_sdk_version" >&6; }
7616 if test "$aros_android_ndk" != "none"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7618 $as_echo_n "checking what Android NDK version to use... " >&6; }
7620 # Check whether --with-ndk-version was given.
7621 if test "${with_ndk_version+set}" = set; then :
7622 withval=$with_ndk_version; aros_ndk_version="$withval"
7623 else
7624 aros_ndk_version="9"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7628 $as_echo "$aros_ndk_version" >&6; }
7631 export PATH="$aros_android_sdk/tools:$PATH"
7632 # Extract the first word of "$android_tool", so it can be a program name with args.
7633 set dummy $android_tool; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_android_tool+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $android_tool in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7655 done
7656 done
7657 IFS=$as_save_IFS
7660 esac
7662 android_tool=$ac_cv_path_android_tool
7663 if test -n "$android_tool"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7665 $as_echo "$android_tool" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 if test "$android_tool" = ""; then
7673 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7676 aros_android_level=android-$aros_sdk_version
7677 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7678 echo "Platform $aros_android_level is not installed in your SDK"
7679 echo "Use --with-sdk-version=<API level number> to select another platform version"
7680 echo "You can check what plaform versions are installed in your SDK"
7681 echo "by examining contents of $aros_android_sdk/platforms directory"
7682 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7685 # Extract the first word of "ant", so it can be a program name with args.
7686 set dummy ant; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_path_ant+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 case $ant in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7710 IFS=$as_save_IFS
7713 esac
7715 ant=$ac_cv_path_ant
7716 if test -n "$ant"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7718 $as_echo "$ant" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 if test "$ant" = ""; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7727 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7730 if test "$host_os" = "mingw32"; then
7731 android_tool="cmd //c $android_tool"
7735 esac
7737 #-----------------------------------------------------------------------------
7738 # External toolchains
7739 kernel_tool_prefix="none"
7740 aros_tool_prefix="none"
7741 elf_tool_prefix="${target_cpu}-elf-"
7743 # This is the target configuration switch.
7744 case "$target_os" in
7745 linux*)
7746 aros_target_arch="linux"
7747 aros_target_family="unix"
7748 case "$target_cpu" in
7749 *m68k*)
7750 aros_target_cpu="m68k"
7751 aros_object_format="m68kelf"
7752 aros_flavour="emulcompat"
7753 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7754 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7755 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7756 gcc_target_cpu="mc68000"
7758 *i?86*)
7759 aros_target_cpu="i386"
7760 aros_object_format="elf_i386"
7761 aros_flavour="emulation"
7762 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7763 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7764 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7765 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7766 aros_config_ldflags="-m32 -march=i486"
7767 aros_kernel_ldflags="-melf_i386"
7768 aros_default_wbdepth=8
7769 gcc_target_cpu="i386"
7770 pci_hidd_target="hidd-pci-linux"
7771 android_tool_dir_prefix="x86"
7772 android_tool_prefix="i686-android-linux"
7773 android_ndk_arch="x86"
7775 *x86_64*)
7776 aros_target_cpu="x86_64"
7777 aros_object_format="elf_x86_64"
7778 aros_flavour="emulation"
7779 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7780 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7781 aros_default_wbdepth=8
7782 pci_hidd_target="hidd-pci-linux"
7784 *powerpc*)
7785 aros_target_cpu="ppc"
7786 aros_object_format="elf32ppc"
7787 aros_flavour="emulation"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7789 aros_default_wbdepth=8
7790 gcc_target_cpu="ppc"
7792 # TODO
7793 # Same as powerpc, but I need this for the nightly build to work again.
7794 # Actually, the nightly should be made working with powerpc target.
7795 # That just was too much work for the moment, another week or two.
7796 *ppc*)
7797 aros_target_cpu="ppc"
7798 aros_object_format="elf32ppc"
7799 aros_flavour="emulation"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7801 aros_default_wbdepth=8
7802 gcc_target_cpu="ppc"
7804 *arm*)
7805 aros_target_cpu="arm"
7806 aros_object_format="armelf_linux_eabi"
7807 aros_flavour="emulation"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7809 gcc_target_cpu="arm"
7810 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7811 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7812 aros_arch_libs="-laeabi"
7813 android_tool_dir_prefix="arm-linux-androideabi"
7814 android_tool_prefix="arm-linux-androideabi"
7815 android_ndk_arch="arm"
7816 kernel_tool_prefix="arm-linux-gnueabi-"
7819 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7821 esac
7822 case "$aros_target_variant" in
7823 android)
7825 if test "$android_ndk_arch" = ""; then
7826 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7829 aros_default_wbwidth=320
7830 aros_default_wbheight=480
7831 if test "$aros_android_ndk" = "none"; then
7832 aros_kernel_cflags="-mandroid"
7833 aros_kernel_ldflags="-mandroid"
7834 CFLAGS="-mandroid"
7835 else
7836 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7837 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7838 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7839 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7840 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7841 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7843 need_x11=no
7844 x11_hidd_target=kernel-hidd-androidgfx-kobj
7845 # Disable implicit PIC mode
7846 aros_target_cflags="$aros_target_cflags -fno-pic"
7847 kernel_tool_prefix="$android_tool_prefix-"
7849 esac
7853 aros_target_arch="pc"
7854 aros_shared_default="no"
7855 target_bootloader="grub2"
7856 case "$target_cpu" in
7857 *i?86*)
7858 aros_target_cpu="i386"
7861 if test "$aros_object_format" = "" ; then
7862 aros_object_format="elf_i386"
7864 aros_flavour="standalone"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7866 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7867 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7868 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7869 aros_config_ldflags="-m32 -march=i486"
7870 aros_kernel_ldflags="-melf_i386"
7871 aros_default_wbwidth=640
7872 aros_default_wbheight=480
7873 gcc_target_cpu="i386"
7875 *x86_64*)
7876 aros_target_cpu="x86_64"
7877 aros_serial_debug=1
7878 if test "$aros_object_format" = "" ; then
7879 aros_object_format="elf_x86_64"
7881 aros_flavour="standalone"
7882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7883 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7884 aros_kernel_ldflags=""
7885 aros_default_wbwidth=640
7886 aros_default_wbheight=480
7889 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7891 esac
7894 prep)
7895 aros_target_arch="prep"
7896 aros_shared_default="no"
7897 aros_target_cpu="ppc"
7898 aros_object_format="elf32ppc"
7899 aros_flavour="ppcnative"
7900 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7901 aros_kernel_ldflags=""
7902 aros_default_wbwidth=640
7903 aros_default_wbheight=480
7904 gcc_target_cpu="ppc"
7907 freebsd*)
7908 aros_target_arch="freebsd"
7909 aros_target_family="unix"
7910 aros_target_cpu="i386"
7911 aros_flavour="emulation"
7912 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7913 gcc_target_cpu="i386"
7915 aros_target_strip_flags="-x"
7918 darwin*)
7919 aros_target_arch="darwin"
7920 aros_target_family="unix"
7921 aros_flavour="emulation"
7922 case "$target_cpu" in
7923 *i?86*)
7924 aros_ios_platform="iPhoneSimulator"
7925 aros_target_cpu="i386"
7926 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7927 aros_kernel_ldflags=""
7928 aros_macosx_version="10.4"
7929 aros_default_wbdepth=8
7930 gcc_target_cpu="i386"
7931 aros_object_format="elf_i386"
7932 aros_kernel_ar_flags="-cr"
7933 aros_target_strip_flags="-x"
7934 kernel_tool_flags="-m32"
7936 *x86_64*)
7937 aros_target_cpu="x86_64"
7938 aros_object_format="elf_x86_64"
7939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7940 aros_macosx_version="10.6"
7941 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7942 aros_kernel_cflags="-m64"
7943 aros_kernel_ldflags="-m64"
7944 aros_target_cflags="-mcmodel=large"
7945 aros_default_wbdepth=8
7946 aros_kernel_ar="ar"
7947 aros_kernel_ar_flags="-cr"
7948 aros_kernel_ld="ld"
7949 aros_kernel_ranlib="ranlib"
7951 *ppc*)
7952 aros_target_cpu="ppc"
7953 aros_object_format="elf32ppc"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7955 aros_kernel_ldflags=""
7956 aros_macosx_version="10.0"
7957 aros_default_wbdepth=8
7958 gcc_target_cpu="ppc"
7959 aros_kernel_ar="ar"
7960 aros_kernel_ar_flags="-cr"
7961 aros_kernel_ld="ld -arch ppc"
7962 aros_kernel_ranlib="ranlib -arch ppc"
7963 kernel_tool_prefix="powerpc-apple-darwin10-"
7965 *arm*)
7966 aros_ios_platform="iPhoneOS"
7967 aros_target_cpu="arm"
7968 aros_object_format="armelf_linux_eabi"
7969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7970 aros_arch_libs="-laeabi"
7971 aros_default_wbdepth=8
7972 gcc_target_cpu="arm"
7973 aros_kernel_ar="ar"
7974 aros_kernel_ar_flags="-cr"
7975 aros_kernel_ld="ld -arch arm"
7976 aros_kernel_ranlib="ranlib -arch arm"
7977 kernel_tool_prefix="arm-apple-darwin10-"
7978 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7981 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7983 esac
7984 case "$aros_target_variant" in
7985 ios)
7986 aros_ios_version="3.0"
7987 aros_default_wbwidth=320
7988 aros_default_wbheight=480
7989 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7990 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7991 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7992 need_x11=no
7993 # This is here because it may depend on iOS or SDK version
7994 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7995 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7996 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7999 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8000 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8002 esac
8005 dragonfly*)
8006 aros_target_arch="dragonfly"
8007 aros_target_family="unix"
8008 aros_flavour="emulation"
8009 case "$target_cpu" in
8010 *i?86*)
8011 aros_target_cpu="i386"
8012 aros_object_format="elf_i386"
8013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8015 *x86_64*)
8016 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8017 aros_target_cpu="x86_64"
8018 aros_object_format="elf_x86_64"
8019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8022 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
8024 esac
8027 netbsd*)
8028 aros_target_arch="netbsd"
8029 aros_target_family="unix"
8030 case "$target_cpu" in
8031 *m68k*)
8032 aros_target_cpu="m68k"
8033 aros_object_format="m68kelf"
8034 aros_flavour="emulcompat"
8035 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8036 gcc_target_cpu="mc68000"
8038 *i?86*)
8039 aros_target_cpu="i386"
8040 aros_object_format="elf_i386"
8041 aros_flavour="emulation"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8043 aros_default_wbdepth=8
8044 gcc_target_cpu="i386"
8047 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
8049 esac
8050 aros_target_genmap="-Wl,-M -Xlinker >"
8051 aros_flavour="emulation"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8055 openbsd*)
8056 aros_target_arch="openbsd"
8057 aros_target_family="unix"
8058 case "$target_cpu" in
8059 *i?86*)
8060 aros_target_cpu="i386"
8061 aros_object_format="elf_i386"
8062 aros_flavour="emulation"
8063 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8064 gcc_target_cpu="i386"
8067 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8069 esac
8070 aros_target_genmap="-Wl,-M -Xlinker >"
8071 aros_target_nm_flags="-u"
8072 aros_flavour="emulation"
8075 solaris*)
8076 aros_target_arch="solaris"
8077 aros_target_family="unix"
8078 case "$target_cpu" in
8079 *i?86*)
8080 aros_target_cpu="i386"
8081 aros_object_format="elf_i386"
8082 aros_flavour="emulation"
8083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8084 aros_default_wbdepth=8
8085 gcc_target_cpu="i386"
8087 *sparc*)
8088 aros_target_cpu="sparc"
8089 aros_object_format="elf_sparc"
8090 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8091 gcc_target_cpu="sparc"
8094 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8096 esac
8097 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8098 aros_flavour="emulation"
8101 morphos*)
8102 aros_target_arch="morphos"
8103 aros_shared_default="no"
8104 aros_target_cpu="ppc"
8105 aros_object_format="elf_ppc"
8106 aros_flavour="nativecompat"
8107 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8108 gcc_target_cpu="ppc"
8111 sam440)
8112 aros_target_arch="sam440"
8113 aros_shared_default="no"
8114 aros_target_cpu="ppc"
8115 aros_object_format="elf32ppc"
8116 aros_flavour="ppcnative"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8118 aros_kernel_ldflags=""
8119 aros_default_wbwidth=1024
8120 aros_default_wbheight=768
8121 aros_default_wbdepth=24
8122 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8123 gcc_target_cpu="powerpc"
8126 efika)
8127 aros_target_arch="efika"
8128 aros_shared_default="no"
8129 aros_target_cpu="arm"
8130 aros_object_format="armelf_linux_eabi"
8131 aros_flavour="standalone"
8132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8133 aros_kernel_ldflags=""
8134 aros_default_wbwidth=1024
8135 aros_default_wbheight=600
8136 aros_arch_libs="-laeabi"
8137 gcc_default_cpu="armv7-a"
8138 gcc_default_fpu="vfpv3"
8139 gcc_default_float_abi="softfp"
8140 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8141 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8144 chrp)
8145 aros_target_arch="chrp"
8146 aros_shared_default="no"
8147 aros_target_cpu="ppc"
8148 aros_object_format="elf32ppc"
8149 aros_flavour="ppcnative"
8150 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8151 aros_kernel_ldflags=""
8152 aros_default_wbwidth=640
8153 aros_default_wbheight=480
8154 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8155 gcc_target_cpu="powerpc"
8156 case "$aros_target_variant" in
8157 efika)
8158 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8160 esac
8163 amiga*)
8164 aros_target_arch="amiga"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8166 aros_shared_default="no"
8168 case "$target_cpu" in
8169 *m68k*)
8170 # Check whether --enable-amigaos_compliance was given.
8171 if test "${enable_amigaos_compliance+set}" = set; then :
8172 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8175 aros_enable_mmu=no
8176 aros_target_cpu="m68k"
8177 aros_object_format="m68kelf"
8178 aros_flavour="standcompat"
8179 gcc_target_cpu="m68000"
8180 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -fbuiltin -Wno-volatile-register-var -Os"
8181 aros_config_aflags="$aros_config_aflags"
8182 aros_target_strip_flags="-R.comment --strip-debug"
8183 aros_default_wbwidth=640
8184 aros_default_wbheight=256
8185 aros_default_wbdepth=2
8187 *ppc*)
8188 aros_cpu="ppc"
8189 aros_flavour="native"
8190 gcc_target_cpu="ppc"
8193 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8195 esac
8198 mingw*)
8199 aros_target_arch="mingw32"
8200 aros_shared_default="no"
8201 aros_flavour="emulation"
8202 aros_shared_cflags=""
8203 need_crosstools="yes"
8204 need_dlopen="no"
8205 rescomp="windres"
8206 case "$target_cpu" in
8207 *i?86*)
8208 aros_target_cpu="i386"
8209 aros_object_format="elf_i386"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8211 aros_default_wbdepth=8
8212 gcc_target_cpu="i386"
8214 kernel_tool_prefix="i386-mingw32-"
8216 *x86_64*)
8217 aros_target_cpu="x86_64"
8218 aros_object_format="elf_x86_64"
8219 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8220 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8221 aros_default_wbdepth=8
8222 kernel_tool_prefix="x86_64-w64-mingw32-"
8224 *arm*)
8225 aros_target_cpu="arm"
8226 aros_object_format="armelf_linux_eabi"
8227 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8228 aros_arch_libs="-laeabi"
8229 aros_default_wbdepth=8
8230 gcc_target_cpu="arm"
8231 gcc_default_float_abi="soft"
8232 kernel_tool_prefix="arm-mingw32ce-"
8233 aros_default_wbwidth=160
8234 aros_default_wbheight=160
8237 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8239 esac
8240 if test $host_os = "cygwin"; then
8241 aros_kernel_cflags="-mno-cygwin"
8244 pp*)
8245 aros_target_arch="pp"
8246 aros_shared_default="no"
8247 case "$target_cpu" in
8248 *m68k*)
8249 aros_target_cpu="m68k"
8250 aros_object_format="m68kelf"
8251 aros_flavour="palmnative"
8252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8253 aros_default_wbwidth=160
8254 aros_default_wbheight=160
8255 aros_default_wbdepth=1
8256 aros_target_ar_flags="cru"
8257 aros_compiler_libs="-lgcc1"
8258 aros_shared_default=no
8259 aros_shared_cflags="-fpic"
8260 aros_shared_aflags=""
8261 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8262 aros_kernel_ldflags="-Wl,-rpath,./lib"
8263 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8264 aros_debug_aflags=""
8265 aros_debug_ldflags="$aros_symbols_debug"
8266 aros_mungwall_debug="0"
8267 aros_modules_debug="0"
8268 gcc_target_cpu="mc68000"
8269 ignore_undefined_symbols="-ius"
8272 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8274 esac
8277 mac*)
8278 aros_target_arch="mac"
8279 aros_shared_default="no"
8280 case "$target_cpu" in
8281 *m68k*)
8282 aros_target_cpu="m68k"
8283 aros_object_format="m68kelf"
8284 aros_flavour="mac68knative"
8285 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8286 aros_default_wbwidth=512
8287 aros_default_wbheight=384
8288 aros_default_wbdepth=8
8289 aros_target_ar_flags="cru"
8290 aros_compiler_libs="-lgcc1"
8291 aros_shared_default=no
8292 aros_shared_cflags="-fpic"
8293 aros_shared_aflags=""
8294 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8295 aros_kernel_ldflags="-Wl,-rpath,./lib"
8296 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8297 aros_debug_aflags=""
8298 aros_debug_ldflags="$aros_symbols_debug"
8299 aros_mungwall_debug="0"
8300 aros_modules_debug="0"
8301 gcc_target_cpu="mc68000"
8302 ignore_undefined_symbols="-ius"
8305 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8307 esac
8311 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8313 esac
8315 #-----------------------------------------------------------------------------
8316 crosstools_guess=yes
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel toolchain prefix" >&5
8319 $as_echo_n "checking Kernel toolchain prefix... " >&6; }
8321 # Check whether --with-kernel-toolchain-prefix was given.
8322 if test "${with_kernel_toolchain_prefix+set}" = set; then :
8323 withval=$with_kernel_toolchain_prefix; kernel_tool_prefix="$withval"
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8327 $as_echo "$kernel_tool_prefix" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELF toolchain prefix" >&5
8330 $as_echo_n "checking ELF toolchain prefix... " >&6; }
8332 # Check whether --with-elf-toolchain-prefix was given.
8333 if test "${with_elf_toolchain_prefix+set}" = set; then :
8334 withval=$with_elf_toolchain_prefix; elf_tool_prefix="$withval"
8335 crosstools_guess=no
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $elf_tool_prefix" >&5
8339 $as_echo "$elf_tool_prefix" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS toolchain prefix" >&5
8342 $as_echo_n "checking AROS toolchain prefix... " >&6; }
8344 # Check whether --with-aros-toolchain was given.
8345 if test "${with_aros_toolchain+set}" = set; then :
8346 withval=$with_aros_toolchain; aros_tool_prefix="$withval"
8347 crosstools_guess=no
8350 if test "$aros_tool_prefix" = "yes" ; then
8351 aros_tool_prefix=$aros_target_cpu-aros-
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
8354 $as_echo "$aros_tool_prefix" >&6; }
8356 #-----------------------------------------------------------------------------
8357 # Checking if we should build crosstools..
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
8359 $as_echo_n "checking whether to build crosstools... " >&6; }
8360 # Check whether --enable-crosstools was given.
8361 if test "${enable_crosstools+set}" = set; then :
8362 enableval=$enable_crosstools; crosstools="$enableval"
8363 else
8364 crosstools="$crosstools_guess"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
8368 $as_echo "$crosstools" >&6; }
8370 if test "${crosstools}" = "yes"; then
8371 if test "${crosstools_guess}" = "no"; then
8372 as_fn_error $? "Cannot build external toolchain if an external ELF or AROS toolchain is specified" "$LINENO" 5
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the crosstools binaries" >&5
8377 $as_echo_n "checking where to install the crosstools binaries... " >&6; }
8379 # Check whether --with-aros-toolchain-install was given.
8380 if test "${with_aros_toolchain_install+set}" = set; then :
8381 withval=$with_aros_toolchain_install; aros_toolchain_install=$withval
8384 if test "x$aros_toolchain_install" = "x"; then
8385 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8386 else
8387 AROS_CROSSTOOLSDIR="$aros_toolchain_install"
8388 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8391 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8394 # Now process extra architecture-specific options.
8395 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8396 # as well as floating-point ABI.
8397 case "$aros_target_cpu" in
8398 arm)
8399 if test "$gcc_default_cpu" = ""; then
8400 gcc_default_cpu="armv6"
8402 if test "$gcc_default_fpu" = ""; then
8403 gcc_default_fpu="vfp"
8405 if test "$gcc_default_float_abi" = ""; then
8406 gcc_default_float_abi="softfp"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8410 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8412 # Check whether --with-cpu was given.
8413 if test "${with_cpu+set}" = set; then :
8414 withval=$with_cpu; aros_gcc_cpu="$withval"
8415 else
8416 aros_gcc_cpu=$gcc_default_cpu
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8420 $as_echo "$aros_gcc_cpu" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8423 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8425 # Check whether --with-fpu was given.
8426 if test "${with_fpu+set}" = set; then :
8427 withval=$with_fpu; aros_gcc_fpu="$withval"
8428 else
8429 aros_gcc_fpu=$gcc_default_fpu
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8433 $as_echo "$aros_gcc_fpu" >&6; }
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8436 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8438 # Check whether --with-float was given.
8439 if test "${with_float+set}" = set; then :
8440 withval=$with_float; aros_gcc_float_abi="$withval"
8441 else
8442 aros_gcc_float_abi=$gcc_default_float_abi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8446 $as_echo "$aros_gcc_float_abi" >&6; }
8448 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8449 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8451 esac
8453 # Some formats need custom ELF specs.
8454 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8455 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8456 elf_specs_in=config/${aros_object_format}-specs.in
8457 else
8458 elf_specs_in=config/elf-specs.in
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8462 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8464 # Check whether --with-aros-gcc was given.
8465 if test "${with_aros_gcc+set}" = set; then :
8466 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8467 else
8468 aros_gcc_version=""
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8472 $as_echo "$aros_gcc_version" >&6; }
8474 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8475 # Since we override specs, we may need to put these defines there
8476 if test "$gcc_target_cpu" != ""; then
8477 gcc_target_cpu="-D__${gcc_target_cpu}__"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8481 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8483 # Check whether --with-portssources was given.
8484 if test "${with_portssources+set}" = set; then :
8485 withval=$with_portssources; with_portssrcdir=$withval
8486 else
8487 with_portssrcdir="default"
8490 if test "$with_portssrcdir" = "default"; then
8491 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8492 else
8493 AROS_PORTSSRCDIR="$with_portssrcdir"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8496 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8499 $as_echo_n "checking which bootloader to use... " >&6; }
8501 # Check whether --with-bootloader was given.
8502 if test "${with_bootloader+set}" = set; then :
8503 withval=$with_bootloader; target_bootloader=$withval
8504 else
8505 target_bootloader=$target_bootloader
8508 if test "$target_bootloader" = "none"; then
8509 aros_target_bootloader=""
8510 else
8511 aros_target_bootloader="$target_bootloader"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8514 $as_echo "$target_bootloader" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8517 $as_echo_n "checking which icon-set to use... " >&6; }
8519 # Check whether --with-iconset was given.
8520 if test "${with_iconset+set}" = set; then :
8521 withval=$with_iconset; target_iconset=$withval
8522 else
8523 target_iconset="default"
8526 if test "$target_iconset" = "default"; then
8527 aros_target_iconset="Gorilla"
8528 target_iconset="default (Gorilla)"
8529 else
8530 aros_target_iconset="$target_iconset"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8533 $as_echo "$target_iconset" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8536 $as_echo_n "checking which GUI Theme to use... " >&6; }
8538 # Check whether --with-theme was given.
8539 if test "${with_theme+set}" = set; then :
8540 withval=$with_theme; target_guitheme=$withval
8541 else
8542 target_guitheme="default"
8545 if test "$target_guitheme" = "default"; then
8546 aros_target_guitheme="Ice"
8547 else
8548 aros_target_guitheme="$target_guitheme"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8551 $as_echo "$aros_target_guitheme" >&6; }
8553 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8554 # for target code)
8555 cross_compiling=no
8557 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8558 cross_compiling=yes
8561 if test "$aros_host_cpu" == "x86_64" ; then
8562 if test "$aros_target_cpu" == "i386" ; then
8563 cross_compiling=no
8567 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8568 if test "$aros_host_arch" != "$aros_target_arch" ; then
8569 cross_compiling=yes
8571 else
8572 if test "$host_cc_elf" = "no" ; then
8573 cross_compiling=yes
8577 if test "$cross_compiling" = "no" ; then
8578 kernel_tool_prefix=""
8579 if test "$host_cc_elf" = "yes" ; then
8580 elf_tool_prefix=""
8584 #######################################################################
8585 ## Compute what toolchains to use, and their paths ##
8586 #######################################################################
8588 # This takes, as input:
8589 # crosstools {yes,no}
8590 # aros_gcc_version {default,[version]}
8591 # kernel_tool_prefix {none,[some-arch-os-]}
8592 # aros_tool_prefix ${target_cpu}-aros-
8594 # The output is
8595 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8596 # Where the 'kernel' binaries are located
8597 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8598 # Where the 'target' binaries are located
8599 # (not the symlink farm - that is aros_target_*!)
8601 # The rules are:
8602 # if crosstools then
8603 # if kernel_tools_prefix = "no-kernel-prefix-"
8604 # aros_kernel_* = crosstools cc paths
8605 # aros_kernel_cc = elf cc wrapper around crosstools cc
8606 # else
8607 # VALIDATE(${kernel_tools_prefix}*)
8608 # aros_kernel_* = ${kernel_tools_prefix}*
8609 # if ${kernel_tools_prefix}cc is an AROS gcc
8610 # aros_kernel_cc = ${kernel_tools_prefix}cc
8611 # else
8612 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8613 # fi
8614 # fi
8616 # orig_target_* = aros built crosstools
8617 # orig_target_cc = elf cc wrapper around crosstools cc
8618 # else
8619 # VALIDATE(${kernel_tools_prefix}*)
8621 # orig_target_* = aros_kernel_*
8622 # if aros_kernel_cc is an AROS gcc
8623 # orig_target_cc = aros_kernel_cc
8624 # else
8625 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8626 # fi
8627 # fi
8629 target_tool_prefix="${target_cpu}-aros-"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kernel tools" >&5
8632 $as_echo_n "checking which kernel tools... " >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8634 $as_echo "$kernel_tool_prefix" >&6; };
8636 if test "$kernel_tool_prefix" = "none" ; then
8637 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8638 as_fn_error $? "--with-kernel-tool-prefix= is required for this arch" "$LINENO" 5
8640 else
8641 # Kernel tools required - find them
8642 # Note that 'normally', aros_kernel_* overrides will
8643 # empty, unless specified in the per-arch sections above.
8645 if test "$aros_kernel_cpp" = ""; then
8646 if test "$cross_compiling" = "yes" ; then
8647 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8648 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $aros_kernel_cpp in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8675 esac
8677 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8678 if test -n "$aros_kernel_cpp"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8680 $as_echo "$aros_kernel_cpp" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 else
8688 if test "$GCC" = "yes"; then
8689 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8690 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8691 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 case $aros_kernel_cpp in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in `dirname $aros_gcc_cpp`
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8713 done
8714 done
8715 IFS=$as_save_IFS
8718 esac
8720 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8721 if test -n "$aros_kernel_cpp"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8723 $as_echo "$aros_kernel_cpp" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8731 if test "$aros_kernel_cpp" = ""; then
8732 # Extract the first word of "cpp", so it can be a program name with args.
8733 set dummy cpp; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 case $aros_kernel_cpp in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8760 esac
8762 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8763 if test -n "$aros_kernel_cpp"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8765 $as_echo "$aros_kernel_cpp" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8774 else
8775 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8776 set dummy $aros_kernel_cpp; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 case $aros_kernel_cpp in
8783 [\\/]* | ?:[\\/]*)
8784 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8798 done
8799 done
8800 IFS=$as_save_IFS
8803 esac
8805 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8806 if test -n "$aros_kernel_cpp"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8808 $as_echo "$aros_kernel_cpp" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8817 if test "$aros_kernel_cpp" = ""; then
8818 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8820 if test "x$aros_kernel_cc" = "x"; then
8821 aros_kernel_cc=${kernel_tool_prefix}gcc
8824 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8825 if test "$cross_compiling" = "yes" ; then
8826 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8827 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $aros_kernel_cc in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8854 esac
8856 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8857 if test -n "$aros_kernel_cc"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8859 $as_echo "$aros_kernel_cc" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8866 else
8867 if test "$GCC" = "yes"; then
8868 aros_gcc_cc=`$CC -print-prog-name=cc`
8869 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8870 set dummy `basename $aros_gcc_cc`; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 case $aros_kernel_cc in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in `dirname $aros_gcc_cc`
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8897 esac
8899 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8900 if test -n "$aros_kernel_cc"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8902 $as_echo "$aros_kernel_cc" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8910 if test "$aros_kernel_cc" = ""; then
8911 # Extract the first word of "cc", so it can be a program name with args.
8912 set dummy cc; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 case $aros_kernel_cc in
8919 [\\/]* | ?:[\\/]*)
8920 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8939 esac
8941 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8942 if test -n "$aros_kernel_cc"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8944 $as_echo "$aros_kernel_cc" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8953 else
8954 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8955 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 case $aros_kernel_cc in
8962 [\\/]* | ?:[\\/]*)
8963 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8977 done
8978 done
8979 IFS=$as_save_IFS
8982 esac
8984 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8985 if test -n "$aros_kernel_cc"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8987 $as_echo "$aros_kernel_cc" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8996 if test "$aros_kernel_cc" = ""; then
8997 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8999 if test "x$aros_kernel_cxx" = "x"; then
9000 aros_kernel_cxx=${kernel_tool_prefix}g++
9003 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
9004 if test "$cross_compiling" = "yes" ; then
9005 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
9006 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 case $aros_kernel_cxx in
9013 [\\/]* | ?:[\\/]*)
9014 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9033 esac
9035 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9036 if test -n "$aros_kernel_cxx"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9038 $as_echo "$aros_kernel_cxx" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9045 else
9046 if test "$GCC" = "yes"; then
9047 aros_gcc_cxx=`$CC -print-prog-name=cxx`
9048 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
9049 set dummy `basename $aros_gcc_cxx`; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 case $aros_kernel_cxx in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in `dirname $aros_gcc_cxx`
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9071 done
9072 done
9073 IFS=$as_save_IFS
9076 esac
9078 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9079 if test -n "$aros_kernel_cxx"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9081 $as_echo "$aros_kernel_cxx" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9089 if test "$aros_kernel_cxx" = ""; then
9090 # Extract the first word of "cxx", so it can be a program name with args.
9091 set dummy cxx; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 case $aros_kernel_cxx in
9098 [\\/]* | ?:[\\/]*)
9099 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111 break 2
9113 done
9114 done
9115 IFS=$as_save_IFS
9118 esac
9120 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9121 if test -n "$aros_kernel_cxx"; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9123 $as_echo "$aros_kernel_cxx" >&6; }
9124 else
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }
9132 else
9133 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9134 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 case $aros_kernel_cxx in
9141 [\\/]* | ?:[\\/]*)
9142 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9161 esac
9163 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9164 if test -n "$aros_kernel_cxx"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9166 $as_echo "$aros_kernel_cxx" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9175 # If it's set, make sure it's really there
9176 if test "x$aros_kernel_cxx" != "x" ; then
9177 if test "$aros_kernel_cxx" = ""; then
9178 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9182 if test "$aros_kernel_ld" = ""; then
9183 if test "$cross_compiling" = "yes" ; then
9184 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9185 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 case $aros_kernel_ld in
9192 [\\/]* | ?:[\\/]*)
9193 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9207 done
9208 done
9209 IFS=$as_save_IFS
9212 esac
9214 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9215 if test -n "$aros_kernel_ld"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9217 $as_echo "$aros_kernel_ld" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9224 else
9225 if test "$GCC" = "yes"; then
9226 aros_gcc_ld=`$CC -print-prog-name=ld`
9227 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9228 set dummy `basename $aros_gcc_ld`; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 case $aros_kernel_ld in
9235 [\\/]* | ?:[\\/]*)
9236 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in `dirname $aros_gcc_ld`
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9250 done
9251 done
9252 IFS=$as_save_IFS
9255 esac
9257 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9258 if test -n "$aros_kernel_ld"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9260 $as_echo "$aros_kernel_ld" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 if test "$aros_kernel_ld" = ""; then
9269 # Extract the first word of "ld", so it can be a program name with args.
9270 set dummy ld; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 case $aros_kernel_ld in
9277 [\\/]* | ?:[\\/]*)
9278 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9297 esac
9299 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9300 if test -n "$aros_kernel_ld"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9302 $as_echo "$aros_kernel_ld" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9311 else
9312 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9313 set dummy $aros_kernel_ld; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 case $aros_kernel_ld in
9320 [\\/]* | ?:[\\/]*)
9321 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9340 esac
9342 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9343 if test -n "$aros_kernel_ld"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9345 $as_echo "$aros_kernel_ld" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9354 if test "$aros_kernel_ld" = ""; then
9355 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9358 if test "$aros_kernel_as" = ""; then
9359 if test "$cross_compiling" = "yes" ; then
9360 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9361 set dummy ${kernel_tool_prefix}as; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_aros_kernel_as+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $aros_kernel_as in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_kernel_as=$ac_cv_path_aros_kernel_as
9391 if test -n "$aros_kernel_as"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9393 $as_echo "$aros_kernel_as" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9400 else
9401 if test "$GCC" = "yes"; then
9402 aros_gcc_as=`$CC -print-prog-name=as`
9403 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9404 set dummy `basename $aros_gcc_as`; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_kernel_as+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_kernel_as in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in `dirname $aros_gcc_as`
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_kernel_as=$ac_cv_path_aros_kernel_as
9434 if test -n "$aros_kernel_as"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9436 $as_echo "$aros_kernel_as" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9444 if test "$aros_kernel_as" = ""; then
9445 # Extract the first word of "as", so it can be a program name with args.
9446 set dummy as; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_kernel_as+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_kernel_as in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9464 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_kernel_as=$ac_cv_path_aros_kernel_as
9476 if test -n "$aros_kernel_as"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9478 $as_echo "$aros_kernel_as" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9487 else
9488 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9489 set dummy $aros_kernel_as; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_path_aros_kernel_as+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 case $aros_kernel_as in
9496 [\\/]* | ?:[\\/]*)
9497 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9516 esac
9518 aros_kernel_as=$ac_cv_path_aros_kernel_as
9519 if test -n "$aros_kernel_as"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9521 $as_echo "$aros_kernel_as" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9530 if test "$aros_kernel_as" = ""; then
9531 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9534 if test "$aros_kernel_ar" = ""; then
9535 if test "$cross_compiling" = "yes" ; then
9536 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9537 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539 $as_echo_n "checking for $ac_word... " >&6; }
9540 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 case $aros_kernel_ar in
9544 [\\/]* | ?:[\\/]*)
9545 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9564 esac
9566 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9567 if test -n "$aros_kernel_ar"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9569 $as_echo "$aros_kernel_ar" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9576 else
9577 if test "$GCC" = "yes"; then
9578 aros_gcc_ar=`$CC -print-prog-name=ar`
9579 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9580 set dummy `basename $aros_gcc_ar`; ac_word=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 case $aros_kernel_ar in
9587 [\\/]* | ?:[\\/]*)
9588 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in `dirname $aros_gcc_ar`
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9602 done
9603 done
9604 IFS=$as_save_IFS
9607 esac
9609 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9610 if test -n "$aros_kernel_ar"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9612 $as_echo "$aros_kernel_ar" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test "$aros_kernel_ar" = ""; then
9621 # Extract the first word of "ar", so it can be a program name with args.
9622 set dummy ar; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 case $aros_kernel_ar in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9649 esac
9651 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9652 if test -n "$aros_kernel_ar"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9654 $as_echo "$aros_kernel_ar" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9663 else
9664 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9665 set dummy $aros_kernel_ar; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 case $aros_kernel_ar in
9672 [\\/]* | ?:[\\/]*)
9673 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9683 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9687 done
9688 done
9689 IFS=$as_save_IFS
9692 esac
9694 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9695 if test -n "$aros_kernel_ar"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9697 $as_echo "$aros_kernel_ar" >&6; }
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9706 if test "$aros_kernel_ar" = ""; then
9707 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9710 if test "$aros_kernel_ranlib" = ""; then
9711 if test "$cross_compiling" = "yes" ; then
9712 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9713 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 case $aros_kernel_ranlib in
9720 [\\/]* | ?:[\\/]*)
9721 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9735 done
9736 done
9737 IFS=$as_save_IFS
9740 esac
9742 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9743 if test -n "$aros_kernel_ranlib"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9745 $as_echo "$aros_kernel_ranlib" >&6; }
9746 else
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9752 else
9753 if test "$GCC" = "yes"; then
9754 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9755 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9756 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 case $aros_kernel_ranlib in
9763 [\\/]* | ?:[\\/]*)
9764 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in `dirname $aros_gcc_ranlib`
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9778 done
9779 done
9780 IFS=$as_save_IFS
9783 esac
9785 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9786 if test -n "$aros_kernel_ranlib"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9788 $as_echo "$aros_kernel_ranlib" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9796 if test "$aros_kernel_ranlib" = ""; then
9797 # Extract the first word of "ranlib", so it can be a program name with args.
9798 set dummy ranlib; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 case $aros_kernel_ranlib in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in $PATH
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9820 done
9821 done
9822 IFS=$as_save_IFS
9825 esac
9827 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9828 if test -n "$aros_kernel_ranlib"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9830 $as_echo "$aros_kernel_ranlib" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9839 else
9840 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9841 set dummy $aros_kernel_ranlib; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 case $aros_kernel_ranlib in
9848 [\\/]* | ?:[\\/]*)
9849 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9868 esac
9870 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9871 if test -n "$aros_kernel_ranlib"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9873 $as_echo "$aros_kernel_ranlib" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9882 if test "$aros_kernel_ranlib" = ""; then
9883 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9886 if test "$aros_kernel_nm" = ""; then
9887 if test "$cross_compiling" = "yes" ; then
9888 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9889 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 case $aros_kernel_nm in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9916 esac
9918 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9919 if test -n "$aros_kernel_nm"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9921 $as_echo "$aros_kernel_nm" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9928 else
9929 if test "$GCC" = "yes"; then
9930 aros_gcc_nm=`$CC -print-prog-name=nm`
9931 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9932 set dummy `basename $aros_gcc_nm`; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 case $aros_kernel_nm in
9939 [\\/]* | ?:[\\/]*)
9940 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in `dirname $aros_gcc_nm`
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9959 esac
9961 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9962 if test -n "$aros_kernel_nm"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9964 $as_echo "$aros_kernel_nm" >&6; }
9965 else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9972 if test "$aros_kernel_nm" = ""; then
9973 # Extract the first word of "nm", so it can be a program name with args.
9974 set dummy nm; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 case $aros_kernel_nm in
9981 [\\/]* | ?:[\\/]*)
9982 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10001 esac
10003 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10004 if test -n "$aros_kernel_nm"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10006 $as_echo "$aros_kernel_nm" >&6; }
10007 else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10015 else
10016 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
10017 set dummy $aros_kernel_nm; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_path_aros_kernel_nm+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 case $aros_kernel_nm in
10024 [\\/]* | ?:[\\/]*)
10025 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10039 done
10040 done
10041 IFS=$as_save_IFS
10044 esac
10046 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
10047 if test -n "$aros_kernel_nm"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
10049 $as_echo "$aros_kernel_nm" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10058 if test "$aros_kernel_nm" = ""; then
10059 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10062 if test "$aros_kernel_strip" = ""; then
10063 if test "$cross_compiling" = "yes" ; then
10064 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
10065 set dummy ${kernel_tool_prefix}strip; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 case $aros_kernel_strip in
10072 [\\/]* | ?:[\\/]*)
10073 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10083 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10087 done
10088 done
10089 IFS=$as_save_IFS
10092 esac
10094 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10095 if test -n "$aros_kernel_strip"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10097 $as_echo "$aros_kernel_strip" >&6; }
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10104 else
10105 if test "$GCC" = "yes"; then
10106 aros_gcc_strip=`$CC -print-prog-name=strip`
10107 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10108 set dummy `basename $aros_gcc_strip`; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 case $aros_kernel_strip in
10115 [\\/]* | ?:[\\/]*)
10116 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in `dirname $aros_gcc_strip`
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10126 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10132 IFS=$as_save_IFS
10135 esac
10137 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10138 if test -n "$aros_kernel_strip"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10140 $as_echo "$aros_kernel_strip" >&6; }
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10148 if test "$aros_kernel_strip" = ""; then
10149 # Extract the first word of "strip", so it can be a program name with args.
10150 set dummy strip; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 case $aros_kernel_strip in
10157 [\\/]* | ?:[\\/]*)
10158 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10177 esac
10179 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10180 if test -n "$aros_kernel_strip"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10182 $as_echo "$aros_kernel_strip" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10191 else
10192 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10193 set dummy $aros_kernel_strip; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 case $aros_kernel_strip in
10200 [\\/]* | ?:[\\/]*)
10201 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10215 done
10216 done
10217 IFS=$as_save_IFS
10220 esac
10222 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10223 if test -n "$aros_kernel_strip"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10225 $as_echo "$aros_kernel_strip" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10234 if test "$aros_kernel_strip" = ""; then
10235 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10238 # Objcopy and objdump are not required for the kernel
10239 # toolchain on many architectures.
10240 # So we'll look for them, but not make them strictly required.
10242 if test "$aros_kernel_objcopy" = ""; then
10243 if test "$cross_compiling" = "yes" ; then
10244 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10245 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 case $aros_kernel_objcopy in
10252 [\\/]* | ?:[\\/]*)
10253 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10263 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10272 esac
10274 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10275 if test -n "$aros_kernel_objcopy"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10277 $as_echo "$aros_kernel_objcopy" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 else
10285 if test "$GCC" = "yes"; then
10286 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10287 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10288 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 case $aros_kernel_objcopy in
10295 [\\/]* | ?:[\\/]*)
10296 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in `dirname $aros_gcc_objcopy`
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10310 done
10311 done
10312 IFS=$as_save_IFS
10315 esac
10317 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10318 if test -n "$aros_kernel_objcopy"; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10320 $as_echo "$aros_kernel_objcopy" >&6; }
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10328 if test "$aros_kernel_objcopy" = ""; then
10329 # Extract the first word of "objcopy", so it can be a program name with args.
10330 set dummy objcopy; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 case $aros_kernel_objcopy in
10337 [\\/]* | ?:[\\/]*)
10338 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10357 esac
10359 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10360 if test -n "$aros_kernel_objcopy"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10362 $as_echo "$aros_kernel_objcopy" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10371 else
10372 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10373 set dummy $aros_kernel_objcopy; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 case $aros_kernel_objcopy in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10395 done
10396 done
10397 IFS=$as_save_IFS
10400 esac
10402 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10403 if test -n "$aros_kernel_objcopy"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10405 $as_echo "$aros_kernel_objcopy" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10415 if test "$aros_kernel_objdump" = ""; then
10416 if test "$cross_compiling" = "yes" ; then
10417 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10418 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420 $as_echo_n "checking for $ac_word... " >&6; }
10421 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 case $aros_kernel_objdump in
10425 [\\/]* | ?:[\\/]*)
10426 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430 for as_dir in $PATH
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10440 done
10441 done
10442 IFS=$as_save_IFS
10445 esac
10447 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10448 if test -n "$aros_kernel_objdump"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10450 $as_echo "$aros_kernel_objdump" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10457 else
10458 if test "$GCC" = "yes"; then
10459 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10460 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10461 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 case $aros_kernel_objdump in
10468 [\\/]* | ?:[\\/]*)
10469 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in `dirname $aros_gcc_objdump`
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10483 done
10484 done
10485 IFS=$as_save_IFS
10488 esac
10490 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10491 if test -n "$aros_kernel_objdump"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10493 $as_echo "$aros_kernel_objdump" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test "$aros_kernel_objdump" = ""; then
10502 # Extract the first word of "objdump", so it can be a program name with args.
10503 set dummy objdump; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 case $aros_kernel_objdump in
10510 [\\/]* | ?:[\\/]*)
10511 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10521 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10525 done
10526 done
10527 IFS=$as_save_IFS
10530 esac
10532 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10533 if test -n "$aros_kernel_objdump"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10535 $as_echo "$aros_kernel_objdump" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10544 else
10545 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10546 set dummy $aros_kernel_objdump; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 case $aros_kernel_objdump in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10573 esac
10575 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10576 if test -n "$aros_kernel_objdump"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10578 $as_echo "$aros_kernel_objdump" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10587 if test "x${crosstools}" != "xyes" ; then
10588 if test "$aros_kernel_objcopy" = ""; then
10589 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10591 if test "$aros_kernel_objdump" = ""; then
10592 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools to use" >&5
10598 $as_echo_n "checking which target tools to use... " >&6; }
10599 if test "$crosstools" = "yes"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10601 $as_echo "$target_tool_prefix" >&6; }
10602 # We are are building AROS crosstools
10603 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10604 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10605 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10606 orig_target_cpp="${tmp_tool_prefix}cpp"
10607 orig_target_ld="${tmp_tool_prefix}ld"
10608 orig_target_as="${tmp_tool_prefix}as"
10609 orig_target_ar="${tmp_tool_prefix}ar"
10610 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10611 orig_target_nm="${tmp_tool_prefix}nm"
10612 orig_target_strip="${tmp_tool_prefix}strip"
10613 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10614 orig_target_objdump="${tmp_tool_prefix}objdump"
10615 else
10616 # Determine whether AROS or ELF tools should be used
10617 if test "$aros_tool_prefix" = "none"; then
10618 aros_tool_prefix="${elf_tool_prefix}"
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_tool_prefix" >&5
10622 $as_echo "$aros_tool_prefix" >&6; }
10623 # We are *not* building AROS crosstools - use the AROS or ELF tools
10625 if test "${aros_tool_prefix}cpp" = ""; then
10626 if test "$cross_compiling" = "yes" ; then
10627 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10628 set dummy ${target_tool_prefix}cpp; ac_word=$2
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630 $as_echo_n "checking for $ac_word... " >&6; }
10631 if ${ac_cv_path_orig_target_cpp+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 case $orig_target_cpp in
10635 [\\/]* | ?:[\\/]*)
10636 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10650 done
10651 done
10652 IFS=$as_save_IFS
10655 esac
10657 orig_target_cpp=$ac_cv_path_orig_target_cpp
10658 if test -n "$orig_target_cpp"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10660 $as_echo "$orig_target_cpp" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10667 else
10668 if test "$GCC" = "yes"; then
10669 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10670 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10671 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if ${ac_cv_path_orig_target_cpp+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 case $orig_target_cpp in
10678 [\\/]* | ?:[\\/]*)
10679 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in `dirname $aros_gcc_cpp`
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10689 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10693 done
10694 done
10695 IFS=$as_save_IFS
10698 esac
10700 orig_target_cpp=$ac_cv_path_orig_target_cpp
10701 if test -n "$orig_target_cpp"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10703 $as_echo "$orig_target_cpp" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10711 if test "$orig_target_cpp" = ""; then
10712 # Extract the first word of "cpp", so it can be a program name with args.
10713 set dummy cpp; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_path_orig_target_cpp+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 case $orig_target_cpp in
10720 [\\/]* | ?:[\\/]*)
10721 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10731 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10735 done
10736 done
10737 IFS=$as_save_IFS
10740 esac
10742 orig_target_cpp=$ac_cv_path_orig_target_cpp
10743 if test -n "$orig_target_cpp"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10745 $as_echo "$orig_target_cpp" >&6; }
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10754 else
10755 # Extract the first word of "${aros_tool_prefix}cpp", so it can be a program name with args.
10756 set dummy ${aros_tool_prefix}cpp; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_path_orig_target_cpp+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 case $orig_target_cpp in
10763 [\\/]* | ?:[\\/]*)
10764 ac_cv_path_orig_target_cpp="$orig_target_cpp" # Let the user override the test with a path.
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_path_orig_target_cpp="$as_dir/$ac_word$ac_exec_ext"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10783 esac
10785 orig_target_cpp=$ac_cv_path_orig_target_cpp
10786 if test -n "$orig_target_cpp"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cpp" >&5
10788 $as_echo "$orig_target_cpp" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10797 if test "$orig_target_cpp" = ""; then
10798 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10801 if test "${aros_tool_prefix}gcc" = ""; then
10802 if test "$cross_compiling" = "yes" ; then
10803 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
10804 set dummy ${target_tool_prefix}gcc; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_path_orig_target_cc+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 case $orig_target_cc in
10811 [\\/]* | ?:[\\/]*)
10812 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10822 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10828 IFS=$as_save_IFS
10831 esac
10833 orig_target_cc=$ac_cv_path_orig_target_cc
10834 if test -n "$orig_target_cc"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10836 $as_echo "$orig_target_cc" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10843 else
10844 if test "$GCC" = "yes"; then
10845 aros_gcc_gcc=`$CC -print-prog-name=gcc`
10846 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
10847 set dummy `basename $aros_gcc_gcc`; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_path_orig_target_cc+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 case $orig_target_cc in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in `dirname $aros_gcc_gcc`
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10874 esac
10876 orig_target_cc=$ac_cv_path_orig_target_cc
10877 if test -n "$orig_target_cc"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10879 $as_echo "$orig_target_cc" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test "$orig_target_cc" = ""; then
10888 # Extract the first word of "gcc", so it can be a program name with args.
10889 set dummy gcc; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if ${ac_cv_path_orig_target_cc+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 case $orig_target_cc in
10896 [\\/]* | ?:[\\/]*)
10897 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10907 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10916 esac
10918 orig_target_cc=$ac_cv_path_orig_target_cc
10919 if test -n "$orig_target_cc"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10921 $as_echo "$orig_target_cc" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10930 else
10931 # Extract the first word of "${aros_tool_prefix}gcc", so it can be a program name with args.
10932 set dummy ${aros_tool_prefix}gcc; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if ${ac_cv_path_orig_target_cc+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 case $orig_target_cc in
10939 [\\/]* | ?:[\\/]*)
10940 ac_cv_path_orig_target_cc="$orig_target_cc" # Let the user override the test with a path.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_path_orig_target_cc="$as_dir/$ac_word$ac_exec_ext"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10954 done
10955 done
10956 IFS=$as_save_IFS
10959 esac
10961 orig_target_cc=$ac_cv_path_orig_target_cc
10962 if test -n "$orig_target_cc"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cc" >&5
10964 $as_echo "$orig_target_cc" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10973 if test "$orig_target_cc" = ""; then
10974 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10976 if test "x$orig_target_cxx" != "x" ; then
10978 if test "${aros_tool_prefix}g++" = ""; then
10979 if test "$cross_compiling" = "yes" ; then
10980 # Extract the first word of "${target_tool_prefix}g++", so it can be a program name with args.
10981 set dummy ${target_tool_prefix}g++; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if ${ac_cv_path_orig_target_cxx+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 case $orig_target_cxx in
10988 [\\/]* | ?:[\\/]*)
10989 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11003 done
11004 done
11005 IFS=$as_save_IFS
11008 esac
11010 orig_target_cxx=$ac_cv_path_orig_target_cxx
11011 if test -n "$orig_target_cxx"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11013 $as_echo "$orig_target_cxx" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11020 else
11021 if test "$GCC" = "yes"; then
11022 aros_gcc_g++=`$CC -print-prog-name=g++`
11023 # Extract the first word of "`basename $aros_gcc_[g++]`", so it can be a program name with args.
11024 set dummy `basename $aros_gcc_g++`; ac_word=$2
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026 $as_echo_n "checking for $ac_word... " >&6; }
11027 if ${ac_cv_path_orig_target_cxx+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 case $orig_target_cxx in
11031 [\\/]* | ?:[\\/]*)
11032 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in `dirname $aros_gcc_g++`
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11046 done
11047 done
11048 IFS=$as_save_IFS
11051 esac
11053 orig_target_cxx=$ac_cv_path_orig_target_cxx
11054 if test -n "$orig_target_cxx"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11056 $as_echo "$orig_target_cxx" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11064 if test "$orig_target_cxx" = ""; then
11065 # Extract the first word of "g++", so it can be a program name with args.
11066 set dummy g++; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if ${ac_cv_path_orig_target_cxx+:} false; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 case $orig_target_cxx in
11073 [\\/]* | ?:[\\/]*)
11074 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $PATH
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 break 2
11088 done
11089 done
11090 IFS=$as_save_IFS
11093 esac
11095 orig_target_cxx=$ac_cv_path_orig_target_cxx
11096 if test -n "$orig_target_cxx"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11098 $as_echo "$orig_target_cxx" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11107 else
11108 # Extract the first word of "${aros_tool_prefix}g++", so it can be a program name with args.
11109 set dummy ${aros_tool_prefix}g++; ac_word=$2
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 $as_echo_n "checking for $ac_word... " >&6; }
11112 if ${ac_cv_path_orig_target_cxx+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 case $orig_target_cxx in
11116 [\\/]* | ?:[\\/]*)
11117 ac_cv_path_orig_target_cxx="$orig_target_cxx" # Let the user override the test with a path.
11120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11127 ac_cv_path_orig_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129 break 2
11131 done
11132 done
11133 IFS=$as_save_IFS
11136 esac
11138 orig_target_cxx=$ac_cv_path_orig_target_cxx
11139 if test -n "$orig_target_cxx"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_cxx" >&5
11141 $as_echo "$orig_target_cxx" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11150 if test "$orig_target_cxx" = ""; then
11151 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
11155 if test "${aros_tool_prefix}ld" = ""; then
11156 if test "$cross_compiling" = "yes" ; then
11157 # Extract the first word of "${target_tool_prefix}gcc", so it can be a program name with args.
11158 set dummy ${target_tool_prefix}gcc; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_path_orig_target_ld+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 case $orig_target_ld in
11165 [\\/]* | ?:[\\/]*)
11166 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11176 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11180 done
11181 done
11182 IFS=$as_save_IFS
11185 esac
11187 orig_target_ld=$ac_cv_path_orig_target_ld
11188 if test -n "$orig_target_ld"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11190 $as_echo "$orig_target_ld" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11197 else
11198 if test "$GCC" = "yes"; then
11199 aros_gcc_gcc=`$CC -print-prog-name=gcc`
11200 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
11201 set dummy `basename $aros_gcc_gcc`; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_path_orig_target_ld+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 case $orig_target_ld in
11208 [\\/]* | ?:[\\/]*)
11209 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in `dirname $aros_gcc_gcc`
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11219 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11223 done
11224 done
11225 IFS=$as_save_IFS
11228 esac
11230 orig_target_ld=$ac_cv_path_orig_target_ld
11231 if test -n "$orig_target_ld"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11233 $as_echo "$orig_target_ld" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11241 if test "$orig_target_ld" = ""; then
11242 # Extract the first word of "gcc", so it can be a program name with args.
11243 set dummy gcc; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_orig_target_ld+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $orig_target_ld in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11270 esac
11272 orig_target_ld=$ac_cv_path_orig_target_ld
11273 if test -n "$orig_target_ld"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11275 $as_echo "$orig_target_ld" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11284 else
11285 # Extract the first word of "${aros_tool_prefix}ld", so it can be a program name with args.
11286 set dummy ${aros_tool_prefix}ld; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if ${ac_cv_path_orig_target_ld+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 case $orig_target_ld in
11293 [\\/]* | ?:[\\/]*)
11294 ac_cv_path_orig_target_ld="$orig_target_ld" # Let the user override the test with a path.
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11304 ac_cv_path_orig_target_ld="$as_dir/$ac_word$ac_exec_ext"
11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 break 2
11308 done
11309 done
11310 IFS=$as_save_IFS
11313 esac
11315 orig_target_ld=$ac_cv_path_orig_target_ld
11316 if test -n "$orig_target_ld"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ld" >&5
11318 $as_echo "$orig_target_ld" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11327 if test "$orig_target_ld" = ""; then
11328 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
11331 if test "${aros_tool_prefix}as" = ""; then
11332 if test "$cross_compiling" = "yes" ; then
11333 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
11334 set dummy ${target_tool_prefix}as; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_path_orig_target_as+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 case $orig_target_as in
11341 [\\/]* | ?:[\\/]*)
11342 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11361 esac
11363 orig_target_as=$ac_cv_path_orig_target_as
11364 if test -n "$orig_target_as"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11366 $as_echo "$orig_target_as" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11373 else
11374 if test "$GCC" = "yes"; then
11375 aros_gcc_as=`$CC -print-prog-name=as`
11376 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
11377 set dummy `basename $aros_gcc_as`; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_path_orig_target_as+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 case $orig_target_as in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in `dirname $aros_gcc_as`
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11399 done
11400 done
11401 IFS=$as_save_IFS
11404 esac
11406 orig_target_as=$ac_cv_path_orig_target_as
11407 if test -n "$orig_target_as"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11409 $as_echo "$orig_target_as" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11417 if test "$orig_target_as" = ""; then
11418 # Extract the first word of "as", so it can be a program name with args.
11419 set dummy as; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_path_orig_target_as+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 case $orig_target_as in
11426 [\\/]* | ?:[\\/]*)
11427 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
11436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11437 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11446 esac
11448 orig_target_as=$ac_cv_path_orig_target_as
11449 if test -n "$orig_target_as"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11451 $as_echo "$orig_target_as" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11460 else
11461 # Extract the first word of "${aros_tool_prefix}as", so it can be a program name with args.
11462 set dummy ${aros_tool_prefix}as; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_path_orig_target_as+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 case $orig_target_as in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_orig_target_as="$orig_target_as" # Let the user override the test with a path.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_path_orig_target_as="$as_dir/$ac_word$ac_exec_ext"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11489 esac
11491 orig_target_as=$ac_cv_path_orig_target_as
11492 if test -n "$orig_target_as"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_as" >&5
11494 $as_echo "$orig_target_as" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11503 if test "$orig_target_as" = ""; then
11504 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
11507 if test "${aros_tool_prefix}ar" = ""; then
11508 if test "$cross_compiling" = "yes" ; then
11509 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11510 set dummy ${target_tool_prefix}ar; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_path_orig_target_ar+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 case $orig_target_ar in
11517 [\\/]* | ?:[\\/]*)
11518 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11528 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11532 done
11533 done
11534 IFS=$as_save_IFS
11537 esac
11539 orig_target_ar=$ac_cv_path_orig_target_ar
11540 if test -n "$orig_target_ar"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11542 $as_echo "$orig_target_ar" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11549 else
11550 if test "$GCC" = "yes"; then
11551 aros_gcc_ar=`$CC -print-prog-name=ar`
11552 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11553 set dummy `basename $aros_gcc_ar`; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_path_orig_target_ar+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 case $orig_target_ar in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in `dirname $aros_gcc_ar`
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11575 done
11576 done
11577 IFS=$as_save_IFS
11580 esac
11582 orig_target_ar=$ac_cv_path_orig_target_ar
11583 if test -n "$orig_target_ar"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11585 $as_echo "$orig_target_ar" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11593 if test "$orig_target_ar" = ""; then
11594 # Extract the first word of "ar", so it can be a program name with args.
11595 set dummy ar; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_path_orig_target_ar+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 case $orig_target_ar in
11602 [\\/]* | ?:[\\/]*)
11603 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11617 done
11618 done
11619 IFS=$as_save_IFS
11622 esac
11624 orig_target_ar=$ac_cv_path_orig_target_ar
11625 if test -n "$orig_target_ar"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11627 $as_echo "$orig_target_ar" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11636 else
11637 # Extract the first word of "${aros_tool_prefix}ar", so it can be a program name with args.
11638 set dummy ${aros_tool_prefix}ar; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_path_orig_target_ar+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 case $orig_target_ar in
11645 [\\/]* | ?:[\\/]*)
11646 ac_cv_path_orig_target_ar="$orig_target_ar" # Let the user override the test with a path.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656 ac_cv_path_orig_target_ar="$as_dir/$ac_word$ac_exec_ext"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11660 done
11661 done
11662 IFS=$as_save_IFS
11665 esac
11667 orig_target_ar=$ac_cv_path_orig_target_ar
11668 if test -n "$orig_target_ar"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ar" >&5
11670 $as_echo "$orig_target_ar" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11679 if test "$orig_target_ar" = ""; then
11680 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
11683 if test "${aros_tool_prefix}ranlib" = ""; then
11684 if test "$cross_compiling" = "yes" ; then
11685 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
11686 set dummy ${target_tool_prefix}ar; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 case $orig_target_ranlib in
11693 [\\/]* | ?:[\\/]*)
11694 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11713 esac
11715 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11716 if test -n "$orig_target_ranlib"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11718 $as_echo "$orig_target_ranlib" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11725 else
11726 if test "$GCC" = "yes"; then
11727 aros_gcc_ar=`$CC -print-prog-name=ar`
11728 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
11729 set dummy `basename $aros_gcc_ar`; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $orig_target_ranlib in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in `dirname $aros_gcc_ar`
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11759 if test -n "$orig_target_ranlib"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11761 $as_echo "$orig_target_ranlib" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test "$orig_target_ranlib" = ""; then
11770 # Extract the first word of "ar", so it can be a program name with args.
11771 set dummy ar; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $orig_target_ranlib in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11798 esac
11800 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11801 if test -n "$orig_target_ranlib"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11803 $as_echo "$orig_target_ranlib" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11812 else
11813 # Extract the first word of "${aros_tool_prefix}ranlib", so it can be a program name with args.
11814 set dummy ${aros_tool_prefix}ranlib; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_orig_target_ranlib+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $orig_target_ranlib in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_orig_target_ranlib="$orig_target_ranlib" # Let the user override the test with a path.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_path_orig_target_ranlib="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11841 esac
11843 orig_target_ranlib=$ac_cv_path_orig_target_ranlib
11844 if test -n "$orig_target_ranlib"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_ranlib" >&5
11846 $as_echo "$orig_target_ranlib" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11855 if test "$orig_target_ranlib" = ""; then
11856 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
11859 if test "${aros_tool_prefix}nm" = ""; then
11860 if test "$cross_compiling" = "yes" ; then
11861 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
11862 set dummy ${target_tool_prefix}nm; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if ${ac_cv_path_orig_target_nm+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 case $orig_target_nm in
11869 [\\/]* | ?:[\\/]*)
11870 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11880 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11886 IFS=$as_save_IFS
11889 esac
11891 orig_target_nm=$ac_cv_path_orig_target_nm
11892 if test -n "$orig_target_nm"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11894 $as_echo "$orig_target_nm" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 else
11902 if test "$GCC" = "yes"; then
11903 aros_gcc_nm=`$CC -print-prog-name=nm`
11904 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
11905 set dummy `basename $aros_gcc_nm`; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_path_orig_target_nm+:} false; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 case $orig_target_nm in
11912 [\\/]* | ?:[\\/]*)
11913 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in `dirname $aros_gcc_nm`
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11927 done
11928 done
11929 IFS=$as_save_IFS
11932 esac
11934 orig_target_nm=$ac_cv_path_orig_target_nm
11935 if test -n "$orig_target_nm"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11937 $as_echo "$orig_target_nm" >&6; }
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11945 if test "$orig_target_nm" = ""; then
11946 # Extract the first word of "nm", so it can be a program name with args.
11947 set dummy nm; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_orig_target_nm+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $orig_target_nm in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11974 esac
11976 orig_target_nm=$ac_cv_path_orig_target_nm
11977 if test -n "$orig_target_nm"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
11979 $as_echo "$orig_target_nm" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11988 else
11989 # Extract the first word of "${aros_tool_prefix}nm", so it can be a program name with args.
11990 set dummy ${aros_tool_prefix}nm; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_path_orig_target_nm+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 case $orig_target_nm in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_orig_target_nm="$orig_target_nm" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_path_orig_target_nm="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12017 esac
12019 orig_target_nm=$ac_cv_path_orig_target_nm
12020 if test -n "$orig_target_nm"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_nm" >&5
12022 $as_echo "$orig_target_nm" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12031 if test "$orig_target_nm" = ""; then
12032 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
12035 if test "${aros_tool_prefix}strip" = ""; then
12036 if test "$cross_compiling" = "yes" ; then
12037 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
12038 set dummy ${target_tool_prefix}strip; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_path_orig_target_strip+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 case $orig_target_strip in
12045 [\\/]* | ?:[\\/]*)
12046 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 break 2
12060 done
12061 done
12062 IFS=$as_save_IFS
12065 esac
12067 orig_target_strip=$ac_cv_path_orig_target_strip
12068 if test -n "$orig_target_strip"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12070 $as_echo "$orig_target_strip" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12077 else
12078 if test "$GCC" = "yes"; then
12079 aros_gcc_strip=`$CC -print-prog-name=strip`
12080 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
12081 set dummy `basename $aros_gcc_strip`; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_path_orig_target_strip+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 case $orig_target_strip in
12088 [\\/]* | ?:[\\/]*)
12089 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in `dirname $aros_gcc_strip`
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12103 done
12104 done
12105 IFS=$as_save_IFS
12108 esac
12110 orig_target_strip=$ac_cv_path_orig_target_strip
12111 if test -n "$orig_target_strip"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12113 $as_echo "$orig_target_strip" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 if test "$orig_target_strip" = ""; then
12122 # Extract the first word of "strip", so it can be a program name with args.
12123 set dummy strip; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_path_orig_target_strip+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 case $orig_target_strip in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12145 done
12146 done
12147 IFS=$as_save_IFS
12150 esac
12152 orig_target_strip=$ac_cv_path_orig_target_strip
12153 if test -n "$orig_target_strip"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12155 $as_echo "$orig_target_strip" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12164 else
12165 # Extract the first word of "${aros_tool_prefix}strip", so it can be a program name with args.
12166 set dummy ${aros_tool_prefix}strip; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_path_orig_target_strip+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 case $orig_target_strip in
12173 [\\/]* | ?:[\\/]*)
12174 ac_cv_path_orig_target_strip="$orig_target_strip" # Let the user override the test with a path.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_path_orig_target_strip="$as_dir/$ac_word$ac_exec_ext"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12188 done
12189 done
12190 IFS=$as_save_IFS
12193 esac
12195 orig_target_strip=$ac_cv_path_orig_target_strip
12196 if test -n "$orig_target_strip"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_strip" >&5
12198 $as_echo "$orig_target_strip" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12207 if test "$orig_target_strip" = ""; then
12208 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
12211 if test "${aros_tool_prefix}objcopy" = ""; then
12212 if test "$cross_compiling" = "yes" ; then
12213 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
12214 set dummy ${target_tool_prefix}objcopy; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 case $orig_target_objcopy in
12221 [\\/]* | ?:[\\/]*)
12222 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12232 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12236 done
12237 done
12238 IFS=$as_save_IFS
12241 esac
12243 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12244 if test -n "$orig_target_objcopy"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12246 $as_echo "$orig_target_objcopy" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12253 else
12254 if test "$GCC" = "yes"; then
12255 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
12256 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
12257 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 case $orig_target_objcopy in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in `dirname $aros_gcc_objcopy`
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12284 esac
12286 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12287 if test -n "$orig_target_objcopy"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12289 $as_echo "$orig_target_objcopy" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12297 if test "$orig_target_objcopy" = ""; then
12298 # Extract the first word of "objcopy", so it can be a program name with args.
12299 set dummy objcopy; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 case $orig_target_objcopy in
12306 [\\/]* | ?:[\\/]*)
12307 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12317 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12321 done
12322 done
12323 IFS=$as_save_IFS
12326 esac
12328 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12329 if test -n "$orig_target_objcopy"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12331 $as_echo "$orig_target_objcopy" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12340 else
12341 # Extract the first word of "${aros_tool_prefix}objcopy", so it can be a program name with args.
12342 set dummy ${aros_tool_prefix}objcopy; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_orig_target_objcopy+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 case $orig_target_objcopy in
12349 [\\/]* | ?:[\\/]*)
12350 ac_cv_path_orig_target_objcopy="$orig_target_objcopy" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_path_orig_target_objcopy="$as_dir/$ac_word$ac_exec_ext"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12364 done
12365 done
12366 IFS=$as_save_IFS
12369 esac
12371 orig_target_objcopy=$ac_cv_path_orig_target_objcopy
12372 if test -n "$orig_target_objcopy"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objcopy" >&5
12374 $as_echo "$orig_target_objcopy" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12383 if test "$orig_target_objcopy" = ""; then
12384 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
12387 if test "${aros_tool_prefix}objdump" = ""; then
12388 if test "$cross_compiling" = "yes" ; then
12389 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
12390 set dummy ${target_tool_prefix}objdump; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_orig_target_objdump+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $orig_target_objdump in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12417 esac
12419 orig_target_objdump=$ac_cv_path_orig_target_objdump
12420 if test -n "$orig_target_objdump"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12422 $as_echo "$orig_target_objdump" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12429 else
12430 if test "$GCC" = "yes"; then
12431 aros_gcc_objdump=`$CC -print-prog-name=objdump`
12432 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
12433 set dummy `basename $aros_gcc_objdump`; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_path_orig_target_objdump+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 case $orig_target_objdump in
12440 [\\/]* | ?:[\\/]*)
12441 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in `dirname $aros_gcc_objdump`
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12451 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12455 done
12456 done
12457 IFS=$as_save_IFS
12460 esac
12462 orig_target_objdump=$ac_cv_path_orig_target_objdump
12463 if test -n "$orig_target_objdump"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12465 $as_echo "$orig_target_objdump" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12473 if test "$orig_target_objdump" = ""; then
12474 # Extract the first word of "objdump", so it can be a program name with args.
12475 set dummy objdump; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_path_orig_target_objdump+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $orig_target_objdump in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 orig_target_objdump=$ac_cv_path_orig_target_objdump
12505 if test -n "$orig_target_objdump"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12507 $as_echo "$orig_target_objdump" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12516 else
12517 # Extract the first word of "${aros_tool_prefix}objdump", so it can be a program name with args.
12518 set dummy ${aros_tool_prefix}objdump; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_path_orig_target_objdump+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 case $orig_target_objdump in
12525 [\\/]* | ?:[\\/]*)
12526 ac_cv_path_orig_target_objdump="$orig_target_objdump" # Let the user override the test with a path.
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_path_orig_target_objdump="$as_dir/$ac_word$ac_exec_ext"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12540 done
12541 done
12542 IFS=$as_save_IFS
12545 esac
12547 orig_target_objdump=$ac_cv_path_orig_target_objdump
12548 if test -n "$orig_target_objdump"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $orig_target_objdump" >&5
12550 $as_echo "$orig_target_objdump" >&6; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12559 if test "$orig_target_objdump" = ""; then
12560 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
12564 if test "$kernel_tool_prefix" = "none" ; then
12565 # No kernel tools specified
12566 # Assume target tools == kernel tools with ELF wrapper
12567 aros_kernel_cc=$orig_target_cc
12568 aros_kernel_cxx=$orig_target_cxx
12569 aros_kernel_cpp=$orig_target_cpp
12570 aros_kernel_ld=$orig_target_ld
12571 aros_kernel_as=$orig_target_as
12572 aros_kernel_ar=$orig_target_ar
12573 aros_kernel_ranlib=$orig_target_ranlib
12574 aros_kernel_nm=$orig_target_nm
12575 aros_kernel_strip=$orig_target_strip
12576 aros_kernel_objcopy=$orig_target_objcopy
12577 aros_kernel_objdump=$orig_target_objdump
12578 use_kernel_cc_wrapper=yes
12581 # At this point, all aros_kernel_* and aros_target_*
12582 # tools should be set up correctly
12584 CC="$aros_kernel_cc $kernel_tool_flags"
12585 CPP="$aros_kernel_cpp"
12587 #-----------------------------------------------------------------------------
12589 # Disable pointer-signedness warnings if the compiler recognises the option
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
12592 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
12593 save_cflags="$CFLAGS"
12594 if test "$crosstools" != "yes" ; then
12595 CFLAGS="$CFLAGS -Wno-pointer-sign"
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12600 main ()
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_compile "$LINENO"; then :
12608 use_no_sign_warning="yes"
12609 else
12610 use_no_sign_warning="no"
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 else
12614 # we do know it is supported for the smallest version of gcc we are going to build
12615 # we assume it's also supported by later versions
12616 use_no_sign_warning=yes
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
12619 $as_echo "$use_no_sign_warning" >&6; }
12620 if test "x-$use_no_sign_warning" = "x-yes" ; then
12621 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
12623 CFLAGS="$save_cflags"
12625 #-----------------------------------------------------------------------------
12627 # Find all the tools we need to compile. This could be cross-compiling
12628 # though! If that is the case we use the GNU form of the target and
12629 # simply add this to the front of the binary name. This is rather simple,
12630 # but it should work under most circumstances.
12632 # The default tools are to use the same as the host, but only if the
12633 # host and target CPU are the same. With GCC this is normally enough.
12636 aros_cc_pre=""
12637 aros_shared_ld="$aros_host_ld"
12639 aros_target_mkdep="$aros_host_mkdep"
12641 # The default tools executables to be linked to.
12642 if test "$rescomp" != ""; then
12643 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
12644 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 case $aros_kernel_rescomp in
12651 [\\/]* | ?:[\\/]*)
12652 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12662 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12671 esac
12673 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
12674 if test -n "$aros_kernel_rescomp"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
12676 $as_echo "$aros_kernel_rescomp" >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12683 if test "$aros_kernel_rescomp" = ""; then
12684 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
12688 # Set up the sources for the symlink farm
12689 if test "$crosstools" = "yes"; then
12690 crosstools_target=tools-crosstools
12691 else
12692 crosstools_cxx_target=tools-crosstools
12695 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
12696 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
12699 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
12700 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
12701 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
12702 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
12703 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
12704 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
12705 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
12707 # aros_cc_pre is a variable that is added to the front of the compiler name
12708 # in the generated aros-gcc shell script. We need this to enable the cache
12709 # to work across cleaned builds. Also, support DISTCC using the correct
12710 # environment variable.
12713 if test "x${DISTCC}" != "x" ; then
12714 if test "x${CCACHE}" != "x" ; then
12715 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
12716 else
12717 aros_cc_pre="${DISTCC} "
12719 else
12720 if test "x${CCACHE}" != "x" ; then
12721 aros_cc_pre="${CCACHE} "
12725 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
12727 aros_target_nostdinc_cflags=-nostdinc
12729 aros_target_nostartup_ldflags=-nostartfiles
12731 aros_target_nix_ldflags=-nix
12733 aros_target_detach_ldflags=-detach
12735 aros_target_nostdlib_ldflags=-nostdlib
12738 # Target tools
12739 if test "$crosstools" != "yes"; then
12740 if test "$GCC" = "yes"; then
12741 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
12743 else
12744 # We do not know which gcc version we are going to build and what we need to know
12745 # here is different for different versions so this will be set later during the
12746 # build of crosstools.
12747 aros_target_cc_path=@aros_target_cc_path@
12749 aros_target_cpp="${prefix}cpp"
12750 aros_target_cc="${prefix}gcc"
12751 aros_target_cxx="${prefix}g++"
12752 aros_target_as="${prefix}as"
12753 aros_target_ld="${prefix}ld"
12754 aros_target_ar="${prefix}ar $aros_target_ar_flags"
12755 aros_target_objcopy="${prefix}objcopy"
12756 aros_target_objdump="${prefix}objdump"
12757 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
12758 aros_target_nm="${prefix}nm $aros_target_nm_flags"
12759 aros_target_strip="${prefix}strip"
12760 aros_plain_nm="${prefix}nm"
12761 aros_plain_ar="${prefix}ar"
12763 # Check whether --enable-includes was given.
12764 if test "${enable_includes+set}" = set; then :
12765 enableval=$enable_includes; aros_target_incl=$enable_includes
12766 else
12767 aros_target_incl="/usr/include"
12771 if test "$aros_kernel_includes" = ""; then
12772 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
12773 aros_kernel_includes="-isystem $aros_target_incl"
12777 if test "$aros_kernel_includes" != "" ; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
12779 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
12780 if test "$aros_kernel_cc_includes" = "" ; then
12781 # Try to guess where the directory is.
12782 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
12783 if test -d $aros_kernel_cc_includes; then
12784 # Check if there is also an include-fixed directory and add it
12785 # to kernel compiler's include path as it may contain some of
12786 # the headers we need.
12787 if test -d "$aros_kernel_cc_includes"-fixed; then
12788 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
12790 # Check for specific includes directory. Neede for Ubuntu 11.10
12791 if test -d "/usr/include/i386-linux-gnu"; then
12792 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
12794 else
12795 # The directory doesn't exist, we need to do some more work.
12796 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
12798 # These are the headers we're looking for.
12799 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12800 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12801 zutil.h stdint.h"
12803 dirs=
12804 for h in $headers; do
12805 # Which other headers are needed by each of the above?
12806 deps=$(echo "#include <$h>" | \
12807 $aros_kernel_cc -E -M - 2>/dev/null | \
12808 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12810 # Copy all the needed headers to a directory beneath gendir.
12811 for d in $deps; do
12812 h=$(basename $d)
12813 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
12814 sed -n "s,^.*/include\(/.*\),\1,p")
12815 ! test -d $dir && mkdir -p $dir
12816 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12817 done
12818 done
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
12822 $as_echo "$aros_kernel_cc_includes" >&6; }
12823 # Adding -nostdinc to kernel includes as they are always used together.
12824 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
12827 if test "$crosstools" != "yes"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
12829 $as_echo_n "checking for the target compiler's include path... " >&6; }
12830 if test "$aros_target_cc_includes" = "" ; then
12831 #try to guess where the directory is
12832 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
12833 if ! test -d $aros_target_cc_includes; then
12834 #the directory doesn't exist, we need to do some more work
12835 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
12837 #these are the headers we're looking for
12838 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
12839 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
12840 zutil.h"
12842 dirs=
12843 for h in $headers; do
12844 #which other headers each of the above headers needs?
12845 deps=$(echo "#include <$h>" | \
12846 $orig_target_cc -E -M - 2>/dev/null | \
12847 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
12849 #copy all the needed headers to a directory beneath gendir
12850 for d in $deps; do
12851 h=$(basename $d)
12852 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
12853 sed -n "s,^.*/include\(/.*\),\1,p")
12854 ! test -d $dir && mkdir -p $dir
12855 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
12856 done
12857 done
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
12861 $as_echo "$aros_target_cc_includes" >&6; }
12862 else
12863 # We do not know which gcc version we are going to build and what we need to know
12864 # here is different for different versions so this will be set later during the
12865 # build of crosstools.
12866 aros_target_cc_includes=@aros_target_cc_includes@
12870 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
12871 # On GCC >= 4.0 -iquote should be used
12874 save_cc="$CC"
12875 save_cflags="$CFLAGS"
12876 CFLAGS="-iquote."
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12878 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12879 if test "x-$crosstools" != "x-yes"; then
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12884 main ()
12888 return 0;
12890 _ACEOF
12891 if ac_fn_c_try_compile "$LINENO"; then :
12892 has_iquote="yes"
12893 else
12894 has_iquote="no"
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 else
12898 # we do know it is supported for the smallest version of gcc we are going to build
12899 # we assume it's also supported by later versions
12900 has_iquote=yes
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12903 $as_echo "$has_iquote" >&6; }
12904 if test "x-$has_iquote" = "x-yes" ; then
12905 host_cflags_iquote=-iquote
12906 host_cflags_iquote_end=
12907 else
12908 host_cflags_iquote=-I
12909 host_cflags_iquote_end=-I-
12911 kernel_cflags_iquote=$host_cflags_iquote
12912 kernel_cflags_iquote_end=$host_cflags_iquote_end
12913 if test "x-$cross_compiling" = "x-yes"; then
12914 CC="$aros_kernel_cc"
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
12916 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
12917 if test "x-$crosstools" != "x-yes"; then
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12922 main ()
12926 return 0;
12928 _ACEOF
12929 if ac_fn_c_try_compile "$LINENO"; then :
12930 use_no_stack_protector="yes"
12931 else
12932 use_no_stack_protector="no"
12934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935 else
12936 # we do know it is supported for the smallest version of gcc we are going to build
12937 # we assume it's also supported by later versions
12938 use_no_stack_protector=yes
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
12941 $as_echo "$use_no_stack_protector" >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12943 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12944 if test "x-$crosstools" != "x-yes"; then
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12949 main ()
12953 return 0;
12955 _ACEOF
12956 if ac_fn_c_try_compile "$LINENO"; then :
12957 has_iquote="yes"
12958 else
12959 has_iquote="no"
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962 else
12963 # we do know it is supported for the smallest version of gcc we are going to build
12964 # we assume it's also supported by later versions
12965 has_iquote=yes
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
12968 $as_echo "$has_iquote" >&6; }
12969 if test "x-$has_iquote" = "x-yes" ; then
12970 kernel_cflags_iquote=-iquote
12971 kernel_cflags_iquote_end=
12972 else
12973 kernel_cflags_iquote=-I
12974 kernel_cflags_iquote_end=-I-
12977 aros_cflags_iquote=$kernel_cflags_iquote
12978 aros_cflags_iquote_end=$kernel_cflags_iquote_end
12979 if test "$orig_target_cc" != "$aros_kernel_cc"; then
12980 CC="$orig_target_cc"
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
12982 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
12983 if test "x-$crosstools" != "x-yes"; then
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12988 main ()
12992 return 0;
12994 _ACEOF
12995 if ac_fn_c_try_compile "$LINENO"; then :
12996 has_iquote="yes"
12997 else
12998 has_iquote="no"
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 else
13002 # we do know it is supported for the smallest version of gcc we are going to build
13003 # we assume it's also supported by later versions
13004 has_iquote=yes
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
13007 $as_echo "$has_iquote" >&6; }
13008 if test "x-$has_iquote" = "x-yes" ; then
13009 aros_cflags_iquote=-iquote
13010 aros_cflags_iquote_end=
13011 else
13012 aros_cflags_iquote=-I
13013 aros_cflags_iquote_end=-I-
13016 if test "x-$use_no_stack_protector" = "x-yes" ; then
13017 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
13021 #-----------------------------------------------------------------------------
13023 # Check if the target compiler supports some options used for delinting:
13024 # -Wunused-but-set-variable
13025 # -Warray-bounds
13026 # -Wenum-compare
13027 # -Wstrict-overflow
13028 # -Wformat-security
13030 if test "x-$crosstools" != "x-yes"; then
13031 if test "$orig_target_cc" != "$aros_kernel_cc"; then
13032 CC="$orig_target_cc"
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
13035 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
13036 CFLAGS=-Wunused-but-set-variable
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13041 main ()
13045 return 0;
13047 _ACEOF
13048 if ac_fn_c_try_compile "$LINENO"; then :
13049 aros_unused_but_set_variable="yes"
13050 else
13051 aros_unused_but_set_variable="no"
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
13055 $as_echo "$aros_unused_but_set_variable" >&6; }
13056 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
13057 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
13061 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
13062 CFLAGS=-Warray-bounds
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13067 main ()
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 aros_array_bounds="yes"
13076 else
13077 aros_array_bounds="no"
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
13081 $as_echo "$aros_array_bounds" >&6; }
13082 if test "x-$aros_array_bounds" = "x-yes" ; then
13083 aros_cflags_array_bounds=-Wno-array-bounds
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
13087 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
13088 CFLAGS=-Wenum-compare
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13093 main ()
13097 return 0;
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"; then :
13101 aros_enum_compare="yes"
13102 else
13103 aros_enum_compare="no"
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
13107 $as_echo "$aros_enum_compare" >&6; }
13108 if test "x-$aros_enum_compare" = "x-yes" ; then
13109 aros_cflags_enum_compare=-Wno-enum-compare
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
13113 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
13114 CFLAGS=-Wstrict-overflow
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13119 main ()
13123 return 0;
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127 aros_strict_overflow="yes"
13128 else
13129 aros_strict_overflow="no"
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
13133 $as_echo "$aros_strict_overflow" >&6; }
13134 if test "x-$aros_strict_overflow" = "x-yes" ; then
13135 aros_cflags_strict_overflow=-Wno-strict-overflow
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
13139 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
13140 CFLAGS=-Wformat-security
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13145 main ()
13149 return 0;
13151 _ACEOF
13152 if ac_fn_c_try_compile "$LINENO"; then :
13153 aros_format_security="yes"
13154 else
13155 aros_format_security="no"
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
13159 $as_echo "$aros_format_security" >&6; }
13160 if test "x-$aros_format_security" = "x-yes" ; then
13161 aros_cflags_format_security=-Wno-format-security
13163 else
13164 # We do not know which gcc version we are going to build and what we need to know
13165 # here is different for different versions so this will be set later during the
13166 # build of crosstools.
13167 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
13168 aros_cflags_array_bounds=@aros_cflags_array_bounds@
13169 aros_cflags_enum_compare=@aros_cflags_enum_compare@
13170 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
13171 aros_cflags_format_security=@aros_cflags_format_security@
13174 #-----------------------------------------------------------------------------
13176 # Check if we can explicitly choose older version of symbol hashing
13178 CFLAGS="save_cflags -Wl,--hash-style=sysv"
13179 CC="$aros_kernel_cc"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
13181 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13186 main ()
13190 return 0;
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 use_hash_style="yes"
13195 else
13196 use_hash_style="no"
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
13201 $as_echo "$use_hash_style" >&6; }
13202 if test "x-$use_hash_style" = "x-yes" ; then
13203 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
13205 CC="$save_cc"
13206 CFLAGS="$save_cflags"
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
13217 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
13219 # Check whether --with-resolution was given.
13220 if test "${with_resolution+set}" = set; then :
13221 withval=$with_resolution; resolution=$withval
13222 else
13223 resolution=none
13226 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
13227 if test "$resolution" = "yes" ; then
13228 resolution="none"
13230 if test "$resolution" = "no" ; then
13231 resolution="none"
13233 if test "$resolution" != "none" ; then
13234 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
13235 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
13236 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
13239 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
13240 aros_cv_default_wbwidth=$aros_default_wbwidth
13241 aros_cv_default_wbheight=$aros_default_wbheight
13242 aros_cv_default_wbdepth=$aros_default_wbdepth
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
13245 $as_echo_n "checking if serial debug is enabled... " >&6; }
13247 # Check whether --with-serial-debug was given.
13248 if test "${with_serial_debug+set}" = set; then :
13249 withval=$with_serial_debug; serial_debug=$withval
13250 else
13251 serial_debug=none
13254 if test "$aros_serial_debug" = 0 ; then
13255 serial_debug_forced=""
13256 if test "$serial_debug" = "yes" ; then
13257 serial_debug="1"
13259 if test "$serial_debug" = "no" ; then
13260 serial_debug="none"
13262 else
13263 serial_debug_forced="(forced)"
13264 serial_debug=$aros_serial_debug
13266 if test "$serial_debug" != "none" ; then
13267 aros_serial_debug=$serial_debug
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
13269 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
13276 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
13277 # Check whether --enable-palm_debug_hack was given.
13278 if test "${enable_palm_debug_hack+set}" = set; then :
13279 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
13280 else
13281 palm_debug_hack="no"
13284 if test "$palm_debug_hack" = "yes" ; then
13285 aros_palm_debug_hack="1"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
13288 $as_echo "$palm_debug_hack" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
13291 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
13292 # Check whether --enable-nesting_supervisor was given.
13293 if test "${enable_nesting_supervisor+set}" = set; then :
13294 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
13295 else
13296 nesting_supervisor="no"
13299 if test "$nesting_supervisor" = "yes" ; then
13300 aros_nesting_supervisor="1"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
13303 $as_echo "$nesting_supervisor" >&6; }
13305 if test "$aros_enable_mmu" = "" ; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
13307 $as_echo_n "checking if MMU support is enabled... " >&6; }
13308 # Check whether --enable-mmu was given.
13309 if test "${enable_mmu+set}" = set; then :
13310 enableval=$enable_mmu; aros_enable_mmu=$enableval
13311 else
13312 aros_enable_mmu="yes"
13315 if test "$aros_enable_mmu" = "" ; then
13316 aros_enable_mmu="yes"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
13319 $as_echo "$aros_enable_mmu" >&6; }
13321 if test "$aros_enable_mmu" = "no" ; then
13322 aros_enable_mmu="0"
13323 else
13324 aros_enable_mmu="1"
13328 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
13330 if test "x-$need_dlopen" != "x-no" ; then
13331 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13332 if test "x$ac_cv_func_dlopen" = xyes; then :
13333 have_dl="yes"
13334 else
13335 have_dl="no"
13338 if test "x-$have_dl" = "x-no" ; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13341 if ${ac_cv_lib_dl_dlopen+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-ldl $LIBS"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 char dlopen ();
13357 main ()
13359 return dlopen ();
13361 return 0;
13363 _ACEOF
13364 if ac_fn_c_try_link "$LINENO"; then :
13365 ac_cv_lib_dl_dlopen=yes
13366 else
13367 ac_cv_lib_dl_dlopen=no
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 LIBS=$ac_check_lib_save_LIBS
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13376 have_dl="yes"
13377 aros_host_ldflags="$aros_host_ldflags -ldl"
13378 else
13379 have_dl="no"
13383 if test "x-$have_dl" = "x-no" ; then
13384 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
13389 # Check whether --enable-x11_hidd was given.
13390 if test "${enable_x11_hidd+set}" = set; then :
13391 enableval=$enable_x11_hidd; x11_hidd="$enableval"
13392 else
13393 x11_hidd="$need_x11"
13396 case "x-$x11_hidd" in
13397 x-yes|x-no|x-auto) ;;
13398 *) x11_hidd="$need_x11" ;;
13399 esac
13401 ENABLE_X11=0
13403 if test "x-$x11_hidd" != "x-no" ; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13406 $as_echo_n "checking for X... " >&6; }
13409 # Check whether --with-x was given.
13410 if test "${with_x+set}" = set; then :
13411 withval=$with_x;
13414 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13415 if test "x$with_x" = xno; then
13416 # The user explicitly disabled X.
13417 have_x=disabled
13418 else
13419 case $x_includes,$x_libraries in #(
13420 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13421 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 # One or both of the vars are not set, and there is no cached value.
13425 ac_x_includes=no ac_x_libraries=no
13426 rm -f -r conftest.dir
13427 if mkdir conftest.dir; then
13428 cd conftest.dir
13429 cat >Imakefile <<'_ACEOF'
13430 incroot:
13431 @echo incroot='${INCROOT}'
13432 usrlibdir:
13433 @echo usrlibdir='${USRLIBDIR}'
13434 libdir:
13435 @echo libdir='${LIBDIR}'
13436 _ACEOF
13437 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13438 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13439 for ac_var in incroot usrlibdir libdir; do
13440 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13441 done
13442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13443 for ac_extension in a so sl dylib la dll; do
13444 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13445 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13446 ac_im_usrlibdir=$ac_im_libdir; break
13448 done
13449 # Screen out bogus values from the imake configuration. They are
13450 # bogus both because they are the default anyway, and because
13451 # using them would break gcc on systems where it needs fixed includes.
13452 case $ac_im_incroot in
13453 /usr/include) ac_x_includes= ;;
13454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13455 esac
13456 case $ac_im_usrlibdir in
13457 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13459 esac
13461 cd ..
13462 rm -f -r conftest.dir
13465 # Standard set of common directories for X headers.
13466 # Check X11 before X11Rn because it is often a symlink to the current release.
13467 ac_x_header_dirs='
13468 /usr/X11/include
13469 /usr/X11R7/include
13470 /usr/X11R6/include
13471 /usr/X11R5/include
13472 /usr/X11R4/include
13474 /usr/include/X11
13475 /usr/include/X11R7
13476 /usr/include/X11R6
13477 /usr/include/X11R5
13478 /usr/include/X11R4
13480 /usr/local/X11/include
13481 /usr/local/X11R7/include
13482 /usr/local/X11R6/include
13483 /usr/local/X11R5/include
13484 /usr/local/X11R4/include
13486 /usr/local/include/X11
13487 /usr/local/include/X11R7
13488 /usr/local/include/X11R6
13489 /usr/local/include/X11R5
13490 /usr/local/include/X11R4
13492 /usr/X386/include
13493 /usr/x386/include
13494 /usr/XFree86/include/X11
13496 /usr/include
13497 /usr/local/include
13498 /usr/unsupported/include
13499 /usr/athena/include
13500 /usr/local/x11r5/include
13501 /usr/lpp/Xamples/include
13503 /usr/openwin/include
13504 /usr/openwin/share/include'
13506 if test "$ac_x_includes" = no; then
13507 # Guess where to find include files, by looking for Xlib.h.
13508 # First, try using that file with no special directory specified.
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 #include <X11/Xlib.h>
13512 _ACEOF
13513 if ac_fn_c_try_cpp "$LINENO"; then :
13514 # We can compile using X headers with no special include directory.
13515 ac_x_includes=
13516 else
13517 for ac_dir in $ac_x_header_dirs; do
13518 if test -r "$ac_dir/X11/Xlib.h"; then
13519 ac_x_includes=$ac_dir
13520 break
13522 done
13524 rm -f conftest.err conftest.i conftest.$ac_ext
13525 fi # $ac_x_includes = no
13527 if test "$ac_x_libraries" = no; then
13528 # Check for the libraries.
13529 # See if we find them without any special options.
13530 # Don't add to $LIBS permanently.
13531 ac_save_LIBS=$LIBS
13532 LIBS="-lX11 $LIBS"
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <X11/Xlib.h>
13537 main ()
13539 XrmInitialize ()
13541 return 0;
13543 _ACEOF
13544 if ac_fn_c_try_link "$LINENO"; then :
13545 LIBS=$ac_save_LIBS
13546 # We can link X programs with no special library path.
13547 ac_x_libraries=
13548 else
13549 LIBS=$ac_save_LIBS
13550 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13552 # Don't even attempt the hair of trying to link an X program!
13553 for ac_extension in a so sl dylib la dll; do
13554 if test -r "$ac_dir/libX11.$ac_extension"; then
13555 ac_x_libraries=$ac_dir
13556 break 2
13558 done
13559 done
13561 rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 fi # $ac_x_libraries = no
13565 case $ac_x_includes,$ac_x_libraries in #(
13566 no,* | *,no | *\'*)
13567 # Didn't find X, or a directory has "'" in its name.
13568 ac_cv_have_x="have_x=no";; #(
13570 # Record where we found X for the cache.
13571 ac_cv_have_x="have_x=yes\
13572 ac_x_includes='$ac_x_includes'\
13573 ac_x_libraries='$ac_x_libraries'"
13574 esac
13576 ;; #(
13577 *) have_x=yes;;
13578 esac
13579 eval "$ac_cv_have_x"
13580 fi # $with_x != no
13582 if test "$have_x" != yes; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13584 $as_echo "$have_x" >&6; }
13585 no_x=yes
13586 else
13587 # If each of the values was on the command line, it overrides each guess.
13588 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13589 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13590 # Update the cache value to reflect the command line values.
13591 ac_cv_have_x="have_x=yes\
13592 ac_x_includes='$x_includes'\
13593 ac_x_libraries='$x_libraries'"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13595 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13599 x_cflags=
13600 for path in $x_libraries
13602 x_cflags="$x_cflags -L$path"
13603 done
13605 for path in $x_includes
13607 x_cflags="$x_cflags -I$path"
13608 done
13610 if test "x-$no_x" = "x-yes" ; then
13612 if test "x-$x11_hidd" != "x-auto" ; then
13613 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
13616 else
13617 x11_hidd_target=kernel-x11gfx-kobj
13618 ENABLE_X11=1
13620 # Check whether --enable-x11_shm was given.
13621 if test "${enable_x11_shm+set}" = set; then :
13622 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
13623 else
13624 x11_hidd_shm="auto"
13627 case "x-$x11_hidd_shm" in
13628 x-yes|x-no|x-auto) ;;
13629 *) x11_hidd_shm="auto" ;;
13630 esac
13632 have_xshm=no
13634 if test "x-$x11_hidd_shm" != "x-no" ; then
13636 for ac_header in sys/ipc.h
13637 do :
13638 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13639 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_SYS_IPC_H 1
13642 _ACEOF
13646 done
13648 for ac_header in sys/shm.h
13649 do :
13650 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13651 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13652 cat >>confdefs.h <<_ACEOF
13653 #define HAVE_SYS_SHM_H 1
13654 _ACEOF
13658 done
13661 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
13663 save_cflags="$CFLAGS"
13664 CFLAGS="$CFLAGS $x_cflags"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
13666 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
13667 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-lXext $LIBS"
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13675 /* Override any GCC internal prototype to avoid an error.
13676 Use char because int might match the return type of a GCC
13677 builtin and then its argument prototype would still apply. */
13678 #ifdef __cplusplus
13679 extern "C"
13680 #endif
13681 char XShmQueryExtension ();
13683 main ()
13685 return XShmQueryExtension ();
13687 return 0;
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"; then :
13691 ac_cv_lib_Xext_XShmQueryExtension=yes
13692 else
13693 ac_cv_lib_Xext_XShmQueryExtension=no
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 LIBS=$ac_check_lib_save_LIBS
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
13700 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
13701 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
13702 have_xshm=yes
13705 CFLAGS="$save_cflags"
13709 if test "x-$have_xshm" = "x-yes" ; then
13710 DO_XSHM_SUPPORT="1"
13711 elif test "x-$x11_hidd_shm" = "x-yes" ; then
13712 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
13713 else
13714 DO_XSHM_SUPPORT="0"
13718 # Check whether --enable-x11_vidmode was given.
13719 if test "${enable_x11_vidmode+set}" = set; then :
13720 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
13721 else
13722 x11_hidd_vidmode="auto"
13725 case "x-$x11_hidd_vidmode" in
13726 x-yes|x-no|x-auto) ;;
13727 *) x11_hidd_vidmode="auto" ;;
13728 esac
13730 have_vidmode=no
13732 if test "x-$x11_hidd_vidmode" != "x-no" ; then
13734 save_cflags="$CFLAGS"
13735 CFLAGS="$CFLAGS $x_cflags"
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
13737 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
13738 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-lXxf86vm $LIBS"
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 /* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 char XF86VidModeQueryExtension ();
13754 main ()
13756 return XF86VidModeQueryExtension ();
13758 return 0;
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"; then :
13762 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13763 else
13764 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
13766 rm -f core conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
13771 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
13772 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
13773 have_vidmode=yes
13776 CFLAGS="$save_cflags"
13779 if test "x-$have_vidmode" = "x-yes" ; then
13780 DO_VIDMODE_SUPPORT="1"
13781 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
13782 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
13783 else
13784 DO_VIDMODE_SUPPORT="0"
13788 aros_host_x11_includes=$x_includes
13789 aros_host_x11_libdirs=$x_libraries
13793 # Check whether --enable-sdl_hidd was given.
13794 if test "${enable_sdl_hidd+set}" = set; then :
13795 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
13796 else
13797 sdl_hidd="auto"
13800 case "x-$sdl_hidd" in
13801 x-yes|x-no|x-auto) ;;
13802 *) sdl_hidd="auto" ;;
13803 esac
13805 if test "x-$sdl_hidd" != "x-no" ; then
13808 # Check whether --with-sdl-prefix was given.
13809 if test "${with_sdl_prefix+set}" = set; then :
13810 withval=$with_sdl_prefix; sdl_prefix="$withval"
13811 else
13812 sdl_prefix=""
13816 # Check whether --with-sdl-exec-prefix was given.
13817 if test "${with_sdl_exec_prefix+set}" = set; then :
13818 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13819 else
13820 sdl_exec_prefix=""
13823 # Check whether --enable-sdltest was given.
13824 if test "${enable_sdltest+set}" = set; then :
13825 enableval=$enable_sdltest;
13826 else
13827 enable_sdltest=yes
13831 if test x$sdl_exec_prefix != x ; then
13832 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13833 if test x${SDL_CONFIG+set} != xset ; then
13834 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13837 if test x$sdl_prefix != x ; then
13838 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13839 if test x${SDL_CONFIG+set} != xset ; then
13840 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13844 as_save_PATH="$PATH"
13845 if test "x$prefix" != xNONE; then
13846 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13848 # Extract the first word of "sdl-config", so it can be a program name with args.
13849 set dummy sdl-config; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_path_SDL_CONFIG+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 case $SDL_CONFIG in
13856 [\\/]* | ?:[\\/]*)
13857 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13867 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13871 done
13872 done
13873 IFS=$as_save_IFS
13875 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13877 esac
13879 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13880 if test -n "$SDL_CONFIG"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13882 $as_echo "$SDL_CONFIG" >&6; }
13883 else
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13889 PATH="$as_save_PATH"
13890 min_sdl_version=1.2.10
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13892 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13893 no_sdl=""
13894 if test "$SDL_CONFIG" = "no" ; then
13895 no_sdl=yes
13896 else
13897 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13898 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13900 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13902 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13903 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13904 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13905 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13906 if test "x$enable_sdltest" = "xyes" ; then
13907 ac_save_CFLAGS="$CFLAGS"
13908 ac_save_CXXFLAGS="$CXXFLAGS"
13909 ac_save_LIBS="$LIBS"
13910 CFLAGS="$CFLAGS $SDL_CFLAGS"
13911 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13912 LIBS="$LIBS $SDL_LIBS"
13913 rm -f conf.sdltest
13914 if test "$cross_compiling" = yes; then :
13915 echo $ac_n "cross compiling; assumed OK... $ac_c"
13916 else
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13920 #include <stdio.h>
13921 #include <stdlib.h>
13922 #include <string.h>
13923 #include "SDL.h"
13925 char*
13926 my_strdup (char *str)
13928 char *new_str;
13930 if (str)
13932 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13933 strcpy (new_str, str);
13935 else
13936 new_str = NULL;
13938 return new_str;
13941 int main (int argc, char *argv[])
13943 int major, minor, micro;
13944 char *tmp_version;
13946 /* This hangs on some systems (?)
13947 system ("touch conf.sdltest");
13949 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13951 /* HP/UX 9 (%@#!) writes to sscanf strings */
13952 tmp_version = my_strdup("$min_sdl_version");
13953 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13954 printf("%s, bad version string\n", "$min_sdl_version");
13955 exit(1);
13958 if (($sdl_major_version > major) ||
13959 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13960 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13962 return 0;
13964 else
13966 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13967 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13968 printf("*** best to upgrade to the required version.\n");
13969 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13970 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13971 printf("*** config.cache before re-running configure\n");
13972 return 1;
13977 _ACEOF
13978 if ac_fn_c_try_run "$LINENO"; then :
13980 else
13981 no_sdl=yes
13983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13984 conftest.$ac_objext conftest.beam conftest.$ac_ext
13987 CFLAGS="$ac_save_CFLAGS"
13988 CXXFLAGS="$ac_save_CXXFLAGS"
13989 LIBS="$ac_save_LIBS"
13992 if test "x$no_sdl" = x ; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 $as_echo "yes" >&6; }
13995 have_sdl="yes"
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
13999 if test "$SDL_CONFIG" = "no" ; then
14000 echo "*** The sdl-config script installed by SDL could not be found"
14001 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
14002 echo "*** your path, or set the SDL_CONFIG environment variable to the"
14003 echo "*** full path to sdl-config."
14004 else
14005 if test -f conf.sdltest ; then
14007 else
14008 echo "*** Could not run SDL test program, checking why..."
14009 CFLAGS="$CFLAGS $SDL_CFLAGS"
14010 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
14011 LIBS="$LIBS $SDL_LIBS"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14015 #include <stdio.h>
14016 #include "SDL.h"
14018 int main(int argc, char *argv[])
14019 { return 0; }
14020 #undef main
14021 #define main K_and_R_C_main
14024 main ()
14026 return 0;
14028 return 0;
14030 _ACEOF
14031 if ac_fn_c_try_link "$LINENO"; then :
14032 echo "*** The test program compiled, but did not run. This usually means"
14033 echo "*** that the run-time linker is not finding SDL or finding the wrong"
14034 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
14035 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14036 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14037 echo "*** is required on your system"
14038 echo "***"
14039 echo "*** If you have an old version installed, it is best to remove it, although"
14040 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14041 else
14042 echo "*** The test program failed to compile or link. See the file config.log for the"
14043 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
14044 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
14045 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 CFLAGS="$ac_save_CFLAGS"
14050 CXXFLAGS="$ac_save_CXXFLAGS"
14051 LIBS="$ac_save_LIBS"
14054 SDL_CFLAGS=""
14055 SDL_LIBS=""
14056 have_sdl="no"
14060 rm -f conf.sdltest
14063 if test "x-$have_sdl" != "x-yes" ; then
14065 if test "x-$sdl_hidd" != "x-auto" ; then
14066 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
14069 else
14070 sdl_hidd_target=kernel-hidd-sdl
14071 aros_host_sdl_cflags=SDL_CFLAGS
14072 aros_host_sdl_libs=SDL_LIBS
14076 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14077 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
14082 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
14083 oss_library_target=workbench-libs-oss-unix
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
14089 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
14090 # Check whether --enable-dbus was given.
14091 if test "${enable_dbus+set}" = set; then :
14092 enableval=$enable_dbus; dbus="yes"
14093 else
14094 dbus="no"
14097 if test "$dbus" = "yes" ; then
14098 ENABLE_DBUS=1
14099 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
14100 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
14101 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
14102 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
14103 else
14104 ENABLE_DBUS=0
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
14107 $as_echo "$dbus" >&6; }
14109 if test "$use_kernel_cc_wrapper" = "yes" ; then
14110 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
14113 if test "${crosstools}" != "yes" ; then
14114 aros_target_toolchain=no
14115 else
14116 aros_target_toolchain=yes
14120 # Generic
14132 # Compatability with other Amiga-like operation systems
14135 # Host related
14163 # Target Related
14227 # Delinting target compiler flags
14234 # Graphics Related
14251 # Native version related
14254 # Palm native version related
14257 # Unix/Hosted version related
14260 # MMU related
14263 # Apple iOS related
14268 # Android related
14272 # DBUS related
14279 #X11 related
14282 # Debug related
14288 # Collect-aros stuff: "-ius" to ignore undefined symbols
14291 # C compiler related
14294 case "$aros_flavour" in
14295 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
14296 aros_flavour="emulation" ;;
14297 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
14298 aros_flavour="emulation" ;;
14299 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
14300 aros_flavour="standalone";;
14301 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14302 aros_flavour="standalone";;
14303 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
14304 aros_flavour="native" ;;
14305 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
14306 aros_flavour="native" ;;
14307 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
14308 aros_flavour="linklib" ;;
14309 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14310 aros_flavour="palmnative" ;;
14311 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
14312 aros_flavour="mac68knative" ;;
14313 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
14314 aros_flavour="ppcnative" ;;
14315 esac
14317 if test ! -d ${aros_inc_dir} ; then
14318 ${MKDIR} ${aros_inc_dir}
14320 if test ! -d ${aros_geninc_dir} ; then
14321 ${MKDIR} ${aros_geninc_dir}
14323 if test ! -d ${aros_hostcfg_dir} ; then
14324 ${MKDIR} ${aros_hostcfg_dir}
14326 if test ! -d ${aros_targetcfg_dir} ; then
14327 ${MKDIR} ${aros_targetcfg_dir}
14329 if test ! -d ${aros_tools_dir} ; then
14330 ${MKDIR} ${aros_tools_dir}
14332 if test ! -d ${aros_scripts_dir} ; then
14333 ${MKDIR} ${aros_scripts_dir}
14336 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
14339 ac_config_commands="$ac_config_commands compiler_executable"
14341 ac_config_commands="$ac_config_commands genmf_executable"
14344 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
14347 cat >confcache <<\_ACEOF
14348 # This file is a shell script that caches the results of configure
14349 # tests run on this system so they can be shared between configure
14350 # scripts and configure runs, see configure's option --config-cache.
14351 # It is not useful on other systems. If it contains results you don't
14352 # want to keep, you may remove or edit it.
14354 # config.status only pays attention to the cache file if you give it
14355 # the --recheck option to rerun configure.
14357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14359 # following values.
14361 _ACEOF
14363 # The following way of writing the cache mishandles newlines in values,
14364 # but we know of no workaround that is simple, portable, and efficient.
14365 # So, we kill variables containing newlines.
14366 # Ultrix sh set writes to stderr and can't be redirected directly,
14367 # and sets the high bit in the cache file unless we assign to the vars.
14369 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14370 eval ac_val=\$$ac_var
14371 case $ac_val in #(
14372 *${as_nl}*)
14373 case $ac_var in #(
14374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14376 esac
14377 case $ac_var in #(
14378 _ | IFS | as_nl) ;; #(
14379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14380 *) { eval $ac_var=; unset $ac_var;} ;;
14381 esac ;;
14382 esac
14383 done
14385 (set) 2>&1 |
14386 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14387 *${as_nl}ac_space=\ *)
14388 # `set' does not quote correctly, so add quotes: double-quote
14389 # substitution turns \\\\ into \\, and sed turns \\ into \.
14390 sed -n \
14391 "s/'/'\\\\''/g;
14392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14393 ;; #(
14395 # `set' quotes correctly as required by POSIX, so do not add quotes.
14396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14398 esac |
14399 sort
14401 sed '
14402 /^ac_cv_env_/b end
14403 t clear
14404 :clear
14405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14406 t end
14407 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14408 :end' >>confcache
14409 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14410 if test -w "$cache_file"; then
14411 if test "x$cache_file" != "x/dev/null"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14413 $as_echo "$as_me: updating cache $cache_file" >&6;}
14414 if test ! -f "$cache_file" || test -h "$cache_file"; then
14415 cat confcache >"$cache_file"
14416 else
14417 case $cache_file in #(
14418 */* | ?:*)
14419 mv -f confcache "$cache_file"$$ &&
14420 mv -f "$cache_file"$$ "$cache_file" ;; #(
14422 mv -f confcache "$cache_file" ;;
14423 esac
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14428 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14431 rm -f confcache
14433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14434 # Let make expand exec_prefix.
14435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14437 DEFS=-DHAVE_CONFIG_H
14439 ac_libobjs=
14440 ac_ltlibobjs=
14442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14443 # 1. Remove the extension, and $U if already installed.
14444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14445 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14447 # will be set to the directory where LIBOBJS objects are built.
14448 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14449 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14450 done
14451 LIBOBJS=$ac_libobjs
14453 LTLIBOBJS=$ac_ltlibobjs
14457 : "${CONFIG_STATUS=./config.status}"
14458 ac_write_fail=0
14459 ac_clean_files_save=$ac_clean_files
14460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14462 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14463 as_write_fail=0
14464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14465 #! $SHELL
14466 # Generated by $as_me.
14467 # Run this file to recreate the current configuration.
14468 # Compiler output produced by configure, useful for debugging
14469 # configure, is in config.log if it exists.
14471 debug=false
14472 ac_cs_recheck=false
14473 ac_cs_silent=false
14475 SHELL=\${CONFIG_SHELL-$SHELL}
14476 export SHELL
14477 _ASEOF
14478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14479 ## -------------------- ##
14480 ## M4sh Initialization. ##
14481 ## -------------------- ##
14483 # Be more Bourne compatible
14484 DUALCASE=1; export DUALCASE # for MKS sh
14485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14486 emulate sh
14487 NULLCMD=:
14488 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14489 # is contrary to our usage. Disable this feature.
14490 alias -g '${1+"$@"}'='"$@"'
14491 setopt NO_GLOB_SUBST
14492 else
14493 case `(set -o) 2>/dev/null` in #(
14494 *posix*) :
14495 set -o posix ;; #(
14496 *) :
14498 esac
14502 as_nl='
14504 export as_nl
14505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14506 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14509 # Prefer a ksh shell builtin over an external printf program on Solaris,
14510 # but without wasting forks for bash or zsh.
14511 if test -z "$BASH_VERSION$ZSH_VERSION" \
14512 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14513 as_echo='print -r --'
14514 as_echo_n='print -rn --'
14515 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14516 as_echo='printf %s\n'
14517 as_echo_n='printf %s'
14518 else
14519 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14520 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14521 as_echo_n='/usr/ucb/echo -n'
14522 else
14523 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14524 as_echo_n_body='eval
14525 arg=$1;
14526 case $arg in #(
14527 *"$as_nl"*)
14528 expr "X$arg" : "X\\(.*\\)$as_nl";
14529 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14530 esac;
14531 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14533 export as_echo_n_body
14534 as_echo_n='sh -c $as_echo_n_body as_echo'
14536 export as_echo_body
14537 as_echo='sh -c $as_echo_body as_echo'
14540 # The user is always right.
14541 if test "${PATH_SEPARATOR+set}" != set; then
14542 PATH_SEPARATOR=:
14543 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14544 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14545 PATH_SEPARATOR=';'
14550 # IFS
14551 # We need space, tab and new line, in precisely that order. Quoting is
14552 # there to prevent editors from complaining about space-tab.
14553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14554 # splitting by setting IFS to empty value.)
14555 IFS=" "" $as_nl"
14557 # Find who we are. Look in the path if we contain no directory separator.
14558 as_myself=
14559 case $0 in #((
14560 *[\\/]* ) as_myself=$0 ;;
14561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562 for as_dir in $PATH
14564 IFS=$as_save_IFS
14565 test -z "$as_dir" && as_dir=.
14566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14567 done
14568 IFS=$as_save_IFS
14571 esac
14572 # We did not find ourselves, most probably we were run as `sh COMMAND'
14573 # in which case we are not to be found in the path.
14574 if test "x$as_myself" = x; then
14575 as_myself=$0
14577 if test ! -f "$as_myself"; then
14578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14579 exit 1
14582 # Unset variables that we do not need and which cause bugs (e.g. in
14583 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14584 # suppresses any "Segmentation fault" message there. '((' could
14585 # trigger a bug in pdksh 5.2.14.
14586 for as_var in BASH_ENV ENV MAIL MAILPATH
14587 do eval test x\${$as_var+set} = xset \
14588 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14589 done
14590 PS1='$ '
14591 PS2='> '
14592 PS4='+ '
14594 # NLS nuisances.
14595 LC_ALL=C
14596 export LC_ALL
14597 LANGUAGE=C
14598 export LANGUAGE
14600 # CDPATH.
14601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14604 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14605 # ----------------------------------------
14606 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14607 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14608 # script with STATUS, using 1 if that was 0.
14609 as_fn_error ()
14611 as_status=$1; test $as_status -eq 0 && as_status=1
14612 if test "$4"; then
14613 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14616 $as_echo "$as_me: error: $2" >&2
14617 as_fn_exit $as_status
14618 } # as_fn_error
14621 # as_fn_set_status STATUS
14622 # -----------------------
14623 # Set $? to STATUS, without forking.
14624 as_fn_set_status ()
14626 return $1
14627 } # as_fn_set_status
14629 # as_fn_exit STATUS
14630 # -----------------
14631 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14632 as_fn_exit ()
14634 set +e
14635 as_fn_set_status $1
14636 exit $1
14637 } # as_fn_exit
14639 # as_fn_unset VAR
14640 # ---------------
14641 # Portably unset VAR.
14642 as_fn_unset ()
14644 { eval $1=; unset $1;}
14646 as_unset=as_fn_unset
14647 # as_fn_append VAR VALUE
14648 # ----------------------
14649 # Append the text in VALUE to the end of the definition contained in VAR. Take
14650 # advantage of any shell optimizations that allow amortized linear growth over
14651 # repeated appends, instead of the typical quadratic growth present in naive
14652 # implementations.
14653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14654 eval 'as_fn_append ()
14656 eval $1+=\$2
14658 else
14659 as_fn_append ()
14661 eval $1=\$$1\$2
14663 fi # as_fn_append
14665 # as_fn_arith ARG...
14666 # ------------------
14667 # Perform arithmetic evaluation on the ARGs, and store the result in the
14668 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14669 # must be portable across $(()) and expr.
14670 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14671 eval 'as_fn_arith ()
14673 as_val=$(( $* ))
14675 else
14676 as_fn_arith ()
14678 as_val=`expr "$@" || test $? -eq 1`
14680 fi # as_fn_arith
14683 if expr a : '\(a\)' >/dev/null 2>&1 &&
14684 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14685 as_expr=expr
14686 else
14687 as_expr=false
14690 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14691 as_basename=basename
14692 else
14693 as_basename=false
14696 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14697 as_dirname=dirname
14698 else
14699 as_dirname=false
14702 as_me=`$as_basename -- "$0" ||
14703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14704 X"$0" : 'X\(//\)$' \| \
14705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14706 $as_echo X/"$0" |
14707 sed '/^.*\/\([^/][^/]*\)\/*$/{
14708 s//\1/
14711 /^X\/\(\/\/\)$/{
14712 s//\1/
14715 /^X\/\(\/\).*/{
14716 s//\1/
14719 s/.*/./; q'`
14721 # Avoid depending upon Character Ranges.
14722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14725 as_cr_digits='0123456789'
14726 as_cr_alnum=$as_cr_Letters$as_cr_digits
14728 ECHO_C= ECHO_N= ECHO_T=
14729 case `echo -n x` in #(((((
14730 -n*)
14731 case `echo 'xy\c'` in
14732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14733 xy) ECHO_C='\c';;
14734 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14735 ECHO_T=' ';;
14736 esac;;
14738 ECHO_N='-n';;
14739 esac
14741 rm -f conf$$ conf$$.exe conf$$.file
14742 if test -d conf$$.dir; then
14743 rm -f conf$$.dir/conf$$.file
14744 else
14745 rm -f conf$$.dir
14746 mkdir conf$$.dir 2>/dev/null
14748 if (echo >conf$$.file) 2>/dev/null; then
14749 if ln -s conf$$.file conf$$ 2>/dev/null; then
14750 as_ln_s='ln -s'
14751 # ... but there are two gotchas:
14752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14754 # In both cases, we have to default to `cp -p'.
14755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14756 as_ln_s='cp -p'
14757 elif ln conf$$.file conf$$ 2>/dev/null; then
14758 as_ln_s=ln
14759 else
14760 as_ln_s='cp -p'
14762 else
14763 as_ln_s='cp -p'
14765 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14766 rmdir conf$$.dir 2>/dev/null
14769 # as_fn_mkdir_p
14770 # -------------
14771 # Create "$as_dir" as a directory, including parents if necessary.
14772 as_fn_mkdir_p ()
14775 case $as_dir in #(
14776 -*) as_dir=./$as_dir;;
14777 esac
14778 test -d "$as_dir" || eval $as_mkdir_p || {
14779 as_dirs=
14780 while :; do
14781 case $as_dir in #(
14782 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14783 *) as_qdir=$as_dir;;
14784 esac
14785 as_dirs="'$as_qdir' $as_dirs"
14786 as_dir=`$as_dirname -- "$as_dir" ||
14787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14788 X"$as_dir" : 'X\(//\)[^/]' \| \
14789 X"$as_dir" : 'X\(//\)$' \| \
14790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14791 $as_echo X"$as_dir" |
14792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14793 s//\1/
14796 /^X\(\/\/\)[^/].*/{
14797 s//\1/
14800 /^X\(\/\/\)$/{
14801 s//\1/
14804 /^X\(\/\).*/{
14805 s//\1/
14808 s/.*/./; q'`
14809 test -d "$as_dir" && break
14810 done
14811 test -z "$as_dirs" || eval "mkdir $as_dirs"
14812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14815 } # as_fn_mkdir_p
14816 if mkdir -p . 2>/dev/null; then
14817 as_mkdir_p='mkdir -p "$as_dir"'
14818 else
14819 test -d ./-p && rmdir ./-p
14820 as_mkdir_p=false
14823 if test -x / >/dev/null 2>&1; then
14824 as_test_x='test -x'
14825 else
14826 if ls -dL / >/dev/null 2>&1; then
14827 as_ls_L_option=L
14828 else
14829 as_ls_L_option=
14831 as_test_x='
14832 eval sh -c '\''
14833 if test -d "$1"; then
14834 test -d "$1/.";
14835 else
14836 case $1 in #(
14837 -*)set "./$1";;
14838 esac;
14839 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14840 ???[sx]*):;;*)false;;esac;fi
14841 '\'' sh
14844 as_executable_p=$as_test_x
14846 # Sed expression to map a string onto a valid CPP name.
14847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14849 # Sed expression to map a string onto a valid variable name.
14850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14853 exec 6>&1
14854 ## ----------------------------------- ##
14855 ## Main body of $CONFIG_STATUS script. ##
14856 ## ----------------------------------- ##
14857 _ASEOF
14858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14861 # Save the log message, to keep $0 and so on meaningful, and to
14862 # report actual input values of CONFIG_FILES etc. instead of their
14863 # values after options handling.
14864 ac_log="
14865 This file was extended by $as_me, which was
14866 generated by GNU Autoconf 2.68. Invocation command line was
14868 CONFIG_FILES = $CONFIG_FILES
14869 CONFIG_HEADERS = $CONFIG_HEADERS
14870 CONFIG_LINKS = $CONFIG_LINKS
14871 CONFIG_COMMANDS = $CONFIG_COMMANDS
14872 $ $0 $@
14874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14877 _ACEOF
14879 case $ac_config_files in *"
14880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14881 esac
14883 case $ac_config_headers in *"
14884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14885 esac
14888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14889 # Files that config.status was made for.
14890 config_files="$ac_config_files"
14891 config_headers="$ac_config_headers"
14892 config_commands="$ac_config_commands"
14894 _ACEOF
14896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897 ac_cs_usage="\
14898 \`$as_me' instantiates files and other configuration actions
14899 from templates according to the current configuration. Unless the files
14900 and actions are specified as TAGs, all are instantiated by default.
14902 Usage: $0 [OPTION]... [TAG]...
14904 -h, --help print this help, then exit
14905 -V, --version print version number and configuration settings, then exit
14906 --config print configuration, then exit
14907 -q, --quiet, --silent
14908 do not print progress messages
14909 -d, --debug don't remove temporary files
14910 --recheck update $as_me by reconfiguring in the same conditions
14911 --file=FILE[:TEMPLATE]
14912 instantiate the configuration file FILE
14913 --header=FILE[:TEMPLATE]
14914 instantiate the configuration header FILE
14916 Configuration files:
14917 $config_files
14919 Configuration headers:
14920 $config_headers
14922 Configuration commands:
14923 $config_commands
14925 Report bugs to the package provider."
14927 _ACEOF
14928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14929 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14930 ac_cs_version="\\
14931 config.status
14932 configured by $0, generated by GNU Autoconf 2.68,
14933 with options \\"\$ac_cs_config\\"
14935 Copyright (C) 2010 Free Software Foundation, Inc.
14936 This config.status script is free software; the Free Software Foundation
14937 gives unlimited permission to copy, distribute and modify it."
14939 ac_pwd='$ac_pwd'
14940 srcdir='$srcdir'
14941 test -n "\$AWK" || AWK=awk
14942 _ACEOF
14944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14945 # The default lists apply if the user does not specify any file.
14946 ac_need_defaults=:
14947 while test $# != 0
14949 case $1 in
14950 --*=?*)
14951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14953 ac_shift=:
14955 --*=)
14956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14957 ac_optarg=
14958 ac_shift=:
14961 ac_option=$1
14962 ac_optarg=$2
14963 ac_shift=shift
14965 esac
14967 case $ac_option in
14968 # Handling of the options.
14969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14970 ac_cs_recheck=: ;;
14971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14972 $as_echo "$ac_cs_version"; exit ;;
14973 --config | --confi | --conf | --con | --co | --c )
14974 $as_echo "$ac_cs_config"; exit ;;
14975 --debug | --debu | --deb | --de | --d | -d )
14976 debug=: ;;
14977 --file | --fil | --fi | --f )
14978 $ac_shift
14979 case $ac_optarg in
14980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14981 '') as_fn_error $? "missing file argument" ;;
14982 esac
14983 as_fn_append CONFIG_FILES " '$ac_optarg'"
14984 ac_need_defaults=false;;
14985 --header | --heade | --head | --hea )
14986 $ac_shift
14987 case $ac_optarg in
14988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14989 esac
14990 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14991 ac_need_defaults=false;;
14992 --he | --h)
14993 # Conflict between --help and --header
14994 as_fn_error $? "ambiguous option: \`$1'
14995 Try \`$0 --help' for more information.";;
14996 --help | --hel | -h )
14997 $as_echo "$ac_cs_usage"; exit ;;
14998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15000 ac_cs_silent=: ;;
15002 # This is an error.
15003 -*) as_fn_error $? "unrecognized option: \`$1'
15004 Try \`$0 --help' for more information." ;;
15006 *) as_fn_append ac_config_targets " $1"
15007 ac_need_defaults=false ;;
15009 esac
15010 shift
15011 done
15013 ac_configure_extra_args=
15015 if $ac_cs_silent; then
15016 exec 6>/dev/null
15017 ac_configure_extra_args="$ac_configure_extra_args --silent"
15020 _ACEOF
15021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15022 if \$ac_cs_recheck; then
15023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15024 shift
15025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15026 CONFIG_SHELL='$SHELL'
15027 export CONFIG_SHELL
15028 exec "\$@"
15031 _ACEOF
15032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15033 exec 5>>config.log
15035 echo
15036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15037 ## Running $as_me. ##
15038 _ASBOX
15039 $as_echo "$ac_log"
15040 } >&5
15042 _ACEOF
15043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045 # INIT-COMMANDS
15048 aros_host_exe_suffix=${aros_host_exe_suffix}
15049 aros_tools_dir=${aros_tools_dir}
15050 aros_target_cpu=${aros_target_cpu}
15051 aros_target_arch=${aros_target_arch}
15052 aros_target_suffix=${aros_target_suffix}
15053 orig_target_nm=${orig_target_nm}
15054 orig_target_as=${orig_target_as}
15055 orig_target_ar=${orig_target_ar}
15056 orig_target_ranlib=${orig_target_ranlib}
15057 orig_target_objdump=${orig_target_objdump}
15058 orig_target_objcopy=${orig_target_objcopy}
15059 orig_target_strip=${orig_target_strip}
15060 aros_kernel_ld=${aros_kernel_ld}
15063 aros_tools_dir=${aros_tools_dir}
15066 _ACEOF
15068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070 # Handling of arguments.
15071 for ac_config_target in $ac_config_targets
15073 case $ac_config_target in
15074 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
15075 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
15076 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
15077 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15078 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
15079 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
15080 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
15081 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
15082 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
15083 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
15084 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
15085 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
15086 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
15087 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
15088 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
15089 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
15090 "${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" ;;
15091 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
15092 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
15093 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
15094 "${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" ;;
15096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15097 esac
15098 done
15101 # If the user did not use the arguments to specify the items to instantiate,
15102 # then the envvar interface is used. Set only those that are not.
15103 # We use the long form for the default assignment because of an extremely
15104 # bizarre bug on SunOS 4.1.3.
15105 if $ac_need_defaults; then
15106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15108 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15111 # Have a temporary directory for convenience. Make it in the build tree
15112 # simply because there is no reason against having it here, and in addition,
15113 # creating and moving files from /tmp can sometimes cause problems.
15114 # Hook for its removal unless debugging.
15115 # Note that there is a small window in which the directory will not be cleaned:
15116 # after its creation but before its name has been assigned to `$tmp'.
15117 $debug ||
15119 tmp= ac_tmp=
15120 trap 'exit_status=$?
15121 : "${ac_tmp:=$tmp}"
15122 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15124 trap 'as_fn_exit 1' 1 2 13 15
15126 # Create a (secure) tmp directory for tmp files.
15129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15130 test -d "$tmp"
15131 } ||
15133 tmp=./conf$$-$RANDOM
15134 (umask 077 && mkdir "$tmp")
15135 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15136 ac_tmp=$tmp
15138 # Set up the scripts for CONFIG_FILES section.
15139 # No need to generate them if there are no CONFIG_FILES.
15140 # This happens for instance with `./config.status config.h'.
15141 if test -n "$CONFIG_FILES"; then
15144 ac_cr=`echo X | tr X '\015'`
15145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15146 # But we know of no other shell where ac_cr would be empty at this
15147 # point, so we can use a bashism as a fallback.
15148 if test "x$ac_cr" = x; then
15149 eval ac_cr=\$\'\\r\'
15151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15153 ac_cs_awk_cr='\\r'
15154 else
15155 ac_cs_awk_cr=$ac_cr
15158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15159 _ACEOF
15163 echo "cat >conf$$subs.awk <<_ACEOF" &&
15164 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15165 echo "_ACEOF"
15166 } >conf$$subs.sh ||
15167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15168 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15169 ac_delim='%!_!# '
15170 for ac_last_try in false false false false false :; do
15171 . ./conf$$subs.sh ||
15172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15174 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15175 if test $ac_delim_n = $ac_delim_num; then
15176 break
15177 elif $ac_last_try; then
15178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15179 else
15180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15182 done
15183 rm -f conf$$subs.sh
15185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15186 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15187 _ACEOF
15188 sed -n '
15190 s/^/S["/; s/!.*/"]=/
15193 s/^[^!]*!//
15194 :repl
15195 t repl
15196 s/'"$ac_delim"'$//
15197 t delim
15200 s/\(.\{148\}\)..*/\1/
15201 t more1
15202 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15205 b repl
15206 :more1
15207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15210 s/.\{148\}//
15211 t nl
15212 :delim
15214 s/\(.\{148\}\)..*/\1/
15215 t more2
15216 s/["\\]/\\&/g; s/^/"/; s/$/"/
15219 :more2
15220 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15223 s/.\{148\}//
15224 t delim
15225 ' <conf$$subs.awk | sed '
15226 /^[^""]/{
15228 s/\n//
15230 ' >>$CONFIG_STATUS || ac_write_fail=1
15231 rm -f conf$$subs.awk
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 _ACAWK
15234 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15235 for (key in S) S_is_set[key] = 1
15236 FS = "\a"
15240 line = $ 0
15241 nfields = split(line, field, "@")
15242 substed = 0
15243 len = length(field[1])
15244 for (i = 2; i < nfields; i++) {
15245 key = field[i]
15246 keylen = length(key)
15247 if (S_is_set[key]) {
15248 value = S[key]
15249 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15250 len += length(value) + length(field[++i])
15251 substed = 1
15252 } else
15253 len += 1 + keylen
15256 print line
15259 _ACAWK
15260 _ACEOF
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15263 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15264 else
15266 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15267 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15268 _ACEOF
15270 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15271 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15272 # trailing colons and then remove the whole line if VPATH becomes empty
15273 # (actually we leave an empty line to preserve line numbers).
15274 if test "x$srcdir" = x.; then
15275 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15277 s///
15278 s/^/:/
15279 s/[ ]*$/:/
15280 s/:\$(srcdir):/:/g
15281 s/:\${srcdir}:/:/g
15282 s/:@srcdir@:/:/g
15283 s/^:*//
15284 s/:*$//
15286 s/\(=[ ]*\).*/\1/
15288 s/\n//
15289 s/^[^=]*=[ ]*$//
15293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15294 fi # test -n "$CONFIG_FILES"
15296 # Set up the scripts for CONFIG_HEADERS section.
15297 # No need to generate them if there are no CONFIG_HEADERS.
15298 # This happens for instance with `./config.status Makefile'.
15299 if test -n "$CONFIG_HEADERS"; then
15300 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15301 BEGIN {
15302 _ACEOF
15304 # Transform confdefs.h into an awk script `defines.awk', embedded as
15305 # here-document in config.status, that substitutes the proper values into
15306 # config.h.in to produce config.h.
15308 # Create a delimiter string that does not exist in confdefs.h, to ease
15309 # handling of long lines.
15310 ac_delim='%!_!# '
15311 for ac_last_try in false false :; do
15312 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15313 if test -z "$ac_tt"; then
15314 break
15315 elif $ac_last_try; then
15316 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15317 else
15318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15320 done
15322 # For the awk script, D is an array of macro values keyed by name,
15323 # likewise P contains macro parameters if any. Preserve backslash
15324 # newline sequences.
15326 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15327 sed -n '
15328 s/.\{148\}/&'"$ac_delim"'/g
15329 t rset
15330 :rset
15331 s/^[ ]*#[ ]*define[ ][ ]*/ /
15332 t def
15334 :def
15335 s/\\$//
15336 t bsnl
15337 s/["\\]/\\&/g
15338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15339 D["\1"]=" \3"/p
15340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15342 :bsnl
15343 s/["\\]/\\&/g
15344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15345 D["\1"]=" \3\\\\\\n"\\/p
15346 t cont
15347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15348 t cont
15350 :cont
15352 s/.\{148\}/&'"$ac_delim"'/g
15353 t clear
15354 :clear
15355 s/\\$//
15356 t bsnlc
15357 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15359 :bsnlc
15360 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15361 b cont
15362 ' <confdefs.h | sed '
15363 s/'"$ac_delim"'/"\\\
15364 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 for (key in D) D_is_set[key] = 1
15368 FS = "\a"
15370 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15371 line = \$ 0
15372 split(line, arg, " ")
15373 if (arg[1] == "#") {
15374 defundef = arg[2]
15375 mac1 = arg[3]
15376 } else {
15377 defundef = substr(arg[1], 2)
15378 mac1 = arg[2]
15380 split(mac1, mac2, "(") #)
15381 macro = mac2[1]
15382 prefix = substr(line, 1, index(line, defundef) - 1)
15383 if (D_is_set[macro]) {
15384 # Preserve the white space surrounding the "#".
15385 print prefix "define", macro P[macro] D[macro]
15386 next
15387 } else {
15388 # Replace #undef with comments. This is necessary, for example,
15389 # in the case of _POSIX_SOURCE, which is predefined and required
15390 # on some systems where configure will not decide to define it.
15391 if (defundef == "undef") {
15392 print "/*", prefix defundef, macro, "*/"
15393 next
15397 { print }
15398 _ACAWK
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15402 fi # test -n "$CONFIG_HEADERS"
15405 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15406 shift
15407 for ac_tag
15409 case $ac_tag in
15410 :[FHLC]) ac_mode=$ac_tag; continue;;
15411 esac
15412 case $ac_mode$ac_tag in
15413 :[FHL]*:*);;
15414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15415 :[FH]-) ac_tag=-:-;;
15416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15417 esac
15418 ac_save_IFS=$IFS
15419 IFS=:
15420 set x $ac_tag
15421 IFS=$ac_save_IFS
15422 shift
15423 ac_file=$1
15424 shift
15426 case $ac_mode in
15427 :L) ac_source=$1;;
15428 :[FH])
15429 ac_file_inputs=
15430 for ac_f
15432 case $ac_f in
15433 -) ac_f="$ac_tmp/stdin";;
15434 *) # Look for the file first in the build tree, then in the source tree
15435 # (if the path is not absolute). The absolute path cannot be DOS-style,
15436 # because $ac_f cannot contain `:'.
15437 test -f "$ac_f" ||
15438 case $ac_f in
15439 [\\/$]*) false;;
15440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15441 esac ||
15442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15443 esac
15444 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15445 as_fn_append ac_file_inputs " '$ac_f'"
15446 done
15448 # Let's still pretend it is `configure' which instantiates (i.e., don't
15449 # use $as_me), people would be surprised to read:
15450 # /* config.h. Generated by config.status. */
15451 configure_input='Generated from '`
15452 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15453 `' by configure.'
15454 if test x"$ac_file" != x-; then
15455 configure_input="$ac_file. $configure_input"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15457 $as_echo "$as_me: creating $ac_file" >&6;}
15459 # Neutralize special characters interpreted by sed in replacement strings.
15460 case $configure_input in #(
15461 *\&* | *\|* | *\\* )
15462 ac_sed_conf_input=`$as_echo "$configure_input" |
15463 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15464 *) ac_sed_conf_input=$configure_input;;
15465 esac
15467 case $ac_tag in
15468 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15470 esac
15472 esac
15474 ac_dir=`$as_dirname -- "$ac_file" ||
15475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15476 X"$ac_file" : 'X\(//\)[^/]' \| \
15477 X"$ac_file" : 'X\(//\)$' \| \
15478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15479 $as_echo X"$ac_file" |
15480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15481 s//\1/
15484 /^X\(\/\/\)[^/].*/{
15485 s//\1/
15488 /^X\(\/\/\)$/{
15489 s//\1/
15492 /^X\(\/\).*/{
15493 s//\1/
15496 s/.*/./; q'`
15497 as_dir="$ac_dir"; as_fn_mkdir_p
15498 ac_builddir=.
15500 case "$ac_dir" in
15501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15504 # A ".." for each directory in $ac_dir_suffix.
15505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15506 case $ac_top_builddir_sub in
15507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15509 esac ;;
15510 esac
15511 ac_abs_top_builddir=$ac_pwd
15512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15513 # for backward compatibility:
15514 ac_top_builddir=$ac_top_build_prefix
15516 case $srcdir in
15517 .) # We are building in place.
15518 ac_srcdir=.
15519 ac_top_srcdir=$ac_top_builddir_sub
15520 ac_abs_top_srcdir=$ac_pwd ;;
15521 [\\/]* | ?:[\\/]* ) # Absolute name.
15522 ac_srcdir=$srcdir$ac_dir_suffix;
15523 ac_top_srcdir=$srcdir
15524 ac_abs_top_srcdir=$srcdir ;;
15525 *) # Relative name.
15526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15527 ac_top_srcdir=$ac_top_build_prefix$srcdir
15528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15529 esac
15530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15533 case $ac_mode in
15536 # CONFIG_FILE
15539 _ACEOF
15541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542 # If the template does not know about datarootdir, expand it.
15543 # FIXME: This hack should be removed a few years after 2.60.
15544 ac_datarootdir_hack=; ac_datarootdir_seen=
15545 ac_sed_dataroot='
15546 /datarootdir/ {
15550 /@datadir@/p
15551 /@docdir@/p
15552 /@infodir@/p
15553 /@localedir@/p
15554 /@mandir@/p'
15555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15556 *datarootdir*) ac_datarootdir_seen=yes;;
15557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15559 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15560 _ACEOF
15561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15562 ac_datarootdir_hack='
15563 s&@datadir@&$datadir&g
15564 s&@docdir@&$docdir&g
15565 s&@infodir@&$infodir&g
15566 s&@localedir@&$localedir&g
15567 s&@mandir@&$mandir&g
15568 s&\\\${datarootdir}&$datarootdir&g' ;;
15569 esac
15570 _ACEOF
15572 # Neutralize VPATH when `$srcdir' = `.'.
15573 # Shell code in configure.ac might set extrasub.
15574 # FIXME: do we really want to maintain this feature?
15575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576 ac_sed_extra="$ac_vpsub
15577 $extrasub
15578 _ACEOF
15579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15582 s|@configure_input@|$ac_sed_conf_input|;t t
15583 s&@top_builddir@&$ac_top_builddir_sub&;t t
15584 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15585 s&@srcdir@&$ac_srcdir&;t t
15586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15587 s&@top_srcdir@&$ac_top_srcdir&;t t
15588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15589 s&@builddir@&$ac_builddir&;t t
15590 s&@abs_builddir@&$ac_abs_builddir&;t t
15591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15592 $ac_datarootdir_hack
15594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15595 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15598 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15600 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15602 which seems to be undefined. Please make sure it is defined" >&5
15603 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15604 which seems to be undefined. Please make sure it is defined" >&2;}
15606 rm -f "$ac_tmp/stdin"
15607 case $ac_file in
15608 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15609 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15610 esac \
15611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15615 # CONFIG_HEADER
15617 if test x"$ac_file" != x-; then
15619 $as_echo "/* $configure_input */" \
15620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15621 } >"$ac_tmp/config.h" \
15622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15623 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15625 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15626 else
15627 rm -f "$ac_file"
15628 mv "$ac_tmp/config.h" "$ac_file" \
15629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15631 else
15632 $as_echo "/* $configure_input */" \
15633 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15634 || as_fn_error $? "could not create -" "$LINENO" 5
15638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15639 $as_echo "$as_me: executing $ac_file commands" >&6;}
15641 esac
15644 case $ac_file$ac_mode in
15645 "compiler_executable":C)
15646 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
15647 mkdir -p $prefix
15648 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
15649 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
15651 echo ${prefix2}
15652 echo ${prefix3}
15653 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
15655 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
15656 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
15657 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
15658 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
15659 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
15660 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
15661 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
15663 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
15665 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
15667 esac
15668 done # for ac_tag
15671 as_fn_exit 0
15672 _ACEOF
15673 ac_clean_files=$ac_clean_files_save
15675 test $ac_write_fail = 0 ||
15676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15679 # configure is writing to config.log, and then calls config.status.
15680 # config.status does its own redirection, appending to config.log.
15681 # Unfortunately, on DOS this fails, as config.log is still kept open
15682 # by configure, so config.status won't be able to write to it; its
15683 # output is simply discarded. So we exec the FD to /dev/null,
15684 # effectively closing config.log, so it can be properly (re)opened and
15685 # appended to by config.status. When coming back to configure, we
15686 # need to make the FD available again.
15687 if test "$no_create" != yes; then
15688 ac_cs_success=:
15689 ac_config_status_args=
15690 test "$silent" = yes &&
15691 ac_config_status_args="$ac_config_status_args --quiet"
15692 exec 5>/dev/null
15693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15694 exec 5>>config.log
15695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15696 # would make configure fail if this is the last instruction.
15697 $ac_cs_success || as_fn_exit 1
15699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15706 #XXX compatability...
15707 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
15709 if test -n "$aros_shared_cflags" ; then
15710 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
15711 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg