Add info about host and target linker.
[AROS.git] / configure
blob82a2e625177a57aa0cf43b25a6e73dcdf1a5e28a
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_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
644 crosstools_target
645 aros_target_strip_flags
646 aros_target_genmap
647 aros_debug_ldflags
648 aros_debug_aflags
649 aros_debug_cflags
650 aros_target_cflags
651 aros_kernel_ldflags
652 aros_kernel_objcflags
653 aros_kernel_includes
654 aros_kernel_cflags
655 aros_shared_ldflags
656 aros_shared_aflags
657 aros_shared_cflags
658 aros_config_ldflags
659 aros_config_aflags
660 aros_config_cflags
661 aros_arch_libs
662 aros_compiler_libs
663 aros_object_format
664 aros_shared_ld
665 aros_shared_default
666 aros_target_nm
667 aros_target_strip
668 aros_target_objcopy
669 aros_target_objdump
670 aros_target_cc_path
671 aros_target_cc_includes
672 orig_target_ld
673 aros_target_as
674 orig_target_cpp
675 orig_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_cflags
697 aros_host_make
698 aros_host_cc
699 aros_host_cpp
700 aros_host_cpu
701 aros_host_arch
702 aros_cc_pre
703 aros_amigaos_compliance
704 AROS_PORTSSRCDIR
705 AROS_CROSSTOOLSDIR
706 SRCDIR
707 AROS_BUILDDIR_UNIX
708 AROS_BUILDDIR
709 aros_flavour_uc
710 aros_flavour
711 aros_cpu
712 aros_arch
713 SDL_LIBS
714 SDL_CFLAGS
715 SDL_CONFIG
716 XMKMF
717 aros_cflags_iquote_end
718 aros_cflags_iquote
719 kernel_cflags_iquote_end
720 kernel_cflags_iquote
721 host_cflags_iquote_end
722 host_cflags_iquote
723 aros_target_nostdlib_ldflags
724 aros_target_detach_ldflags
725 aros_target_nix_ldflags
726 aros_target_nostartup_ldflags
727 aros_target_nostdinc_cflags
728 aros_target_cpp
729 aros_target_ld
730 aros_target_cc
731 aros_kernel_ranlib
732 aros_kernel_ar
733 aros_kernel_ld
734 aros_target_cxx
735 aros_target_strip_ln
736 aros_target_ranlib_ln
737 aros_target_objdump_ln
738 aros_target_objcopy_ln
739 aros_target_nm_ln
740 aros_target_ar_ln
741 aros_target_as_ln
742 aros_kernel_rescomp
743 aros_kernel_cc
744 aros_kernel_cpp
746 android_tool
747 CCACHE
748 DISTCC
749 LIBOBJS
750 EGREP
751 GREP
753 TEST
756 pkgpyexecdir
757 pyexecdir
758 pkgpythondir
759 pythondir
760 PYTHON_PLATFORM
761 PYTHON_EXEC_PREFIX
762 PYTHON_PREFIX
763 PYTHON_VERSION
764 PYTHON
765 PATCH
766 CHMOD
768 PPMTOILBM
769 PNGTOPNM
770 FLEX
771 BISON
774 UNIQ
775 SORT
776 TOUCH
777 MKDIR
778 ECHO
782 aros_host_strip
783 aros_host_ranlib
784 aros_host_ar
785 aros_host_automake
786 aros_host_autoheader
787 aros_host_autoconf
788 aros_host_aclocal
789 aros_host_ld
790 MMAKE
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
800 host_os
801 host_vendor
802 host_cpu
803 host
804 build_os
805 build_vendor
806 build_cpu
807 build
808 target_alias
809 host_alias
810 build_alias
811 LIBS
812 ECHO_T
813 ECHO_N
814 ECHO_C
815 DEFS
816 mandir
817 localedir
818 libdir
819 psdir
820 pdfdir
821 dvidir
822 htmldir
823 infodir
824 docdir
825 oldincludedir
826 includedir
827 localstatedir
828 sharedstatedir
829 sysconfdir
830 datadir
831 datarootdir
832 libexecdir
833 sbindir
834 bindir
835 program_transform_name
836 prefix
837 exec_prefix
838 PACKAGE_URL
839 PACKAGE_BUGREPORT
840 PACKAGE_STRING
841 PACKAGE_VERSION
842 PACKAGE_TARNAME
843 PACKAGE_NAME
844 PATH_SEPARATOR
845 SHELL'
846 ac_subst_files=''
847 ac_user_opts='
848 enable_option_checking
849 enable_build_type
850 enable_debug
851 enable_crosstools
852 enable_distcc
853 enable_ccache
854 with_gcc_version
855 with_optimization
856 with_paranoia
857 enable_target_variant
858 with_xcode
859 with_sdk_version
860 with_sdk
861 with_ndk
862 with_ndk_version
863 enable_amigaos_compliance
864 with_kernel_tool_prefix
865 with_cpu
866 with_fpu
867 with_float
868 with_crosstools
869 with_aros_gcc
870 with_portssources
871 with_bootloader
872 with_iconset
873 with_theme
874 with_resolution
875 with_serial_debug
876 enable_palm_debug_hack
877 enable_usb30_code
878 enable_nesting_supervisor
879 enable_mmu
880 enable_x11_hidd
881 with_x
882 enable_x11_shm
883 enable_x11_vidmode
884 enable_sdl_hidd
885 with_sdl_prefix
886 with_sdl_exec_prefix
887 enable_sdltest
888 enable_dbus
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
899 XMKMF'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
950 ac_prev=
951 ac_dashdash=
952 for ac_option
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
961 case $ac_option in
962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *=) ac_optarg= ;;
964 *) ac_optarg=yes ;;
965 esac
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
971 ac_dashdash=yes ;;
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
990 --config-cache | -C)
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
994 ac_prev=datadir ;;
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1125 no_create=yes ;;
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 ac_prev=sbindir ;;
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 | --sbi=* | --sb=*)
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1199 | --sha | --sh)
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 | --sha=* | --sh=*)
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1208 ac_prev=site ;;
1209 -site=* | --site=* | --sit=*)
1210 site=$ac_optarg ;;
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 ac_prev=srcdir ;;
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 verbose=yes ;;
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1235 -with-* | --with-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=no ;;
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1289 *=*)
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 esac
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307 esac
1308 done
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1317 no) ;;
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320 esac
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1331 case $ac_val in
1332 */ )
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1335 esac
1336 # Be sure to have absolute directory names.
1337 case $ac_val in
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 esac
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used" >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1394 /^X\(\/\/\)$/{
1395 s//\1/
1398 /^X\(\/\).*/{
1399 s//\1/
1402 s/.*/./; q'`
1403 srcdir=$ac_confdir
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 srcdir=..
1407 else
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures this package to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 X features:
1500 --x-includes=DIR X include files are in DIR
1501 --x-libraries=DIR X library files are in DIR
1503 System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 _ACEOF
1509 if test -n "$ac_init_help"; then
1511 cat <<\_ACEOF
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-build-type=TYPE
1518 Select the build type. Available types are:
1519 personal, nightly, snapshot, milestone, release. Do
1520 NOT use this option unless you know what you are
1521 doing! (default=personal)
1522 --enable-debug=list Enable different types of debug. Commas or
1523 whitespaces can be used to separate the items in the
1524 list. Available types of debug are: all, none,
1525 messages, stack, mungwall, modules, symbols. If no
1526 list is provided then "all" is assumed.
1527 (default=none)
1528 --disable-crosstools Do not build cross-compiler toolchain
1529 --enable-distcc Use distcc as a front end to the compiler
1530 (default=no).
1531 --enable-ccache Use ccache as a front end to the compiler
1532 (default=no).
1533 --enable-target-variant=NAME
1534 Enable a specific target variant(default=none)
1535 --enable-amigaos-compliance=VERSION
1536 Enforce userspace AmigaOS compliance to a specific
1537 KickStart version (default=none).
1538 --enable-palm-debug-hack
1539 Enable palm debug output hack in palm native
1540 (default=no)
1541 --enable-usb30-code Enable usb3.0 code (default=no)
1542 --enable-nesting-supervisor
1543 Enable nesting supervisor support in unix
1544 (default=no)
1545 --disable-mmu Disable MMU support (default=enabled)
1546 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1547 --enable-x11-shm use X11 shared memory (default=auto)
1548 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1549 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1550 --disable-sdltest Do not try to compile and run a test SDL program
1551 --enable-dbus Enable DBUS support via dbus.library (default=no)
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-kernel-gcc-version=VERSION
1557 Use host gcc-VERSION for building AROS
1558 --with-gcc-version=VERSION
1559 Use host gcc-VERSION for building AROS
1560 --with-optimization=FLAGS
1561 Use optimization flags FLAGS (default=-O2).
1562 --with-paranoia=FLAGS CC flags to enable paranoia
1563 --with-xcode=PATH Specify XCode path for iOS targets
1564 (default=/Developer).
1565 --with-sdk-version=VERSION
1566 Use iOS SDK version VERSION (default=4.1).
1567 --with-sdk=PATH Specify Android SDK path
1568 (default=$default_android_sdk).
1569 --with-ndk=PATH Specify Android NDK path (default=none).
1570 --with-sdk-version=LEVEL
1571 Use Android SDK for API LEVEL (default=12).
1572 --with-ndk-version=LEVEL
1573 Use Android NDK for API LEVEL (default=9).
1574 --with-kernel-tool-prefix=...
1575 Specify crosscompile toolchain prefix for kernel
1576 objects
1577 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1578 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1579 --with-float=<spec> Specify floating point ABI
1580 (default=$gcc_default_float_abi).
1581 --with-crosstools=DIR Where to install or search for cross tools binaries
1582 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1583 --with-portssources=DIR Where to download sourcecode for external ports
1584 --with-bootloader=NAME Use a specific bootloader
1585 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1586 --with-theme=NAME Use a specific GUI Theme
1587 --with-resolution=XRESxYRESxDEPTH
1588 Default resolution of the initial WorkbenchScreen
1589 --with-serial-debug Enable serial debug output in native (default=no)
1590 --with-x use the X Window System
1591 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1592 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CPP C preprocessor
1603 XMKMF Path to xmkmf, Makefile generator for X Window System
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to the package provider.
1609 _ACEOF
1610 ac_status=$?
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1637 case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1661 else
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1665 done
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670 cat <<\_ACEOF
1671 configure
1672 generated by GNU Autoconf 2.68
1674 Copyright (C) 2010 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678 exit
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=1
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_cpp ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1758 } # ac_fn_c_try_cpp
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_header_mongrel ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 eval "$3=\$ac_header_compiler"
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_mongrel
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1851 ac_fn_c_try_run ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=$ac_status
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_c_try_run
1889 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists and can be compiled using the include files in
1892 # INCLUDES, setting the cache variable VAR accordingly.
1893 ac_fn_c_check_header_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 eval "$3=yes"
1908 else
1909 eval "$3=no"
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_header_compile
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 $as_test_x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_c_try_link
1966 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1967 # ----------------------------------------------------
1968 # Tries to find if the field MEMBER exists in type AGGR, after including
1969 # INCLUDES, setting cache variable VAR accordingly.
1970 ac_fn_c_check_member ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1974 $as_echo_n "checking for $2.$3... " >&6; }
1975 if eval \${$4+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 main ()
1984 static $2 ac_aggr;
1985 if (ac_aggr.$3)
1986 return 0;
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$4=yes"
1993 else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1998 main ()
2000 static $2 ac_aggr;
2001 if (sizeof ac_aggr.$3)
2002 return 0;
2004 return 0;
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 eval "$4=yes"
2009 else
2010 eval "$4=no"
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 eval ac_res=\$$4
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_member
2023 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2024 # ---------------------------------------------
2025 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2026 # accordingly.
2027 ac_fn_c_check_decl ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 as_decl_name=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 #ifndef $as_decl_name
2044 #ifdef __cplusplus
2045 (void) $as_decl_use;
2046 #else
2047 (void) $as_decl_name;
2048 #endif
2049 #endif
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_decl
2069 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070 # -------------------------------------------
2071 # Tests whether TYPE exists after having included INCLUDES, setting cache
2072 # variable VAR accordingly.
2073 ac_fn_c_check_type ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 eval "$3=no"
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 if (sizeof ($2))
2089 return 0;
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 if (sizeof (($2)))
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2109 else
2110 eval "$3=yes"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_type
2123 # ac_fn_c_check_func LINENO FUNC VAR
2124 # ----------------------------------
2125 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2126 ac_fn_c_check_func ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138 #define $2 innocuous_$2
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below.
2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143 <limits.h> exists even on freestanding compilers. */
2145 #ifdef __STDC__
2146 # include <limits.h>
2147 #else
2148 # include <assert.h>
2149 #endif
2151 #undef $2
2153 /* Override any GCC internal prototype to avoid an error.
2154 Use char because int might match the return type of a GCC
2155 builtin and then its argument prototype would still apply. */
2156 #ifdef __cplusplus
2157 extern "C"
2158 #endif
2159 char $2 ();
2160 /* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
2163 #if defined __stub_$2 || defined __stub___$2
2164 choke me
2165 #endif
2168 main ()
2170 return $2 ();
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_link "$LINENO"; then :
2176 eval "$3=yes"
2177 else
2178 eval "$3=no"
2180 rm -f core conftest.err conftest.$ac_objext \
2181 conftest$ac_exeext conftest.$ac_ext
2183 eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_func
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by $as_me, which was
2194 generated by GNU Autoconf 2.68. Invocation command line was
2196 $ $0 $@
2198 _ACEOF
2199 exec 5>>config.log
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2223 _ASUNAME
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2231 done
2232 IFS=$as_save_IFS
2234 } >&5
2236 cat >&5 <<_ACEOF
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2243 _ACEOF
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2257 for ac_arg
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2286 as_fn_append ac_configure_args " '$ac_arg'"
2288 esac
2289 done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2302 echo
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2307 echo
2308 # The following way of writing the cache mishandles newlines in values,
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in #(
2313 *${as_nl}*)
2314 case $ac_var in #(
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317 esac
2318 case $ac_var in #(
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2322 esac ;;
2323 esac
2324 done
2325 (set) 2>&1 |
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2328 sed -n \
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331 ;; #(
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2335 esac |
2336 sort
2338 echo
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2343 echo
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2358 echo
2359 for ac_var in $ac_subst_files
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 $as_echo "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2372 ## confdefs.h. ##
2373 ## ----------- ##"
2374 echo
2375 cat confdefs.h
2376 echo
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2381 } >&5
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2384 exit $exit_status
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2388 done
2389 ac_signal=0
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2394 $as_echo "/* confdefs.h */" > confdefs.h
2396 # Predefined preprocessor variables.
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2400 _ACEOF
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2420 _ACEOF
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2425 ac_site_file1=NONE
2426 ac_site_file2=NONE
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1=./$CONFIG_SITE;;
2431 */*) ac_site_file1=$CONFIG_SITE;;
2432 *) ac_site_file1=./$CONFIG_SITE;;
2433 esac
2434 elif test "x$prefix" != xNONE; then
2435 ac_site_file1=$prefix/share/config.site
2436 ac_site_file2=$prefix/etc/config.site
2437 else
2438 ac_site_file1=$ac_default_prefix/share/config.site
2439 ac_site_file2=$ac_default_prefix/etc/config.site
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2443 test "x$ac_site_file" = xNONE && continue
2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2448 . "$ac_site_file" \
2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2454 done
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 case $cache_file in
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2465 esac
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470 >$cache_file
2473 as_fn_append ac_header_list " stdlib.h"
2474 as_fn_append ac_header_list " unistd.h"
2475 as_fn_append ac_header_list " sys/param.h"
2476 # Check that the precious variables saved in the cache have kept the same
2477 # value.
2478 ac_cache_corrupted=false
2479 for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2525 done
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 ac_aux_dir=
2546 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2547 if test -f "$ac_dir/install-sh"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/install-sh -c"
2550 break
2551 elif test -f "$ac_dir/install.sh"; then
2552 ac_aux_dir=$ac_dir
2553 ac_install_sh="$ac_aux_dir/install.sh -c"
2554 break
2555 elif test -f "$ac_dir/shtool"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/shtool install -c"
2558 break
2560 done
2561 if test -z "$ac_aux_dir"; then
2562 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2565 # These three variables are undocumented and unsupported,
2566 # and are intended to be withdrawn in a future Autoconf release.
2567 # They can cause serious problems if a builder's source tree is in a directory
2568 # whose full name contains unusual characters.
2569 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2575 # Check what host we are running on.
2576 # If a target is not suggested, we use this one.
2577 # Note that what we call a target, Autoconf calls a host.
2578 # Make sure we can run config.sub.
2579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2580 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2583 $as_echo_n "checking build system type... " >&6; }
2584 if ${ac_cv_build+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 ac_build_alias=$build_alias
2588 test "x$ac_build_alias" = x &&
2589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2590 test "x$ac_build_alias" = x &&
2591 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2597 $as_echo "$ac_cv_build" >&6; }
2598 case $ac_cv_build in
2599 *-*-*) ;;
2600 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2601 esac
2602 build=$ac_cv_build
2603 ac_save_IFS=$IFS; IFS='-'
2604 set x $ac_cv_build
2605 shift
2606 build_cpu=$1
2607 build_vendor=$2
2608 shift; shift
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2611 build_os=$*
2612 IFS=$ac_save_IFS
2613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2617 $as_echo_n "checking host system type... " >&6; }
2618 if ${ac_cv_host+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test "x$host_alias" = x; then
2622 ac_cv_host=$ac_cv_build
2623 else
2624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2630 $as_echo "$ac_cv_host" >&6; }
2631 case $ac_cv_host in
2632 *-*-*) ;;
2633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2634 esac
2635 host=$ac_cv_host
2636 ac_save_IFS=$IFS; IFS='-'
2637 set x $ac_cv_host
2638 shift
2639 host_cpu=$1
2640 host_vendor=$2
2641 shift; shift
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2644 host_os=$*
2645 IFS=$ac_save_IFS
2646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2650 # The AROS target is slightly different to the normal GNU style
2651 # format. We don't have the middle part, and we reverse the order
2652 # of the $(CPU) and $(OS) bits.
2654 # Don't strip the version of the target yet, it might be
2655 # useful on some systems.
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2658 $as_echo_n "checking for AROS style target... " >&6; }
2660 if test "$target" = "NONE" ; then
2661 target=$host_os-$host_cpu
2662 else
2663 if test "$target" = "" ; then
2664 target=$host_os-$host_cpu
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2668 $as_echo "$target" >&6; }
2670 if test "$host_os" = "mingw32" ; then
2671 PWDCMD="pwd -W"
2674 #don't know where else to put this...
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2676 $as_echo_n "checking building AROS in... " >&6; }
2677 AROS_BUILDDIR=`${PWDCMD-pwd}`
2678 AROS_BUILDDIR_UNIX=${PWD}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2680 $as_echo "$AROS_BUILDDIR" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2683 $as_echo_n "checking AROS source in... " >&6; }
2684 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685 SRCDIR=${srcpwd}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2687 $as_echo "$SRCDIR" >&6; }
2689 # Parse the target field into something useful.
2691 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2695 aros_default_wbwidth=800
2696 aros_default_wbheight=600
2697 aros_default_wbdepth=4
2700 # The first step is to find the host binaries.
2701 # Check for a compiler.
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2731 IFS=$as_save_IFS
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$ac_cv_prog_CC"; then
2747 ac_ct_CC=$CC
2748 # Extract the first word of "gcc", so it can be a program name with args.
2749 set dummy gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_ac_ct_CC="gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2778 $as_echo "$ac_ct_CC" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2784 if test "x$ac_ct_CC" = x; then
2785 CC=""
2786 else
2787 case $cross_compiling:$ac_tool_warned in
2788 yes:)
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2791 ac_tool_warned=yes ;;
2792 esac
2793 CC=$ac_ct_CC
2795 else
2796 CC="$ac_cv_prog_CC"
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}cc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC="${ac_tool_prefix}cc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2822 done
2823 done
2824 IFS=$as_save_IFS
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2840 if test -z "$CC"; then
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 ac_prog_rejected=no
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860 ac_prog_rejected=yes
2861 continue
2863 ac_cv_prog_CC="cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2869 IFS=$as_save_IFS
2871 if test $ac_prog_rejected = yes; then
2872 # We found a bogon in the path, so make sure we never use it.
2873 set dummy $ac_cv_prog_CC
2874 shift
2875 if test $# != 0; then
2876 # We chose a different compiler from the bogus one.
2877 # However, it has the same basename, so the bogon will be chosen
2878 # first if we set CC to just the basename; use the full file name.
2879 shift
2880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 if test -n "$ac_tool_prefix"; then
2898 for ac_prog in cl.exe
2900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2937 test -n "$CC" && break
2938 done
2940 if test -z "$CC"; then
2941 ac_ct_CC=$CC
2942 for ac_prog in cl.exe
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_ac_ct_CC="$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$ac_ct_CC" && break
2982 done
2984 if test "x$ac_ct_CC" = x; then
2985 CC=""
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 CC=$ac_ct_CC
3000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "no acceptable C compiler found in \$PATH
3003 See \`config.log' for more details" "$LINENO" 5; }
3005 # Provide some information about the compiler.
3006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3007 set X $ac_compile
3008 ac_compiler=$2
3009 for ac_option in --version -v -V -qversion; do
3010 { { ac_try="$ac_compiler $ac_option >&5"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3018 ac_status=$?
3019 if test -s conftest.err; then
3020 sed '10a\
3021 ... rest of stderr output deleted ...
3022 10q' conftest.err >conftest.er1
3023 cat conftest.er1 >&5
3025 rm -f conftest.er1 conftest.err
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }
3028 done
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3034 main ()
3038 return 0;
3040 _ACEOF
3041 ac_clean_files_save=$ac_clean_files
3042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043 # Try to create an executable without -o first, disregard a.out.
3044 # It will help us diagnose broken compilers, and finding out an intuition
3045 # of exeext.
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3047 $as_echo_n "checking whether the C compiler works... " >&6; }
3048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3050 # The possible output files:
3051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3053 ac_rmfiles=
3054 for ac_file in $ac_files
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3059 esac
3060 done
3061 rm -f $ac_rmfiles
3063 if { { ac_try="$ac_link_default"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link_default") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3077 # so that the user can short-circuit this test for compilers unknown to
3078 # Autoconf.
3079 for ac_file in $ac_files ''
3081 test -f "$ac_file" || continue
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3091 then :; else
3092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 # We set ac_cv_exeext here because the later test for it is not
3095 # safe: cross compilers may not add the suffix if given an `-o'
3096 # argument, so we may need to know it at that point already.
3097 # Even if this section looks crufty: it has the advantage of
3098 # actually working.
3099 break;;
3101 break;;
3102 esac
3103 done
3104 test "$ac_cv_exeext" = no && ac_cv_exeext=
3106 else
3107 ac_file=''
3109 if test -z "$ac_file"; then :
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 as_fn_error 77 "C compiler cannot create executables
3118 See \`config.log' for more details" "$LINENO" 5; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3124 $as_echo_n "checking for C compiler default output file name... " >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 $as_echo "$ac_file" >&6; }
3127 ac_exeext=$ac_cv_exeext
3129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130 ac_clean_files=$ac_clean_files_save
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 $as_echo_n "checking for suffix of executables... " >&6; }
3133 if { { ac_try="$ac_link"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3146 # work properly (i.e., refer to `conftest.exe'), while it won't with
3147 # `rm'.
3148 for ac_file in conftest.exe conftest conftest.*; do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 break;;
3154 * ) break;;
3155 esac
3156 done
3157 else
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details" "$LINENO" 5; }
3163 rm -f conftest conftest$ac_cv_exeext
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 $as_echo "$ac_cv_exeext" >&6; }
3167 rm -f conftest.$ac_ext
3168 EXEEXT=$ac_cv_exeext
3169 ac_exeext=$EXEEXT
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172 #include <stdio.h>
3174 main ()
3176 FILE *f = fopen ("conftest.out", "w");
3177 return ferror (f) || fclose (f) != 0;
3180 return 0;
3182 _ACEOF
3183 ac_clean_files="$ac_clean_files conftest.out"
3184 # Check that the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 if test "$cross_compiling" != yes; then
3189 { { ac_try="$ac_link"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3200 if { ac_try='./conftest$ac_cv_exeext'
3201 { { case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; }; then
3211 cross_compiling=no
3212 else
3213 if test "$cross_compiling" = maybe; then
3214 cross_compiling=yes
3215 else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details" "$LINENO" 5; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 $as_echo "$cross_compiling" >&6; }
3227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3228 ac_clean_files=$ac_clean_files_save
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230 $as_echo_n "checking for suffix of object files... " >&6; }
3231 if ${ac_cv_objext+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3238 main ()
3242 return 0;
3244 _ACEOF
3245 rm -f conftest.o conftest.obj
3246 if { { ac_try="$ac_compile"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_compile") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 for ac_file in conftest.o conftest.obj conftest.*; do
3258 test -f "$ac_file" || continue;
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 break;;
3263 esac
3264 done
3265 else
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 See \`config.log' for more details" "$LINENO" 5; }
3274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277 $as_echo "$ac_cv_objext" >&6; }
3278 OBJEXT=$ac_cv_objext
3279 ac_objext=$OBJEXT
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3282 if ${ac_cv_c_compiler_gnu+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3289 main ()
3291 #ifndef __GNUC__
3292 choke me
3293 #endif
3296 return 0;
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_compiler_gnu=yes
3301 else
3302 ac_compiler_gnu=no
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3310 if test $ac_compiler_gnu = yes; then
3311 GCC=yes
3312 else
3313 GCC=
3315 ac_test_CFLAGS=${CFLAGS+set}
3316 ac_save_CFLAGS=$CFLAGS
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3319 if ${ac_cv_prog_cc_g+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 ac_save_c_werror_flag=$ac_c_werror_flag
3323 ac_c_werror_flag=yes
3324 ac_cv_prog_cc_g=no
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3330 main ()
3334 return 0;
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_g=yes
3339 else
3340 CFLAGS=""
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3345 main ()
3349 return 0;
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3354 else
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3356 CFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 main ()
3365 return 0;
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_g=yes
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3379 $as_echo "$ac_cv_prog_cc_g" >&6; }
3380 if test "$ac_test_CFLAGS" = set; then
3381 CFLAGS=$ac_save_CFLAGS
3382 elif test $ac_cv_prog_cc_g = yes; then
3383 if test "$GCC" = yes; then
3384 CFLAGS="-g -O2"
3385 else
3386 CFLAGS="-g"
3388 else
3389 if test "$GCC" = yes; then
3390 CFLAGS="-O2"
3391 else
3392 CFLAGS=
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3397 if ${ac_cv_prog_cc_c89+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 ac_cv_prog_cc_c89=no
3401 ac_save_CC=$CC
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404 #include <stdarg.h>
3405 #include <stdio.h>
3406 #include <sys/types.h>
3407 #include <sys/stat.h>
3408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3409 struct buf { int x; };
3410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3411 static char *e (p, i)
3412 char **p;
3413 int i;
3415 return p[i];
3417 static char *f (char * (*g) (char **, int), char **p, ...)
3419 char *s;
3420 va_list v;
3421 va_start (v,p);
3422 s = g (p, va_arg (v,int));
3423 va_end (v);
3424 return s;
3427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3428 function prototypes and stuff, but not '\xHH' hex character constants.
3429 These don't provoke an error unfortunately, instead are silently treated
3430 as 'x'. The following induces an error, until -std is added to get
3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3432 array size at least. It's necessary to write '\x00'==0 to get something
3433 that's true only with -std. */
3434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3437 inside strings and character constants. */
3438 #define FOO(x) 'x'
3439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3441 int test (int i, double x);
3442 struct s1 {int (*f) (int a);};
3443 struct s2 {int (*f) (double a);};
3444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3445 int argc;
3446 char **argv;
3448 main ()
3450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 return 0;
3454 _ACEOF
3455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458 CC="$ac_save_CC $ac_arg"
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_c89=$ac_arg
3462 rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3464 done
3465 rm -f conftest.$ac_ext
3466 CC=$ac_save_CC
3469 # AC_CACHE_VAL
3470 case "x$ac_cv_prog_cc_c89" in
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3473 $as_echo "none needed" >&6; } ;;
3474 xno)
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3476 $as_echo "unsupported" >&6; } ;;
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3481 esac
3482 if test "x$ac_cv_prog_cc_c89" != xno; then :
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 case $ac_cv_prog_cc_stdc in #(
3493 no) :
3494 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3495 *) :
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3497 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3498 if ${ac_cv_prog_cc_c99+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 ac_cv_prog_cc_c99=no
3502 ac_save_CC=$CC
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <stdarg.h>
3506 #include <stdbool.h>
3507 #include <stdlib.h>
3508 #include <wchar.h>
3509 #include <stdio.h>
3511 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3512 #define debug(...) fprintf (stderr, __VA_ARGS__)
3513 #define showlist(...) puts (#__VA_ARGS__)
3514 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3515 static void
3516 test_varargs_macros (void)
3518 int x = 1234;
3519 int y = 5678;
3520 debug ("Flag");
3521 debug ("X = %d\n", x);
3522 showlist (The first, second, and third items.);
3523 report (x>y, "x is %d but y is %d", x, y);
3526 // Check long long types.
3527 #define BIG64 18446744073709551615ull
3528 #define BIG32 4294967295ul
3529 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3530 #if !BIG_OK
3531 your preprocessor is broken;
3532 #endif
3533 #if BIG_OK
3534 #else
3535 your preprocessor is broken;
3536 #endif
3537 static long long int bignum = -9223372036854775807LL;
3538 static unsigned long long int ubignum = BIG64;
3540 struct incomplete_array
3542 int datasize;
3543 double data[];
3546 struct named_init {
3547 int number;
3548 const wchar_t *name;
3549 double average;
3552 typedef const char *ccp;
3554 static inline int
3555 test_restrict (ccp restrict text)
3557 // See if C++-style comments work.
3558 // Iterate through items via the restricted pointer.
3559 // Also check for declarations in for loops.
3560 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3561 continue;
3562 return 0;
3565 // Check varargs and va_copy.
3566 static void
3567 test_varargs (const char *format, ...)
3569 va_list args;
3570 va_start (args, format);
3571 va_list args_copy;
3572 va_copy (args_copy, args);
3574 const char *str;
3575 int number;
3576 float fnumber;
3578 while (*format)
3580 switch (*format++)
3582 case 's': // string
3583 str = va_arg (args_copy, const char *);
3584 break;
3585 case 'd': // int
3586 number = va_arg (args_copy, int);
3587 break;
3588 case 'f': // float
3589 fnumber = va_arg (args_copy, double);
3590 break;
3591 default:
3592 break;
3595 va_end (args_copy);
3596 va_end (args);
3600 main ()
3603 // Check bool.
3604 _Bool success = false;
3606 // Check restrict.
3607 if (test_restrict ("String literal") == 0)
3608 success = true;
3609 char *restrict newvar = "Another string";
3611 // Check varargs.
3612 test_varargs ("s, d' f .", "string", 65, 34.234);
3613 test_varargs_macros ();
3615 // Check flexible array members.
3616 struct incomplete_array *ia =
3617 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3618 ia->datasize = 10;
3619 for (int i = 0; i < ia->datasize; ++i)
3620 ia->data[i] = i * 1.234;
3622 // Check named initializers.
3623 struct named_init ni = {
3624 .number = 34,
3625 .name = L"Test wide string",
3626 .average = 543.34343,
3629 ni.number = 58;
3631 int dynamic_array[ni.number];
3632 dynamic_array[ni.number - 1] = 543;
3634 // work around unused variable warnings
3635 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3636 || dynamic_array[ni.number - 1] != 543);
3639 return 0;
3641 _ACEOF
3642 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3644 CC="$ac_save_CC $ac_arg"
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_c99=$ac_arg
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c99" != "xno" && break
3650 done
3651 rm -f conftest.$ac_ext
3652 CC=$ac_save_CC
3655 # AC_CACHE_VAL
3656 case "x$ac_cv_prog_cc_c99" in
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3660 xno)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3664 CC="$CC $ac_cv_prog_cc_c99"
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3666 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3667 esac
3668 if test "x$ac_cv_prog_cc_c99" != xno; then :
3669 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3670 else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3673 if ${ac_cv_prog_cc_c89+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_cv_prog_cc_c89=no
3677 ac_save_CC=$CC
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <stdarg.h>
3681 #include <stdio.h>
3682 #include <sys/types.h>
3683 #include <sys/stat.h>
3684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3685 struct buf { int x; };
3686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3687 static char *e (p, i)
3688 char **p;
3689 int i;
3691 return p[i];
3693 static char *f (char * (*g) (char **, int), char **p, ...)
3695 char *s;
3696 va_list v;
3697 va_start (v,p);
3698 s = g (p, va_arg (v,int));
3699 va_end (v);
3700 return s;
3703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3704 function prototypes and stuff, but not '\xHH' hex character constants.
3705 These don't provoke an error unfortunately, instead are silently treated
3706 as 'x'. The following induces an error, until -std is added to get
3707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3708 array size at least. It's necessary to write '\x00'==0 to get something
3709 that's true only with -std. */
3710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3713 inside strings and character constants. */
3714 #define FOO(x) 'x'
3715 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717 int test (int i, double x);
3718 struct s1 {int (*f) (int a);};
3719 struct s2 {int (*f) (double a);};
3720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 int argc;
3722 char **argv;
3724 main ()
3726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3728 return 0;
3730 _ACEOF
3731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734 CC="$ac_save_CC $ac_arg"
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_c89=$ac_arg
3738 rm -f core conftest.err conftest.$ac_objext
3739 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 done
3741 rm -f conftest.$ac_ext
3742 CC=$ac_save_CC
3745 # AC_CACHE_VAL
3746 case "x$ac_cv_prog_cc_c89" in
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3749 $as_echo "none needed" >&6; } ;;
3750 xno)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 $as_echo "unsupported" >&6; } ;;
3754 CC="$CC $ac_cv_prog_cc_c89"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757 esac
3758 if test "x$ac_cv_prog_cc_c89" != xno; then :
3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3760 else
3761 ac_cv_prog_cc_stdc=no
3766 esac
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3768 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3769 if ${ac_cv_prog_cc_stdc+:} false; then :
3770 $as_echo_n "(cached) " >&6
3773 case $ac_cv_prog_cc_stdc in #(
3774 no) :
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;; #(
3777 '') :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;; #(
3780 *) :
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3782 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3783 esac
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3791 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3792 # On Suns, sometimes $CPP names a directory.
3793 if test -n "$CPP" && test -d "$CPP"; then
3794 CPP=
3796 if test -z "$CPP"; then
3797 if ${ac_cv_prog_CPP+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 # Double quotes because CPP needs to be expanded
3801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3803 ac_preproc_ok=false
3804 for ac_c_preproc_warn_flag in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #ifdef __STDC__
3815 # include <limits.h>
3816 #else
3817 # include <assert.h>
3818 #endif
3819 Syntax error
3820 _ACEOF
3821 if ac_fn_c_try_cpp "$LINENO"; then :
3823 else
3824 # Broken: fails on valid input.
3825 continue
3827 rm -f conftest.err conftest.i conftest.$ac_ext
3829 # OK, works on sane cases. Now check whether nonexistent headers
3830 # can be detected and how.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3834 _ACEOF
3835 if ac_fn_c_try_cpp "$LINENO"; then :
3836 # Broken: success on invalid input.
3837 continue
3838 else
3839 # Passes both tests.
3840 ac_preproc_ok=:
3841 break
3843 rm -f conftest.err conftest.i conftest.$ac_ext
3845 done
3846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3847 rm -f conftest.i conftest.err conftest.$ac_ext
3848 if $ac_preproc_ok; then :
3849 break
3852 done
3853 ac_cv_prog_CPP=$CPP
3856 CPP=$ac_cv_prog_CPP
3857 else
3858 ac_cv_prog_CPP=$CPP
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3861 $as_echo "$CPP" >&6; }
3862 ac_preproc_ok=false
3863 for ac_c_preproc_warn_flag in '' yes
3865 # Use a header file that comes with gcc, so configuring glibc
3866 # with a fresh cross-compiler works.
3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868 # <limits.h> exists even on freestanding compilers.
3869 # On the NeXT, cc -E runs the code through the compiler's parser,
3870 # not just through cpp. "Syntax error" is here to catch this case.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #ifdef __STDC__
3874 # include <limits.h>
3875 #else
3876 # include <assert.h>
3877 #endif
3878 Syntax error
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3882 else
3883 # Broken: fails on valid input.
3884 continue
3886 rm -f conftest.err conftest.i conftest.$ac_ext
3888 # OK, works on sane cases. Now check whether nonexistent headers
3889 # can be detected and how.
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if ac_fn_c_try_cpp "$LINENO"; then :
3895 # Broken: success on invalid input.
3896 continue
3897 else
3898 # Passes both tests.
3899 ac_preproc_ok=:
3900 break
3902 rm -f conftest.err conftest.i conftest.$ac_ext
3904 done
3905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906 rm -f conftest.i conftest.err conftest.$ac_ext
3907 if $ac_preproc_ok; then :
3909 else
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3913 See \`config.log' for more details" "$LINENO" 5; }
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 # Check for a compatible awk
3924 for ac_prog in gawk nawk
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_AWK+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$AWK"; then
3934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_AWK="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3953 AWK=$ac_cv_prog_AWK
3954 if test -n "$AWK"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3956 $as_echo "$AWK" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 test -n "$AWK" && break
3964 done
3966 if test "$AWK" = ""; then
3967 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3969 # Extract the first word of "mmake", so it can be a program name with args.
3970 set dummy mmake; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if ${ac_cv_prog_MMAKE+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -n "$MMAKE"; then
3977 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_MMAKE="mmake "
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3992 IFS=$as_save_IFS
3996 MMAKE=$ac_cv_prog_MMAKE
3997 if test -n "$MMAKE"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3999 $as_echo "$MMAKE" >&6; }
4000 else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4007 # Perform some default variable assignments. Note all of these will be
4008 # Regenerated from the script, so there is no need to cache them.
4010 aros_host_cpp="$CPP"
4011 aros_host_cc="$CC"
4012 if test "$GCC" = "yes"; then
4013 aros_gcc_ld=`$CC -print-prog-name=ld`
4014 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4015 set dummy `basename $aros_gcc_ld`; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if ${ac_cv_path_aros_host_ld+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 case $aros_host_ld in
4022 [\\/]* | ?:[\\/]*)
4023 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in `dirname $aros_gcc_ld`
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4042 esac
4044 aros_host_ld=$ac_cv_path_aros_host_ld
4045 if test -n "$aros_host_ld"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4047 $as_echo "$aros_host_ld" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test "$aros_host_ld" = ""; then
4056 # Extract the first word of "ld", so it can be a program name with args.
4057 set dummy ld; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_path_aros_host_ld+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 case $aros_host_ld in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4084 esac
4086 aros_host_ld=$ac_cv_path_aros_host_ld
4087 if test -n "$aros_host_ld"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4089 $as_echo "$aros_host_ld" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4097 if test "$aros_host_ld" = ""; then
4098 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4100 aros_host_make="make"
4101 aros_host_cflags=$CFLAGS
4102 aros_host_ldflags=$LDFLAGS
4103 aros_host_debug="-g -O0"
4104 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4105 aros_host_mkargs="--no-print-directory"
4106 aros_host_exe_suffix="$EXEEXT"
4107 aros_host_lib_suffix=""
4109 # Ignore all compliance, AROS ROMs = 0
4110 # KickStart v1.0 = 30
4111 # KickStart v1.3 = 34
4112 # KickStart v2.0 = 37
4113 # KickStart v3.0 = 39
4114 # KickStart v3.1 = 40
4115 # AmigaOS v3.5 = 44
4116 aros_amigaos_compliance=0
4118 for ac_prog in aclocal aclocal19 aclocal-1.9
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$aros_host_aclocal"; then
4128 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_aros_host_aclocal="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4148 if test -n "$aros_host_aclocal"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4150 $as_echo "$aros_host_aclocal" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$aros_host_aclocal" && break
4158 done
4160 for ac_prog in autoconf autoconf259 autoconf253
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$aros_host_autoconf"; then
4170 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_aros_host_autoconf="$ac_prog"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4185 IFS=$as_save_IFS
4189 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4190 if test -n "$aros_host_autoconf"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4192 $as_echo "$aros_host_autoconf" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4199 test -n "$aros_host_autoconf" && break
4200 done
4202 for ac_prog in autoheader autoheader259 autoheader253
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$aros_host_autoheader"; then
4212 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_aros_host_autoheader="$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4232 if test -n "$aros_host_autoheader"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4234 $as_echo "$aros_host_autoheader" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$aros_host_autoheader" && break
4242 done
4244 for ac_prog in automake automake19 automake-1.9
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_aros_host_automake+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$aros_host_automake"; then
4254 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_aros_host_automake="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 aros_host_automake=$ac_cv_prog_aros_host_automake
4274 if test -n "$aros_host_automake"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4276 $as_echo "$aros_host_automake" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$aros_host_automake" && break
4284 done
4287 if test "$aros_host_aclocal" = ""; then
4288 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4290 if test "$aros_host_automake" = ""; then
4291 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4294 case "$aros_host_cc" in
4295 *gcc*)
4296 aros_host_cc_pipe="-pipe"
4298 icc)
4299 aros_host_cc_pipe=""
4302 aros_host_cc_pipe=""
4304 esac
4306 aros_kernel_cc_includes=""
4307 aros_target_cc_includes=""
4309 # ----------------------------------------------------------------------------------------
4310 # Host-specific defaults
4312 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4313 # instead of a wrapper script.
4314 # Useful for non-ELF hosts (like Windows and Darwin).
4315 # Can also be overriden in target section below
4316 use_aros_gcc="no"
4318 # This is the main host configuration section. It is where the host
4319 # can change the values of any variables it needs to change. We do
4320 # not look at anything that compiles to the target yet, we'll get
4321 # to that later.
4323 case "$host_os" in
4324 aros*)
4325 aros_host_arch="aros"
4326 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4327 case "$host_cpu" in
4328 *i?86*)
4329 aros_host_cpu="i386"
4331 *x86_64*)
4332 aros_host_cpu="x86_64"
4334 *powerpc*)
4335 aros_host_cpu="ppc"
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4339 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4340 aros_host_cpu="$host_cpu"
4342 esac
4345 linux*)
4346 aros_host_arch="linux"
4347 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4348 android_build_os="linux-x86"
4349 android_tool="android"
4350 default_android_sdk="/opt/android-sdk-linux_x86"
4351 case "$host_cpu" in
4352 *i?86*)
4353 aros_host_cpu="i386"
4355 *x86_64*)
4356 aros_host_cpu="x86_64"
4358 *m68k*)
4359 aros_host_cpu="m68k"
4361 *powerpc*)
4362 aros_host_cpu="ppc"
4364 *arm*)
4365 aros_host_cpu="arm"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4369 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4370 aros_host_cpu="$host_cpu"
4372 esac
4375 freebsd*)
4376 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4377 aros_host_make="gmake"
4378 aros_host_arch="freebsd"
4379 aros_host_cpu="i386"
4381 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4383 case $host_os in
4384 freebsd[234]*)
4385 aros_object_format="elf_i386"
4389 aros_object_format="elf_i386_fbsd"
4391 esac
4395 darwin*)
4396 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4397 aros_host_arch="darwin"
4398 use_aros_gcc="yes"
4399 android_build_os="darwin-x86"
4400 android_tool="android"
4401 default_android_sdk="/android-sdk-mac_x86"
4402 case "$host_cpu" in
4403 *i?86*)
4404 aros_host_cpu="i386"
4406 *x86_64*)
4407 aros_host_cpu="x86_64"
4409 *powerpc*)
4410 aros_host_cpu="ppc"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4414 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4415 aros_host_cpu="$host_cpu"
4417 esac
4419 aros_host_ldflags="$aros_host_ldflags -liconv"
4423 dragonfly*)
4424 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4425 aros_host_make="gmake"
4426 aros_host_arch="dragonfly"
4427 case $host_cpu in
4428 *i?86*)
4429 aros_host_cpu="i386"
4431 *amd64*)
4432 aros_host_cpu="x86_64"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4436 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4437 aros_host_cpu="$host_cpu"
4439 esac
4442 netbsd*)
4443 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4444 aros_host_make="gmake"
4445 aros_host_arch="netbsd"
4446 case "$host_cpu" in
4447 *i?86*)
4448 aros_host_cpu="i386"
4450 *m68k*)
4451 aros_host_cpu="m68k"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4455 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4456 aros_host_cpu="$host_cpu"
4458 esac
4459 aros_host_lib_suffix=".0.0"
4462 openbsd*)
4463 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4464 aros_host_make="gmake"
4465 aros_host_arch="openbsd"
4466 case "$host_cpu" in
4467 *i?86*)
4468 aros_host_cpu="i386"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4472 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4473 aros_host_cpu="$host_cpu"
4475 esac
4478 solaris*)
4479 aros_host_arch="solaris"
4480 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4481 case "$host_cpu" in
4482 *i?86*)
4483 aros_host_cpu="i386"
4485 *sparc*)
4486 aros_host_cpu="sparc"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4490 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4491 aros_host_cpu="$host_cpu"
4493 esac
4496 morphos*)
4497 aros_host_arch="morphos"
4498 aros_host_cpu="ppc"
4501 amiga*)
4502 aros_host_arch="amiga"
4503 SORT="/gg/bin/sort"
4504 TEST="/gg/bin/test"
4505 UNIQ="/gg/bin/uniq"
4506 FOR="for"
4507 TOUCH="/gg/bin/touch"
4508 case "$host_cpu" in
4509 *m68k*)
4510 aros_host_cpu="m68k"
4512 *powerpc*)
4513 aros_host_cpu="ppc"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4517 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4518 aros_host_cpu="$host_cpu"
4520 esac
4523 cygwin*)
4524 aros_host_arch="cygwin"
4525 use_aros_gcc="yes"
4526 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4527 android_build_os="windows"
4528 android_tool="android.bat"
4529 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4531 case "$host_cpu" in
4532 *i?86*)
4533 aros_host_cpu="i386"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4537 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4538 aros_host_cpu="$host_cpu"
4540 esac
4543 mingw32*)
4544 aros_host_arch="mingw32"
4545 use_aros_gcc="yes"
4546 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4547 android_build_os="windows"
4548 android_tool="android.bat"
4549 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4551 case "$host_cpu" in
4552 *i?86*)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4555 $as_echo_n "checking for Windows native gcc target... " >&6; }
4556 host_cpu=`gcc -dumpmachine`
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4558 $as_echo "$host_cpu" >&6; }
4561 esac
4563 case "$host_cpu" in
4564 *i?86*)
4565 aros_host_cpu="i386"
4568 *x86_64*)
4569 aros_host_cpu="x86_64"
4570 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4575 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4576 aros_host_cpu="$host_cpu"
4578 esac
4581 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4583 esac
4585 # Extract the first word of "ar", so it can be a program name with args.
4586 set dummy ar; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_aros_host_ar+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$aros_host_ar"; then
4593 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_aros_host_ar="ar cr"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4608 IFS=$as_save_IFS
4612 aros_host_ar=$ac_cv_prog_aros_host_ar
4613 if test -n "$aros_host_ar"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4615 $as_echo "$aros_host_ar" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4622 if test "$aros_host_ar" = ""; then
4623 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4625 # Extract the first word of "ranlib", so it can be a program name with args.
4626 set dummy ranlib; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 if test -n "$aros_host_ranlib"; then
4633 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_aros_host_ranlib="ranlib "
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4646 done
4647 done
4648 IFS=$as_save_IFS
4652 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4653 if test -n "$aros_host_ranlib"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4655 $as_echo "$aros_host_ranlib" >&6; }
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 if test "$aros_host_ranlib" = ""; then
4663 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4665 # Extract the first word of "strip", so it can be a program name with args.
4666 set dummy strip; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_aros_host_strip+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$aros_host_strip"; then
4673 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_aros_host_strip="strip "
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 aros_host_strip=$ac_cv_prog_aros_host_strip
4693 if test -n "$aros_host_strip"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4695 $as_echo "$aros_host_strip" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 if test "$aros_host_strip" = ""; then
4703 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4706 # Extract the first word of "rm", so it can be a program name with args.
4707 set dummy rm; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_RM+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$RM"; then
4714 ac_cv_prog_RM="$RM" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_RM="rm -rf"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4729 IFS=$as_save_IFS
4733 RM=$ac_cv_prog_RM
4734 if test -n "$RM"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4736 $as_echo "$RM" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4743 if test "$RM" = ""; then
4744 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4746 # Extract the first word of "cp", so it can be a program name with args.
4747 set dummy cp; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_CP+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$CP"; then
4754 ac_cv_prog_CP="$CP" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_CP="cp "
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4769 IFS=$as_save_IFS
4773 CP=$ac_cv_prog_CP
4774 if test -n "$CP"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4776 $as_echo "$CP" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 if test "$CP" = ""; then
4784 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4786 # Extract the first word of "mv", so it can be a program name with args.
4787 set dummy mv; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_MV+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$MV"; then
4794 ac_cv_prog_MV="$MV" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_MV="mv "
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 MV=$ac_cv_prog_MV
4814 if test -n "$MV"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4816 $as_echo "$MV" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4823 if test "$MV" = ""; then
4824 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4826 # Extract the first word of "echo", so it can be a program name with args.
4827 set dummy echo; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_ECHO+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ECHO"; then
4834 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ECHO="echo "
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 ECHO=$ac_cv_prog_ECHO
4854 if test -n "$ECHO"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4856 $as_echo "$ECHO" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 if test "$ECHO" = ""; then
4864 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4866 # Extract the first word of "mkdir", so it can be a program name with args.
4867 set dummy mkdir; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_MKDIR+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$MKDIR"; then
4874 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_MKDIR="mkdir -p"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 MKDIR=$ac_cv_prog_MKDIR
4894 if test -n "$MKDIR"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4896 $as_echo "$MKDIR" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 if test "$MKDIR" = ""; then
4904 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4906 # Extract the first word of "touch", so it can be a program name with args.
4907 set dummy touch; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_TOUCH+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$TOUCH"; then
4914 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_TOUCH="touch "
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 TOUCH=$ac_cv_prog_TOUCH
4934 if test -n "$TOUCH"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4936 $as_echo "$TOUCH" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 if test "$TOUCH" = ""; then
4944 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4946 # Extract the first word of "sort", so it can be a program name with args.
4947 set dummy sort; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_SORT+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$SORT"; then
4954 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_SORT="sort "
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 SORT=$ac_cv_prog_SORT
4974 if test -n "$SORT"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4976 $as_echo "$SORT" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 if test "$SORT" = ""; then
4984 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4986 # Extract the first word of "uniq", so it can be a program name with args.
4987 set dummy uniq; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_UNIQ+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$UNIQ"; then
4994 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_UNIQ="uniq "
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5009 IFS=$as_save_IFS
5013 UNIQ=$ac_cv_prog_UNIQ
5014 if test -n "$UNIQ"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5016 $as_echo "$UNIQ" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 if test "$UNIQ" = ""; then
5024 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5026 # Extract the first word of "true", so it can be a program name with args.
5027 set dummy true; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_NOP+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$NOP"; then
5034 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_NOP="true "
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5049 IFS=$as_save_IFS
5053 NOP=$ac_cv_prog_NOP
5054 if test -n "$NOP"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5056 $as_echo "$NOP" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 if test "$NOP" = ""; then
5064 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5066 # Extract the first word of "cat", so it can be a program name with args.
5067 set dummy cat; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CAT+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CAT"; then
5074 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CAT="cat "
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 CAT=$ac_cv_prog_CAT
5094 if test -n "$CAT"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5096 $as_echo "$CAT" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 if test "$CAT" = ""; then
5104 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5106 # Extract the first word of "bison", so it can be a program name with args.
5107 set dummy bison; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_BISON+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$BISON"; then
5114 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_BISON="bison "
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 BISON=$ac_cv_prog_BISON
5134 if test -n "$BISON"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5136 $as_echo "$BISON" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 if test "$BISON" = ""; then
5144 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5146 # Extract the first word of "flex", so it can be a program name with args.
5147 set dummy flex; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_FLEX+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$FLEX"; then
5154 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_FLEX="flex "
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 FLEX=$ac_cv_prog_FLEX
5174 if test -n "$FLEX"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5176 $as_echo "$FLEX" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 if test "$FLEX" = ""; then
5184 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5186 # Extract the first word of "pngtopnm", so it can be a program name with args.
5187 set dummy pngtopnm; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$PNGTOPNM"; then
5194 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_PNGTOPNM="pngtopnm "
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5214 if test -n "$PNGTOPNM"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5216 $as_echo "$PNGTOPNM" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 if test "$PNGTOPNM" = ""; then
5224 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5226 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5227 set dummy ppmtoilbm; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$PPMTOILBM"; then
5234 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5254 if test -n "$PPMTOILBM"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5256 $as_echo "$PPMTOILBM" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5263 if test "$PPMTOILBM" = ""; then
5264 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5266 # Extract the first word of "sed", so it can be a program name with args.
5267 set dummy sed; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_SED+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$SED"; then
5274 ac_cv_prog_SED="$SED" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_SED="sed "
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 SED=$ac_cv_prog_SED
5294 if test -n "$SED"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5296 $as_echo "$SED" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 if test "$SED" = ""; then
5304 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5306 # Extract the first word of "chmod", so it can be a program name with args.
5307 set dummy chmod; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_CHMOD+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$CHMOD"; then
5314 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_prog_CHMOD="chmod "
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5327 done
5328 done
5329 IFS=$as_save_IFS
5333 CHMOD=$ac_cv_prog_CHMOD
5334 if test -n "$CHMOD"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5336 $as_echo "$CHMOD" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 if test "$CHMOD" = ""; then
5344 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5346 # Extract the first word of "patch", so it can be a program name with args.
5347 set dummy patch; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_PATCH+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$PATCH"; then
5354 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_PATCH="patch "
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 PATCH=$ac_cv_prog_PATCH
5374 if test -n "$PATCH"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5376 $as_echo "$PATCH" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 if test "$PATCH" = ""; then
5384 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5391 if test -n "$PYTHON"; then
5392 # If the user set $PYTHON, use it and don't search something else.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5394 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5395 prog="import sys, string
5396 # split strings by '.' and convert to numeric. Append some zeros
5397 # because we need at least 4 digits for the hex conversion.
5398 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5399 minverhex = 0
5400 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5401 sys.exit(sys.hexversion < minverhex)"
5402 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5403 ($PYTHON -c "$prog") >&5 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5409 else
5410 as_fn_error $? "too old" "$LINENO" 5
5412 am_display_PYTHON=$PYTHON
5413 else
5414 # Otherwise, try each interpreter until we find one that satisfies
5415 # VERSION.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5417 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5418 if ${am_cv_pathless_PYTHON+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5422 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5423 test "$am_cv_pathless_PYTHON" = none && break
5424 prog="import sys, string
5425 # split strings by '.' and convert to numeric. Append some zeros
5426 # because we need at least 4 digits for the hex conversion.
5427 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5428 minverhex = 0
5429 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5430 sys.exit(sys.hexversion < minverhex)"
5431 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5432 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; then :
5436 break
5438 done
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5441 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5442 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5443 if test "$am_cv_pathless_PYTHON" = none; then
5444 PYTHON=:
5445 else
5446 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5447 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_path_PYTHON+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $PYTHON in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5474 esac
5476 PYTHON=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5487 am_display_PYTHON=$am_cv_pathless_PYTHON
5491 if test "$PYTHON" = :; then
5492 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5493 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5497 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5498 if ${am_cv_python_version+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5504 $as_echo "$am_cv_python_version" >&6; }
5505 PYTHON_VERSION=$am_cv_python_version
5509 PYTHON_PREFIX='${prefix}'
5511 PYTHON_EXEC_PREFIX='${exec_prefix}'
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5516 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5517 if ${am_cv_python_platform+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5523 $as_echo "$am_cv_python_platform" >&6; }
5524 PYTHON_PLATFORM=$am_cv_python_platform
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5530 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5531 if ${am_cv_python_pythondir+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5535 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5538 $as_echo "$am_cv_python_pythondir" >&6; }
5539 pythondir=$am_cv_python_pythondir
5543 pkgpythondir=\${pythondir}/$PACKAGE
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5547 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5548 if ${am_cv_python_pyexecdir+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5552 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5555 $as_echo "$am_cv_python_pyexecdir" >&6; }
5556 pyexecdir=$am_cv_python_pyexecdir
5560 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5568 FOR=for
5570 IF=if
5572 TEST=test
5574 CMP=cmp
5578 # Check for some includes for the X11 HIDD and the kernel
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5583 if ${ac_cv_path_GREP+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -z "$GREP"; then
5587 ac_path_GREP_found=false
5588 # Loop through the user's path and test for each of PROGNAME-LIST
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_prog in grep ggrep; do
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5597 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5598 # Check for GNU ac_path_GREP and select it if it is found.
5599 # Check for GNU $ac_path_GREP
5600 case `"$ac_path_GREP" --version 2>&1` in
5601 *GNU*)
5602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5604 ac_count=0
5605 $as_echo_n 0123456789 >"conftest.in"
5606 while :
5608 cat "conftest.in" "conftest.in" >"conftest.tmp"
5609 mv "conftest.tmp" "conftest.in"
5610 cp "conftest.in" "conftest.nl"
5611 $as_echo 'GREP' >> "conftest.nl"
5612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5614 as_fn_arith $ac_count + 1 && ac_count=$as_val
5615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5616 # Best one so far, save it but keep looking for a better one
5617 ac_cv_path_GREP="$ac_path_GREP"
5618 ac_path_GREP_max=$ac_count
5620 # 10*(2^10) chars as input seems more than enough
5621 test $ac_count -gt 10 && break
5622 done
5623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5624 esac
5626 $ac_path_GREP_found && break 3
5627 done
5628 done
5629 done
5630 IFS=$as_save_IFS
5631 if test -z "$ac_cv_path_GREP"; then
5632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5634 else
5635 ac_cv_path_GREP=$GREP
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5640 $as_echo "$ac_cv_path_GREP" >&6; }
5641 GREP="$ac_cv_path_GREP"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5645 $as_echo_n "checking for egrep... " >&6; }
5646 if ${ac_cv_path_EGREP+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5650 then ac_cv_path_EGREP="$GREP -E"
5651 else
5652 if test -z "$EGREP"; then
5653 ac_path_EGREP_found=false
5654 # Loop through the user's path and test for each of PROGNAME-LIST
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_prog in egrep; do
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5663 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5664 # Check for GNU ac_path_EGREP and select it if it is found.
5665 # Check for GNU $ac_path_EGREP
5666 case `"$ac_path_EGREP" --version 2>&1` in
5667 *GNU*)
5668 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5670 ac_count=0
5671 $as_echo_n 0123456789 >"conftest.in"
5672 while :
5674 cat "conftest.in" "conftest.in" >"conftest.tmp"
5675 mv "conftest.tmp" "conftest.in"
5676 cp "conftest.in" "conftest.nl"
5677 $as_echo 'EGREP' >> "conftest.nl"
5678 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5680 as_fn_arith $ac_count + 1 && ac_count=$as_val
5681 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5682 # Best one so far, save it but keep looking for a better one
5683 ac_cv_path_EGREP="$ac_path_EGREP"
5684 ac_path_EGREP_max=$ac_count
5686 # 10*(2^10) chars as input seems more than enough
5687 test $ac_count -gt 10 && break
5688 done
5689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5690 esac
5692 $ac_path_EGREP_found && break 3
5693 done
5694 done
5695 done
5696 IFS=$as_save_IFS
5697 if test -z "$ac_cv_path_EGREP"; then
5698 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5700 else
5701 ac_cv_path_EGREP=$EGREP
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5707 $as_echo "$ac_cv_path_EGREP" >&6; }
5708 EGREP="$ac_cv_path_EGREP"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5712 $as_echo_n "checking for ANSI C header files... " >&6; }
5713 if ${ac_cv_header_stdc+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <stdlib.h>
5719 #include <stdarg.h>
5720 #include <string.h>
5721 #include <float.h>
5724 main ()
5728 return 0;
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_cv_header_stdc=yes
5733 else
5734 ac_cv_header_stdc=no
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 if test $ac_cv_header_stdc = yes; then
5739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <string.h>
5744 _ACEOF
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "memchr" >/dev/null 2>&1; then :
5748 else
5749 ac_cv_header_stdc=no
5751 rm -f conftest*
5755 if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <stdlib.h>
5761 _ACEOF
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "free" >/dev/null 2>&1; then :
5765 else
5766 ac_cv_header_stdc=no
5768 rm -f conftest*
5772 if test $ac_cv_header_stdc = yes; then
5773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5774 if test "$cross_compiling" = yes; then :
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ctype.h>
5780 #include <stdlib.h>
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5784 #else
5785 # define ISLOWER(c) \
5786 (('a' <= (c) && (c) <= 'i') \
5787 || ('j' <= (c) && (c) <= 'r') \
5788 || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5790 #endif
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5794 main ()
5796 int i;
5797 for (i = 0; i < 256; i++)
5798 if (XOR (islower (i), ISLOWER (i))
5799 || toupper (i) != TOUPPER (i))
5800 return 2;
5801 return 0;
5803 _ACEOF
5804 if ac_fn_c_try_run "$LINENO"; then :
5806 else
5807 ac_cv_header_stdc=no
5809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5810 conftest.$ac_objext conftest.beam conftest.$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5816 $as_echo "$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5825 inttypes.h stdint.h unistd.h
5826 do :
5827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5831 cat >>confdefs.h <<_ACEOF
5832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5833 _ACEOF
5837 done
5840 for ac_header in sys/ipc.h sys/shm.h \
5841 sys/mmap.h sys/mman.h sysexits.h \
5842 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5844 do :
5845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5846 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850 _ACEOF
5854 done
5857 for ac_header in sys/mount.h
5858 do :
5859 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5861 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE_SYS_MOUNT_H 1
5864 _ACEOF
5868 done
5871 ac_header_dirent=no
5872 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5873 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5875 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5876 if eval \${$as_ac_Header+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5882 #include <$ac_hdr>
5885 main ()
5887 if ((DIR *) 0)
5888 return 0;
5890 return 0;
5892 _ACEOF
5893 if ac_fn_c_try_compile "$LINENO"; then :
5894 eval "$as_ac_Header=yes"
5895 else
5896 eval "$as_ac_Header=no"
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 eval ac_res=\$$as_ac_Header
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5902 $as_echo "$ac_res" >&6; }
5903 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5904 cat >>confdefs.h <<_ACEOF
5905 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5906 _ACEOF
5908 ac_header_dirent=$ac_hdr; break
5911 done
5912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5913 if test $ac_header_dirent = dirent.h; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5915 $as_echo_n "checking for library containing opendir... " >&6; }
5916 if ${ac_cv_search_opendir+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 ac_func_search_save_LIBS=$LIBS
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5926 #ifdef __cplusplus
5927 extern "C"
5928 #endif
5929 char opendir ();
5931 main ()
5933 return opendir ();
5935 return 0;
5937 _ACEOF
5938 for ac_lib in '' dir; do
5939 if test -z "$ac_lib"; then
5940 ac_res="none required"
5941 else
5942 ac_res=-l$ac_lib
5943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5945 if ac_fn_c_try_link "$LINENO"; then :
5946 ac_cv_search_opendir=$ac_res
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext
5950 if ${ac_cv_search_opendir+:} false; then :
5951 break
5953 done
5954 if ${ac_cv_search_opendir+:} false; then :
5956 else
5957 ac_cv_search_opendir=no
5959 rm conftest.$ac_ext
5960 LIBS=$ac_func_search_save_LIBS
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5963 $as_echo "$ac_cv_search_opendir" >&6; }
5964 ac_res=$ac_cv_search_opendir
5965 if test "$ac_res" != no; then :
5966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5972 $as_echo_n "checking for library containing opendir... " >&6; }
5973 if ${ac_cv_search_opendir+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_func_search_save_LIBS=$LIBS
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 char opendir ();
5988 main ()
5990 return opendir ();
5992 return 0;
5994 _ACEOF
5995 for ac_lib in '' x; do
5996 if test -z "$ac_lib"; then
5997 ac_res="none required"
5998 else
5999 ac_res=-l$ac_lib
6000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 ac_cv_search_opendir=$ac_res
6005 rm -f core conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext
6007 if ${ac_cv_search_opendir+:} false; then :
6008 break
6010 done
6011 if ${ac_cv_search_opendir+:} false; then :
6013 else
6014 ac_cv_search_opendir=no
6016 rm conftest.$ac_ext
6017 LIBS=$ac_func_search_save_LIBS
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6020 $as_echo "$ac_cv_search_opendir" >&6; }
6021 ac_res=$ac_cv_search_opendir
6022 if test "$ac_res" != no; then :
6023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6030 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6031 if ${ac_cv_header_stat_broken+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #include <sys/types.h>
6037 #include <sys/stat.h>
6039 #if defined S_ISBLK && defined S_IFDIR
6040 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6041 #endif
6043 #if defined S_ISBLK && defined S_IFCHR
6044 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6045 #endif
6047 #if defined S_ISLNK && defined S_IFREG
6048 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6049 #endif
6051 #if defined S_ISSOCK && defined S_IFREG
6052 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6053 #endif
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 ac_cv_header_stat_broken=no
6058 else
6059 ac_cv_header_stat_broken=yes
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6064 $as_echo "$ac_cv_header_stat_broken" >&6; }
6065 if test $ac_cv_header_stat_broken = yes; then
6067 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6072 $as_echo_n "checking for ANSI C header files... " >&6; }
6073 if ${ac_cv_header_stdc+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 #include <stdlib.h>
6079 #include <stdarg.h>
6080 #include <string.h>
6081 #include <float.h>
6084 main ()
6088 return 0;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 ac_cv_header_stdc=yes
6093 else
6094 ac_cv_header_stdc=no
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 if test $ac_cv_header_stdc = yes; then
6099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #include <string.h>
6104 _ACEOF
6105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6106 $EGREP "memchr" >/dev/null 2>&1; then :
6108 else
6109 ac_cv_header_stdc=no
6111 rm -f conftest*
6115 if test $ac_cv_header_stdc = yes; then
6116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <stdlib.h>
6121 _ACEOF
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "free" >/dev/null 2>&1; then :
6125 else
6126 ac_cv_header_stdc=no
6128 rm -f conftest*
6132 if test $ac_cv_header_stdc = yes; then
6133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6134 if test "$cross_compiling" = yes; then :
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <ctype.h>
6140 #include <stdlib.h>
6141 #if ((' ' & 0x0FF) == 0x020)
6142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6144 #else
6145 # define ISLOWER(c) \
6146 (('a' <= (c) && (c) <= 'i') \
6147 || ('j' <= (c) && (c) <= 'r') \
6148 || ('s' <= (c) && (c) <= 'z'))
6149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6150 #endif
6152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6154 main ()
6156 int i;
6157 for (i = 0; i < 256; i++)
6158 if (XOR (islower (i), ISLOWER (i))
6159 || toupper (i) != TOUPPER (i))
6160 return 2;
6161 return 0;
6163 _ACEOF
6164 if ac_fn_c_try_run "$LINENO"; then :
6166 else
6167 ac_cv_header_stdc=no
6169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6170 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6176 $as_echo "$ac_cv_header_stdc" >&6; }
6177 if test $ac_cv_header_stdc = yes; then
6179 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6184 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6185 if ${ac_cv_header_sys_wait_h+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <sys/types.h>
6191 #include <sys/wait.h>
6192 #ifndef WEXITSTATUS
6193 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6194 #endif
6195 #ifndef WIFEXITED
6196 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6197 #endif
6200 main ()
6202 int s;
6203 wait (&s);
6204 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6206 return 0;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 ac_cv_header_sys_wait_h=yes
6211 else
6212 ac_cv_header_sys_wait_h=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6217 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6218 if test $ac_cv_header_sys_wait_h = yes; then
6220 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6225 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6226 if ${ac_cv_header_time+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 #include <sys/types.h>
6232 #include <sys/time.h>
6233 #include <time.h>
6236 main ()
6238 if ((struct tm *) 0)
6239 return 0;
6241 return 0;
6243 _ACEOF
6244 if ac_fn_c_try_compile "$LINENO"; then :
6245 ac_cv_header_time=yes
6246 else
6247 ac_cv_header_time=no
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6252 $as_echo "$ac_cv_header_time" >&6; }
6253 if test $ac_cv_header_time = yes; then
6255 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6259 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6260 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6264 _ACEOF
6267 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6272 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6273 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6275 cat >>confdefs.h <<_ACEOF
6276 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6277 _ACEOF
6280 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6282 else
6283 case " $LIBOBJS " in
6284 *" fileblocks.$ac_objext "* ) ;;
6285 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6287 esac
6292 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6293 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6295 cat >>confdefs.h <<_ACEOF
6296 #define HAVE_STRUCT_STAT_ST_RDEV 1
6297 _ACEOF
6300 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6306 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6307 if ${ac_cv_struct_tm+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6313 #include <time.h>
6316 main ()
6318 struct tm tm;
6319 int *p = &tm.tm_sec;
6320 return !p;
6322 return 0;
6324 _ACEOF
6325 if ac_fn_c_try_compile "$LINENO"; then :
6326 ac_cv_struct_tm=time.h
6327 else
6328 ac_cv_struct_tm=sys/time.h
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6333 $as_echo "$ac_cv_struct_tm" >&6; }
6334 if test $ac_cv_struct_tm = sys/time.h; then
6336 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6340 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6341 #include <$ac_cv_struct_tm>
6344 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6346 cat >>confdefs.h <<_ACEOF
6347 #define HAVE_STRUCT_TM_TM_ZONE 1
6348 _ACEOF
6353 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6355 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6357 else
6358 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6360 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6361 ac_have_decl=1
6362 else
6363 ac_have_decl=0
6366 cat >>confdefs.h <<_ACEOF
6367 #define HAVE_DECL_TZNAME $ac_have_decl
6368 _ACEOF
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6371 $as_echo_n "checking for tzname... " >&6; }
6372 if ${ac_cv_var_tzname+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 #include <time.h>
6378 #if !HAVE_DECL_TZNAME
6379 extern char *tzname[];
6380 #endif
6383 main ()
6385 return tzname[0][0];
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_link "$LINENO"; then :
6391 ac_cv_var_tzname=yes
6392 else
6393 ac_cv_var_tzname=no
6395 rm -f core conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6399 $as_echo "$ac_cv_var_tzname" >&6; }
6400 if test $ac_cv_var_tzname = yes; then
6402 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6407 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6408 if test "x$ac_cv_type_off_t" = xyes; then :
6410 else
6412 cat >>confdefs.h <<_ACEOF
6413 #define off_t long int
6414 _ACEOF
6418 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6419 if test "x$ac_cv_type_pid_t" = xyes; then :
6421 else
6423 cat >>confdefs.h <<_ACEOF
6424 #define pid_t int
6425 _ACEOF
6429 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6430 if test "x$ac_cv_type_size_t" = xyes; then :
6432 else
6434 cat >>confdefs.h <<_ACEOF
6435 #define size_t unsigned int
6436 _ACEOF
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6441 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6442 if ${ac_cv_type_uid_t+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <sys/types.h>
6449 _ACEOF
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451 $EGREP "uid_t" >/dev/null 2>&1; then :
6452 ac_cv_type_uid_t=yes
6453 else
6454 ac_cv_type_uid_t=no
6456 rm -f conftest*
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6460 $as_echo "$ac_cv_type_uid_t" >&6; }
6461 if test $ac_cv_type_uid_t = no; then
6463 $as_echo "#define uid_t int" >>confdefs.h
6466 $as_echo "#define gid_t int" >>confdefs.h
6471 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6472 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6474 cat >>confdefs.h <<_ACEOF
6475 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6476 _ACEOF
6482 # Look for some functions
6483 for ac_func in getpagesize kqueue statfs statvfs \
6484 clone kse_create rfork_thread thr_create sa_register \
6485 getcontext makecontext setcontext sigaltstack swapcontext
6486 do :
6487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6492 _ACEOF
6495 done
6501 for ac_header in $ac_header_list
6502 do :
6503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6507 cat >>confdefs.h <<_ACEOF
6508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 _ACEOF
6513 done
6522 for ac_func in getpagesize
6523 do :
6524 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6525 if test "x$ac_cv_func_getpagesize" = xyes; then :
6526 cat >>confdefs.h <<_ACEOF
6527 #define HAVE_GETPAGESIZE 1
6528 _ACEOF
6531 done
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6534 $as_echo_n "checking for working mmap... " >&6; }
6535 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test "$cross_compiling" = yes; then :
6539 ac_cv_func_mmap_fixed_mapped=no
6540 else
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 /* malloc might have been renamed as rpl_malloc. */
6545 #undef malloc
6547 /* Thanks to Mike Haertel and Jim Avera for this test.
6548 Here is a matrix of mmap possibilities:
6549 mmap private not fixed
6550 mmap private fixed at somewhere currently unmapped
6551 mmap private fixed at somewhere already mapped
6552 mmap shared not fixed
6553 mmap shared fixed at somewhere currently unmapped
6554 mmap shared fixed at somewhere already mapped
6555 For private mappings, we should verify that changes cannot be read()
6556 back from the file, nor mmap's back from the file at a different
6557 address. (There have been systems where private was not correctly
6558 implemented like the infamous i386 svr4.0, and systems where the
6559 VM page cache was not coherent with the file system buffer cache
6560 like early versions of FreeBSD and possibly contemporary NetBSD.)
6561 For shared mappings, we should conversely verify that changes get
6562 propagated back to all the places they're supposed to be.
6564 Grep wants private fixed already mapped.
6565 The main things grep needs to know about mmap are:
6566 * does it exist and is it safe to write into the mmap'd area
6567 * how to use it (BSD variants) */
6569 #include <fcntl.h>
6570 #include <sys/mman.h>
6572 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6573 char *malloc ();
6574 #endif
6576 /* This mess was copied from the GNU getpagesize.h. */
6577 #ifndef HAVE_GETPAGESIZE
6578 # ifdef _SC_PAGESIZE
6579 # define getpagesize() sysconf(_SC_PAGESIZE)
6580 # else /* no _SC_PAGESIZE */
6581 # ifdef HAVE_SYS_PARAM_H
6582 # include <sys/param.h>
6583 # ifdef EXEC_PAGESIZE
6584 # define getpagesize() EXEC_PAGESIZE
6585 # else /* no EXEC_PAGESIZE */
6586 # ifdef NBPG
6587 # define getpagesize() NBPG * CLSIZE
6588 # ifndef CLSIZE
6589 # define CLSIZE 1
6590 # endif /* no CLSIZE */
6591 # else /* no NBPG */
6592 # ifdef NBPC
6593 # define getpagesize() NBPC
6594 # else /* no NBPC */
6595 # ifdef PAGESIZE
6596 # define getpagesize() PAGESIZE
6597 # endif /* PAGESIZE */
6598 # endif /* no NBPC */
6599 # endif /* no NBPG */
6600 # endif /* no EXEC_PAGESIZE */
6601 # else /* no HAVE_SYS_PARAM_H */
6602 # define getpagesize() 8192 /* punt totally */
6603 # endif /* no HAVE_SYS_PARAM_H */
6604 # endif /* no _SC_PAGESIZE */
6606 #endif /* no HAVE_GETPAGESIZE */
6609 main ()
6611 char *data, *data2, *data3;
6612 const char *cdata2;
6613 int i, pagesize;
6614 int fd, fd2;
6616 pagesize = getpagesize ();
6618 /* First, make a file with some known garbage in it. */
6619 data = (char *) malloc (pagesize);
6620 if (!data)
6621 return 1;
6622 for (i = 0; i < pagesize; ++i)
6623 *(data + i) = rand ();
6624 umask (0);
6625 fd = creat ("conftest.mmap", 0600);
6626 if (fd < 0)
6627 return 2;
6628 if (write (fd, data, pagesize) != pagesize)
6629 return 3;
6630 close (fd);
6632 /* Next, check that the tail of a page is zero-filled. File must have
6633 non-zero length, otherwise we risk SIGBUS for entire page. */
6634 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6635 if (fd2 < 0)
6636 return 4;
6637 cdata2 = "";
6638 if (write (fd2, cdata2, 1) != 1)
6639 return 5;
6640 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6641 if (data2 == MAP_FAILED)
6642 return 6;
6643 for (i = 0; i < pagesize; ++i)
6644 if (*(data2 + i))
6645 return 7;
6646 close (fd2);
6647 if (munmap (data2, pagesize))
6648 return 8;
6650 /* Next, try to mmap the file at a fixed address which already has
6651 something else allocated at it. If we can, also make sure that
6652 we see the same garbage. */
6653 fd = open ("conftest.mmap", O_RDWR);
6654 if (fd < 0)
6655 return 9;
6656 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6657 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6658 return 10;
6659 for (i = 0; i < pagesize; ++i)
6660 if (*(data + i) != *(data2 + i))
6661 return 11;
6663 /* Finally, make sure that changes to the mapped area do not
6664 percolate back to the file as seen by read(). (This is a bug on
6665 some variants of i386 svr4.0.) */
6666 for (i = 0; i < pagesize; ++i)
6667 *(data2 + i) = *(data2 + i) + 1;
6668 data3 = (char *) malloc (pagesize);
6669 if (!data3)
6670 return 12;
6671 if (read (fd, data3, pagesize) != pagesize)
6672 return 13;
6673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data3 + i))
6675 return 14;
6676 close (fd);
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_run "$LINENO"; then :
6681 ac_cv_func_mmap_fixed_mapped=yes
6682 else
6683 ac_cv_func_mmap_fixed_mapped=no
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6686 conftest.$ac_objext conftest.beam conftest.$ac_ext
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6691 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6692 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6694 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6697 rm -f conftest.mmap conftest.txt
6702 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6703 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6704 aros_config_ldflags=""
6706 aros_shared_default=yes
6708 aros_shared_cflags="-fPIC"
6709 aros_shared_aflags=""
6710 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6711 aros_kernel_ldflags="-Wl,-rpath,./lib"
6713 aros_kernel_ar_flags="cr"
6714 aros_target_ar_flags="cr"
6715 aros_target_nm_flags="-C -ul"
6716 aros_target_strip_flags="--strip-unneeded -R.comment"
6718 aros_compiler_libs=
6719 aros_arch_libs=
6721 aros_target_genmap="-Wl,-Map -Xlinker"
6723 # Native flavour stuff
6724 aros_serial_debug="0"
6726 # Palm native flavour stuff
6727 aros_palm_debug_hack="0"
6729 # Unix flavour stuff
6730 aros_nesting_supervisor="0"
6732 # Collect-aros stuff: "-ius" to ignore undefined symbols
6733 ignore_undefined_symbols=""
6735 # Check for X11 by default
6736 need_x11="auto"
6738 #-----------------------------------------------------------------------------
6741 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6742 # it switched on by default, and we use the host compiler, so it compiles AROS
6743 # code with this enabled resulting in link failures as we don't have support
6744 # for it.
6746 # We use two methods to disable it. For the host compiler (used to compile
6747 # some hosted modules), we test to see if the compiler supports stack
6748 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6749 # work on all platforms.
6751 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6752 # (this is done unconditionally, as it should have no effect on compilers
6753 # without the stack protection feature). This may be specific to the way that
6754 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6755 # strong enough to disable it in a generic way though, so we'll live with it
6756 # until another vendor ships GCC with it enabled in a different way, and deal
6757 # with it then.
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6761 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6762 save_cflags="$CFLAGS"
6763 CFLAGS="$CFLAGS -fno-stack-protector"
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6768 main ()
6772 return 0;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 use_no_stack_protector="yes"
6777 else
6778 use_no_stack_protector="no"
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6782 $as_echo "$use_no_stack_protector" >&6; }
6783 if test "x-$use_no_stack_protector" = "x-yes" ; then
6784 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6786 CFLAGS="$save_cflags"
6788 #-----------------------------------------------------------------------------
6790 # Disable pointer-signedness warnings if the compiler recognises the option
6791 # (this only works for the host compiler at the moment)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6794 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6795 save_cflags="$CFLAGS"
6796 CFLAGS="$CFLAGS -Wno-pointer-sign"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6801 main ()
6805 return 0;
6807 _ACEOF
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 use_no_sign_warning="yes"
6810 else
6811 use_no_sign_warning="no"
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6815 $as_echo "$use_no_sign_warning" >&6; }
6816 if test "x-$use_no_sign_warning" = "x-yes" ; then
6817 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6819 CFLAGS="$save_cflags"
6821 #-----------------------------------------------------------------------------
6823 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6826 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6827 save_cflags="$CFLAGS"
6828 CFLAGS="$CFLAGS -fgnu89-inline"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 main ()
6837 return 0;
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 use_gnu89_inline="yes"
6842 else
6843 use_gnu89_inline="no"
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6847 $as_echo "$use_gnu89_inline" >&6; }
6848 if test "x-$use_gnu89_inline" = "x-yes" ; then
6849 gnu89_inline="-fgnu89-inline"
6851 CFLAGS="$save_cflags"
6853 #-----------------------------------------------------------------------------
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6856 $as_echo_n "checking for type of build... " >&6; }
6857 # Check whether --enable-build_type was given.
6858 if test "${enable_build_type+set}" = set; then :
6859 enableval=$enable_build_type; build_type=$enableval
6860 else
6861 build_type="personal"
6865 if test "$build_type" = "nightly"; then
6866 build_type_string="NIGHTLY"
6867 elif test "$build_type" = "snapshot"; then
6868 build_type_string="SNAPSHOT"
6869 elif test "$build_type" = "milestone"; then
6870 build_type_string="MILESTONE"
6871 elif test "$build_type" = "release"; then
6872 build_type_string="RELEASE"
6873 else
6874 build_type_string="PERSONAL"
6875 build_type="personal"
6878 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6881 $as_echo "$build_type" >&6; }
6883 #-----------------------------------------------------------------------------
6884 all_debug_types="messages stack modules mungwall symbols"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6887 $as_echo_n "checking which debug types to enable... " >&6; }
6888 # Check whether --enable-debug was given.
6889 if test "${enable_debug+set}" = set; then :
6890 enableval=$enable_debug; debug="$enableval"
6891 else
6892 debug=""
6896 if test "$debug" = "" -o "$debug" = "no"; then
6897 debug="none"
6898 elif test "$debug" = "yes"; then
6899 debug="all"
6902 if test "$debug" = "all" ; then
6903 debug="messages stack modules symbols"
6904 for d in $all_debug_types; do
6905 export aros_${d}_debug="1"
6906 done
6907 else
6908 for d in $all_debug_types; do
6909 export aros_${d}_debug="0"
6910 done
6913 if test "$debug" != "none"; then
6914 debug=`echo $debug | sed s/,/\ /g`
6915 for d in $debug; do
6916 found="0"
6917 for d2 in $all_debug_types; do
6918 if test "$d2" = "$d"; then
6919 found="1"
6920 break
6922 done
6923 if test "$found" = "0"; then
6924 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6926 export aros_${d}_debug="1"
6927 done
6928 aros_debug="yes"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6931 $as_echo "$debug" >&6; }
6933 if test "$aros_messages_debug" = "1"; then
6934 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6935 else
6936 aros_messages_debug=""
6938 if test "$aros_symbols_debug" = "1"; then
6939 aros_symbols_debug="-g"
6940 else
6941 aros_symbols_debug=""
6944 # These are the flags to pass when compiling debugged programs
6945 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6946 aros_debug_aflags=""
6947 aros_debug_ldflags="$aros_symbols_debug"
6949 #-----------------------------------------------------------------------------
6950 # Checking if we should build crosstools..
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6952 $as_echo_n "checking whether to build crosstools... " >&6; }
6953 # Check whether --enable-crosstools was given.
6954 if test "${enable_crosstools+set}" = set; then :
6955 enableval=$enable_crosstools; crosstools="$enableval"
6956 else
6957 crosstools="yes"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6961 $as_echo "$crosstools" >&6; }
6963 #-----------------------------------------------------------------------------
6964 # Checking for distcc and ccache.
6966 # Always apply the transforms in this particular order. Basically you should
6967 # always run 'ccache distcc compiler' in that order for the best performance.
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6970 $as_echo_n "checking whether to enable distcc... " >&6; }
6971 # Check whether --enable-distcc was given.
6972 if test "${enable_distcc+set}" = set; then :
6973 enableval=$enable_distcc; distcc="$enableval"
6974 else
6975 distcc="no"
6978 if test "$distcc" != "" -a "$distcc" != "no"; then
6979 # AC_CHECK_PROG will print out the result in this case
6980 # Extract the first word of "distcc", so it can be a program name with args.
6981 set dummy distcc; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_path_DISTCC+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 case $DISTCC in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7007 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7009 esac
7011 DISTCC=$ac_cv_path_DISTCC
7012 if test -n "$DISTCC"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7014 $as_echo "$DISTCC" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7027 $as_echo_n "checking whether to enable ccache... " >&6; }
7028 # Check whether --enable-ccache was given.
7029 if test "${enable_ccache+set}" = set; then :
7030 enableval=$enable_ccache; ccache="$enableval"
7031 else
7032 ccache="no"
7035 if test "$ccache" != "" -a "$ccache" != "no"; then
7036 # AC_CHECK_PROG will print out the result in this case
7037 # Extract the first word of "ccache", so it can be a program name with args.
7038 set dummy ccache; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_CCACHE+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$CCACHE"; then
7045 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_CCACHE="ccache"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7058 done
7059 done
7060 IFS=$as_save_IFS
7064 CCACHE=$ac_cv_prog_CCACHE
7065 if test -n "$CCACHE"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7067 $as_echo "$CCACHE" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7079 #-----------------------------------------------------------------------------
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7081 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7083 # Check whether --with-gcc-version was given.
7084 if test "${with_gcc_version+set}" = set; then :
7085 withval=$with_gcc_version; kernel_tool_version="$withval"
7086 else
7087 kernel_tool_version="default"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7091 $as_echo "$kernel_tool_version" >&6; }
7093 #-----------------------------------------------------------------------------
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7095 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7097 # Check whether --with-gcc-version was given.
7098 if test "${with_gcc_version+set}" = set; then :
7099 withval=$with_gcc_version; target_tool_version="$withval"
7100 else
7101 target_tool_version="default"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7105 $as_echo "$target_tool_version" >&6; }
7107 #-----------------------------------------------------------------------------
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7109 $as_echo_n "checking what optimization flags to use... " >&6; }
7111 # Check whether --with-optimization was given.
7112 if test "${with_optimization+set}" = set; then :
7113 withval=$with_optimization; optimization="$withval"
7114 else
7115 optimization="unknown"
7118 if test "$optimization" = "unknown"; then
7119 if test "$debug" != "none"; then
7120 optimization="-O0"
7121 else
7122 optimization="-O2"
7125 aros_config_cflags="$aros_config_cflags $optimization"
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7127 $as_echo "$optimization" >&6; }
7129 #-----------------------------------------------------------------------------
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7131 $as_echo_n "checking what paranoia flags to use... " >&6; }
7133 # Check whether --with-paranoia was given.
7134 if test "${with_paranoia+set}" = set; then :
7135 withval=$with_paranoia; paranoia_flags="$withval"
7136 else
7137 paranoia_flags="default"
7140 if test "$paranoia_flags" = "default"; then
7141 paranoia_flags=""
7142 else if test "$paranoia_flags" = "yes"; then
7143 paranoia_flags="-Wall -Werror"
7144 fi fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7146 $as_echo "$paranoia_flags" >&6; }
7147 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7149 #-----------------------------------------------------------------------------
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7151 $as_echo_n "checking what target variant to enable... " >&6; }
7152 # Check whether --enable-target_variant was given.
7153 if test "${enable_target_variant+set}" = set; then :
7154 enableval=$enable_target_variant; target_variant=$enableval
7155 else
7156 target_variant=""
7159 if test "$target_variant" = ""; then
7160 aros_target_variant=""
7161 aros_target_suffix=""
7162 enableval="none"
7163 else
7164 aros_target_variant="$target_variant"
7165 aros_target_suffix="-$target_variant"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7168 $as_echo "$enableval" >&6; }
7170 #-----------------------------------------------------------------------------
7171 # Target-specific defaults. You can override then on a per-target basis.
7173 # Bootloader name. Currently used by PC target.
7174 target_bootloader="none"
7176 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7177 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7178 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7179 if test "$crosstools" != "yes"; then
7180 target_tool_prefix=${target_cpu}-elf-
7181 else
7182 target_tool_prefix=${target_cpu}-aros-
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Target tool prefix" >&5
7185 $as_echo_n "checking Target tool prefix... " >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
7187 $as_echo "$target_tool_prefix" >&6; }
7189 #-----------------------------------------------------------------------------
7190 # Additional options for some specific targets
7192 case "$aros_target_variant" in
7193 ios)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7195 $as_echo_n "checking XCode path... " >&6; }
7197 # Check whether --with-xcode was given.
7198 if test "${with_xcode+set}" = set; then :
7199 withval=$with_xcode; aros_xcode_path="$withval"
7200 else
7201 aros_xcode_path="/Developer"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7205 $as_echo "$aros_xcode_path" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7208 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7210 # Check whether --with-sdk-version was given.
7211 if test "${with_sdk_version+set}" = set; then :
7212 withval=$with_sdk_version; aros_sdk_version="$withval"
7213 else
7214 aros_sdk_version="4.1"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7218 $as_echo "$aros_sdk_version" >&6; }
7222 "android")
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7224 $as_echo_n "checking Android SDK path... " >&6; }
7226 # Check whether --with-sdk was given.
7227 if test "${with_sdk+set}" = set; then :
7228 withval=$with_sdk; aros_android_sdk="$withval"
7229 else
7230 aros_android_sdk=$default_android_sdk
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7234 $as_echo "$aros_android_sdk" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7237 $as_echo_n "checking Android NDK path... " >&6; }
7239 # Check whether --with-ndk was given.
7240 if test "${with_ndk+set}" = set; then :
7241 withval=$with_ndk; aros_android_ndk="$withval"
7242 else
7243 aros_android_ndk="none"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7247 $as_echo "$aros_android_ndk" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7250 $as_echo_n "checking what Android SDK version to use... " >&6; }
7252 # Check whether --with-sdk-version was given.
7253 if test "${with_sdk_version+set}" = set; then :
7254 withval=$with_sdk_version; aros_sdk_version="$withval"
7255 else
7256 aros_sdk_version="12"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7260 $as_echo "$aros_sdk_version" >&6; }
7262 if test "$aros_android_ndk" != "none"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7264 $as_echo_n "checking what Android NDK version to use... " >&6; }
7266 # Check whether --with-ndk-version was given.
7267 if test "${with_ndk_version+set}" = set; then :
7268 withval=$with_ndk_version; aros_ndk_version="$withval"
7269 else
7270 aros_ndk_version="9"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7274 $as_echo "$aros_ndk_version" >&6; }
7277 export PATH="$aros_android_sdk/tools:$PATH"
7278 # Extract the first word of "$android_tool", so it can be a program name with args.
7279 set dummy $android_tool; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_path_android_tool+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 case $android_tool in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7306 esac
7308 android_tool=$ac_cv_path_android_tool
7309 if test -n "$android_tool"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7311 $as_echo "$android_tool" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7318 if test "$android_tool" = ""; then
7319 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7322 aros_android_level=android-$aros_sdk_version
7323 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7324 echo "Platform $aros_android_level is not installed in your SDK"
7325 echo "Use --with-sdk-version=<API level number> to select another platform version"
7326 echo "You can check what plaform versions are installed in your SDK"
7327 echo "by examining contents of $aros_android_sdk/platforms directory"
7328 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7331 # Extract the first word of "ant", so it can be a program name with args.
7332 set dummy ant; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_path_ant+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 case $ant in
7339 [\\/]* | ?:[\\/]*)
7340 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7354 done
7355 done
7356 IFS=$as_save_IFS
7359 esac
7361 ant=$ac_cv_path_ant
7362 if test -n "$ant"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7364 $as_echo "$ant" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 if test "$ant" = ""; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7373 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7376 if test "$host_os" = "mingw32"; then
7377 android_tool="cmd //c $android_tool"
7381 esac
7383 #-----------------------------------------------------------------------------
7385 # This is the target configuration switch.
7386 case "$target_os" in
7387 linux*)
7388 aros_target_arch="linux"
7389 aros_target_family="unix"
7390 case "$target_cpu" in
7391 *m68k*)
7392 aros_target_cpu="m68k"
7393 aros_object_format="m68kelf"
7394 aros_flavour="emulcompat"
7395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7396 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7397 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7398 gcc_target_cpu="mc68000"
7400 *i?86*)
7401 aros_target_cpu="i386"
7402 aros_object_format="elf_i386"
7403 aros_flavour="emulation"
7404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7405 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7406 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7407 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7408 aros_config_ldflags="-m32 -march=i486"
7409 aros_kernel_ldflags="-melf_i386"
7410 aros_default_wbdepth=8
7411 gcc_target_cpu="i386"
7412 pci_hidd_target="hidd-pci-linux"
7413 android_tool_dir_prefix="x86"
7414 android_tool_prefix="i686-android-linux"
7415 android_ndk_arch="x86"
7417 *x86_64*)
7418 aros_target_cpu="x86_64"
7419 aros_object_format="elf_x86_64"
7420 aros_flavour="emulation"
7421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7422 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7423 aros_default_wbdepth=8
7424 pci_hidd_target="hidd-pci-linux"
7426 *powerpc*)
7427 aros_target_cpu="ppc"
7428 aros_object_format="elf32ppc"
7429 aros_flavour="emulation"
7430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7431 aros_default_wbdepth=8
7432 gcc_target_cpu="ppc"
7434 # TODO
7435 # Same as powerpc, but I need this for the nightly build to work again.
7436 # Actually, the nightly should be made working with powerpc target.
7437 # That just was too much work for the moment, another week or two.
7438 *ppc*)
7439 aros_target_cpu="ppc"
7440 aros_object_format="elf32ppc"
7441 aros_flavour="emulation"
7442 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7443 aros_default_wbdepth=8
7444 gcc_target_cpu="ppc"
7446 *arm*)
7447 aros_target_cpu="arm"
7448 aros_object_format="armelf_linux_eabi"
7449 aros_flavour="emulation"
7450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7451 gcc_target_cpu="arm"
7452 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7453 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7454 aros_arch_libs="-laeabi"
7455 android_tool_dir_prefix="arm-linux-androideabi"
7456 android_tool_prefix="arm-linux-androideabi"
7457 android_ndk_arch="arm"
7460 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7462 esac
7463 case "$aros_target_variant" in
7464 android)
7466 if test "$android_ndk_arch" = ""; then
7467 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7470 aros_default_wbwidth=320
7471 aros_default_wbheight=480
7472 if test "$aros_android_ndk" = "none"; then
7473 aros_kernel_cflags="-mandroid"
7474 aros_kernel_ldflags="-mandroid"
7475 CFLAGS="-mandroid"
7476 else
7477 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7478 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7479 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7480 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7481 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7482 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7484 need_x11=no
7485 x11_hidd_target=kernel-hidd-androidgfx-kobj
7486 kernel_tool_prefix="$android_tool_prefix-"
7488 esac
7492 aros_target_arch="pc"
7493 aros_shared_default="no"
7494 target_bootloader="grub2"
7495 case "$target_cpu" in
7496 *i?86*)
7497 aros_target_cpu="i386"
7500 if test "$aros_object_format" = "" ; then
7501 aros_object_format="elf_i386"
7503 aros_flavour="standalone"
7504 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7505 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7506 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7507 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7508 aros_config_ldflags="-m32 -march=i486"
7509 aros_kernel_ldflags="-melf_i386"
7510 aros_default_wbwidth=640
7511 aros_default_wbheight=480
7512 gcc_target_cpu="i386"
7514 *x86_64*)
7515 aros_target_cpu="x86_64"
7516 aros_serial_debug=1
7517 if test "$aros_object_format" = "" ; then
7518 aros_object_format="elf_x86_64"
7520 aros_flavour="standalone"
7521 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7522 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7523 aros_kernel_ldflags=""
7524 aros_default_wbwidth=640
7525 aros_default_wbheight=480
7528 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7530 esac
7533 prep)
7534 aros_target_arch="prep"
7535 aros_shared_default="no"
7536 aros_target_cpu="ppc"
7537 aros_object_format="elf32ppc"
7538 aros_flavour="ppcnative"
7539 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7540 aros_kernel_ldflags=""
7541 aros_default_wbwidth=640
7542 aros_default_wbheight=480
7543 gcc_target_cpu="ppc"
7546 freebsd*)
7547 aros_target_arch="freebsd"
7548 aros_target_family="unix"
7549 aros_target_cpu="i386"
7550 aros_flavour="emulation"
7551 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7552 gcc_target_cpu="i386"
7554 aros_target_strip_flags="-x"
7557 darwin*)
7558 aros_target_arch="darwin"
7559 aros_target_family="unix"
7560 aros_flavour="emulation"
7561 case "$target_cpu" in
7562 *i?86*)
7563 aros_ios_platform="iPhoneSimulator"
7564 aros_target_cpu="i386"
7565 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7566 aros_kernel_ldflags=""
7567 aros_macosx_version="10.4"
7568 aros_default_wbdepth=8
7569 gcc_target_cpu="i386"
7570 aros_object_format="elf_i386"
7571 aros_kernel_ar_flags="-cr"
7572 aros_target_strip_flags="-x"
7573 kernel_tool_flags="-m32"
7575 *x86_64*)
7576 aros_target_cpu="x86_64"
7577 aros_object_format="elf_x86_64"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7579 aros_macosx_version="10.6"
7580 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7581 aros_kernel_cflags="-m64"
7582 aros_kernel_ldflags="-m64"
7583 aros_target_cflags="-mcmodel=large"
7584 aros_default_wbdepth=8
7585 aros_kernel_ar="ar"
7586 aros_kernel_ar_flags="-cr"
7587 aros_kernel_ld="ld"
7588 aros_kernel_ranlib="ranlib"
7590 *ppc*)
7591 aros_target_cpu="ppc"
7592 aros_object_format="elf32ppc"
7593 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7594 aros_kernel_ldflags=""
7595 aros_macosx_version="10.0"
7596 aros_default_wbdepth=8
7597 gcc_target_cpu="ppc"
7598 aros_kernel_ar="ar"
7599 aros_kernel_ar_flags="-cr"
7600 aros_kernel_ld="ld -arch ppc"
7601 aros_kernel_ranlib="ranlib -arch ppc"
7602 kernel_tool_prefix="powerpc-apple-darwin10-"
7604 *arm*)
7605 aros_ios_platform="iPhoneOS"
7606 aros_target_cpu="arm"
7607 aros_object_format="armelf_linux_eabi"
7608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7609 aros_arch_libs="-laeabi"
7610 aros_default_wbdepth=8
7611 gcc_target_cpu="arm"
7612 aros_kernel_ar="ar"
7613 aros_kernel_ar_flags="-cr"
7614 aros_kernel_ld="ld -arch arm"
7615 aros_kernel_ranlib="ranlib -arch arm"
7616 kernel_tool_prefix="arm-apple-darwin10-"
7617 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7620 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7622 esac
7623 case "$aros_target_variant" in
7624 ios)
7625 aros_ios_version="3.0"
7626 aros_default_wbwidth=320
7627 aros_default_wbheight=480
7628 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7629 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7630 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7631 need_x11=no
7632 # This is here because it may depend on iOS or SDK version
7633 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7634 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7635 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7638 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7639 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7641 esac
7644 dragonfly*)
7645 aros_target_arch="dragonfly"
7646 aros_target_family="unix"
7647 aros_flavour="emulation"
7648 case "$target_cpu" in
7649 *i?86*)
7650 aros_target_cpu="i386"
7651 aros_object_format="elf_i386"
7652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7654 *x86_64*)
7655 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7656 aros_target_cpu="x86_64"
7657 aros_object_format="elf_x86_64"
7658 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7661 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7663 esac
7666 netbsd*)
7667 aros_target_arch="netbsd"
7668 aros_target_family="unix"
7669 case "$target_cpu" in
7670 *m68k*)
7671 aros_target_cpu="m68k"
7672 aros_object_format="m68kelf"
7673 aros_flavour="emulcompat"
7674 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7675 gcc_target_cpu="mc68000"
7677 *i?86*)
7678 aros_target_cpu="i386"
7679 aros_object_format="elf_i386"
7680 aros_flavour="emulation"
7681 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7682 aros_default_wbdepth=8
7683 gcc_target_cpu="i386"
7686 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7688 esac
7689 aros_target_genmap="-Wl,-M -Xlinker >"
7690 aros_flavour="emulation"
7691 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7694 openbsd*)
7695 aros_target_arch="openbsd"
7696 aros_target_family="unix"
7697 case "$target_cpu" in
7698 *i?86*)
7699 aros_target_cpu="i386"
7700 aros_object_format="elf_i386"
7701 aros_flavour="emulation"
7702 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7703 gcc_target_cpu="i386"
7706 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7708 esac
7709 aros_target_genmap="-Wl,-M -Xlinker >"
7710 aros_target_nm_flags="-u"
7711 aros_flavour="emulation"
7714 solaris*)
7715 aros_target_arch="solaris"
7716 aros_target_family="unix"
7717 case "$target_cpu" in
7718 *i?86*)
7719 aros_target_cpu="i386"
7720 aros_object_format="elf_i386"
7721 aros_flavour="emulation"
7722 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7723 aros_default_wbdepth=8
7724 gcc_target_cpu="i386"
7726 *sparc*)
7727 aros_target_cpu="sparc"
7728 aros_object_format="elf_sparc"
7729 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7730 gcc_target_cpu="sparc"
7733 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7735 esac
7736 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7737 aros_flavour="emulation"
7740 morphos*)
7741 aros_target_arch="morphos"
7742 aros_shared_default="no"
7743 aros_target_cpu="ppc"
7744 aros_object_format="elf_ppc"
7745 aros_flavour="nativecompat"
7746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7747 gcc_target_cpu="ppc"
7750 sam440)
7751 aros_target_arch="sam440"
7752 aros_shared_default="no"
7753 aros_target_cpu="ppc"
7754 aros_object_format="elf32ppc"
7755 aros_flavour="ppcnative"
7756 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7757 aros_kernel_ldflags=""
7758 aros_default_wbwidth=1024
7759 aros_default_wbheight=768
7760 aros_default_wbdepth=24
7761 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7762 gcc_target_cpu="powerpc"
7765 efika)
7766 aros_target_arch="efika"
7767 aros_shared_default="no"
7768 aros_target_cpu="arm"
7769 aros_object_format="armelf_linux_eabi"
7770 aros_flavour="standalone"
7771 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7772 aros_kernel_ldflags=""
7773 aros_default_wbwidth=1024
7774 aros_default_wbheight=600
7775 aros_arch_libs="-laeabi"
7776 gcc_default_cpu="armv7-a"
7777 gcc_default_fpu="vfpv3"
7778 gcc_default_float_abi="softfp"
7779 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
7780 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
7783 chrp)
7784 aros_target_arch="chrp"
7785 aros_shared_default="no"
7786 aros_target_cpu="ppc"
7787 aros_object_format="elf32ppc"
7788 aros_flavour="ppcnative"
7789 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7790 aros_kernel_ldflags=""
7791 aros_default_wbwidth=640
7792 aros_default_wbheight=480
7793 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7794 gcc_target_cpu="powerpc"
7795 case "$aros_target_variant" in
7796 efika)
7797 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7799 esac
7802 amiga*)
7803 aros_target_arch="amiga"
7804 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7805 aros_shared_default="no"
7807 case "$target_cpu" in
7808 *m68k*)
7809 # Check whether --enable-amigaos_compliance was given.
7810 if test "${enable_amigaos_compliance+set}" = set; then :
7811 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7814 aros_enable_mmu=no
7815 aros_target_cpu="m68k"
7816 aros_object_format="m68kelf"
7817 aros_flavour="standcompat"
7818 gcc_target_cpu="m68000"
7819 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7820 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7821 # Needed to get the correct multilib
7822 aros_config_ldflags="-${gcc_target_cpu}"
7823 aros_shared_ldflags="-${gcc_target_cpu}"
7824 aros_kernel_ldflags="-${gcc_target_cpu}"
7825 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7826 aros_target_strip_flags="-R.comment --strip-debug"
7827 aros_default_wbwidth=640
7828 aros_default_wbheight=256
7829 aros_default_wbdepth=2
7831 *ppc*)
7832 aros_cpu="ppc"
7833 aros_flavour="native"
7834 gcc_target_cpu="ppc"
7837 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7839 esac
7842 mingw*)
7843 aros_target_arch="mingw32"
7844 aros_shared_default="no"
7845 aros_flavour="emulation"
7846 aros_shared_cflags=""
7847 need_dlopen="no"
7848 rescomp="windres"
7849 case "$target_cpu" in
7850 *i?86*)
7851 aros_target_cpu="i386"
7852 aros_object_format="elf_i386"
7853 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7854 aros_default_wbdepth=8
7855 gcc_target_cpu="i386"
7857 aros_target_cpp="i386-aros-cpp"
7858 aros_target_as="i386-aros-as"
7859 aros_target_ar="i386-aros-ar"
7860 aros_target_ranlib="i386-aros-ranlib"
7861 aros_target_nm="i386-aros-nm"
7862 aros_target_strip="i386-aros-strip"
7863 aros_target_objcopy="i386-aros-objcopy"
7864 aros_target_objdump="i386-aros-objdump"
7866 kernel_tool_prefix="i386-mingw32-"
7868 *x86_64*)
7869 aros_target_cpu="x86_64"
7870 aros_object_format="elf_x86_64"
7871 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7872 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7873 aros_default_wbdepth=8
7874 kernel_tool_prefix="x86_64-w64-mingw32-"
7876 *arm*)
7877 aros_target_cpu="arm"
7878 aros_object_format="armelf_linux_eabi"
7879 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7880 aros_arch_libs="-laeabi"
7881 aros_default_wbdepth=8
7882 gcc_target_cpu="arm"
7883 gcc_default_float_abi="soft"
7884 kernel_tool_prefix="arm-mingw32ce-"
7885 aros_default_wbwidth=160
7886 aros_default_wbheight=160
7889 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7891 esac
7892 if test $host_os = "cygwin"; then
7893 aros_kernel_cflags="-mno-cygwin"
7896 pp*)
7897 aros_target_arch="pp"
7898 aros_shared_default="no"
7899 case "$target_cpu" in
7900 *m68k*)
7901 aros_target_cpu="m68k"
7902 aros_object_format="m68kelf"
7903 aros_flavour="palmnative"
7904 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7905 aros_default_wbwidth=160
7906 aros_default_wbheight=160
7907 aros_default_wbdepth=1
7908 aros_target_ar_flags="cru"
7909 aros_compiler_libs="-lgcc1"
7910 aros_shared_default=no
7911 aros_shared_cflags="-fpic"
7912 aros_shared_aflags=""
7913 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7914 aros_kernel_ldflags="-Wl,-rpath,./lib"
7915 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7916 aros_debug_aflags=""
7917 aros_debug_ldflags="$aros_symbols_debug"
7918 aros_mungwall_debug="0"
7919 aros_modules_debug="0"
7920 gcc_target_cpu="mc68000"
7921 ignore_undefined_symbols="-ius"
7924 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7926 esac
7929 mac*)
7930 aros_target_arch="mac"
7931 aros_shared_default="no"
7932 case "$target_cpu" in
7933 *m68k*)
7934 aros_target_cpu="m68k"
7935 aros_object_format="m68kelf"
7936 aros_flavour="mac68knative"
7937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7938 aros_default_wbwidth=512
7939 aros_default_wbheight=384
7940 aros_default_wbdepth=8
7941 aros_target_ar_flags="cru"
7942 aros_compiler_libs="-lgcc1"
7943 aros_shared_default=no
7944 aros_shared_cflags="-fpic"
7945 aros_shared_aflags=""
7946 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7947 aros_kernel_ldflags="-Wl,-rpath,./lib"
7948 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7949 aros_debug_aflags=""
7950 aros_debug_ldflags="$aros_symbols_debug"
7951 aros_mungwall_debug="0"
7952 aros_modules_debug="0"
7953 gcc_target_cpu="mc68000"
7954 ignore_undefined_symbols="-ius"
7957 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7959 esac
7963 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7965 esac
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
7968 $as_echo_n "checking Kernel tool prefix... " >&6; }
7970 # Check whether --with-kernel-tool-prefix was given.
7971 if test "${with_kernel_tool_prefix+set}" = set; then :
7972 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
7976 $as_echo "$kernel_tool_prefix" >&6; }
7978 # Now process extra architecture-specific options.
7979 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7980 # as well as floating-point ABI.
7981 case "$aros_target_cpu" in
7982 arm)
7983 if test "$gcc_default_cpu" = ""; then
7984 gcc_default_cpu="armv6"
7986 if test "$gcc_default_fpu" = ""; then
7987 gcc_default_fpu="vfp"
7989 if test "$gcc_default_float_abi" = ""; then
7990 gcc_default_float_abi="softfp"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7994 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7996 # Check whether --with-cpu was given.
7997 if test "${with_cpu+set}" = set; then :
7998 withval=$with_cpu; aros_gcc_cpu="$withval"
7999 else
8000 aros_gcc_cpu=$gcc_default_cpu
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8004 $as_echo "$aros_gcc_cpu" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8007 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8009 # Check whether --with-fpu was given.
8010 if test "${with_fpu+set}" = set; then :
8011 withval=$with_fpu; aros_gcc_fpu="$withval"
8012 else
8013 aros_gcc_fpu=$gcc_default_fpu
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8017 $as_echo "$aros_gcc_fpu" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8020 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8022 # Check whether --with-float was given.
8023 if test "${with_float+set}" = set; then :
8024 withval=$with_float; aros_gcc_float_abi="$withval"
8025 else
8026 aros_gcc_float_abi=$gcc_default_float_abi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8030 $as_echo "$aros_gcc_float_abi" >&6; }
8032 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"
8033 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"
8035 esac
8037 # Some formats need custom ELF specs.
8038 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8039 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8040 elf_specs_in=config/${aros_object_format}-specs.in
8041 else
8042 elf_specs_in=config/elf-specs.in
8045 #-----------------------------------------------------------------------------
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8047 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8049 # Check whether --with-crosstools was given.
8050 if test "${with_crosstools+set}" = set; then :
8051 withval=$with_crosstools; with_crosstools=$withval
8052 else
8053 with_crosstools="default"
8056 if test "$with_crosstools" = "default"; then
8057 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8058 else
8059 AROS_CROSSTOOLSDIR="$with_crosstools"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8062 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8064 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8067 use_aros_gcc=yes
8068 PATH=$AROS_CROSSTOOLSDIR:$PATH
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8072 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8074 # Check whether --with-aros-gcc was given.
8075 if test "${with_aros_gcc+set}" = set; then :
8076 withval=$with_aros_gcc; aros_gcc_version="$withval"
8077 else
8078 aros_gcc_version="$use_aros_gcc"
8081 case "$aros_gcc_version" in
8082 yes)
8083 aros_gcc_version="default"
8086 aros_gcc_version="none"
8088 esac
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8090 $as_echo "$aros_gcc_version" >&6; }
8092 if test "$aros_gcc_version" != "none"; then
8095 if test "$aros_gcc_version" != "default"; then
8096 aros_target_cc="${target_tool_prefix}gcc-$aros_gcc_version"
8097 aros_target_cxx="${target_tool_prefix}g++-$aros_gcc_version"
8098 else
8099 aros_target_cc="${target_tool_prefix}gcc"
8100 aros_target_cxx="${target_tool_prefix}g++"
8103 aros_target_cpp="${target_tool_prefix}cpp"
8104 aros_target_ld="${target_tool_prefix}ld"
8105 aros_target_as="${target_tool_prefix}as"
8106 aros_target_ar="${target_tool_prefix}ar"
8107 aros_target_ranlib="${target_tool_prefix}ranlib"
8108 aros_target_nm="${target_tool_prefix}nm"
8109 aros_target_strip="${target_tool_prefix}strip"
8110 aros_target_objcopy="${target_tool_prefix}objcopy"
8111 aros_target_objdump="${target_tool_prefix}objdump"
8114 if test "$aros_gcc_version" != "default"; then
8115 aros_kernel_cc="${kernel_tool_prefix}gcc-$aros_gcc_version"
8116 aros_kernel_cxx="${kernel_tool_prefix}g++-$aros_gcc_version"
8117 else
8118 aros_kernel_cc="${kernel_tool_prefix}gcc"
8119 aros_kernel_cxx="${kernel_tool_prefix}g++"
8122 aros_kernel_cpp="${kernel_tool_prefix}cpp"
8123 aros_kernel_ld="${kernel_tool_prefix}ld"
8124 aros_kernel_as="${kernel_tool_prefix}as"
8125 aros_kernel_ar="${kernel_tool_prefix}ar"
8126 aros_kernel_ranlib="${kernel_tool_prefix}ranlib"
8127 aros_kernel_nm="${kernel_tool_prefix}nm"
8128 aros_kernel_strip="${kernel_tool_prefix}strip"
8129 aros_kernel_objcopy="${kernel_tool_prefix}objcopy"
8130 aros_kernel_objdump="${kernel_tool_prefix}objdump"
8133 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8134 # Since we override specs, we may need to put these defines there
8135 if test "$gcc_target_cpu" != ""; then
8136 gcc_target_cpu="-D__${gcc_target_cpu}__"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8140 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8142 # Check whether --with-portssources was given.
8143 if test "${with_portssources+set}" = set; then :
8144 withval=$with_portssources; with_portssrcdir=$withval
8145 else
8146 with_portssrcdir="default"
8149 if test "$with_portssrcdir" = "default"; then
8150 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8151 else
8152 AROS_PORTSSRCDIR="$with_portssrcdir"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8155 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8158 $as_echo_n "checking which bootloader to use... " >&6; }
8160 # Check whether --with-bootloader was given.
8161 if test "${with_bootloader+set}" = set; then :
8162 withval=$with_bootloader; target_bootloader=$withval
8163 else
8164 target_bootloader=$target_bootloader
8167 if test "$target_bootloader" = "none"; then
8168 aros_target_bootloader=""
8169 else
8170 aros_target_bootloader="$target_bootloader"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8173 $as_echo "$target_bootloader" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8176 $as_echo_n "checking which icon-set to use... " >&6; }
8178 # Check whether --with-iconset was given.
8179 if test "${with_iconset+set}" = set; then :
8180 withval=$with_iconset; target_iconset=$withval
8181 else
8182 target_iconset="default"
8185 if test "$target_iconset" = "default"; then
8186 aros_target_iconset="Gorilla"
8187 target_iconset="default (Gorilla)"
8188 else
8189 aros_target_iconset="$target_iconset"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8192 $as_echo "$target_iconset" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8195 $as_echo_n "checking which GUI Theme to use... " >&6; }
8197 # Check whether --with-theme was given.
8198 if test "${with_theme+set}" = set; then :
8199 withval=$with_theme; target_guitheme=$withval
8200 else
8201 target_guitheme="default"
8204 if test "$target_guitheme" = "default"; then
8205 aros_target_guitheme="Ice"
8206 else
8207 aros_target_guitheme="$target_guitheme"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8210 $as_echo "$aros_target_guitheme" >&6; }
8212 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8213 # for target code)
8214 cross_compiling=no
8215 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8216 cross_compiling=yes
8219 if test "$aros_host_cpu" == "x86_64" ; then
8220 if test "$aros_target_cpu" == "i386" ; then
8221 if test "$aros_target_arch" != "mingw32"; then
8222 cross_compiling=no
8227 if test "$aros_host_arch" == "darwin" ; then
8228 if test "$aros_target_arch" != "darwin" ; then
8229 cross_compiling=yes
8230 else
8231 cross_compiling=no
8235 if test "$aros_host_arch" == "mingw32" ; then
8236 if test "$aros_target_arch" != "mingw32" ; then
8237 cross_compiling=yes
8241 # I want to have this information in configure output, although it might be
8242 # misleading, e.g. for darwin hosted you cannot compile target code without a
8243 # cross compiler, but here it says no.
8245 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8246 # Target code is a little bit different thing.
8247 # sonic
8248 echo "checking whether we are (AROS style) cross compiling... $cross_compiling"
8250 # Set prefix for target compiler etc. if we're cross-compiling
8251 # (should possibly be earlier but needs to be after AC_PROG_CC)
8252 if test "$cross_compiling" = "yes" ; then
8254 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8255 if test "$aros_gcc_version" != "none"; then
8258 target_tool_prefix=${target_cpu}-aros-
8259 target_tool_version=$aros_gcc_version
8260 use_kernel_cc_wrapper=yes
8262 if test "$crosstools" != yes; then
8263 aros_target_cc=
8264 aros_target_ld=
8265 aros_target_cpp=
8266 aros_target_as=
8267 aros_target_ar=
8268 aros_target_ranlib=
8269 aros_target_nm=
8270 aros_target_strip=
8271 aros_target_objcopy=
8272 aros_target_objdump=
8277 aros_kernel_cc=${kernel_tool_prefix}gcc
8278 aros_kernel_cpp=${kernel_tool_prefix}cpp
8279 if test "$kernel_tool_version" != "default"; then
8280 aros_kernel_cc="${aros_kernel_cc}-$kernel_tool_version"
8281 aros_kernel_cpp="${aros_kernel_cpp}-$kernel_tool_version"
8285 if test "$aros_kernel_cpp" = ""; then
8286 if test "$cross_compiling" = "yes" ; then
8287 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8288 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 case $aros_kernel_cpp in
8295 [\\/]* | ?:[\\/]*)
8296 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8315 esac
8317 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8318 if test -n "$aros_kernel_cpp"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8320 $as_echo "$aros_kernel_cpp" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8327 else
8328 if test "$GCC" = "yes"; then
8329 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8330 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8331 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 case $aros_kernel_cpp in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in `dirname $aros_gcc_cpp`
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8353 done
8354 done
8355 IFS=$as_save_IFS
8358 esac
8360 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8361 if test -n "$aros_kernel_cpp"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8363 $as_echo "$aros_kernel_cpp" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test "$aros_kernel_cpp" = ""; then
8372 # Extract the first word of "cpp", so it can be a program name with args.
8373 set dummy cpp; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 case $aros_kernel_cpp in
8380 [\\/]* | ?:[\\/]*)
8381 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8391 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8395 done
8396 done
8397 IFS=$as_save_IFS
8400 esac
8402 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8403 if test -n "$aros_kernel_cpp"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8405 $as_echo "$aros_kernel_cpp" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8414 else
8415 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8416 set dummy $aros_kernel_cpp; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 case $aros_kernel_cpp in
8423 [\\/]* | ?:[\\/]*)
8424 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8438 done
8439 done
8440 IFS=$as_save_IFS
8443 esac
8445 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8446 if test -n "$aros_kernel_cpp"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8448 $as_echo "$aros_kernel_cpp" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8457 if test "$aros_kernel_cpp" = ""; then
8458 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8461 if test "$aros_kernel_cc" = ""; then
8462 if test "$cross_compiling" = "yes" ; then
8463 # Extract the first word of "${kernel_tool_prefix}gcc", so it can be a program name with args.
8464 set dummy ${kernel_tool_prefix}gcc; ac_word=$2
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 $as_echo_n "checking for $ac_word... " >&6; }
8467 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 case $aros_kernel_cc in
8471 [\\/]* | ?:[\\/]*)
8472 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8486 done
8487 done
8488 IFS=$as_save_IFS
8491 esac
8493 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8494 if test -n "$aros_kernel_cc"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8496 $as_echo "$aros_kernel_cc" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8503 else
8504 if test "$GCC" = "yes"; then
8505 aros_gcc_gcc=`$CC -print-prog-name=gcc`
8506 # Extract the first word of "`basename $aros_gcc_[gcc]`", so it can be a program name with args.
8507 set dummy `basename $aros_gcc_gcc`; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 case $aros_kernel_cc in
8514 [\\/]* | ?:[\\/]*)
8515 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in `dirname $aros_gcc_gcc`
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8529 done
8530 done
8531 IFS=$as_save_IFS
8534 esac
8536 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8537 if test -n "$aros_kernel_cc"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8539 $as_echo "$aros_kernel_cc" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8547 if test "$aros_kernel_cc" = ""; then
8548 # Extract the first word of "gcc", so it can be a program name with args.
8549 set dummy gcc; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 case $aros_kernel_cc in
8556 [\\/]* | ?:[\\/]*)
8557 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8571 done
8572 done
8573 IFS=$as_save_IFS
8576 esac
8578 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8579 if test -n "$aros_kernel_cc"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8581 $as_echo "$aros_kernel_cc" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8590 else
8591 # Extract the first word of "$aros_kernel_cc", so it can be a program name with args.
8592 set dummy $aros_kernel_cc; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 case $aros_kernel_cc in
8599 [\\/]* | ?:[\\/]*)
8600 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8614 done
8615 done
8616 IFS=$as_save_IFS
8619 esac
8621 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8622 if test -n "$aros_kernel_cc"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8624 $as_echo "$aros_kernel_cc" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8633 if test "$aros_kernel_cc" = ""; then
8634 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8636 CC="$aros_kernel_cc $kernel_tool_flags"
8637 CPP="$aros_kernel_cpp"
8639 #-----------------------------------------------------------------------------
8641 # Disable pointer-signedness warnings if the compiler recognises the option
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8644 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8645 save_cflags="$CFLAGS"
8646 if test "$crosstools" != "yes" ; then
8647 CFLAGS="$CFLAGS -Wno-pointer-sign"
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8652 main ()
8656 return 0;
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 use_no_sign_warning="yes"
8661 else
8662 use_no_sign_warning="no"
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 else
8666 # we do know it is supported for the smallest version of gcc we are going to build
8667 # we assume it's also supported by later versions
8668 use_no_sign_warning=yes
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8671 $as_echo "$use_no_sign_warning" >&6; }
8672 if test "x-$use_no_sign_warning" = "x-yes" ; then
8673 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8675 CFLAGS="$save_cflags"
8677 #-----------------------------------------------------------------------------
8679 # Find all the tools we need to compile. This could be cross-compiling
8680 # though! If that is the case we use the GNU form of the target and
8681 # simply add this to the front of the binary name. This is rather simple,
8682 # but it should work under most circumstances.
8684 # The default tools are to use the same as the host, but only if the
8685 # host and target CPU are the same. With GCC this is normally enough.
8688 aros_cc_pre=""
8689 aros_shared_ld="$aros_host_ld"
8691 aros_target_mkdep="$aros_host_mkdep"
8693 # The default tools executables to be linked to.
8694 if test "$rescomp" != ""; then
8696 if test "" = ""; then
8697 if test "$cross_compiling" = "yes" ; then
8698 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
8699 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 case $aros_kernel_rescomp in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8717 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8721 done
8722 done
8723 IFS=$as_save_IFS
8726 esac
8728 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8729 if test -n "$aros_kernel_rescomp"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8731 $as_echo "$aros_kernel_rescomp" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 else
8739 if test "$GCC" = "yes"; then
8740 aros_gcc_$rescomp=`$CC -print-prog-name=$rescomp`
8741 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
8742 set dummy `basename $aros_gcc_$rescomp`; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $aros_kernel_rescomp in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in `dirname $aros_gcc_$rescomp`
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8764 done
8765 done
8766 IFS=$as_save_IFS
8769 esac
8771 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8772 if test -n "$aros_kernel_rescomp"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8774 $as_echo "$aros_kernel_rescomp" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8782 if test "$aros_kernel_rescomp" = ""; then
8783 # Extract the first word of "$rescomp", so it can be a program name with args.
8784 set dummy $rescomp; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 case $aros_kernel_rescomp in
8791 [\\/]* | ?:[\\/]*)
8792 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8806 done
8807 done
8808 IFS=$as_save_IFS
8811 esac
8813 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8814 if test -n "$aros_kernel_rescomp"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8816 $as_echo "$aros_kernel_rescomp" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8825 else
8826 # Extract the first word of "", so it can be a program name with args.
8827 set dummy ; 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_rescomp+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $aros_kernel_rescomp in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # 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_rescomp="$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_rescomp=$ac_cv_path_aros_kernel_rescomp
8857 if test -n "$aros_kernel_rescomp"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8859 $as_echo "$aros_kernel_rescomp" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8868 if test "$aros_kernel_rescomp" = ""; then
8869 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8873 if test "$crosstools" != "yes"; then
8875 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8876 target_tool_prefix=${target_cpu}-elf-
8877 if test "$aros_target_cc" == ""; then
8878 aros_target_cc="${target_tool_prefix}gcc"
8880 if test "$aros_target_ld" == ""; then
8881 aros_target_ld="${target_tool_prefix}ld"
8883 if test "$aros_target_cpp" == ""; then
8884 aros_target_cpp="${target_tool_prefix}cpp"
8888 if test "$aros_target_as" = ""; then
8889 if test "$cross_compiling" = "yes" ; then
8890 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8891 set dummy ${target_tool_prefix}as; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 case $aros_target_as_ln in
8898 [\\/]* | ?:[\\/]*)
8899 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8918 esac
8920 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8921 if test -n "$aros_target_as_ln"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8923 $as_echo "$aros_target_as_ln" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 else
8931 if test "$GCC" = "yes"; then
8932 aros_gcc_as=`$CC -print-prog-name=as`
8933 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8934 set dummy `basename $aros_gcc_as`; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 case $aros_target_as_ln in
8941 [\\/]* | ?:[\\/]*)
8942 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in `dirname $aros_gcc_as`
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8956 done
8957 done
8958 IFS=$as_save_IFS
8961 esac
8963 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8964 if test -n "$aros_target_as_ln"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8966 $as_echo "$aros_target_as_ln" >&6; }
8967 else
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8974 if test "$aros_target_as_ln" = ""; then
8975 # Extract the first word of "as", so it can be a program name with args.
8976 set dummy as; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 case $aros_target_as_ln in
8983 [\\/]* | ?:[\\/]*)
8984 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in $PATH
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8998 done
8999 done
9000 IFS=$as_save_IFS
9003 esac
9005 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9006 if test -n "$aros_target_as_ln"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9008 $as_echo "$aros_target_as_ln" >&6; }
9009 else
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9017 else
9018 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9019 set dummy $aros_target_as; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 case $aros_target_as_ln in
9026 [\\/]* | ?:[\\/]*)
9027 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9041 done
9042 done
9043 IFS=$as_save_IFS
9046 esac
9048 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9049 if test -n "$aros_target_as_ln"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9051 $as_echo "$aros_target_as_ln" >&6; }
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9060 if test "$aros_target_as_ln" = ""; then
9061 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9064 if test "$aros_target_ar" = ""; then
9065 if test "$cross_compiling" = "yes" ; then
9066 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9067 set dummy ${target_tool_prefix}ar; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 case $aros_target_ar_ln in
9074 [\\/]* | ?:[\\/]*)
9075 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9094 esac
9096 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9097 if test -n "$aros_target_ar_ln"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9099 $as_echo "$aros_target_ar_ln" >&6; }
9100 else
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9106 else
9107 if test "$GCC" = "yes"; then
9108 aros_gcc_ar=`$CC -print-prog-name=ar`
9109 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9110 set dummy `basename $aros_gcc_ar`; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 case $aros_target_ar_ln in
9117 [\\/]* | ?:[\\/]*)
9118 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in `dirname $aros_gcc_ar`
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9137 esac
9139 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9140 if test -n "$aros_target_ar_ln"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9142 $as_echo "$aros_target_ar_ln" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test "$aros_target_ar_ln" = ""; then
9151 # Extract the first word of "ar", so it can be a program name with args.
9152 set dummy ar; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 case $aros_target_ar_ln in
9159 [\\/]* | ?:[\\/]*)
9160 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9174 done
9175 done
9176 IFS=$as_save_IFS
9179 esac
9181 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9182 if test -n "$aros_target_ar_ln"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9184 $as_echo "$aros_target_ar_ln" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9193 else
9194 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9195 set dummy $aros_target_ar; ac_word=$2
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197 $as_echo_n "checking for $ac_word... " >&6; }
9198 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 case $aros_target_ar_ln in
9202 [\\/]* | ?:[\\/]*)
9203 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9217 done
9218 done
9219 IFS=$as_save_IFS
9222 esac
9224 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9225 if test -n "$aros_target_ar_ln"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9227 $as_echo "$aros_target_ar_ln" >&6; }
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9236 if test "$aros_target_ar_ln" = ""; then
9237 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9240 if test "$aros_target_nm" = ""; then
9241 if test "$cross_compiling" = "yes" ; then
9242 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9243 set dummy ${target_tool_prefix}nm; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 case $aros_target_nm_ln in
9250 [\\/]* | ?:[\\/]*)
9251 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9265 done
9266 done
9267 IFS=$as_save_IFS
9270 esac
9272 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9273 if test -n "$aros_target_nm_ln"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9275 $as_echo "$aros_target_nm_ln" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9282 else
9283 if test "$GCC" = "yes"; then
9284 aros_gcc_nm=`$CC -print-prog-name=nm`
9285 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9286 set dummy `basename $aros_gcc_nm`; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 case $aros_target_nm_ln in
9293 [\\/]* | ?:[\\/]*)
9294 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in `dirname $aros_gcc_nm`
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9313 esac
9315 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9316 if test -n "$aros_target_nm_ln"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9318 $as_echo "$aros_target_nm_ln" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9326 if test "$aros_target_nm_ln" = ""; then
9327 # Extract the first word of "nm", so it can be a program name with args.
9328 set dummy nm; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 case $aros_target_nm_ln in
9335 [\\/]* | ?:[\\/]*)
9336 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9355 esac
9357 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9358 if test -n "$aros_target_nm_ln"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9360 $as_echo "$aros_target_nm_ln" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9369 else
9370 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9371 set dummy $aros_target_nm; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 case $aros_target_nm_ln in
9378 [\\/]* | ?:[\\/]*)
9379 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9393 done
9394 done
9395 IFS=$as_save_IFS
9398 esac
9400 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9401 if test -n "$aros_target_nm_ln"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9403 $as_echo "$aros_target_nm_ln" >&6; }
9404 else
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9412 if test "$aros_target_nm_ln" = ""; then
9413 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9416 if test "$aros_target_objcopy" = ""; then
9417 if test "$cross_compiling" = "yes" ; then
9418 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9419 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 case $aros_target_objcopy_ln in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9446 esac
9448 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9449 if test -n "$aros_target_objcopy_ln"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9451 $as_echo "$aros_target_objcopy_ln" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9458 else
9459 if test "$GCC" = "yes"; then
9460 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9461 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9462 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 case $aros_target_objcopy_ln in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in `dirname $aros_gcc_objcopy`
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9486 IFS=$as_save_IFS
9489 esac
9491 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9492 if test -n "$aros_target_objcopy_ln"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9494 $as_echo "$aros_target_objcopy_ln" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9502 if test "$aros_target_objcopy_ln" = ""; then
9503 # Extract the first word of "objcopy", so it can be a program name with args.
9504 set dummy objcopy; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 case $aros_target_objcopy_ln in
9511 [\\/]* | ?:[\\/]*)
9512 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in $PATH
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9522 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9526 done
9527 done
9528 IFS=$as_save_IFS
9531 esac
9533 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9534 if test -n "$aros_target_objcopy_ln"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9536 $as_echo "$aros_target_objcopy_ln" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9545 else
9546 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9547 set dummy $aros_target_objcopy; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 case $aros_target_objcopy_ln in
9554 [\\/]* | ?:[\\/]*)
9555 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9569 done
9570 done
9571 IFS=$as_save_IFS
9574 esac
9576 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9577 if test -n "$aros_target_objcopy_ln"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9579 $as_echo "$aros_target_objcopy_ln" >&6; }
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9588 if test "$aros_target_objcopy_ln" = ""; then
9589 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9592 if test "$aros_target_objdump" = ""; then
9593 if test "$cross_compiling" = "yes" ; then
9594 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9595 set dummy ${target_tool_prefix}objdump; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 case $aros_target_objdump_ln in
9602 [\\/]* | ?:[\\/]*)
9603 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9617 done
9618 done
9619 IFS=$as_save_IFS
9622 esac
9624 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9625 if test -n "$aros_target_objdump_ln"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9627 $as_echo "$aros_target_objdump_ln" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9634 else
9635 if test "$GCC" = "yes"; then
9636 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9637 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9638 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 case $aros_target_objdump_ln in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in `dirname $aros_gcc_objdump`
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9665 esac
9667 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9668 if test -n "$aros_target_objdump_ln"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9670 $as_echo "$aros_target_objdump_ln" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9678 if test "$aros_target_objdump_ln" = ""; then
9679 # Extract the first word of "objdump", so it can be a program name with args.
9680 set dummy objdump; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 case $aros_target_objdump_ln in
9687 [\\/]* | ?:[\\/]*)
9688 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9702 done
9703 done
9704 IFS=$as_save_IFS
9707 esac
9709 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9710 if test -n "$aros_target_objdump_ln"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9712 $as_echo "$aros_target_objdump_ln" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9721 else
9722 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9723 set dummy $aros_target_objdump; ac_word=$2
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 $as_echo_n "checking for $ac_word... " >&6; }
9726 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 case $aros_target_objdump_ln in
9730 [\\/]* | ?:[\\/]*)
9731 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9741 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9745 done
9746 done
9747 IFS=$as_save_IFS
9750 esac
9752 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9753 if test -n "$aros_target_objdump_ln"; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9755 $as_echo "$aros_target_objdump_ln" >&6; }
9756 else
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9764 if test "$aros_target_objdump_ln" = ""; then
9765 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9768 if test "$aros_target_ranlib" = ""; then
9769 if test "$cross_compiling" = "yes" ; then
9770 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9771 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 case $aros_target_ranlib_ln in
9778 [\\/]* | ?:[\\/]*)
9779 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 break 2
9793 done
9794 done
9795 IFS=$as_save_IFS
9798 esac
9800 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9801 if test -n "$aros_target_ranlib_ln"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9803 $as_echo "$aros_target_ranlib_ln" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9810 else
9811 if test "$GCC" = "yes"; then
9812 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9813 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9814 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 case $aros_target_ranlib_ln in
9821 [\\/]* | ?:[\\/]*)
9822 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in `dirname $aros_gcc_ranlib`
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9836 done
9837 done
9838 IFS=$as_save_IFS
9841 esac
9843 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9844 if test -n "$aros_target_ranlib_ln"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9846 $as_echo "$aros_target_ranlib_ln" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9854 if test "$aros_target_ranlib_ln" = ""; then
9855 # Extract the first word of "ranlib", so it can be a program name with args.
9856 set dummy ranlib; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 case $aros_target_ranlib_ln in
9863 [\\/]* | ?:[\\/]*)
9864 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9878 done
9879 done
9880 IFS=$as_save_IFS
9883 esac
9885 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9886 if test -n "$aros_target_ranlib_ln"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9888 $as_echo "$aros_target_ranlib_ln" >&6; }
9889 else
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9897 else
9898 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9899 set dummy $aros_target_ranlib; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 case $aros_target_ranlib_ln in
9906 [\\/]* | ?:[\\/]*)
9907 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 break 2
9921 done
9922 done
9923 IFS=$as_save_IFS
9926 esac
9928 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9929 if test -n "$aros_target_ranlib_ln"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9931 $as_echo "$aros_target_ranlib_ln" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9940 if test "$aros_target_ranlib_ln" = ""; then
9941 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9944 if test "$aros_target_strip" = ""; then
9945 if test "$cross_compiling" = "yes" ; then
9946 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9947 set dummy ${target_tool_prefix}strip; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 case $aros_target_strip_ln in
9954 [\\/]* | ?:[\\/]*)
9955 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9974 esac
9976 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9977 if test -n "$aros_target_strip_ln"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9979 $as_echo "$aros_target_strip_ln" >&6; }
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9986 else
9987 if test "$GCC" = "yes"; then
9988 aros_gcc_strip=`$CC -print-prog-name=strip`
9989 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9990 set dummy `basename $aros_gcc_strip`; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 case $aros_target_strip_ln in
9997 [\\/]* | ?:[\\/]*)
9998 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in `dirname $aros_gcc_strip`
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10012 done
10013 done
10014 IFS=$as_save_IFS
10017 esac
10019 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10020 if test -n "$aros_target_strip_ln"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10022 $as_echo "$aros_target_strip_ln" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10030 if test "$aros_target_strip_ln" = ""; then
10031 # Extract the first word of "strip", so it can be a program name with args.
10032 set dummy strip; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 case $aros_target_strip_ln in
10039 [\\/]* | ?:[\\/]*)
10040 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10054 done
10055 done
10056 IFS=$as_save_IFS
10059 esac
10061 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10062 if test -n "$aros_target_strip_ln"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10064 $as_echo "$aros_target_strip_ln" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10073 else
10074 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10075 set dummy $aros_target_strip; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 case $aros_target_strip_ln in
10082 [\\/]* | ?:[\\/]*)
10083 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10102 esac
10104 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10105 if test -n "$aros_target_strip_ln"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10107 $as_echo "$aros_target_strip_ln" >&6; }
10108 else
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10116 if test "$aros_target_strip_ln" = ""; then
10117 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10119 if test "$aros_target_cxx" != ""; then
10120 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10121 set dummy $aros_target_cxx; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_aros_target_cxx+:} false; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 case $aros_target_cxx in
10128 [\\/]* | ?:[\\/]*)
10129 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10148 esac
10150 aros_target_cxx=$ac_cv_path_aros_target_cxx
10151 if test -n "$aros_target_cxx"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10153 $as_echo "$aros_target_cxx" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 if test "$aros_target_cxx" = ""; then
10161 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10164 else
10165 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10166 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10167 aros_target_cpp=$AROS_CROSSTOOLSDIR/$aros_target_cpp
10168 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10169 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10170 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10171 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10172 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10173 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10174 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10176 crosstools_target=tools-crosstools
10180 if test "$aros_kernel_cpp" = ""; then
10181 if test "$cross_compiling" = "yes" ; then
10182 # Extract the first word of "${target_tool_prefix}cpp", so it can be a program name with args.
10183 set dummy ${target_tool_prefix}cpp; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 case $aros_kernel_cpp in
10190 [\\/]* | ?:[\\/]*)
10191 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10205 done
10206 done
10207 IFS=$as_save_IFS
10210 esac
10212 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10213 if test -n "$aros_kernel_cpp"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10215 $as_echo "$aros_kernel_cpp" >&6; }
10216 else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10222 else
10223 if test "$GCC" = "yes"; then
10224 aros_gcc_cpp=`$CC -print-prog-name=cpp`
10225 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
10226 set dummy `basename $aros_gcc_cpp`; ac_word=$2
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228 $as_echo_n "checking for $ac_word... " >&6; }
10229 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 case $aros_kernel_cpp in
10233 [\\/]* | ?:[\\/]*)
10234 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in `dirname $aros_gcc_cpp`
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10244 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10248 done
10249 done
10250 IFS=$as_save_IFS
10253 esac
10255 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10256 if test -n "$aros_kernel_cpp"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10258 $as_echo "$aros_kernel_cpp" >&6; }
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10266 if test "$aros_kernel_cpp" = ""; then
10267 # Extract the first word of "cpp", so it can be a program name with args.
10268 set dummy cpp; ac_word=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 case $aros_kernel_cpp in
10275 [\\/]* | ?:[\\/]*)
10276 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10292 IFS=$as_save_IFS
10295 esac
10297 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10298 if test -n "$aros_kernel_cpp"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10300 $as_echo "$aros_kernel_cpp" >&6; }
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10309 else
10310 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
10311 set dummy $aros_kernel_cpp; ac_word=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 case $aros_kernel_cpp in
10318 [\\/]* | ?:[\\/]*)
10319 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10338 esac
10340 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
10341 if test -n "$aros_kernel_cpp"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
10343 $as_echo "$aros_kernel_cpp" >&6; }
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10352 if test "$aros_kernel_cpp" = ""; then
10353 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10356 if test "$aros_kernel_ld" = ""; then
10357 if test "$cross_compiling" = "yes" ; then
10358 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10359 set dummy ${target_tool_prefix}ld; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 case $aros_kernel_ld in
10366 [\\/]* | ?:[\\/]*)
10367 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10381 done
10382 done
10383 IFS=$as_save_IFS
10386 esac
10388 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10389 if test -n "$aros_kernel_ld"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10391 $as_echo "$aros_kernel_ld" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10398 else
10399 if test "$GCC" = "yes"; then
10400 aros_gcc_ld=`$CC -print-prog-name=ld`
10401 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10402 set dummy `basename $aros_gcc_ld`; ac_word=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 case $aros_kernel_ld in
10409 [\\/]* | ?:[\\/]*)
10410 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in `dirname $aros_gcc_ld`
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10424 done
10425 done
10426 IFS=$as_save_IFS
10429 esac
10431 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10432 if test -n "$aros_kernel_ld"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10434 $as_echo "$aros_kernel_ld" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10442 if test "$aros_kernel_ld" = ""; then
10443 # Extract the first word of "ld", so it can be a program name with args.
10444 set dummy ld; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 case $aros_kernel_ld in
10451 [\\/]* | ?:[\\/]*)
10452 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10466 done
10467 done
10468 IFS=$as_save_IFS
10471 esac
10473 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10474 if test -n "$aros_kernel_ld"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10476 $as_echo "$aros_kernel_ld" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10485 else
10486 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10487 set dummy $aros_kernel_ld; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 case $aros_kernel_ld in
10494 [\\/]* | ?:[\\/]*)
10495 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499 for as_dir in $PATH
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10505 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10509 done
10510 done
10511 IFS=$as_save_IFS
10514 esac
10516 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10517 if test -n "$aros_kernel_ld"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10519 $as_echo "$aros_kernel_ld" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10528 if test "$aros_kernel_ld" = ""; then
10529 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10532 if test "$aros_kernel_ar" = ""; then
10533 if test "$cross_compiling" = "yes" ; then
10534 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10535 set dummy ${target_tool_prefix}ar; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 case $aros_kernel_ar in
10542 [\\/]* | ?:[\\/]*)
10543 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10553 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10557 done
10558 done
10559 IFS=$as_save_IFS
10562 esac
10564 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10565 if test -n "$aros_kernel_ar"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10567 $as_echo "$aros_kernel_ar" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10574 else
10575 if test "$GCC" = "yes"; then
10576 aros_gcc_ar=`$CC -print-prog-name=ar`
10577 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10578 set dummy `basename $aros_gcc_ar`; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 case $aros_kernel_ar in
10585 [\\/]* | ?:[\\/]*)
10586 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in `dirname $aros_gcc_ar`
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10600 done
10601 done
10602 IFS=$as_save_IFS
10605 esac
10607 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10608 if test -n "$aros_kernel_ar"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10610 $as_echo "$aros_kernel_ar" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10618 if test "$aros_kernel_ar" = ""; then
10619 # Extract the first word of "ar", so it can be a program name with args.
10620 set dummy ar; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 case $aros_kernel_ar in
10627 [\\/]* | ?:[\\/]*)
10628 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10642 done
10643 done
10644 IFS=$as_save_IFS
10647 esac
10649 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10650 if test -n "$aros_kernel_ar"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10652 $as_echo "$aros_kernel_ar" >&6; }
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10661 else
10662 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10663 set dummy $aros_kernel_ar; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 case $aros_kernel_ar in
10670 [\\/]* | ?:[\\/]*)
10671 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10690 esac
10692 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10693 if test -n "$aros_kernel_ar"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10695 $as_echo "$aros_kernel_ar" >&6; }
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10704 if test "$aros_kernel_ar" = ""; then
10705 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10708 if test "$aros_kernel_ranlib" = ""; then
10709 if test "$cross_compiling" = "yes" ; then
10710 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10711 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 $as_echo_n "checking for $ac_word... " >&6; }
10714 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 case $aros_kernel_ranlib in
10718 [\\/]* | ?:[\\/]*)
10719 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10733 done
10734 done
10735 IFS=$as_save_IFS
10738 esac
10740 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10741 if test -n "$aros_kernel_ranlib"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10743 $as_echo "$aros_kernel_ranlib" >&6; }
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10750 else
10751 if test "$GCC" = "yes"; then
10752 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10753 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10754 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $aros_kernel_ranlib in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in `dirname $aros_gcc_ranlib`
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10781 esac
10783 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10784 if test -n "$aros_kernel_ranlib"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10786 $as_echo "$aros_kernel_ranlib" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10794 if test "$aros_kernel_ranlib" = ""; then
10795 # Extract the first word of "ranlib", so it can be a program name with args.
10796 set dummy ranlib; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 case $aros_kernel_ranlib in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10818 done
10819 done
10820 IFS=$as_save_IFS
10823 esac
10825 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10826 if test -n "$aros_kernel_ranlib"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10828 $as_echo "$aros_kernel_ranlib" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10837 else
10838 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10839 set dummy $aros_kernel_ranlib; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 case $aros_kernel_ranlib in
10846 [\\/]* | ?:[\\/]*)
10847 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10861 done
10862 done
10863 IFS=$as_save_IFS
10866 esac
10868 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10869 if test -n "$aros_kernel_ranlib"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10871 $as_echo "$aros_kernel_ranlib" >&6; }
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10880 if test "$aros_kernel_ranlib" = ""; then
10881 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10884 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
10885 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10887 orig_target_cpp=$aros_kernel_cpp
10888 orig_target_cc=$aros_kernel_cc
10889 orig_target_ld=$aros_kernel_ld
10891 if test "$crosstools" != "yes"; then
10892 if test "$aros_target_cc" != ""; then
10893 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10894 set dummy $aros_target_cc; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_aros_target_cc+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 case $aros_target_cc in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10916 done
10917 done
10918 IFS=$as_save_IFS
10921 esac
10923 aros_target_cc=$ac_cv_path_aros_target_cc
10924 if test -n "$aros_target_cc"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10926 $as_echo "$aros_target_cc" >&6; }
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10933 if test "$aros_target_cc" = ""; then
10934 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10936 orig_target_cc=$aros_target_cc
10938 if test "$aros_target_ld" != ""; then
10939 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10940 set dummy $aros_target_ld; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if ${ac_cv_path_aros_target_ld+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 case $aros_target_ld in
10947 [\\/]* | ?:[\\/]*)
10948 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 break 2
10962 done
10963 done
10964 IFS=$as_save_IFS
10967 esac
10969 aros_target_ld=$ac_cv_path_aros_target_ld
10970 if test -n "$aros_target_ld"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10972 $as_echo "$aros_target_ld" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10979 if test "$aros_target_ld" = ""; then
10980 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10982 orig_target_ld=$aros_target_ld
10984 if test "$aros_target_cpp" != ""; then
10985 # Extract the first word of "$aros_target_cpp", so it can be a program name with args.
10986 set dummy $aros_target_cpp; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_path_aros_target_cpp+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 case $aros_target_cpp in
10993 [\\/]* | ?:[\\/]*)
10994 ac_cv_path_aros_target_cpp="$aros_target_cpp" # Let the user override the test with a path.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_path_aros_target_cpp="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11008 done
11009 done
11010 IFS=$as_save_IFS
11013 esac
11015 aros_target_cpp=$ac_cv_path_aros_target_cpp
11016 if test -n "$aros_target_cpp"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cpp" >&5
11018 $as_echo "$aros_target_cpp" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11025 if test "$aros_target_cpp" = ""; then
11026 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
11028 orig_target_cpp=$aros_target_cpp
11030 else
11031 orig_target_cc=$aros_target_cc
11032 orig_target_ld=$aros_target_ld
11033 orig_target_cpp=$aros_target_cpp
11036 # Build crosstools if we have no C++ - temporary thing
11037 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
11038 crosstools_cxx_target=tools-crosstools
11041 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11042 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11043 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11044 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11045 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11046 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11047 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11049 # aros_cc_pre is a variable that is added to the front of the compiler name
11050 # in the generated aros-gcc shell script. We need this to enable the cache
11051 # to work across cleaned builds. Also, support DISTCC using the correct
11052 # environment variable.
11055 if test "x${DISTCC}" != "x" ; then
11056 if test "x${CCACHE}" != "x" ; then
11057 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11058 else
11059 aros_cc_pre="${DISTCC} "
11061 else
11062 if test "x${CCACHE}" != "x" ; then
11063 aros_cc_pre="${CCACHE} "
11067 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11069 aros_target_nostdinc_cflags=-nostdinc
11071 aros_target_nostartup_ldflags=-nostartfiles
11073 aros_target_nix_ldflags=-nix
11075 aros_target_detach_ldflags=-detach
11077 aros_target_nostdlib_ldflags=-nostdlib
11080 # Target tools
11081 if test "$crosstools" != "yes"; then
11082 if test "$GCC" = "yes"; then
11083 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11085 else
11086 # We do not know which gcc version we are going to build and what we need to know
11087 # here is different for different versions so this will be set later during the
11088 # build of crosstools.
11089 aros_target_cc_path=@aros_target_cc_path@
11091 aros_target_cpp="${prefix}-cpp"
11092 aros_target_cc="${prefix}-gcc"
11093 aros_target_as="${prefix}-as"
11094 aros_target_ld="${prefix}-ld"
11095 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11096 aros_target_objcopy=${prefix}-objcopy
11097 aros_target_objdump=${prefix}-objdump
11098 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11099 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11100 aros_target_strip=${prefix}-strip
11101 aros_plain_nm="${prefix}-nm"
11102 aros_plain_ar="${prefix}-ar"
11104 if test "$aros_kernel_includes" != "" ; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
11106 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
11107 if test "$aros_kernel_cc_includes" = "" ; then
11108 # Try to guess where the directory is.
11109 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11110 if test -d $aros_kernel_cc_includes; then
11111 # Check if there is also an include-fixed directory and add it
11112 # to kernel compiler's include path as it may contain some of
11113 # the headers we need.
11114 if test -d "$aros_kernel_cc_includes"-fixed; then
11115 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
11117 # Check for specific includes directory. Neede for Ubuntu 11.10
11118 if test -d "/usr/include/i386-linux-gnu"; then
11119 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
11121 else
11122 # The directory doesn't exist, we need to do some more work.
11123 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11125 # These are the headers we're looking for.
11126 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11127 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11128 zutil.h stdint.h"
11130 dirs=
11131 for h in $headers; do
11132 # Which other headers are needed by each of the above?
11133 deps=$(echo "#include <$h>" | \
11134 $aros_kernel_cc -E -M - 2>/dev/null | \
11135 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11137 # Copy all the needed headers to a directory beneath gendir.
11138 for d in $deps; do
11139 h=$(basename $d)
11140 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11141 sed -n "s,^.*/include\(/.*\),\1,p")
11142 ! test -d $dir && mkdir -p $dir
11143 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11144 done
11145 done
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
11149 $as_echo "$aros_kernel_cc_includes" >&6; }
11150 # Adding -nostdinc to kernel includes as they are always used together.
11151 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
11154 if test "$crosstools" != "yes"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
11156 $as_echo_n "checking for the target compiler's include path... " >&6; }
11157 if test "$aros_target_cc_includes" = "" ; then
11158 #try to guess where the directory is
11159 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11160 if ! test -d $aros_target_cc_includes; then
11161 #the directory doesn't exist, we need to do some more work
11162 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11164 #these are the headers we're looking for
11165 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11166 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11167 zutil.h"
11169 dirs=
11170 for h in $headers; do
11171 #which other headers each of the above headers needs?
11172 deps=$(echo "#include <$h>" | \
11173 $orig_target_cc -E -M - 2>/dev/null | \
11174 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11176 #copy all the needed headers to a directory beneath gendir
11177 for d in $deps; do
11178 h=$(basename $d)
11179 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11180 sed -n "s,^.*/include\(/.*\),\1,p")
11181 ! test -d $dir && mkdir -p $dir
11182 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11183 done
11184 done
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11188 $as_echo "$aros_target_cc_includes" >&6; }
11189 else
11190 # We do not know which gcc version we are going to build and what we need to know
11191 # here is different for different versions so this will be set later during the
11192 # build of crosstools.
11193 aros_target_cc_includes=@aros_target_cc_includes@
11197 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11198 # On GCC >= 4.0 -iquote should be used
11201 save_cc="$CC"
11202 save_cflags="$CFLAGS"
11203 CFLAGS="-iquote."
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11205 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11206 if test "x-$crosstools" != "x-yes"; then
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11211 main ()
11215 return 0;
11217 _ACEOF
11218 if ac_fn_c_try_compile "$LINENO"; then :
11219 has_iquote="yes"
11220 else
11221 has_iquote="no"
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 else
11225 # we do know it is supported for the smallest version of gcc we are going to build
11226 # we assume it's also supported by later versions
11227 has_iquote=yes
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11230 $as_echo "$has_iquote" >&6; }
11231 if test "x-$has_iquote" = "x-yes" ; then
11232 host_cflags_iquote=-iquote
11233 host_cflags_iquote_end=
11234 else
11235 host_cflags_iquote=-I
11236 host_cflags_iquote_end=-I-
11238 kernel_cflags_iquote=$host_cflags_iquote
11239 kernel_cflags_iquote_end=$host_cflags_iquote_end
11240 if test "x-$cross_compiling" = "x-yes"; then
11241 CC="$aros_kernel_cc"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11243 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11244 if test "x-$crosstools" != "x-yes"; then
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11249 main ()
11253 return 0;
11255 _ACEOF
11256 if ac_fn_c_try_compile "$LINENO"; then :
11257 use_no_stack_protector="yes"
11258 else
11259 use_no_stack_protector="no"
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 else
11263 # we do know it is supported for the smallest version of gcc we are going to build
11264 # we assume it's also supported by later versions
11265 use_no_stack_protector=yes
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11268 $as_echo "$use_no_stack_protector" >&6; }
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11270 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11271 if test "x-$crosstools" != "x-yes"; then
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11276 main ()
11280 return 0;
11282 _ACEOF
11283 if ac_fn_c_try_compile "$LINENO"; then :
11284 has_iquote="yes"
11285 else
11286 has_iquote="no"
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 else
11290 # we do know it is supported for the smallest version of gcc we are going to build
11291 # we assume it's also supported by later versions
11292 has_iquote=yes
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11295 $as_echo "$has_iquote" >&6; }
11296 if test "x-$has_iquote" = "x-yes" ; then
11297 kernel_cflags_iquote=-iquote
11298 kernel_cflags_iquote_end=
11299 else
11300 kernel_cflags_iquote=-I
11301 kernel_cflags_iquote_end=-I-
11304 aros_cflags_iquote=$kernel_cflags_iquote
11305 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11306 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11307 CC="$orig_target_cc"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11309 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11310 if test "x-$crosstools" != "x-yes"; then
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11315 main ()
11319 return 0;
11321 _ACEOF
11322 if ac_fn_c_try_compile "$LINENO"; then :
11323 has_iquote="yes"
11324 else
11325 has_iquote="no"
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 else
11329 # we do know it is supported for the smallest version of gcc we are going to build
11330 # we assume it's also supported by later versions
11331 has_iquote=yes
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11334 $as_echo "$has_iquote" >&6; }
11335 if test "x-$has_iquote" = "x-yes" ; then
11336 aros_cflags_iquote=-iquote
11337 aros_cflags_iquote_end=
11338 else
11339 aros_cflags_iquote=-I
11340 aros_cflags_iquote_end=-I-
11343 if test "x-$use_no_stack_protector" = "x-yes" ; then
11344 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11348 #-----------------------------------------------------------------------------
11350 # Check if the target compiler supports some options used for delinting:
11351 # -Wunused-but-set-variable
11352 # -Warray-bounds
11353 # -Wenum-compare
11354 # -Wstrict-overflow
11355 # -Wformat-security
11357 if test "x-$crosstools" != "x-yes"; then
11358 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11359 CC="$orig_target_cc"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11362 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11363 CFLAGS=-Wunused-but-set-variable
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11368 main ()
11372 return 0;
11374 _ACEOF
11375 if ac_fn_c_try_compile "$LINENO"; then :
11376 aros_unused_but_set_variable="yes"
11377 else
11378 aros_unused_but_set_variable="no"
11380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11382 $as_echo "$aros_unused_but_set_variable" >&6; }
11383 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11384 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11388 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11389 CFLAGS=-Warray-bounds
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11394 main ()
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 aros_array_bounds="yes"
11403 else
11404 aros_array_bounds="no"
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11408 $as_echo "$aros_array_bounds" >&6; }
11409 if test "x-$aros_array_bounds" = "x-yes" ; then
11410 aros_cflags_array_bounds=-Wno-array-bounds
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11414 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11415 CFLAGS=-Wenum-compare
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11420 main ()
11424 return 0;
11426 _ACEOF
11427 if ac_fn_c_try_compile "$LINENO"; then :
11428 aros_enum_compare="yes"
11429 else
11430 aros_enum_compare="no"
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11434 $as_echo "$aros_enum_compare" >&6; }
11435 if test "x-$aros_enum_compare" = "x-yes" ; then
11436 aros_cflags_enum_compare=-Wno-enum-compare
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11440 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11441 CFLAGS=-Wstrict-overflow
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11446 main ()
11450 return 0;
11452 _ACEOF
11453 if ac_fn_c_try_compile "$LINENO"; then :
11454 aros_strict_overflow="yes"
11455 else
11456 aros_strict_overflow="no"
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11460 $as_echo "$aros_strict_overflow" >&6; }
11461 if test "x-$aros_strict_overflow" = "x-yes" ; then
11462 aros_cflags_strict_overflow=-Wno-strict-overflow
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11466 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11467 CFLAGS=-Wformat-security
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11472 main ()
11476 return 0;
11478 _ACEOF
11479 if ac_fn_c_try_compile "$LINENO"; then :
11480 aros_format_security="yes"
11481 else
11482 aros_format_security="no"
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11486 $as_echo "$aros_format_security" >&6; }
11487 if test "x-$aros_format_security" = "x-yes" ; then
11488 aros_cflags_format_security=-Wno-format-security
11490 else
11491 # We do not know which gcc version we are going to build and what we need to know
11492 # here is different for different versions so this will be set later during the
11493 # build of crosstools.
11494 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11495 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11496 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11497 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11498 aros_cflags_format_security=@aros_cflags_format_security@
11501 #-----------------------------------------------------------------------------
11503 # Check if we can explicitly choose older version of symbol hashing
11505 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11506 CC="$aros_kernel_cc"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11508 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11513 main ()
11517 return 0;
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 use_hash_style="yes"
11522 else
11523 use_hash_style="no"
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11528 $as_echo "$use_hash_style" >&6; }
11529 if test "x-$use_hash_style" = "x-yes" ; then
11530 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11532 CC="$save_cc"
11533 CFLAGS="$save_cflags"
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11544 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11546 # Check whether --with-resolution was given.
11547 if test "${with_resolution+set}" = set; then :
11548 withval=$with_resolution; resolution=$withval
11549 else
11550 resolution=none
11553 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11554 if test "$resolution" = "yes" ; then
11555 resolution="none"
11557 if test "$resolution" = "no" ; then
11558 resolution="none"
11560 if test "$resolution" != "none" ; then
11561 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11562 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11563 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11566 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11567 aros_cv_default_wbwidth=$aros_default_wbwidth
11568 aros_cv_default_wbheight=$aros_default_wbheight
11569 aros_cv_default_wbdepth=$aros_default_wbdepth
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11572 $as_echo_n "checking if serial debug is enabled... " >&6; }
11574 # Check whether --with-serial-debug was given.
11575 if test "${with_serial_debug+set}" = set; then :
11576 withval=$with_serial_debug; serial_debug=$withval
11577 else
11578 serial_debug=none
11581 if test "$aros_serial_debug" = 0 ; then
11582 serial_debug_forced=""
11583 if test "$serial_debug" = "yes" ; then
11584 serial_debug="1"
11586 if test "$serial_debug" = "no" ; then
11587 serial_debug="none"
11589 else
11590 serial_debug_forced="(forced)"
11591 serial_debug=$aros_serial_debug
11593 if test "$serial_debug" != "none" ; then
11594 aros_serial_debug=$serial_debug
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11596 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11603 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11604 # Check whether --enable-palm_debug_hack was given.
11605 if test "${enable_palm_debug_hack+set}" = set; then :
11606 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11607 else
11608 palm_debug_hack="no"
11611 if test "$palm_debug_hack" = "yes" ; then
11612 aros_palm_debug_hack="1"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11615 $as_echo "$palm_debug_hack" >&6; }
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11618 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11619 # Check whether --enable-usb30_code was given.
11620 if test "${enable_usb30_code+set}" = set; then :
11621 enableval=$enable_usb30_code; usb30_code="yes"
11622 else
11623 usb30_code="no"
11626 if test "$usb30_code" = "yes" ; then
11627 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11628 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11631 $as_echo "$usb30_code" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11634 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11635 # Check whether --enable-nesting_supervisor was given.
11636 if test "${enable_nesting_supervisor+set}" = set; then :
11637 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11638 else
11639 nesting_supervisor="no"
11642 if test "$nesting_supervisor" = "yes" ; then
11643 aros_nesting_supervisor="1"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11646 $as_echo "$nesting_supervisor" >&6; }
11648 if test "$aros_enable_mmu" = "" ; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11650 $as_echo_n "checking if MMU support is enabled... " >&6; }
11651 # Check whether --enable-mmu was given.
11652 if test "${enable_mmu+set}" = set; then :
11653 enableval=$enable_mmu; aros_enable_mmu=$enableval
11654 else
11655 aros_enable_mmu="yes"
11658 if test "$aros_enable_mmu" = "" ; then
11659 aros_enable_mmu="yes"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11662 $as_echo "$aros_enable_mmu" >&6; }
11664 if test "$aros_enable_mmu" = "no" ; then
11665 aros_enable_mmu="0"
11666 else
11667 aros_enable_mmu="1"
11671 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11673 if test "x-$need_dlopen" != "x-no" ; then
11674 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11675 if test "x$ac_cv_func_dlopen" = xyes; then :
11676 have_dl="yes"
11677 else
11678 have_dl="no"
11681 if test "x-$have_dl" = "x-no" ; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11683 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11684 if ${ac_cv_lib_dl_dlopen+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-ldl $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char dlopen ();
11700 main ()
11702 return dlopen ();
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_dl_dlopen=yes
11709 else
11710 ac_cv_lib_dl_dlopen=no
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11717 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11718 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11719 have_dl="yes"
11720 aros_host_ldflags="$aros_host_ldflags -ldl"
11721 else
11722 have_dl="no"
11726 if test "x-$have_dl" = "x-no" ; then
11727 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11732 # Check whether --enable-x11_hidd was given.
11733 if test "${enable_x11_hidd+set}" = set; then :
11734 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11735 else
11736 x11_hidd="$need_x11"
11739 case "x-$x11_hidd" in
11740 x-yes|x-no|x-auto) ;;
11741 *) x11_hidd="$need_x11" ;;
11742 esac
11744 ENABLE_X11=0
11746 if test "x-$x11_hidd" != "x-no" ; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11749 $as_echo_n "checking for X... " >&6; }
11752 # Check whether --with-x was given.
11753 if test "${with_x+set}" = set; then :
11754 withval=$with_x;
11757 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11758 if test "x$with_x" = xno; then
11759 # The user explicitly disabled X.
11760 have_x=disabled
11761 else
11762 case $x_includes,$x_libraries in #(
11763 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11764 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 # One or both of the vars are not set, and there is no cached value.
11768 ac_x_includes=no ac_x_libraries=no
11769 rm -f -r conftest.dir
11770 if mkdir conftest.dir; then
11771 cd conftest.dir
11772 cat >Imakefile <<'_ACEOF'
11773 incroot:
11774 @echo incroot='${INCROOT}'
11775 usrlibdir:
11776 @echo usrlibdir='${USRLIBDIR}'
11777 libdir:
11778 @echo libdir='${LIBDIR}'
11779 _ACEOF
11780 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11782 for ac_var in incroot usrlibdir libdir; do
11783 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11784 done
11785 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11786 for ac_extension in a so sl dylib la dll; do
11787 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11788 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11789 ac_im_usrlibdir=$ac_im_libdir; break
11791 done
11792 # Screen out bogus values from the imake configuration. They are
11793 # bogus both because they are the default anyway, and because
11794 # using them would break gcc on systems where it needs fixed includes.
11795 case $ac_im_incroot in
11796 /usr/include) ac_x_includes= ;;
11797 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11798 esac
11799 case $ac_im_usrlibdir in
11800 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11801 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11802 esac
11804 cd ..
11805 rm -f -r conftest.dir
11808 # Standard set of common directories for X headers.
11809 # Check X11 before X11Rn because it is often a symlink to the current release.
11810 ac_x_header_dirs='
11811 /usr/X11/include
11812 /usr/X11R7/include
11813 /usr/X11R6/include
11814 /usr/X11R5/include
11815 /usr/X11R4/include
11817 /usr/include/X11
11818 /usr/include/X11R7
11819 /usr/include/X11R6
11820 /usr/include/X11R5
11821 /usr/include/X11R4
11823 /usr/local/X11/include
11824 /usr/local/X11R7/include
11825 /usr/local/X11R6/include
11826 /usr/local/X11R5/include
11827 /usr/local/X11R4/include
11829 /usr/local/include/X11
11830 /usr/local/include/X11R7
11831 /usr/local/include/X11R6
11832 /usr/local/include/X11R5
11833 /usr/local/include/X11R4
11835 /usr/X386/include
11836 /usr/x386/include
11837 /usr/XFree86/include/X11
11839 /usr/include
11840 /usr/local/include
11841 /usr/unsupported/include
11842 /usr/athena/include
11843 /usr/local/x11r5/include
11844 /usr/lpp/Xamples/include
11846 /usr/openwin/include
11847 /usr/openwin/share/include'
11849 if test "$ac_x_includes" = no; then
11850 # Guess where to find include files, by looking for Xlib.h.
11851 # First, try using that file with no special directory specified.
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <X11/Xlib.h>
11855 _ACEOF
11856 if ac_fn_c_try_cpp "$LINENO"; then :
11857 # We can compile using X headers with no special include directory.
11858 ac_x_includes=
11859 else
11860 for ac_dir in $ac_x_header_dirs; do
11861 if test -r "$ac_dir/X11/Xlib.h"; then
11862 ac_x_includes=$ac_dir
11863 break
11865 done
11867 rm -f conftest.err conftest.i conftest.$ac_ext
11868 fi # $ac_x_includes = no
11870 if test "$ac_x_libraries" = no; then
11871 # Check for the libraries.
11872 # See if we find them without any special options.
11873 # Don't add to $LIBS permanently.
11874 ac_save_LIBS=$LIBS
11875 LIBS="-lX11 $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <X11/Xlib.h>
11880 main ()
11882 XrmInitialize ()
11884 return 0;
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 LIBS=$ac_save_LIBS
11889 # We can link X programs with no special library path.
11890 ac_x_libraries=
11891 else
11892 LIBS=$ac_save_LIBS
11893 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11895 # Don't even attempt the hair of trying to link an X program!
11896 for ac_extension in a so sl dylib la dll; do
11897 if test -r "$ac_dir/libX11.$ac_extension"; then
11898 ac_x_libraries=$ac_dir
11899 break 2
11901 done
11902 done
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 fi # $ac_x_libraries = no
11908 case $ac_x_includes,$ac_x_libraries in #(
11909 no,* | *,no | *\'*)
11910 # Didn't find X, or a directory has "'" in its name.
11911 ac_cv_have_x="have_x=no";; #(
11913 # Record where we found X for the cache.
11914 ac_cv_have_x="have_x=yes\
11915 ac_x_includes='$ac_x_includes'\
11916 ac_x_libraries='$ac_x_libraries'"
11917 esac
11919 ;; #(
11920 *) have_x=yes;;
11921 esac
11922 eval "$ac_cv_have_x"
11923 fi # $with_x != no
11925 if test "$have_x" != yes; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11927 $as_echo "$have_x" >&6; }
11928 no_x=yes
11929 else
11930 # If each of the values was on the command line, it overrides each guess.
11931 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11932 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11933 # Update the cache value to reflect the command line values.
11934 ac_cv_have_x="have_x=yes\
11935 ac_x_includes='$x_includes'\
11936 ac_x_libraries='$x_libraries'"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11938 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11942 x_cflags=
11943 for path in $x_libraries
11945 x_cflags="$x_cflags -L$path"
11946 done
11948 for path in $x_includes
11950 x_cflags="$x_cflags -I$path"
11951 done
11953 if test "x-$no_x" = "x-yes" ; then
11955 if test "x-$x11_hidd" != "x-auto" ; then
11956 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11959 else
11960 x11_hidd_target=kernel-x11gfx-kobj
11961 ENABLE_X11=1
11963 # Check whether --enable-x11_shm was given.
11964 if test "${enable_x11_shm+set}" = set; then :
11965 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11966 else
11967 x11_hidd_shm="auto"
11970 case "x-$x11_hidd_shm" in
11971 x-yes|x-no|x-auto) ;;
11972 *) x11_hidd_shm="auto" ;;
11973 esac
11975 have_xshm=no
11977 if test "x-$x11_hidd_shm" != "x-no" ; then
11979 for ac_header in sys/ipc.h
11980 do :
11981 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11982 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11983 cat >>confdefs.h <<_ACEOF
11984 #define HAVE_SYS_IPC_H 1
11985 _ACEOF
11989 done
11991 for ac_header in sys/shm.h
11992 do :
11993 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11994 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11995 cat >>confdefs.h <<_ACEOF
11996 #define HAVE_SYS_SHM_H 1
11997 _ACEOF
12001 done
12004 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12006 save_cflags="$CFLAGS"
12007 CFLAGS="$CFLAGS $x_cflags"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
12009 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12010 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-lXext $LIBS"
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 char XShmQueryExtension ();
12026 main ()
12028 return XShmQueryExtension ();
12030 return 0;
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034 ac_cv_lib_Xext_XShmQueryExtension=yes
12035 else
12036 ac_cv_lib_Xext_XShmQueryExtension=no
12038 rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12043 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12044 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
12045 have_xshm=yes
12048 CFLAGS="$save_cflags"
12052 if test "x-$have_xshm" = "x-yes" ; then
12053 DO_XSHM_SUPPORT="1"
12054 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12055 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
12056 else
12057 DO_XSHM_SUPPORT="0"
12061 # Check whether --enable-x11_vidmode was given.
12062 if test "${enable_x11_vidmode+set}" = set; then :
12063 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12064 else
12065 x11_hidd_vidmode="auto"
12068 case "x-$x11_hidd_vidmode" in
12069 x-yes|x-no|x-auto) ;;
12070 *) x11_hidd_vidmode="auto" ;;
12071 esac
12073 have_vidmode=no
12075 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12077 save_cflags="$CFLAGS"
12078 CFLAGS="$CFLAGS $x_cflags"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12080 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12081 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lXxf86vm $LIBS"
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char XF86VidModeQueryExtension ();
12097 main ()
12099 return XF86VidModeQueryExtension ();
12101 return 0;
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"; then :
12105 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12106 else
12107 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12114 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12115 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
12116 have_vidmode=yes
12119 CFLAGS="$save_cflags"
12122 if test "x-$have_vidmode" = "x-yes" ; then
12123 DO_VIDMODE_SUPPORT="1"
12124 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12125 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
12126 else
12127 DO_VIDMODE_SUPPORT="0"
12131 aros_host_x11_includes=$x_includes
12132 aros_host_x11_libdirs=$x_libraries
12136 # Check whether --enable-sdl_hidd was given.
12137 if test "${enable_sdl_hidd+set}" = set; then :
12138 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12139 else
12140 sdl_hidd="auto"
12143 case "x-$sdl_hidd" in
12144 x-yes|x-no|x-auto) ;;
12145 *) sdl_hidd="auto" ;;
12146 esac
12148 if test "x-$sdl_hidd" != "x-no" ; then
12151 # Check whether --with-sdl-prefix was given.
12152 if test "${with_sdl_prefix+set}" = set; then :
12153 withval=$with_sdl_prefix; sdl_prefix="$withval"
12154 else
12155 sdl_prefix=""
12159 # Check whether --with-sdl-exec-prefix was given.
12160 if test "${with_sdl_exec_prefix+set}" = set; then :
12161 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12162 else
12163 sdl_exec_prefix=""
12166 # Check whether --enable-sdltest was given.
12167 if test "${enable_sdltest+set}" = set; then :
12168 enableval=$enable_sdltest;
12169 else
12170 enable_sdltest=yes
12174 if test x$sdl_exec_prefix != x ; then
12175 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12176 if test x${SDL_CONFIG+set} != xset ; then
12177 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12180 if test x$sdl_prefix != x ; then
12181 sdl_args="$sdl_args --prefix=$sdl_prefix"
12182 if test x${SDL_CONFIG+set} != xset ; then
12183 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12187 if test "x$prefix" != xNONE; then
12188 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12190 # Extract the first word of "sdl-config", so it can be a program name with args.
12191 set dummy sdl-config; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_SDL_CONFIG+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 case $SDL_CONFIG in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12213 done
12214 done
12215 IFS=$as_save_IFS
12217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12219 esac
12221 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12222 if test -n "$SDL_CONFIG"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12224 $as_echo "$SDL_CONFIG" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 min_sdl_version=1.2.10
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12233 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12234 no_sdl=""
12235 if test "$SDL_CONFIG" = "no" ; then
12236 no_sdl=yes
12237 else
12238 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12239 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12241 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12243 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12245 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12247 if test "x$enable_sdltest" = "xyes" ; then
12248 ac_save_CFLAGS="$CFLAGS"
12249 ac_save_CXXFLAGS="$CXXFLAGS"
12250 ac_save_LIBS="$LIBS"
12251 CFLAGS="$CFLAGS $SDL_CFLAGS"
12252 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12253 LIBS="$LIBS $SDL_LIBS"
12254 rm -f conf.sdltest
12255 if test "$cross_compiling" = yes; then :
12256 echo $ac_n "cross compiling; assumed OK... $ac_c"
12257 else
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12261 #include <stdio.h>
12262 #include <stdlib.h>
12263 #include <string.h>
12264 #include "SDL.h"
12266 char*
12267 my_strdup (char *str)
12269 char *new_str;
12271 if (str)
12273 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12274 strcpy (new_str, str);
12276 else
12277 new_str = NULL;
12279 return new_str;
12282 int main (int argc, char *argv[])
12284 int major, minor, micro;
12285 char *tmp_version;
12287 /* This hangs on some systems (?)
12288 system ("touch conf.sdltest");
12290 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12292 /* HP/UX 9 (%@#!) writes to sscanf strings */
12293 tmp_version = my_strdup("$min_sdl_version");
12294 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12295 printf("%s, bad version string\n", "$min_sdl_version");
12296 exit(1);
12299 if (($sdl_major_version > major) ||
12300 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12301 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12303 return 0;
12305 else
12307 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12308 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12309 printf("*** best to upgrade to the required version.\n");
12310 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12311 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12312 printf("*** config.cache before re-running configure\n");
12313 return 1;
12318 _ACEOF
12319 if ac_fn_c_try_run "$LINENO"; then :
12321 else
12322 no_sdl=yes
12324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12325 conftest.$ac_objext conftest.beam conftest.$ac_ext
12328 CFLAGS="$ac_save_CFLAGS"
12329 CXXFLAGS="$ac_save_CXXFLAGS"
12330 LIBS="$ac_save_LIBS"
12333 if test "x$no_sdl" = x ; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335 $as_echo "yes" >&6; }
12336 have_sdl="yes"
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 if test "$SDL_CONFIG" = "no" ; then
12341 echo "*** The sdl-config script installed by SDL could not be found"
12342 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12343 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12344 echo "*** full path to sdl-config."
12345 else
12346 if test -f conf.sdltest ; then
12348 else
12349 echo "*** Could not run SDL test program, checking why..."
12350 CFLAGS="$CFLAGS $SDL_CFLAGS"
12351 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12352 LIBS="$LIBS $SDL_LIBS"
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12356 #include <stdio.h>
12357 #include "SDL.h"
12359 int main(int argc, char *argv[])
12360 { return 0; }
12361 #undef main
12362 #define main K_and_R_C_main
12365 main ()
12367 return 0;
12369 return 0;
12371 _ACEOF
12372 if ac_fn_c_try_link "$LINENO"; then :
12373 echo "*** The test program compiled, but did not run. This usually means"
12374 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12375 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12376 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12377 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12378 echo "*** is required on your system"
12379 echo "***"
12380 echo "*** If you have an old version installed, it is best to remove it, although"
12381 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12382 else
12383 echo "*** The test program failed to compile or link. See the file config.log for the"
12384 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12385 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12386 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12388 rm -f core conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 CFLAGS="$ac_save_CFLAGS"
12391 CXXFLAGS="$ac_save_CXXFLAGS"
12392 LIBS="$ac_save_LIBS"
12395 SDL_CFLAGS=""
12396 SDL_LIBS=""
12397 have_sdl="no"
12401 rm -f conf.sdltest
12404 if test "x-$have_sdl" != "x-yes" ; then
12406 if test "x-$sdl_hidd" != "x-auto" ; then
12407 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12410 else
12411 sdl_hidd_target=kernel-hidd-sdl
12412 aros_host_sdl_cflags=SDL_CFLAGS
12413 aros_host_sdl_libs=SDL_LIBS
12417 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12418 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12423 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12424 oss_library_target=workbench-libs-oss-unix
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12430 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12431 # Check whether --enable-dbus was given.
12432 if test "${enable_dbus+set}" = set; then :
12433 enableval=$enable_dbus; dbus="yes"
12434 else
12435 dbus="no"
12438 if test "$dbus" = "yes" ; then
12439 ENABLE_DBUS=1
12440 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12441 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12442 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12443 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12444 else
12445 ENABLE_DBUS=0
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12448 $as_echo "$dbus" >&6; }
12450 if test "$use_kernel_cc_wrapper" = "yes" ; then
12451 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12455 # Generic
12466 # Compatability with other Amiga-like operation systems
12469 # Host related
12495 # Target Related
12555 # Delinting target compiler flags
12562 # Graphics Related
12579 # Native version related
12582 # Palm native version related
12585 # USB3.0 code
12588 # Unix/Hosted version related
12591 # MMU related
12594 # Apple iOS related
12599 # Android related
12603 # DBUS related
12610 #X11 related
12613 # Debug related
12619 # Collect-aros stuff: "-ius" to ignore undefined symbols
12622 # C compiler related
12625 case "$aros_flavour" in
12626 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12627 aros_flavour="emulation" ;;
12628 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12629 aros_flavour="emulation" ;;
12630 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12631 aros_flavour="standalone";;
12632 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12633 aros_flavour="standalone";;
12634 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12635 aros_flavour="native" ;;
12636 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12637 aros_flavour="native" ;;
12638 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12639 aros_flavour="linklib" ;;
12640 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12641 aros_flavour="palmnative" ;;
12642 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12643 aros_flavour="mac68knative" ;;
12644 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12645 aros_flavour="ppcnative" ;;
12646 esac
12648 if test ! -d ${aros_inc_dir} ; then
12649 ${MKDIR} ${aros_inc_dir}
12651 if test ! -d ${aros_geninc_dir} ; then
12652 ${MKDIR} ${aros_geninc_dir}
12654 if test ! -d ${aros_hostcfg_dir} ; then
12655 ${MKDIR} ${aros_hostcfg_dir}
12657 if test ! -d ${aros_targetcfg_dir} ; then
12658 ${MKDIR} ${aros_targetcfg_dir}
12660 if test ! -d ${aros_tools_dir} ; then
12661 ${MKDIR} ${aros_tools_dir}
12663 if test ! -d ${aros_scripts_dir} ; then
12664 ${MKDIR} ${aros_scripts_dir}
12667 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12670 ac_config_commands="$ac_config_commands compiler_executable"
12672 ac_config_commands="$ac_config_commands genmf_executable"
12675 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}-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"
12678 cat >confcache <<\_ACEOF
12679 # This file is a shell script that caches the results of configure
12680 # tests run on this system so they can be shared between configure
12681 # scripts and configure runs, see configure's option --config-cache.
12682 # It is not useful on other systems. If it contains results you don't
12683 # want to keep, you may remove or edit it.
12685 # config.status only pays attention to the cache file if you give it
12686 # the --recheck option to rerun configure.
12688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12690 # following values.
12692 _ACEOF
12694 # The following way of writing the cache mishandles newlines in values,
12695 # but we know of no workaround that is simple, portable, and efficient.
12696 # So, we kill variables containing newlines.
12697 # Ultrix sh set writes to stderr and can't be redirected directly,
12698 # and sets the high bit in the cache file unless we assign to the vars.
12700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12701 eval ac_val=\$$ac_var
12702 case $ac_val in #(
12703 *${as_nl}*)
12704 case $ac_var in #(
12705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12707 esac
12708 case $ac_var in #(
12709 _ | IFS | as_nl) ;; #(
12710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12711 *) { eval $ac_var=; unset $ac_var;} ;;
12712 esac ;;
12713 esac
12714 done
12716 (set) 2>&1 |
12717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12718 *${as_nl}ac_space=\ *)
12719 # `set' does not quote correctly, so add quotes: double-quote
12720 # substitution turns \\\\ into \\, and sed turns \\ into \.
12721 sed -n \
12722 "s/'/'\\\\''/g;
12723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12724 ;; #(
12726 # `set' quotes correctly as required by POSIX, so do not add quotes.
12727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12729 esac |
12730 sort
12732 sed '
12733 /^ac_cv_env_/b end
12734 t clear
12735 :clear
12736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12737 t end
12738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12739 :end' >>confcache
12740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12741 if test -w "$cache_file"; then
12742 if test "x$cache_file" != "x/dev/null"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12744 $as_echo "$as_me: updating cache $cache_file" >&6;}
12745 if test ! -f "$cache_file" || test -h "$cache_file"; then
12746 cat confcache >"$cache_file"
12747 else
12748 case $cache_file in #(
12749 */* | ?:*)
12750 mv -f confcache "$cache_file"$$ &&
12751 mv -f "$cache_file"$$ "$cache_file" ;; #(
12753 mv -f confcache "$cache_file" ;;
12754 esac
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12762 rm -f confcache
12764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12765 # Let make expand exec_prefix.
12766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12768 DEFS=-DHAVE_CONFIG_H
12770 ac_libobjs=
12771 ac_ltlibobjs=
12773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12774 # 1. Remove the extension, and $U if already installed.
12775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12778 # will be set to the directory where LIBOBJS objects are built.
12779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12781 done
12782 LIBOBJS=$ac_libobjs
12784 LTLIBOBJS=$ac_ltlibobjs
12788 : "${CONFIG_STATUS=./config.status}"
12789 ac_write_fail=0
12790 ac_clean_files_save=$ac_clean_files
12791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12794 as_write_fail=0
12795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12796 #! $SHELL
12797 # Generated by $as_me.
12798 # Run this file to recreate the current configuration.
12799 # Compiler output produced by configure, useful for debugging
12800 # configure, is in config.log if it exists.
12802 debug=false
12803 ac_cs_recheck=false
12804 ac_cs_silent=false
12806 SHELL=\${CONFIG_SHELL-$SHELL}
12807 export SHELL
12808 _ASEOF
12809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12810 ## -------------------- ##
12811 ## M4sh Initialization. ##
12812 ## -------------------- ##
12814 # Be more Bourne compatible
12815 DUALCASE=1; export DUALCASE # for MKS sh
12816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12817 emulate sh
12818 NULLCMD=:
12819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12820 # is contrary to our usage. Disable this feature.
12821 alias -g '${1+"$@"}'='"$@"'
12822 setopt NO_GLOB_SUBST
12823 else
12824 case `(set -o) 2>/dev/null` in #(
12825 *posix*) :
12826 set -o posix ;; #(
12827 *) :
12829 esac
12833 as_nl='
12835 export as_nl
12836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12840 # Prefer a ksh shell builtin over an external printf program on Solaris,
12841 # but without wasting forks for bash or zsh.
12842 if test -z "$BASH_VERSION$ZSH_VERSION" \
12843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12844 as_echo='print -r --'
12845 as_echo_n='print -rn --'
12846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12847 as_echo='printf %s\n'
12848 as_echo_n='printf %s'
12849 else
12850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12852 as_echo_n='/usr/ucb/echo -n'
12853 else
12854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12855 as_echo_n_body='eval
12856 arg=$1;
12857 case $arg in #(
12858 *"$as_nl"*)
12859 expr "X$arg" : "X\\(.*\\)$as_nl";
12860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12861 esac;
12862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12864 export as_echo_n_body
12865 as_echo_n='sh -c $as_echo_n_body as_echo'
12867 export as_echo_body
12868 as_echo='sh -c $as_echo_body as_echo'
12871 # The user is always right.
12872 if test "${PATH_SEPARATOR+set}" != set; then
12873 PATH_SEPARATOR=:
12874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12876 PATH_SEPARATOR=';'
12881 # IFS
12882 # We need space, tab and new line, in precisely that order. Quoting is
12883 # there to prevent editors from complaining about space-tab.
12884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12885 # splitting by setting IFS to empty value.)
12886 IFS=" "" $as_nl"
12888 # Find who we are. Look in the path if we contain no directory separator.
12889 as_myself=
12890 case $0 in #((
12891 *[\\/]* ) as_myself=$0 ;;
12892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12898 done
12899 IFS=$as_save_IFS
12902 esac
12903 # We did not find ourselves, most probably we were run as `sh COMMAND'
12904 # in which case we are not to be found in the path.
12905 if test "x$as_myself" = x; then
12906 as_myself=$0
12908 if test ! -f "$as_myself"; then
12909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12910 exit 1
12913 # Unset variables that we do not need and which cause bugs (e.g. in
12914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12915 # suppresses any "Segmentation fault" message there. '((' could
12916 # trigger a bug in pdksh 5.2.14.
12917 for as_var in BASH_ENV ENV MAIL MAILPATH
12918 do eval test x\${$as_var+set} = xset \
12919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12920 done
12921 PS1='$ '
12922 PS2='> '
12923 PS4='+ '
12925 # NLS nuisances.
12926 LC_ALL=C
12927 export LC_ALL
12928 LANGUAGE=C
12929 export LANGUAGE
12931 # CDPATH.
12932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12936 # ----------------------------------------
12937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12939 # script with STATUS, using 1 if that was 0.
12940 as_fn_error ()
12942 as_status=$1; test $as_status -eq 0 && as_status=1
12943 if test "$4"; then
12944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12947 $as_echo "$as_me: error: $2" >&2
12948 as_fn_exit $as_status
12949 } # as_fn_error
12952 # as_fn_set_status STATUS
12953 # -----------------------
12954 # Set $? to STATUS, without forking.
12955 as_fn_set_status ()
12957 return $1
12958 } # as_fn_set_status
12960 # as_fn_exit STATUS
12961 # -----------------
12962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12963 as_fn_exit ()
12965 set +e
12966 as_fn_set_status $1
12967 exit $1
12968 } # as_fn_exit
12970 # as_fn_unset VAR
12971 # ---------------
12972 # Portably unset VAR.
12973 as_fn_unset ()
12975 { eval $1=; unset $1;}
12977 as_unset=as_fn_unset
12978 # as_fn_append VAR VALUE
12979 # ----------------------
12980 # Append the text in VALUE to the end of the definition contained in VAR. Take
12981 # advantage of any shell optimizations that allow amortized linear growth over
12982 # repeated appends, instead of the typical quadratic growth present in naive
12983 # implementations.
12984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12985 eval 'as_fn_append ()
12987 eval $1+=\$2
12989 else
12990 as_fn_append ()
12992 eval $1=\$$1\$2
12994 fi # as_fn_append
12996 # as_fn_arith ARG...
12997 # ------------------
12998 # Perform arithmetic evaluation on the ARGs, and store the result in the
12999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13000 # must be portable across $(()) and expr.
13001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13002 eval 'as_fn_arith ()
13004 as_val=$(( $* ))
13006 else
13007 as_fn_arith ()
13009 as_val=`expr "$@" || test $? -eq 1`
13011 fi # as_fn_arith
13014 if expr a : '\(a\)' >/dev/null 2>&1 &&
13015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13016 as_expr=expr
13017 else
13018 as_expr=false
13021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13022 as_basename=basename
13023 else
13024 as_basename=false
13027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13028 as_dirname=dirname
13029 else
13030 as_dirname=false
13033 as_me=`$as_basename -- "$0" ||
13034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13035 X"$0" : 'X\(//\)$' \| \
13036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13037 $as_echo X/"$0" |
13038 sed '/^.*\/\([^/][^/]*\)\/*$/{
13039 s//\1/
13042 /^X\/\(\/\/\)$/{
13043 s//\1/
13046 /^X\/\(\/\).*/{
13047 s//\1/
13050 s/.*/./; q'`
13052 # Avoid depending upon Character Ranges.
13053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13056 as_cr_digits='0123456789'
13057 as_cr_alnum=$as_cr_Letters$as_cr_digits
13059 ECHO_C= ECHO_N= ECHO_T=
13060 case `echo -n x` in #(((((
13061 -n*)
13062 case `echo 'xy\c'` in
13063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13064 xy) ECHO_C='\c';;
13065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13066 ECHO_T=' ';;
13067 esac;;
13069 ECHO_N='-n';;
13070 esac
13072 rm -f conf$$ conf$$.exe conf$$.file
13073 if test -d conf$$.dir; then
13074 rm -f conf$$.dir/conf$$.file
13075 else
13076 rm -f conf$$.dir
13077 mkdir conf$$.dir 2>/dev/null
13079 if (echo >conf$$.file) 2>/dev/null; then
13080 if ln -s conf$$.file conf$$ 2>/dev/null; then
13081 as_ln_s='ln -s'
13082 # ... but there are two gotchas:
13083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13085 # In both cases, we have to default to `cp -p'.
13086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13087 as_ln_s='cp -p'
13088 elif ln conf$$.file conf$$ 2>/dev/null; then
13089 as_ln_s=ln
13090 else
13091 as_ln_s='cp -p'
13093 else
13094 as_ln_s='cp -p'
13096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13097 rmdir conf$$.dir 2>/dev/null
13100 # as_fn_mkdir_p
13101 # -------------
13102 # Create "$as_dir" as a directory, including parents if necessary.
13103 as_fn_mkdir_p ()
13106 case $as_dir in #(
13107 -*) as_dir=./$as_dir;;
13108 esac
13109 test -d "$as_dir" || eval $as_mkdir_p || {
13110 as_dirs=
13111 while :; do
13112 case $as_dir in #(
13113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13114 *) as_qdir=$as_dir;;
13115 esac
13116 as_dirs="'$as_qdir' $as_dirs"
13117 as_dir=`$as_dirname -- "$as_dir" ||
13118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13119 X"$as_dir" : 'X\(//\)[^/]' \| \
13120 X"$as_dir" : 'X\(//\)$' \| \
13121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13122 $as_echo X"$as_dir" |
13123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13124 s//\1/
13127 /^X\(\/\/\)[^/].*/{
13128 s//\1/
13131 /^X\(\/\/\)$/{
13132 s//\1/
13135 /^X\(\/\).*/{
13136 s//\1/
13139 s/.*/./; q'`
13140 test -d "$as_dir" && break
13141 done
13142 test -z "$as_dirs" || eval "mkdir $as_dirs"
13143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13146 } # as_fn_mkdir_p
13147 if mkdir -p . 2>/dev/null; then
13148 as_mkdir_p='mkdir -p "$as_dir"'
13149 else
13150 test -d ./-p && rmdir ./-p
13151 as_mkdir_p=false
13154 if test -x / >/dev/null 2>&1; then
13155 as_test_x='test -x'
13156 else
13157 if ls -dL / >/dev/null 2>&1; then
13158 as_ls_L_option=L
13159 else
13160 as_ls_L_option=
13162 as_test_x='
13163 eval sh -c '\''
13164 if test -d "$1"; then
13165 test -d "$1/.";
13166 else
13167 case $1 in #(
13168 -*)set "./$1";;
13169 esac;
13170 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13171 ???[sx]*):;;*)false;;esac;fi
13172 '\'' sh
13175 as_executable_p=$as_test_x
13177 # Sed expression to map a string onto a valid CPP name.
13178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13180 # Sed expression to map a string onto a valid variable name.
13181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13184 exec 6>&1
13185 ## ----------------------------------- ##
13186 ## Main body of $CONFIG_STATUS script. ##
13187 ## ----------------------------------- ##
13188 _ASEOF
13189 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13192 # Save the log message, to keep $0 and so on meaningful, and to
13193 # report actual input values of CONFIG_FILES etc. instead of their
13194 # values after options handling.
13195 ac_log="
13196 This file was extended by $as_me, which was
13197 generated by GNU Autoconf 2.68. Invocation command line was
13199 CONFIG_FILES = $CONFIG_FILES
13200 CONFIG_HEADERS = $CONFIG_HEADERS
13201 CONFIG_LINKS = $CONFIG_LINKS
13202 CONFIG_COMMANDS = $CONFIG_COMMANDS
13203 $ $0 $@
13205 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13208 _ACEOF
13210 case $ac_config_files in *"
13211 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13212 esac
13214 case $ac_config_headers in *"
13215 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13216 esac
13219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220 # Files that config.status was made for.
13221 config_files="$ac_config_files"
13222 config_headers="$ac_config_headers"
13223 config_commands="$ac_config_commands"
13225 _ACEOF
13227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13228 ac_cs_usage="\
13229 \`$as_me' instantiates files and other configuration actions
13230 from templates according to the current configuration. Unless the files
13231 and actions are specified as TAGs, all are instantiated by default.
13233 Usage: $0 [OPTION]... [TAG]...
13235 -h, --help print this help, then exit
13236 -V, --version print version number and configuration settings, then exit
13237 --config print configuration, then exit
13238 -q, --quiet, --silent
13239 do not print progress messages
13240 -d, --debug don't remove temporary files
13241 --recheck update $as_me by reconfiguring in the same conditions
13242 --file=FILE[:TEMPLATE]
13243 instantiate the configuration file FILE
13244 --header=FILE[:TEMPLATE]
13245 instantiate the configuration header FILE
13247 Configuration files:
13248 $config_files
13250 Configuration headers:
13251 $config_headers
13253 Configuration commands:
13254 $config_commands
13256 Report bugs to the package provider."
13258 _ACEOF
13259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13260 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13261 ac_cs_version="\\
13262 config.status
13263 configured by $0, generated by GNU Autoconf 2.68,
13264 with options \\"\$ac_cs_config\\"
13266 Copyright (C) 2010 Free Software Foundation, Inc.
13267 This config.status script is free software; the Free Software Foundation
13268 gives unlimited permission to copy, distribute and modify it."
13270 ac_pwd='$ac_pwd'
13271 srcdir='$srcdir'
13272 test -n "\$AWK" || AWK=awk
13273 _ACEOF
13275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13276 # The default lists apply if the user does not specify any file.
13277 ac_need_defaults=:
13278 while test $# != 0
13280 case $1 in
13281 --*=?*)
13282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13284 ac_shift=:
13286 --*=)
13287 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13288 ac_optarg=
13289 ac_shift=:
13292 ac_option=$1
13293 ac_optarg=$2
13294 ac_shift=shift
13296 esac
13298 case $ac_option in
13299 # Handling of the options.
13300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13301 ac_cs_recheck=: ;;
13302 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13303 $as_echo "$ac_cs_version"; exit ;;
13304 --config | --confi | --conf | --con | --co | --c )
13305 $as_echo "$ac_cs_config"; exit ;;
13306 --debug | --debu | --deb | --de | --d | -d )
13307 debug=: ;;
13308 --file | --fil | --fi | --f )
13309 $ac_shift
13310 case $ac_optarg in
13311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13312 '') as_fn_error $? "missing file argument" ;;
13313 esac
13314 as_fn_append CONFIG_FILES " '$ac_optarg'"
13315 ac_need_defaults=false;;
13316 --header | --heade | --head | --hea )
13317 $ac_shift
13318 case $ac_optarg in
13319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13320 esac
13321 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13322 ac_need_defaults=false;;
13323 --he | --h)
13324 # Conflict between --help and --header
13325 as_fn_error $? "ambiguous option: \`$1'
13326 Try \`$0 --help' for more information.";;
13327 --help | --hel | -h )
13328 $as_echo "$ac_cs_usage"; exit ;;
13329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13331 ac_cs_silent=: ;;
13333 # This is an error.
13334 -*) as_fn_error $? "unrecognized option: \`$1'
13335 Try \`$0 --help' for more information." ;;
13337 *) as_fn_append ac_config_targets " $1"
13338 ac_need_defaults=false ;;
13340 esac
13341 shift
13342 done
13344 ac_configure_extra_args=
13346 if $ac_cs_silent; then
13347 exec 6>/dev/null
13348 ac_configure_extra_args="$ac_configure_extra_args --silent"
13351 _ACEOF
13352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13353 if \$ac_cs_recheck; then
13354 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13355 shift
13356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13357 CONFIG_SHELL='$SHELL'
13358 export CONFIG_SHELL
13359 exec "\$@"
13362 _ACEOF
13363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364 exec 5>>config.log
13366 echo
13367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13368 ## Running $as_me. ##
13369 _ASBOX
13370 $as_echo "$ac_log"
13371 } >&5
13373 _ACEOF
13374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13376 # INIT-COMMANDS
13379 aros_host_exe_suffix=${aros_host_exe_suffix}
13380 aros_tools_dir=${aros_tools_dir}
13381 aros_target_cpu=${aros_target_cpu}
13382 aros_target_arch=${aros_target_arch}
13383 aros_target_suffix=${aros_target_suffix}
13384 aros_target_nm_ln=${aros_target_nm_ln}
13385 aros_target_as_ln=${aros_target_as_ln}
13386 aros_target_ar_ln=${aros_target_ar_ln}
13387 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13388 aros_target_objdump_ln=${aros_target_objdump_ln}
13389 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13390 aros_target_strip_ln=${aros_target_strip_ln}
13391 aros_kernel_ld=${aros_kernel_ld}
13394 aros_tools_dir=${aros_tools_dir}
13397 _ACEOF
13399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 # Handling of arguments.
13402 for ac_config_target in $ac_config_targets
13404 case $ac_config_target in
13405 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13406 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13407 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13409 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13410 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13411 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13412 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13413 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13414 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13415 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13416 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13417 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13418 "${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" ;;
13419 "${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" ;;
13420 "${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" ;;
13421 "${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" ;;
13422 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13423 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13424 "${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" ;;
13426 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13427 esac
13428 done
13431 # If the user did not use the arguments to specify the items to instantiate,
13432 # then the envvar interface is used. Set only those that are not.
13433 # We use the long form for the default assignment because of an extremely
13434 # bizarre bug on SunOS 4.1.3.
13435 if $ac_need_defaults; then
13436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13441 # Have a temporary directory for convenience. Make it in the build tree
13442 # simply because there is no reason against having it here, and in addition,
13443 # creating and moving files from /tmp can sometimes cause problems.
13444 # Hook for its removal unless debugging.
13445 # Note that there is a small window in which the directory will not be cleaned:
13446 # after its creation but before its name has been assigned to `$tmp'.
13447 $debug ||
13449 tmp= ac_tmp=
13450 trap 'exit_status=$?
13451 : "${ac_tmp:=$tmp}"
13452 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13454 trap 'as_fn_exit 1' 1 2 13 15
13456 # Create a (secure) tmp directory for tmp files.
13459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13460 test -d "$tmp"
13461 } ||
13463 tmp=./conf$$-$RANDOM
13464 (umask 077 && mkdir "$tmp")
13465 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13466 ac_tmp=$tmp
13468 # Set up the scripts for CONFIG_FILES section.
13469 # No need to generate them if there are no CONFIG_FILES.
13470 # This happens for instance with `./config.status config.h'.
13471 if test -n "$CONFIG_FILES"; then
13474 ac_cr=`echo X | tr X '\015'`
13475 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13476 # But we know of no other shell where ac_cr would be empty at this
13477 # point, so we can use a bashism as a fallback.
13478 if test "x$ac_cr" = x; then
13479 eval ac_cr=\$\'\\r\'
13481 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13482 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13483 ac_cs_awk_cr='\\r'
13484 else
13485 ac_cs_awk_cr=$ac_cr
13488 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13489 _ACEOF
13493 echo "cat >conf$$subs.awk <<_ACEOF" &&
13494 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13495 echo "_ACEOF"
13496 } >conf$$subs.sh ||
13497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13498 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13499 ac_delim='%!_!# '
13500 for ac_last_try in false false false false false :; do
13501 . ./conf$$subs.sh ||
13502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13504 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13505 if test $ac_delim_n = $ac_delim_num; then
13506 break
13507 elif $ac_last_try; then
13508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13509 else
13510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13512 done
13513 rm -f conf$$subs.sh
13515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13516 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13517 _ACEOF
13518 sed -n '
13520 s/^/S["/; s/!.*/"]=/
13523 s/^[^!]*!//
13524 :repl
13525 t repl
13526 s/'"$ac_delim"'$//
13527 t delim
13530 s/\(.\{148\}\)..*/\1/
13531 t more1
13532 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13535 b repl
13536 :more1
13537 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13540 s/.\{148\}//
13541 t nl
13542 :delim
13544 s/\(.\{148\}\)..*/\1/
13545 t more2
13546 s/["\\]/\\&/g; s/^/"/; s/$/"/
13549 :more2
13550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13553 s/.\{148\}//
13554 t delim
13555 ' <conf$$subs.awk | sed '
13556 /^[^""]/{
13558 s/\n//
13560 ' >>$CONFIG_STATUS || ac_write_fail=1
13561 rm -f conf$$subs.awk
13562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13563 _ACAWK
13564 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13565 for (key in S) S_is_set[key] = 1
13566 FS = "\a"
13570 line = $ 0
13571 nfields = split(line, field, "@")
13572 substed = 0
13573 len = length(field[1])
13574 for (i = 2; i < nfields; i++) {
13575 key = field[i]
13576 keylen = length(key)
13577 if (S_is_set[key]) {
13578 value = S[key]
13579 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13580 len += length(value) + length(field[++i])
13581 substed = 1
13582 } else
13583 len += 1 + keylen
13586 print line
13589 _ACAWK
13590 _ACEOF
13591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13592 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13593 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13594 else
13596 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13597 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13598 _ACEOF
13600 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13601 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13602 # trailing colons and then remove the whole line if VPATH becomes empty
13603 # (actually we leave an empty line to preserve line numbers).
13604 if test "x$srcdir" = x.; then
13605 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13607 s///
13608 s/^/:/
13609 s/[ ]*$/:/
13610 s/:\$(srcdir):/:/g
13611 s/:\${srcdir}:/:/g
13612 s/:@srcdir@:/:/g
13613 s/^:*//
13614 s/:*$//
13616 s/\(=[ ]*\).*/\1/
13618 s/\n//
13619 s/^[^=]*=[ ]*$//
13623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13624 fi # test -n "$CONFIG_FILES"
13626 # Set up the scripts for CONFIG_HEADERS section.
13627 # No need to generate them if there are no CONFIG_HEADERS.
13628 # This happens for instance with `./config.status Makefile'.
13629 if test -n "$CONFIG_HEADERS"; then
13630 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13631 BEGIN {
13632 _ACEOF
13634 # Transform confdefs.h into an awk script `defines.awk', embedded as
13635 # here-document in config.status, that substitutes the proper values into
13636 # config.h.in to produce config.h.
13638 # Create a delimiter string that does not exist in confdefs.h, to ease
13639 # handling of long lines.
13640 ac_delim='%!_!# '
13641 for ac_last_try in false false :; do
13642 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13643 if test -z "$ac_tt"; then
13644 break
13645 elif $ac_last_try; then
13646 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13647 else
13648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13650 done
13652 # For the awk script, D is an array of macro values keyed by name,
13653 # likewise P contains macro parameters if any. Preserve backslash
13654 # newline sequences.
13656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13657 sed -n '
13658 s/.\{148\}/&'"$ac_delim"'/g
13659 t rset
13660 :rset
13661 s/^[ ]*#[ ]*define[ ][ ]*/ /
13662 t def
13664 :def
13665 s/\\$//
13666 t bsnl
13667 s/["\\]/\\&/g
13668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13669 D["\1"]=" \3"/p
13670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13672 :bsnl
13673 s/["\\]/\\&/g
13674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13675 D["\1"]=" \3\\\\\\n"\\/p
13676 t cont
13677 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13678 t cont
13680 :cont
13682 s/.\{148\}/&'"$ac_delim"'/g
13683 t clear
13684 :clear
13685 s/\\$//
13686 t bsnlc
13687 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13689 :bsnlc
13690 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13691 b cont
13692 ' <confdefs.h | sed '
13693 s/'"$ac_delim"'/"\\\
13694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 for (key in D) D_is_set[key] = 1
13698 FS = "\a"
13700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13701 line = \$ 0
13702 split(line, arg, " ")
13703 if (arg[1] == "#") {
13704 defundef = arg[2]
13705 mac1 = arg[3]
13706 } else {
13707 defundef = substr(arg[1], 2)
13708 mac1 = arg[2]
13710 split(mac1, mac2, "(") #)
13711 macro = mac2[1]
13712 prefix = substr(line, 1, index(line, defundef) - 1)
13713 if (D_is_set[macro]) {
13714 # Preserve the white space surrounding the "#".
13715 print prefix "define", macro P[macro] D[macro]
13716 next
13717 } else {
13718 # Replace #undef with comments. This is necessary, for example,
13719 # in the case of _POSIX_SOURCE, which is predefined and required
13720 # on some systems where configure will not decide to define it.
13721 if (defundef == "undef") {
13722 print "/*", prefix defundef, macro, "*/"
13723 next
13727 { print }
13728 _ACAWK
13729 _ACEOF
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13732 fi # test -n "$CONFIG_HEADERS"
13735 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13736 shift
13737 for ac_tag
13739 case $ac_tag in
13740 :[FHLC]) ac_mode=$ac_tag; continue;;
13741 esac
13742 case $ac_mode$ac_tag in
13743 :[FHL]*:*);;
13744 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13745 :[FH]-) ac_tag=-:-;;
13746 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13747 esac
13748 ac_save_IFS=$IFS
13749 IFS=:
13750 set x $ac_tag
13751 IFS=$ac_save_IFS
13752 shift
13753 ac_file=$1
13754 shift
13756 case $ac_mode in
13757 :L) ac_source=$1;;
13758 :[FH])
13759 ac_file_inputs=
13760 for ac_f
13762 case $ac_f in
13763 -) ac_f="$ac_tmp/stdin";;
13764 *) # Look for the file first in the build tree, then in the source tree
13765 # (if the path is not absolute). The absolute path cannot be DOS-style,
13766 # because $ac_f cannot contain `:'.
13767 test -f "$ac_f" ||
13768 case $ac_f in
13769 [\\/$]*) false;;
13770 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13771 esac ||
13772 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13773 esac
13774 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13775 as_fn_append ac_file_inputs " '$ac_f'"
13776 done
13778 # Let's still pretend it is `configure' which instantiates (i.e., don't
13779 # use $as_me), people would be surprised to read:
13780 # /* config.h. Generated by config.status. */
13781 configure_input='Generated from '`
13782 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13783 `' by configure.'
13784 if test x"$ac_file" != x-; then
13785 configure_input="$ac_file. $configure_input"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13787 $as_echo "$as_me: creating $ac_file" >&6;}
13789 # Neutralize special characters interpreted by sed in replacement strings.
13790 case $configure_input in #(
13791 *\&* | *\|* | *\\* )
13792 ac_sed_conf_input=`$as_echo "$configure_input" |
13793 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13794 *) ac_sed_conf_input=$configure_input;;
13795 esac
13797 case $ac_tag in
13798 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13800 esac
13802 esac
13804 ac_dir=`$as_dirname -- "$ac_file" ||
13805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13806 X"$ac_file" : 'X\(//\)[^/]' \| \
13807 X"$ac_file" : 'X\(//\)$' \| \
13808 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13809 $as_echo X"$ac_file" |
13810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13811 s//\1/
13814 /^X\(\/\/\)[^/].*/{
13815 s//\1/
13818 /^X\(\/\/\)$/{
13819 s//\1/
13822 /^X\(\/\).*/{
13823 s//\1/
13826 s/.*/./; q'`
13827 as_dir="$ac_dir"; as_fn_mkdir_p
13828 ac_builddir=.
13830 case "$ac_dir" in
13831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13833 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13834 # A ".." for each directory in $ac_dir_suffix.
13835 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13836 case $ac_top_builddir_sub in
13837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13839 esac ;;
13840 esac
13841 ac_abs_top_builddir=$ac_pwd
13842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13843 # for backward compatibility:
13844 ac_top_builddir=$ac_top_build_prefix
13846 case $srcdir in
13847 .) # We are building in place.
13848 ac_srcdir=.
13849 ac_top_srcdir=$ac_top_builddir_sub
13850 ac_abs_top_srcdir=$ac_pwd ;;
13851 [\\/]* | ?:[\\/]* ) # Absolute name.
13852 ac_srcdir=$srcdir$ac_dir_suffix;
13853 ac_top_srcdir=$srcdir
13854 ac_abs_top_srcdir=$srcdir ;;
13855 *) # Relative name.
13856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13857 ac_top_srcdir=$ac_top_build_prefix$srcdir
13858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13859 esac
13860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13863 case $ac_mode in
13866 # CONFIG_FILE
13869 _ACEOF
13871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13872 # If the template does not know about datarootdir, expand it.
13873 # FIXME: This hack should be removed a few years after 2.60.
13874 ac_datarootdir_hack=; ac_datarootdir_seen=
13875 ac_sed_dataroot='
13876 /datarootdir/ {
13880 /@datadir@/p
13881 /@docdir@/p
13882 /@infodir@/p
13883 /@localedir@/p
13884 /@mandir@/p'
13885 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13886 *datarootdir*) ac_datarootdir_seen=yes;;
13887 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13889 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13890 _ACEOF
13891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13892 ac_datarootdir_hack='
13893 s&@datadir@&$datadir&g
13894 s&@docdir@&$docdir&g
13895 s&@infodir@&$infodir&g
13896 s&@localedir@&$localedir&g
13897 s&@mandir@&$mandir&g
13898 s&\\\${datarootdir}&$datarootdir&g' ;;
13899 esac
13900 _ACEOF
13902 # Neutralize VPATH when `$srcdir' = `.'.
13903 # Shell code in configure.ac might set extrasub.
13904 # FIXME: do we really want to maintain this feature?
13905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13906 ac_sed_extra="$ac_vpsub
13907 $extrasub
13908 _ACEOF
13909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13912 s|@configure_input@|$ac_sed_conf_input|;t t
13913 s&@top_builddir@&$ac_top_builddir_sub&;t t
13914 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13915 s&@srcdir@&$ac_srcdir&;t t
13916 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13917 s&@top_srcdir@&$ac_top_srcdir&;t t
13918 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13919 s&@builddir@&$ac_builddir&;t t
13920 s&@abs_builddir@&$ac_abs_builddir&;t t
13921 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13922 $ac_datarootdir_hack
13924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13925 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13928 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13930 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13932 which seems to be undefined. Please make sure it is defined" >&5
13933 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13934 which seems to be undefined. Please make sure it is defined" >&2;}
13936 rm -f "$ac_tmp/stdin"
13937 case $ac_file in
13938 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13939 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13940 esac \
13941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13945 # CONFIG_HEADER
13947 if test x"$ac_file" != x-; then
13949 $as_echo "/* $configure_input */" \
13950 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13951 } >"$ac_tmp/config.h" \
13952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13953 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13955 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13956 else
13957 rm -f "$ac_file"
13958 mv "$ac_tmp/config.h" "$ac_file" \
13959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13961 else
13962 $as_echo "/* $configure_input */" \
13963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13964 || as_fn_error $? "could not create -" "$LINENO" 5
13968 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13969 $as_echo "$as_me: executing $ac_file commands" >&6;}
13971 esac
13974 case $ac_file$ac_mode in
13975 "compiler_executable":C)
13976 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13977 mkdir -p $prefix
13978 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13979 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13981 echo ${prefix2}
13982 echo ${prefix3}
13983 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13985 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13986 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13987 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13988 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13989 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13990 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13991 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13993 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13995 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13997 esac
13998 done # for ac_tag
14001 as_fn_exit 0
14002 _ACEOF
14003 ac_clean_files=$ac_clean_files_save
14005 test $ac_write_fail = 0 ||
14006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14009 # configure is writing to config.log, and then calls config.status.
14010 # config.status does its own redirection, appending to config.log.
14011 # Unfortunately, on DOS this fails, as config.log is still kept open
14012 # by configure, so config.status won't be able to write to it; its
14013 # output is simply discarded. So we exec the FD to /dev/null,
14014 # effectively closing config.log, so it can be properly (re)opened and
14015 # appended to by config.status. When coming back to configure, we
14016 # need to make the FD available again.
14017 if test "$no_create" != yes; then
14018 ac_cs_success=:
14019 ac_config_status_args=
14020 test "$silent" = yes &&
14021 ac_config_status_args="$ac_config_status_args --quiet"
14022 exec 5>/dev/null
14023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14024 exec 5>>config.log
14025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14026 # would make configure fail if this is the last instruction.
14027 $ac_cs_success || as_fn_exit 1
14029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14036 #XXX compatability...
14037 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14039 if test -n "$aros_shared_cflags" ; then
14040 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14041 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg