Tabs to spaces.
[AROS.git] / configure
blob53f72106a65d09a8fbec346847d42c97634edb8d
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 crosstools_cxx_target
639 crosstools_target
640 aros_target_strip_flags
641 aros_target_genmap
642 aros_debug_ldflags
643 aros_debug_aflags
644 aros_debug_cflags
645 aros_target_cflags
646 aros_kernel_ldflags
647 aros_kernel_objcflags
648 aros_kernel_includes
649 aros_kernel_cflags
650 aros_shared_ldflags
651 aros_shared_aflags
652 aros_shared_cflags
653 aros_config_ldflags
654 aros_config_aflags
655 aros_config_cflags
656 aros_arch_libs
657 aros_compiler_libs
658 aros_object_format
659 aros_shared_ld
660 aros_shared_default
661 aros_target_nm
662 aros_target_strip
663 aros_target_objcopy
664 aros_target_objdump
665 aros_target_cc_path
666 aros_target_cc_includes
667 orig_target_ld
668 aros_target_as
669 aros_kernel_cc
670 orig_target_cc
671 aros_plain_ar
672 aros_plain_nm
673 aros_target_ranlib
674 aros_target_ar
675 aros_target_incl
676 aros_target_suffix
677 aros_target_variant
678 aros_target_cpu
679 aros_target_family
680 aros_target_arch
681 aros_target_bootloader
682 aros_target_iconset
683 aros_target_guitheme
684 aros_tools_dir
685 aros_host_lib_suffix
686 aros_host_exe_suffix
687 aros_host_mkargs
688 aros_host_mkdep
689 aros_host_debug
690 aros_host_ldflags
691 gnu89_inline
692 aros_host_cflags
693 aros_host_make
694 aros_host_cc
695 aros_host_cpu
696 aros_host_arch
697 aros_cc_pre
698 aros_amigaos_compliance
699 AROS_PORTSSRCDIR
700 AROS_CROSSTOOLSDIR
701 SRCDIR
702 AROS_BUILDDIR_UNIX
703 AROS_BUILDDIR
704 aros_flavour_uc
705 aros_flavour
706 aros_cpu
707 aros_arch
708 SDL_LIBS
709 SDL_CFLAGS
710 SDL_CONFIG
711 XMKMF
712 aros_cflags_iquote_end
713 aros_cflags_iquote
714 kernel_cflags_iquote_end
715 kernel_cflags_iquote
716 host_cflags_iquote_end
717 host_cflags_iquote
718 aros_target_nostdlib_ldflags
719 aros_target_detach_ldflags
720 aros_target_nix_ldflags
721 aros_target_nostartup_ldflags
722 aros_target_nostdinc_cflags
723 aros_target_ld
724 aros_target_cc
725 aros_target_cxx
726 aros_target_strip_ln
727 aros_target_ranlib_ln
728 aros_target_objdump_ln
729 aros_target_objcopy_ln
730 aros_target_nm_ln
731 aros_target_ar_ln
732 aros_target_as_ln
733 aros_kernel_ranlib
734 aros_kernel_ar
735 aros_kernel_ld
736 aros_kernel_rescomp
738 android_tool
739 CCACHE
740 DISTCC
741 LIBOBJS
742 EGREP
743 GREP
745 TEST
748 pkgpyexecdir
749 pyexecdir
750 pkgpythondir
751 pythondir
752 PYTHON_PLATFORM
753 PYTHON_EXEC_PREFIX
754 PYTHON_PREFIX
755 PYTHON_VERSION
756 PYTHON
757 PATCH
758 CHMOD
760 PPMTOILBM
761 PNGTOPNM
762 FLEX
763 BISON
766 UNIQ
767 SORT
768 TOUCH
769 MKDIR
770 ECHO
774 aros_host_strip
775 aros_host_ranlib
776 aros_host_ar
777 aros_host_automake
778 aros_host_autoheader
779 aros_host_autoconf
780 aros_host_aclocal
781 aros_host_ld
782 MMAKE
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 target_alias
801 host_alias
802 build_alias
803 LIBS
804 ECHO_T
805 ECHO_N
806 ECHO_C
807 DEFS
808 mandir
809 localedir
810 libdir
811 psdir
812 pdfdir
813 dvidir
814 htmldir
815 infodir
816 docdir
817 oldincludedir
818 includedir
819 localstatedir
820 sharedstatedir
821 sysconfdir
822 datadir
823 datarootdir
824 libexecdir
825 sbindir
826 bindir
827 program_transform_name
828 prefix
829 exec_prefix
830 PACKAGE_URL
831 PACKAGE_BUGREPORT
832 PACKAGE_STRING
833 PACKAGE_VERSION
834 PACKAGE_TARNAME
835 PACKAGE_NAME
836 PATH_SEPARATOR
837 SHELL'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_build_type
842 enable_debug
843 enable_crosstools
844 enable_distcc
845 enable_ccache
846 with_gcc_version
847 with_optimization
848 with_paranoia
849 enable_target_variant
850 with_xcode
851 with_sdk_version
852 with_sdk
853 with_ndk
854 with_ndk_version
855 enable_amigaos_compliance
856 with_cpu
857 with_fpu
858 with_float
859 with_crosstools
860 with_aros_gcc
861 with_portssources
862 with_bootloader
863 with_iconset
864 with_theme
865 enable_includes
866 with_resolution
867 with_serial_debug
868 enable_palm_debug_hack
869 enable_usb30_code
870 enable_nesting_supervisor
871 enable_mmu
872 enable_x11_hidd
873 with_x
874 enable_x11_shm
875 enable_x11_vidmode
876 enable_sdl_hidd
877 with_sdl_prefix
878 with_sdl_exec_prefix
879 enable_sdltest
880 enable_dbus
882 ac_precious_vars='build_alias
883 host_alias
884 target_alias
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
891 XMKMF'
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
942 ac_prev=
943 ac_dashdash=
944 for ac_option
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
963 ac_dashdash=yes ;;
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
982 --config-cache | -C)
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299 esac
1300 done
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used" >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error $? "pwd does not report name of working directory"
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1386 /^X\(\/\/\)$/{
1387 s//\1/
1390 /^X\(\/\).*/{
1391 s//\1/
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1399 else
1400 ac_srcdir_defaulted=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 X features:
1492 --x-includes=DIR X include files are in DIR
1493 --x-libraries=DIR X library files are in DIR
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1503 cat <<\_ACEOF
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-build-type=TYPE
1510 Select the build type. Available types are:
1511 personal, nightly, snapshot, milestone, release. Do
1512 NOT use this option unless you know what you are
1513 doing! (default=personal)
1514 --enable-debug=list Enable different types of debug. Commas or
1515 whitespaces can be used to separate the items in the
1516 list. Available types of debug are: all, none,
1517 messages, stack, mungwall, modules, symbols. If no
1518 list is provided then "all" is assumed.
1519 (default=none)
1520 --enable-crosstools Build cross-compiler toolchains if necessary
1521 (default=no).
1522 --enable-distcc Use distcc as a front end to the compiler
1523 (default=no).
1524 --enable-ccache Use ccache as a front end to the compiler
1525 (default=no).
1526 --enable-target-variant=NAME
1527 Enable a specific target variant(default=none)
1528 --enable-amigaos-compliance=VERSION
1529 Enforce userspace AmigaOS compliance to a specific
1530 KickStart version (default=none).
1531 --enable-includes=dir Alternative system include directory
1532 --enable-palm-debug-hack
1533 Enable palm debug output hack in palm native
1534 (default=no)
1535 --enable-usb30-code Enable usb3.0 code (default=no)
1536 --enable-nesting-supervisor
1537 Enable nesting supervisor support in unix
1538 (default=no)
1539 --disable-mmu Disable MMU support (default=enabled)
1540 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1541 --enable-x11-shm use X11 shared memory (default=auto)
1542 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1543 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1544 --disable-sdltest Do not try to compile and run a test SDL program
1545 --enable-dbus Enable DBUS support via dbus.library (default=no)
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-gcc-version=VERSION
1551 Use host gcc-VERSION for building AROS
1552 --with-optimization=FLAGS
1553 Use optimization flags FLAGS (default=-O2).
1554 --with-paranoia=FLAGS CC flags to enable paranoia
1555 --with-xcode=PATH Specify XCode path for iOS targets
1556 (default=/Developer).
1557 --with-sdk-version=VERSION
1558 Use iOS SDK version VERSION (default=4.1).
1559 --with-sdk=PATH Specify Android SDK path
1560 (default=$default_android_sdk).
1561 --with-ndk=PATH Specify Android NDK path (default=none).
1562 --with-sdk-version=LEVEL
1563 Use Android SDK for API LEVEL (default=12).
1564 --with-ndk-version=LEVEL
1565 Use Android NDK for API LEVEL (default=9).
1566 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1567 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1568 --with-float=<spec> Specify floating point ABI
1569 (default=$gcc_default_float_abi).
1570 --with-crosstools=DIR Where to install or search for cross tools binaries
1571 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1572 --with-portssources=DIR Where to download sourcecode for external ports
1573 --with-bootloader=NAME Use a specific bootloader
1574 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1575 --with-theme=NAME Use a specific GUI Theme
1576 --with-resolution=XRESxYRESxDEPTH
1577 Default resolution of the initial WorkbenchScreen
1578 --with-serial-debug Enable serial debug output in native (default=no)
1579 --with-x use the X Window System
1580 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1581 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to the package provider.
1598 _ACEOF
1599 ac_status=$?
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
1608 ac_builddir=.
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1626 case $srcdir in
1627 .) # We are building in place.
1628 ac_srcdir=.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1650 else
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1654 done
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659 cat <<\_ACEOF
1660 configure
1661 generated by GNU Autoconf 2.68
1663 Copyright (C) 2010 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1674 # ac_fn_c_try_compile LINENO
1675 # --------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_compile ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=1
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1710 } # ac_fn_c_try_compile
1712 # ac_fn_c_try_cpp LINENO
1713 # ----------------------
1714 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_cpp ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } > conftest.i && {
1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_cpp
1749 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1752 # the include files in INCLUDES and setting the cache variable VAR
1753 # accordingly.
1754 ac_fn_c_check_header_mongrel ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if eval \${$3+:} false; then :
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 else
1767 # Is the header compilable?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1769 $as_echo_n "checking $2 usability... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 ac_header_compiler=yes
1777 else
1778 ac_header_compiler=no
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1782 $as_echo "$ac_header_compiler" >&6; }
1784 # Is the header present?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1786 $as_echo_n "checking $2 presence... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_cpp "$LINENO"; then :
1792 ac_header_preproc=yes
1793 else
1794 ac_header_preproc=no
1796 rm -f conftest.err conftest.i conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1798 $as_echo "$ac_header_preproc" >&6; }
1800 # So? What about this header?
1801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1802 yes:no: )
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1804 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 no:yes:* )
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1810 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1812 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1814 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1816 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 esac
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 eval "$3=\$ac_header_compiler"
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_header_mongrel
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1840 ac_fn_c_try_run ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1851 ac_status=$?
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: program exited with status $ac_status" >&5
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=$ac_status
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_run
1878 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1879 # -------------------------------------------------------
1880 # Tests whether HEADER exists and can be compiled using the include files in
1881 # INCLUDES, setting the cache variable VAR accordingly.
1882 ac_fn_c_check_header_compile ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1893 #include <$2>
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 } # ac_fn_c_check_header_compile
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 $as_test_x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956 # ----------------------------------------------------
1957 # Tries to find if the field MEMBER exists in type AGGR, after including
1958 # INCLUDES, setting cache variable VAR accordingly.
1959 ac_fn_c_check_member ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963 $as_echo_n "checking for $2.$3... " >&6; }
1964 if eval \${$4+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static $2 ac_aggr;
1974 if (ac_aggr.$3)
1975 return 0;
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static $2 ac_aggr;
1990 if (sizeof ac_aggr.$3)
1991 return 0;
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 eval "$4=yes"
1998 else
1999 eval "$4=no"
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 eval ac_res=\$$4
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_member
2012 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2013 # ---------------------------------------------
2014 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2015 # accordingly.
2016 ac_fn_c_check_decl ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 as_decl_name=`echo $2|sed 's/ *(.*//'`
2020 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2022 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 #ifndef $as_decl_name
2033 #ifdef __cplusplus
2034 (void) $as_decl_use;
2035 #else
2036 (void) $as_decl_name;
2037 #endif
2038 #endif
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_decl
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_type
2112 # ac_fn_c_check_func LINENO FUNC VAR
2113 # ----------------------------------
2114 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2115 ac_fn_c_check_func ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2127 #define $2 innocuous_$2
2129 /* System header to define __stub macros and hopefully few prototypes,
2130 which can conflict with char $2 (); below.
2131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2132 <limits.h> exists even on freestanding compilers. */
2134 #ifdef __STDC__
2135 # include <limits.h>
2136 #else
2137 # include <assert.h>
2138 #endif
2140 #undef $2
2142 /* Override any GCC internal prototype to avoid an error.
2143 Use char because int might match the return type of a GCC
2144 builtin and then its argument prototype would still apply. */
2145 #ifdef __cplusplus
2146 extern "C"
2147 #endif
2148 char $2 ();
2149 /* The GNU C library defines this for functions which it implements
2150 to always fail with ENOSYS. Some functions are actually named
2151 something starting with __ and the normal name is an alias. */
2152 #if defined __stub_$2 || defined __stub___$2
2153 choke me
2154 #endif
2157 main ()
2159 return $2 ();
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_link "$LINENO"; then :
2165 eval "$3=yes"
2166 else
2167 eval "$3=no"
2169 rm -f core conftest.err conftest.$ac_objext \
2170 conftest$ac_exeext conftest.$ac_ext
2172 eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_func
2178 cat >config.log <<_ACEOF
2179 This file contains any messages produced by compilers while
2180 running configure, to aid debugging if configure makes a mistake.
2182 It was created by $as_me, which was
2183 generated by GNU Autoconf 2.68. Invocation command line was
2185 $ $0 $@
2187 _ACEOF
2188 exec 5>>config.log
2190 cat <<_ASUNAME
2191 ## --------- ##
2192 ## Platform. ##
2193 ## --------- ##
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212 _ASUNAME
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 $as_echo "PATH: $as_dir"
2220 done
2221 IFS=$as_save_IFS
2223 } >&5
2225 cat >&5 <<_ACEOF
2228 ## ----------- ##
2229 ## Core tests. ##
2230 ## ----------- ##
2232 _ACEOF
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2240 ac_configure_args=
2241 ac_configure_args0=
2242 ac_configure_args1=
2243 ac_must_keep_next=false
2244 for ac_pass in 1 2
2246 for ac_arg
2248 case $ac_arg in
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2252 continue ;;
2253 *\'*)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 esac
2256 case $ac_pass in
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 as_fn_append ac_configure_args1 " '$ac_arg'"
2260 if test $ac_must_keep_next = true; then
2261 ac_must_keep_next=false # Got value, back to normal.
2262 else
2263 case $ac_arg in
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 esac
2272 -* ) ac_must_keep_next=true ;;
2273 esac
2275 as_fn_append ac_configure_args " '$ac_arg'"
2277 esac
2278 done
2279 done
2280 { ac_configure_args0=; unset ac_configure_args0;}
2281 { ac_configure_args1=; unset ac_configure_args1;}
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log. We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2291 echo
2293 $as_echo "## ---------------- ##
2294 ## Cache variables. ##
2295 ## ---------------- ##"
2296 echo
2297 # The following way of writing the cache mishandles newlines in values,
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in #(
2302 *${as_nl}*)
2303 case $ac_var in #(
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 esac
2307 case $ac_var in #(
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2311 esac ;;
2312 esac
2313 done
2314 (set) 2>&1 |
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2317 sed -n \
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 ;; #(
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 esac |
2325 sort
2327 echo
2329 $as_echo "## ----------------- ##
2330 ## Output variables. ##
2331 ## ----------------- ##"
2332 echo
2333 for ac_var in $ac_subst_vars
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2343 if test -n "$ac_subst_files"; then
2344 $as_echo "## ------------------- ##
2345 ## File substitutions. ##
2346 ## ------------------- ##"
2347 echo
2348 for ac_var in $ac_subst_files
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2359 if test -s confdefs.h; then
2360 $as_echo "## ----------- ##
2361 ## confdefs.h. ##
2362 ## ----------- ##"
2363 echo
2364 cat confdefs.h
2365 echo
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2370 } >&5
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 exit $exit_status
2375 for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 done
2378 ac_signal=0
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2383 $as_echo "/* confdefs.h */" > confdefs.h
2385 # Predefined preprocessor variables.
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2389 _ACEOF
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2397 _ACEOF
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2401 _ACEOF
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405 _ACEOF
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2409 _ACEOF
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2414 ac_site_file1=NONE
2415 ac_site_file2=NONE
2416 if test -n "$CONFIG_SITE"; then
2417 # We do not want a PATH search for config.site.
2418 case $CONFIG_SITE in #((
2419 -*) ac_site_file1=./$CONFIG_SITE;;
2420 */*) ac_site_file1=$CONFIG_SITE;;
2421 *) ac_site_file1=./$CONFIG_SITE;;
2422 esac
2423 elif test "x$prefix" != xNONE; then
2424 ac_site_file1=$prefix/share/config.site
2425 ac_site_file2=$prefix/etc/config.site
2426 else
2427 ac_site_file1=$ac_default_prefix/share/config.site
2428 ac_site_file2=$ac_default_prefix/etc/config.site
2430 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 test "x$ac_site_file" = xNONE && continue
2433 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436 sed 's/^/| /' "$ac_site_file" >&5
2437 . "$ac_site_file" \
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error $? "failed to load site script $ac_site_file
2441 See \`config.log' for more details" "$LINENO" 5 ; }
2443 done
2445 if test -r "$cache_file"; then
2446 # Some versions of bash will fail to source /dev/null (special files
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450 $as_echo "$as_me: loading cache $cache_file" >&6;}
2451 case $cache_file in
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
2454 esac
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458 $as_echo "$as_me: creating cache $cache_file" >&6;}
2459 >$cache_file
2462 as_fn_append ac_header_list " stdlib.h"
2463 as_fn_append ac_header_list " unistd.h"
2464 as_fn_append ac_header_list " sys/param.h"
2465 # Check that the precious variables saved in the cache have kept the same
2466 # value.
2467 ac_cache_corrupted=false
2468 for ac_var in $ac_precious_vars; do
2469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470 eval ac_new_set=\$ac_env_${ac_var}_set
2471 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472 eval ac_new_val=\$ac_env_${ac_var}_value
2473 case $ac_old_set,$ac_new_set in
2474 set,)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,set)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,);;
2484 if test "x$ac_old_val" != "x$ac_new_val"; then
2485 # differences in whitespace do not lead to failure.
2486 ac_old_val_w=`echo x $ac_old_val`
2487 ac_new_val_w=`echo x $ac_new_val`
2488 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491 ac_cache_corrupted=:
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495 eval $ac_var=\$ac_old_val
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2498 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2500 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 fi;;
2502 esac
2503 # Pass precious variables to config.status.
2504 if test "$ac_new_set" = set; then
2505 case $ac_new_val in
2506 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507 *) ac_arg=$ac_var=$ac_new_val ;;
2508 esac
2509 case " $ac_configure_args " in
2510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2511 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512 esac
2514 done
2515 if $ac_cache_corrupted; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 ac_aux_dir=
2535 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2549 done
2550 if test -z "$ac_aux_dir"; then
2551 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564 # Check what host we are running on.
2565 # If a target is not suggested, we use this one.
2566 # Note that what we call a target, Autoconf calls a host.
2567 # Make sure we can run config.sub.
2568 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2569 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2572 $as_echo_n "checking build system type... " >&6; }
2573 if ${ac_cv_build+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 ac_build_alias=$build_alias
2577 test "x$ac_build_alias" = x &&
2578 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2579 test "x$ac_build_alias" = x &&
2580 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2581 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2582 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2586 $as_echo "$ac_cv_build" >&6; }
2587 case $ac_cv_build in
2588 *-*-*) ;;
2589 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2590 esac
2591 build=$ac_cv_build
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_build
2594 shift
2595 build_cpu=$1
2596 build_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 build_os=$*
2601 IFS=$ac_save_IFS
2602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2606 $as_echo_n "checking host system type... " >&6; }
2607 if ${ac_cv_host+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test "x$host_alias" = x; then
2611 ac_cv_host=$ac_cv_build
2612 else
2613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2614 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2619 $as_echo "$ac_cv_host" >&6; }
2620 case $ac_cv_host in
2621 *-*-*) ;;
2622 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2623 esac
2624 host=$ac_cv_host
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_host
2627 shift
2628 host_cpu=$1
2629 host_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 host_os=$*
2634 IFS=$ac_save_IFS
2635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2639 # The AROS target is slightly different to the normal GNU style
2640 # format. We don't have the middle part, and we reverse the order
2641 # of the $(CPU) and $(OS) bits.
2643 # Don't strip the version of the target yet, it might be
2644 # useful on some systems.
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2647 $as_echo_n "checking for AROS style target... " >&6; }
2649 if test "$target" = "NONE" ; then
2650 target=$host_os-$host_cpu
2651 else
2652 if test "$target" = "" ; then
2653 target=$host_os-$host_cpu
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2657 $as_echo "$target" >&6; }
2659 if test "$host_os" = "mingw32" ; then
2660 PWDCMD="pwd -W"
2663 #don't know where else to put this...
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2665 $as_echo_n "checking building AROS in... " >&6; }
2666 AROS_BUILDDIR=`${PWDCMD-pwd}`
2667 AROS_BUILDDIR_UNIX=${PWD}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2669 $as_echo "$AROS_BUILDDIR" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2672 $as_echo_n "checking AROS source in... " >&6; }
2673 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2674 SRCDIR=${srcpwd}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2676 $as_echo "$SRCDIR" >&6; }
2678 # Parse the target field into something useful.
2680 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2684 aros_default_wbwidth=800
2685 aros_default_wbheight=600
2686 aros_default_wbdepth=4
2689 # The first step is to find the host binaries.
2690 # Check for a compiler.
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2735 if test -z "$ac_cv_prog_CC"; then
2736 ac_ct_CC=$CC
2737 # Extract the first word of "gcc", so it can be a program name with args.
2738 set dummy gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_ac_ct_CC="gcc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2767 $as_echo "$ac_ct_CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2773 if test "x$ac_ct_CC" = x; then
2774 CC=""
2775 else
2776 case $cross_compiling:$ac_tool_warned in
2777 yes:)
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2780 ac_tool_warned=yes ;;
2781 esac
2782 CC=$ac_ct_CC
2784 else
2785 CC="$ac_cv_prog_CC"
2788 if test -z "$CC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}cc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CC="${ac_tool_prefix}cc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2829 if test -z "$CC"; then
2830 # Extract the first word of "cc", so it can be a program name with args.
2831 set dummy cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 ac_prog_rejected=no
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849 ac_prog_rejected=yes
2850 continue
2852 ac_cv_prog_CC="cc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2858 IFS=$as_save_IFS
2860 if test $ac_prog_rejected = yes; then
2861 # We found a bogon in the path, so make sure we never use it.
2862 set dummy $ac_cv_prog_CC
2863 shift
2864 if test $# != 0; then
2865 # We chose a different compiler from the bogus one.
2866 # However, it has the same basename, so the bogon will be chosen
2867 # first if we set CC to just the basename; use the full file name.
2868 shift
2869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 for ac_prog in cl.exe
2889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2912 IFS=$as_save_IFS
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2926 test -n "$CC" && break
2927 done
2929 if test -z "$CC"; then
2930 ac_ct_CC=$CC
2931 for ac_prog in cl.exe
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_ac_ct_CC="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2970 test -n "$ac_ct_CC" && break
2971 done
2973 if test "x$ac_ct_CC" = x; then
2974 CC=""
2975 else
2976 case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 CC=$ac_ct_CC
2989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "no acceptable C compiler found in \$PATH
2992 See \`config.log' for more details" "$LINENO" 5 ; }
2994 # Provide some information about the compiler.
2995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2996 set X $ac_compile
2997 ac_compiler=$2
2998 for ac_option in --version -v -V -qversion; do
2999 { { ac_try="$ac_compiler $ac_option >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3007 ac_status=$?
3008 if test -s conftest.err; then
3009 sed '10a\
3010 ... rest of stderr output deleted ...
3011 10q' conftest.err >conftest.er1
3012 cat conftest.er1 >&5
3014 rm -f conftest.er1 conftest.err
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }
3017 done
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3023 main ()
3027 return 0;
3029 _ACEOF
3030 ac_clean_files_save=$ac_clean_files
3031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032 # Try to create an executable without -o first, disregard a.out.
3033 # It will help us diagnose broken compilers, and finding out an intuition
3034 # of exeext.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3036 $as_echo_n "checking whether the C compiler works... " >&6; }
3037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3039 # The possible output files:
3040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3042 ac_rmfiles=
3043 for ac_file in $ac_files
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048 esac
3049 done
3050 rm -f $ac_rmfiles
3052 if { { ac_try="$ac_link_default"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link_default") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3066 # so that the user can short-circuit this test for compilers unknown to
3067 # Autoconf.
3068 for ac_file in $ac_files ''
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080 then :; else
3081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083 # We set ac_cv_exeext here because the later test for it is not
3084 # safe: cross compilers may not add the suffix if given an `-o'
3085 # argument, so we may need to know it at that point already.
3086 # Even if this section looks crufty: it has the advantage of
3087 # actually working.
3088 break;;
3090 break;;
3091 esac
3092 done
3093 test "$ac_cv_exeext" = no && ac_cv_exeext=
3095 else
3096 ac_file=''
3098 if test -z "$ac_file"; then :
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error 77 "C compiler cannot create executables
3107 See \`config.log' for more details" "$LINENO" 5 ; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113 $as_echo_n "checking for C compiler default output file name... " >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3115 $as_echo "$ac_file" >&6; }
3116 ac_exeext=$ac_cv_exeext
3118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3121 $as_echo_n "checking for suffix of executables... " >&6; }
3122 if { { ac_try="$ac_link"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_link") 2>&5
3130 ac_status=$?
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
3133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135 # work properly (i.e., refer to `conftest.exe'), while it won't with
3136 # `rm'.
3137 for ac_file in conftest.exe conftest conftest.*; do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 break;;
3143 * ) break;;
3144 esac
3145 done
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3150 See \`config.log' for more details" "$LINENO" 5 ; }
3152 rm -f conftest conftest$ac_cv_exeext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3154 $as_echo "$ac_cv_exeext" >&6; }
3156 rm -f conftest.$ac_ext
3157 EXEEXT=$ac_cv_exeext
3158 ac_exeext=$EXEEXT
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #include <stdio.h>
3163 main ()
3165 FILE *f = fopen ("conftest.out", "w");
3166 return ferror (f) || fclose (f) != 0;
3169 return 0;
3171 _ACEOF
3172 ac_clean_files="$ac_clean_files conftest.out"
3173 # Check that the compiler produces executables we can run. If not, either
3174 # the compiler is broken, or we cross compile.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3176 $as_echo_n "checking whether we are cross compiling... " >&6; }
3177 if test "$cross_compiling" != yes; then
3178 { { ac_try="$ac_link"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 if { ac_try='./conftest$ac_cv_exeext'
3190 { { case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error $? "cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details" "$LINENO" 5 ; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3214 $as_echo "$cross_compiling" >&6; }
3216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3217 ac_clean_files=$ac_clean_files_save
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3219 $as_echo_n "checking for suffix of object files... " >&6; }
3220 if ${ac_cv_objext+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3227 main ()
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.o conftest.obj
3235 if { { ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compile") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 for ac_file in conftest.o conftest.obj conftest.*; do
3247 test -f "$ac_file" || continue;
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 break;;
3252 esac
3253 done
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details" "$LINENO" 5 ; }
3263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266 $as_echo "$ac_cv_objext" >&6; }
3267 OBJEXT=$ac_cv_objext
3268 ac_objext=$OBJEXT
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3271 if ${ac_cv_c_compiler_gnu+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3280 #ifndef __GNUC__
3281 choke me
3282 #endif
3285 return 0;
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_compiler_gnu=yes
3290 else
3291 ac_compiler_gnu=no
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3299 if test $ac_compiler_gnu = yes; then
3300 GCC=yes
3301 else
3302 GCC=
3304 ac_test_CFLAGS=${CFLAGS+set}
3305 ac_save_CFLAGS=$CFLAGS
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3308 if ${ac_cv_prog_cc_g+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_save_c_werror_flag=$ac_c_werror_flag
3312 ac_c_werror_flag=yes
3313 ac_cv_prog_cc_g=no
3314 CFLAGS="-g"
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3319 main ()
3323 return 0;
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_g=yes
3328 else
3329 CFLAGS=""
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3334 main ()
3338 return 0;
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3343 else
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345 CFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_g=yes
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3368 $as_echo "$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3377 else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3386 if ${ac_cv_prog_cc_c89+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 ac_cv_prog_cc_c89=no
3390 ac_save_CC=$CC
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393 #include <stdarg.h>
3394 #include <stdio.h>
3395 #include <sys/types.h>
3396 #include <sys/stat.h>
3397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3398 struct buf { int x; };
3399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400 static char *e (p, i)
3401 char **p;
3402 int i;
3404 return p[i];
3406 static char *f (char * (*g) (char **, int), char **p, ...)
3408 char *s;
3409 va_list v;
3410 va_start (v,p);
3411 s = g (p, va_arg (v,int));
3412 va_end (v);
3413 return s;
3416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3417 function prototypes and stuff, but not '\xHH' hex character constants.
3418 These don't provoke an error unfortunately, instead are silently treated
3419 as 'x'. The following induces an error, until -std is added to get
3420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3421 array size at least. It's necessary to write '\x00'==0 to get something
3422 that's true only with -std. */
3423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3426 inside strings and character constants. */
3427 #define FOO(x) 'x'
3428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430 int test (int i, double x);
3431 struct s1 {int (*f) (int a);};
3432 struct s2 {int (*f) (double a);};
3433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 int argc;
3435 char **argv;
3437 main ()
3439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 return 0;
3443 _ACEOF
3444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447 CC="$ac_save_CC $ac_arg"
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_c89=$ac_arg
3451 rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
3453 done
3454 rm -f conftest.$ac_ext
3455 CC=$ac_save_CC
3458 # AC_CACHE_VAL
3459 case "x$ac_cv_prog_cc_c89" in
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3462 $as_echo "none needed" >&6; } ;;
3463 xno)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3465 $as_echo "unsupported" >&6; } ;;
3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3470 esac
3471 if test "x$ac_cv_prog_cc_c89" != xno; then :
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 case $ac_cv_prog_cc_stdc in #(
3482 no) :
3483 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3484 *) :
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3486 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3487 if ${ac_cv_prog_cc_c99+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 ac_cv_prog_cc_c99=no
3491 ac_save_CC=$CC
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494 #include <stdarg.h>
3495 #include <stdbool.h>
3496 #include <stdlib.h>
3497 #include <wchar.h>
3498 #include <stdio.h>
3500 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3501 #define debug(...) fprintf (stderr, __VA_ARGS__)
3502 #define showlist(...) puts (#__VA_ARGS__)
3503 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3504 static void
3505 test_varargs_macros (void)
3507 int x = 1234;
3508 int y = 5678;
3509 debug ("Flag");
3510 debug ("X = %d\n", x);
3511 showlist (The first, second, and third items.);
3512 report (x>y, "x is %d but y is %d", x, y);
3515 // Check long long types.
3516 #define BIG64 18446744073709551615ull
3517 #define BIG32 4294967295ul
3518 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3519 #if !BIG_OK
3520 your preprocessor is broken;
3521 #endif
3522 #if BIG_OK
3523 #else
3524 your preprocessor is broken;
3525 #endif
3526 static long long int bignum = -9223372036854775807LL;
3527 static unsigned long long int ubignum = BIG64;
3529 struct incomplete_array
3531 int datasize;
3532 double data[];
3535 struct named_init {
3536 int number;
3537 const wchar_t *name;
3538 double average;
3541 typedef const char *ccp;
3543 static inline int
3544 test_restrict (ccp restrict text)
3546 // See if C++-style comments work.
3547 // Iterate through items via the restricted pointer.
3548 // Also check for declarations in for loops.
3549 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3550 continue;
3551 return 0;
3554 // Check varargs and va_copy.
3555 static void
3556 test_varargs (const char *format, ...)
3558 va_list args;
3559 va_start (args, format);
3560 va_list args_copy;
3561 va_copy (args_copy, args);
3563 const char *str;
3564 int number;
3565 float fnumber;
3567 while (*format)
3569 switch (*format++)
3571 case 's': // string
3572 str = va_arg (args_copy, const char *);
3573 break;
3574 case 'd': // int
3575 number = va_arg (args_copy, int);
3576 break;
3577 case 'f': // float
3578 fnumber = va_arg (args_copy, double);
3579 break;
3580 default:
3581 break;
3584 va_end (args_copy);
3585 va_end (args);
3589 main ()
3592 // Check bool.
3593 _Bool success = false;
3595 // Check restrict.
3596 if (test_restrict ("String literal") == 0)
3597 success = true;
3598 char *restrict newvar = "Another string";
3600 // Check varargs.
3601 test_varargs ("s, d' f .", "string", 65, 34.234);
3602 test_varargs_macros ();
3604 // Check flexible array members.
3605 struct incomplete_array *ia =
3606 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3607 ia->datasize = 10;
3608 for (int i = 0; i < ia->datasize; ++i)
3609 ia->data[i] = i * 1.234;
3611 // Check named initializers.
3612 struct named_init ni = {
3613 .number = 34,
3614 .name = L"Test wide string",
3615 .average = 543.34343,
3618 ni.number = 58;
3620 int dynamic_array[ni.number];
3621 dynamic_array[ni.number - 1] = 543;
3623 // work around unused variable warnings
3624 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3625 || dynamic_array[ni.number - 1] != 543);
3628 return 0;
3630 _ACEOF
3631 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_c99=$ac_arg
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c99" != "xno" && break
3639 done
3640 rm -f conftest.$ac_ext
3641 CC=$ac_save_CC
3644 # AC_CACHE_VAL
3645 case "x$ac_cv_prog_cc_c99" in
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648 $as_echo "none needed" >&6; } ;;
3649 xno)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 $as_echo "unsupported" >&6; } ;;
3653 CC="$CC $ac_cv_prog_cc_c99"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3655 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3656 esac
3657 if test "x$ac_cv_prog_cc_c99" != xno; then :
3658 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3662 if ${ac_cv_prog_cc_c89+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 ac_cv_prog_cc_c89=no
3666 ac_save_CC=$CC
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3677 char **p;
3678 int i;
3680 return p[i];
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3684 char *s;
3685 va_list v;
3686 va_start (v,p);
3687 s = g (p, va_arg (v,int));
3688 va_end (v);
3689 return s;
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3693 function prototypes and stuff, but not '\xHH' hex character constants.
3694 These don't provoke an error unfortunately, instead are silently treated
3695 as 'x'. The following induces an error, until -std is added to get
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3697 array size at least. It's necessary to write '\x00'==0 to get something
3698 that's true only with -std. */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702 inside strings and character constants. */
3703 #define FOO(x) 'x'
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 int argc;
3711 char **argv;
3713 main ()
3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717 return 0;
3719 _ACEOF
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 CC="$ac_save_CC $ac_arg"
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_c89=$ac_arg
3727 rm -f core conftest.err conftest.$ac_objext
3728 test "x$ac_cv_prog_cc_c89" != "xno" && break
3729 done
3730 rm -f conftest.$ac_ext
3731 CC=$ac_save_CC
3734 # AC_CACHE_VAL
3735 case "x$ac_cv_prog_cc_c89" in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3738 $as_echo "none needed" >&6; } ;;
3739 xno)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;;
3743 CC="$CC $ac_cv_prog_cc_c89"
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3746 esac
3747 if test "x$ac_cv_prog_cc_c89" != xno; then :
3748 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3749 else
3750 ac_cv_prog_cc_stdc=no
3755 esac
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3757 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3758 if ${ac_cv_prog_cc_stdc+:} false; then :
3759 $as_echo_n "(cached) " >&6
3762 case $ac_cv_prog_cc_stdc in #(
3763 no) :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3765 $as_echo "unsupported" >&6; } ;; #(
3766 '') :
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;; #(
3769 *) :
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3771 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3772 esac
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783 CPP=
3785 if test -z "$CPP"; then
3786 if ${ac_cv_prog_CPP+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3792 ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808 Syntax error
3809 _ACEOF
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3812 else
3813 # Broken: fails on valid input.
3814 continue
3816 rm -f conftest.err conftest.i conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <ac_nonexistent.h>
3823 _ACEOF
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3826 continue
3827 else
3828 # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3832 rm -f conftest.err conftest.i conftest.$ac_ext
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.i conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3838 break
3841 done
3842 ac_cv_prog_CPP=$CPP
3845 CPP=$ac_cv_prog_CPP
3846 else
3847 ac_cv_prog_CPP=$CPP
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3850 $as_echo "$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #ifdef __STDC__
3863 # include <limits.h>
3864 #else
3865 # include <assert.h>
3866 #endif
3867 Syntax error
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3871 else
3872 # Broken: fails on valid input.
3873 continue
3875 rm -f conftest.err conftest.i conftest.$ac_ext
3877 # OK, works on sane cases. Now check whether nonexistent headers
3878 # can be detected and how.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if ac_fn_c_try_cpp "$LINENO"; then :
3884 # Broken: success on invalid input.
3885 continue
3886 else
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3891 rm -f conftest.err conftest.i conftest.$ac_ext
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.i conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then :
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details" "$LINENO" 5 ; }
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 # Check for a compatible awk
3913 for ac_prog in gawk nawk
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if ${ac_cv_prog_AWK+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$AWK"; then
3923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_AWK="$ac_prog"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3936 done
3937 done
3938 IFS=$as_save_IFS
3942 AWK=$ac_cv_prog_AWK
3943 if test -n "$AWK"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3945 $as_echo "$AWK" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3952 test -n "$AWK" && break
3953 done
3955 if test "$AWK" = ""; then
3956 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3958 # Extract the first word of "mmake", so it can be a program name with args.
3959 set dummy mmake; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_MMAKE+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -n "$MMAKE"; then
3966 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_MMAKE="mmake "
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3979 done
3980 done
3981 IFS=$as_save_IFS
3985 MMAKE=$ac_cv_prog_MMAKE
3986 if test -n "$MMAKE"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3988 $as_echo "$MMAKE" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3996 # Perform some default variable assignments. Note all of these will be
3997 # Regenerated from the script, so there is no need to cache them.
3999 aros_host_cc="$CC"
4000 if test "$GCC" = "yes"; then
4001 aros_gcc_ld=`$CC -print-prog-name=ld`
4002 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4003 set dummy `basename $aros_gcc_ld`; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_path_aros_host_ld+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 case $aros_host_ld in
4010 [\\/]* | ?:[\\/]*)
4011 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in `dirname $aros_gcc_ld`
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4027 IFS=$as_save_IFS
4030 esac
4032 aros_host_ld=$ac_cv_path_aros_host_ld
4033 if test -n "$aros_host_ld"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4035 $as_echo "$aros_host_ld" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4043 if test "$aros_host_ld" = ""; then
4044 # Extract the first word of "ld", so it can be a program name with args.
4045 set dummy ld; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_path_aros_host_ld+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 case $aros_host_ld in
4052 [\\/]* | ?:[\\/]*)
4053 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4067 done
4068 done
4069 IFS=$as_save_IFS
4072 esac
4074 aros_host_ld=$ac_cv_path_aros_host_ld
4075 if test -n "$aros_host_ld"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4077 $as_echo "$aros_host_ld" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4085 if test "$aros_host_ld" = ""; then
4086 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4088 aros_host_make="make"
4089 aros_host_cflags=$CFLAGS
4090 aros_host_ldflags=$LDFLAGS
4091 aros_host_debug="-g -O0"
4092 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4093 aros_host_mkargs="--no-print-directory"
4094 aros_host_incl="/usr/include"
4095 aros_host_exe_suffix="$EXEEXT"
4096 aros_host_lib_suffix=""
4098 # Ignore all compliance, AROS ROMs = 0
4099 # KickStart v1.0 = 30
4100 # KickStart v1.3 = 34
4101 # KickStart v2.0 = 37
4102 # KickStart v3.0 = 39
4103 # KickStart v3.1 = 40
4104 # AmigaOS v3.5 = 44
4105 aros_amigaos_compliance=0
4107 for ac_prog in aclocal aclocal19 aclocal-1.9
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$aros_host_aclocal"; then
4117 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_aros_host_aclocal="$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4137 if test -n "$aros_host_aclocal"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4139 $as_echo "$aros_host_aclocal" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$aros_host_aclocal" && break
4147 done
4149 for ac_prog in autoconf autoconf259 autoconf253
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152 set dummy $ac_prog; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$aros_host_autoconf"; then
4159 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_aros_host_autoconf="$ac_prog"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4174 IFS=$as_save_IFS
4178 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4179 if test -n "$aros_host_autoconf"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4181 $as_echo "$aros_host_autoconf" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4188 test -n "$aros_host_autoconf" && break
4189 done
4191 for ac_prog in autoheader autoheader259 autoheader253
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$aros_host_autoheader"; then
4201 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 ac_cv_prog_aros_host_autoheader="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4216 IFS=$as_save_IFS
4220 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4221 if test -n "$aros_host_autoheader"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4223 $as_echo "$aros_host_autoheader" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4230 test -n "$aros_host_autoheader" && break
4231 done
4233 for ac_prog in automake automake19 automake-1.9
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_aros_host_automake+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$aros_host_automake"; then
4243 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_prog_aros_host_automake="$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 aros_host_automake=$ac_cv_prog_aros_host_automake
4263 if test -n "$aros_host_automake"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4265 $as_echo "$aros_host_automake" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4272 test -n "$aros_host_automake" && break
4273 done
4276 if test "$aros_host_aclocal" = ""; then
4277 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4279 if test "$aros_host_automake" = ""; then
4280 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4283 case "$aros_host_cc" in
4284 *gcc*)
4285 aros_host_cc_pipe="-pipe"
4287 icc)
4288 aros_host_cc_pipe=""
4291 aros_host_cc_pipe=""
4293 esac
4295 aros_kernel_cc_includes=""
4296 aros_target_cc_includes=""
4298 # ----------------------------------------------------------------------------------------
4299 # Host-specific defaults
4301 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4302 # instead of a wrapper script.
4303 # Useful for non-ELF hosts (like Windows and Darwin).
4304 # Can also be overriden in target section below
4305 use_aros_gcc="no"
4307 # This is the main host configuration section. It is where the host
4308 # can change the values of any variables it needs to change. We do
4309 # not look at anything that compiles to the target yet, we'll get
4310 # to that later.
4312 case "$host_os" in
4313 aros*)
4314 aros_host_arch="aros"
4315 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4316 case "$host_cpu" in
4317 *i?86*)
4318 aros_host_cpu="i386"
4320 *x86_64*)
4321 aros_host_cpu="x86_64"
4323 *powerpc*)
4324 aros_host_cpu="ppc"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4328 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4329 aros_host_cpu="$host_cpu"
4331 esac
4334 linux*)
4335 aros_host_arch="linux"
4336 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4337 android_build_os="linux-x86"
4338 android_tool="android"
4339 default_android_sdk="/opt/android-sdk-linux_x86"
4340 case "$host_cpu" in
4341 *i?86*)
4342 aros_host_cpu="i386"
4344 *x86_64*)
4345 aros_host_cpu="x86_64"
4347 *m68k*)
4348 aros_host_cpu="m68k"
4350 *powerpc*)
4351 aros_host_cpu="ppc"
4353 *arm*)
4354 aros_host_cpu="arm"
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4358 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4359 aros_host_cpu="$host_cpu"
4361 esac
4364 freebsd*)
4365 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4366 aros_host_make="gmake"
4367 aros_host_arch="freebsd"
4368 aros_host_cpu="i386"
4370 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4372 case $host_os in
4373 freebsd[234]*)
4374 aros_object_format="elf_i386"
4378 aros_object_format="elf_i386_fbsd"
4380 esac
4384 darwin*)
4385 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4386 aros_host_arch="darwin"
4387 use_aros_gcc="yes"
4388 android_build_os="darwin-x86"
4389 android_tool="android"
4390 default_android_sdk="/android-sdk-mac_x86"
4391 case "$host_cpu" in
4392 *i?86*)
4393 aros_host_cpu="i386"
4395 *x86_64*)
4396 aros_host_cpu="x86_64"
4398 *powerpc*)
4399 aros_host_cpu="ppc"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4403 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4404 aros_host_cpu="$host_cpu"
4406 esac
4408 aros_host_ldflags="$aros_host_ldflags -liconv"
4412 dragonfly*)
4413 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4414 aros_host_make="gmake"
4415 aros_host_arch="dragonfly"
4416 case $host_cpu in
4417 *i?86*)
4418 aros_host_cpu="i386"
4420 *amd64*)
4421 aros_host_cpu="x86_64"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4425 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4426 aros_host_cpu="$host_cpu"
4428 esac
4431 netbsd*)
4432 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4433 aros_host_make="gmake"
4434 aros_host_arch="netbsd"
4435 case "$host_cpu" in
4436 *i?86*)
4437 aros_host_cpu="i386"
4439 *m68k*)
4440 aros_host_cpu="m68k"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4444 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4445 aros_host_cpu="$host_cpu"
4447 esac
4448 aros_host_lib_suffix=".0.0"
4451 openbsd*)
4452 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4453 aros_host_make="gmake"
4454 aros_host_arch="openbsd"
4455 case "$host_cpu" in
4456 *i?86*)
4457 aros_host_cpu="i386"
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4461 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4462 aros_host_cpu="$host_cpu"
4464 esac
4467 solaris*)
4468 aros_host_arch="solaris"
4469 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4470 case "$host_cpu" in
4471 *i?86*)
4472 aros_host_cpu="i386"
4474 *sparc*)
4475 aros_host_cpu="sparc"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4479 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4480 aros_host_cpu="$host_cpu"
4482 esac
4485 morphos*)
4486 aros_host_arch="morphos"
4487 aros_host_cpu="ppc"
4490 amiga*)
4491 aros_host_arch="amiga"
4492 SORT="/gg/bin/sort"
4493 TEST="/gg/bin/test"
4494 UNIQ="/gg/bin/uniq"
4495 FOR="for"
4496 TOUCH="/gg/bin/touch"
4497 case "$host_cpu" in
4498 *m68k*)
4499 aros_host_cpu="m68k"
4501 *powerpc*)
4502 aros_host_cpu="ppc"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4506 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4507 aros_host_cpu="$host_cpu"
4509 esac
4512 cygwin*)
4513 aros_host_arch="cygwin"
4514 use_aros_gcc="yes"
4515 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4516 android_build_os="windows"
4517 android_tool="android.bat"
4518 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4520 case "$host_cpu" in
4521 *i?86*)
4522 aros_host_cpu="i386"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4526 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4527 aros_host_cpu="$host_cpu"
4529 esac
4532 mingw32*)
4533 aros_host_arch="mingw32"
4534 use_aros_gcc="yes"
4535 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4536 android_build_os="windows"
4537 android_tool="android.bat"
4538 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4540 case "$host_cpu" in
4541 *i?86*)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4544 $as_echo_n "checking for Windows native gcc target... " >&6; }
4545 host_cpu=`gcc -dumpmachine`
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4547 $as_echo "$host_cpu" >&6; }
4550 esac
4552 case "$host_cpu" in
4553 *i?86*)
4554 aros_host_cpu="i386"
4557 *x86_64*)
4558 aros_host_cpu="x86_64"
4559 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4564 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4565 aros_host_cpu="$host_cpu"
4567 esac
4570 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4572 esac
4574 # Extract the first word of "ar", so it can be a program name with args.
4575 set dummy ar; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_aros_host_ar+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$aros_host_ar"; then
4582 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_aros_host_ar="ar cr"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 aros_host_ar=$ac_cv_prog_aros_host_ar
4602 if test -n "$aros_host_ar"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4604 $as_echo "$aros_host_ar" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 if test "$aros_host_ar" = ""; then
4612 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4614 # Extract the first word of "ranlib", so it can be a program name with args.
4615 set dummy ranlib; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$aros_host_ranlib"; then
4622 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_aros_host_ranlib="ranlib "
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4642 if test -n "$aros_host_ranlib"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4644 $as_echo "$aros_host_ranlib" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4651 if test "$aros_host_ranlib" = ""; then
4652 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4654 # Extract the first word of "strip", so it can be a program name with args.
4655 set dummy strip; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_prog_aros_host_strip+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$aros_host_strip"; then
4662 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_aros_host_strip="strip "
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4677 IFS=$as_save_IFS
4681 aros_host_strip=$ac_cv_prog_aros_host_strip
4682 if test -n "$aros_host_strip"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4684 $as_echo "$aros_host_strip" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 if test "$aros_host_strip" = ""; then
4692 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4695 # Extract the first word of "rm", so it can be a program name with args.
4696 set dummy rm; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_RM+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$RM"; then
4703 ac_cv_prog_RM="$RM" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_RM="rm -rf"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 RM=$ac_cv_prog_RM
4723 if test -n "$RM"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4725 $as_echo "$RM" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4732 if test "$RM" = ""; then
4733 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4735 # Extract the first word of "cp", so it can be a program name with args.
4736 set dummy cp; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CP+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CP"; then
4743 ac_cv_prog_CP="$CP" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CP="cp "
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 CP=$ac_cv_prog_CP
4763 if test -n "$CP"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4765 $as_echo "$CP" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 if test "$CP" = ""; then
4773 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4775 # Extract the first word of "mv", so it can be a program name with args.
4776 set dummy mv; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_MV+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$MV"; then
4783 ac_cv_prog_MV="$MV" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_MV="mv "
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 MV=$ac_cv_prog_MV
4803 if test -n "$MV"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4805 $as_echo "$MV" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4812 if test "$MV" = ""; then
4813 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4815 # Extract the first word of "echo", so it can be a program name with args.
4816 set dummy echo; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_ECHO+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ECHO"; then
4823 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ECHO="echo "
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 ECHO=$ac_cv_prog_ECHO
4843 if test -n "$ECHO"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4845 $as_echo "$ECHO" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 if test "$ECHO" = ""; then
4853 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4855 # Extract the first word of "mkdir", so it can be a program name with args.
4856 set dummy mkdir; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_MKDIR+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$MKDIR"; then
4863 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_MKDIR="mkdir -p"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 MKDIR=$ac_cv_prog_MKDIR
4883 if test -n "$MKDIR"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4885 $as_echo "$MKDIR" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 if test "$MKDIR" = ""; then
4893 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4895 # Extract the first word of "touch", so it can be a program name with args.
4896 set dummy touch; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_TOUCH+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$TOUCH"; then
4903 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_TOUCH="touch "
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 TOUCH=$ac_cv_prog_TOUCH
4923 if test -n "$TOUCH"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4925 $as_echo "$TOUCH" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 if test "$TOUCH" = ""; then
4933 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4935 # Extract the first word of "sort", so it can be a program name with args.
4936 set dummy sort; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_SORT+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$SORT"; then
4943 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_SORT="sort "
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 SORT=$ac_cv_prog_SORT
4963 if test -n "$SORT"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4965 $as_echo "$SORT" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4972 if test "$SORT" = ""; then
4973 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4975 # Extract the first word of "uniq", so it can be a program name with args.
4976 set dummy uniq; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_UNIQ+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$UNIQ"; then
4983 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_UNIQ="uniq "
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 UNIQ=$ac_cv_prog_UNIQ
5003 if test -n "$UNIQ"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5005 $as_echo "$UNIQ" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5012 if test "$UNIQ" = ""; then
5013 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5015 # Extract the first word of "true", so it can be a program name with args.
5016 set dummy true; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_NOP+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$NOP"; then
5023 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_NOP="true "
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 NOP=$ac_cv_prog_NOP
5043 if test -n "$NOP"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5045 $as_echo "$NOP" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 if test "$NOP" = ""; then
5053 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5055 # Extract the first word of "cat", so it can be a program name with args.
5056 set dummy cat; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_CAT+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$CAT"; then
5063 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_CAT="cat "
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 CAT=$ac_cv_prog_CAT
5083 if test -n "$CAT"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5085 $as_echo "$CAT" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 if test "$CAT" = ""; then
5093 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "bison", so it can be a program name with args.
5096 set dummy bison; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_BISON+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$BISON"; then
5103 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_BISON="bison "
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 BISON=$ac_cv_prog_BISON
5123 if test -n "$BISON"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5125 $as_echo "$BISON" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 if test "$BISON" = ""; then
5133 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "flex", so it can be a program name with args.
5136 set dummy flex; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_FLEX+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$FLEX"; then
5143 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_FLEX="flex "
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 FLEX=$ac_cv_prog_FLEX
5163 if test -n "$FLEX"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5165 $as_echo "$FLEX" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 if test "$FLEX" = ""; then
5173 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "pngtopnm", so it can be a program name with args.
5176 set dummy pngtopnm; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$PNGTOPNM"; then
5183 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_PNGTOPNM="pngtopnm "
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5203 if test -n "$PNGTOPNM"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5205 $as_echo "$PNGTOPNM" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 if test "$PNGTOPNM" = ""; then
5213 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5215 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5216 set dummy ppmtoilbm; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$PPMTOILBM"; then
5223 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5243 if test -n "$PPMTOILBM"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5245 $as_echo "$PPMTOILBM" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "$PPMTOILBM" = ""; then
5253 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5255 # Extract the first word of "sed", so it can be a program name with args.
5256 set dummy sed; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_SED+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$SED"; then
5263 ac_cv_prog_SED="$SED" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_SED="sed "
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 SED=$ac_cv_prog_SED
5283 if test -n "$SED"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5285 $as_echo "$SED" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 if test "$SED" = ""; then
5293 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5295 # Extract the first word of "chmod", so it can be a program name with args.
5296 set dummy chmod; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_CHMOD+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$CHMOD"; then
5303 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_CHMOD="chmod "
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 CHMOD=$ac_cv_prog_CHMOD
5323 if test -n "$CHMOD"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5325 $as_echo "$CHMOD" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5332 if test "$CHMOD" = ""; then
5333 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5335 # Extract the first word of "patch", so it can be a program name with args.
5336 set dummy patch; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_PATCH+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$PATCH"; then
5343 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_PATCH="patch "
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 PATCH=$ac_cv_prog_PATCH
5363 if test -n "$PATCH"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5365 $as_echo "$PATCH" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 if test "$PATCH" = ""; then
5373 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5380 if test -n "$PYTHON"; then
5381 # If the user set $PYTHON, use it and don't search something else.
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5383 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5384 prog="import sys, string
5385 # split strings by '.' and convert to numeric. Append some zeros
5386 # because we need at least 4 digits for the hex conversion.
5387 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5388 minverhex = 0
5389 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5390 sys.exit(sys.hexversion < minverhex)"
5391 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5392 ($PYTHON -c "$prog") >&5 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 else
5399 as_fn_error $? "too old" "$LINENO" 5
5401 am_display_PYTHON=$PYTHON
5402 else
5403 # Otherwise, try each interpreter until we find one that satisfies
5404 # VERSION.
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5406 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5407 if ${am_cv_pathless_PYTHON+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5411 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
5412 test "$am_cv_pathless_PYTHON" = none && break
5413 prog="import sys, string
5414 # split strings by '.' and convert to numeric. Append some zeros
5415 # because we need at least 4 digits for the hex conversion.
5416 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5417 minverhex = 0
5418 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5419 sys.exit(sys.hexversion < minverhex)"
5420 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5421 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; then :
5425 break
5427 done
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5430 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5431 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5432 if test "$am_cv_pathless_PYTHON" = none; then
5433 PYTHON=:
5434 else
5435 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5436 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_PYTHON+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 case $PYTHON in
5443 [\\/]* | ?:[\\/]*)
5444 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5463 esac
5465 PYTHON=$ac_cv_path_PYTHON
5466 if test -n "$PYTHON"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5468 $as_echo "$PYTHON" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5476 am_display_PYTHON=$am_cv_pathless_PYTHON
5480 if test "$PYTHON" = :; then
5481 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5482 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5486 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5487 if ${am_cv_python_version+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5493 $as_echo "$am_cv_python_version" >&6; }
5494 PYTHON_VERSION=$am_cv_python_version
5498 PYTHON_PREFIX='${prefix}'
5500 PYTHON_EXEC_PREFIX='${exec_prefix}'
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5505 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5506 if ${am_cv_python_platform+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5512 $as_echo "$am_cv_python_platform" >&6; }
5513 PYTHON_PLATFORM=$am_cv_python_platform
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5519 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5520 if ${am_cv_python_pythondir+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5524 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5527 $as_echo "$am_cv_python_pythondir" >&6; }
5528 pythondir=$am_cv_python_pythondir
5532 pkgpythondir=\${pythondir}/$PACKAGE
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5536 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5537 if ${am_cv_python_pyexecdir+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5541 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5544 $as_echo "$am_cv_python_pyexecdir" >&6; }
5545 pyexecdir=$am_cv_python_pyexecdir
5549 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5557 FOR=for
5559 IF=if
5561 TEST=test
5563 CMP=cmp
5567 # Check for some includes for the X11 HIDD and the kernel
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5572 if ${ac_cv_path_GREP+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -z "$GREP"; then
5576 ac_path_GREP_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in grep ggrep; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5587 # Check for GNU ac_path_GREP and select it if it is found.
5588 # Check for GNU $ac_path_GREP
5589 case `"$ac_path_GREP" --version 2>&1` in
5590 *GNU*)
5591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5593 ac_count=0
5594 $as_echo_n 0123456789 >"conftest.in"
5595 while :
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo 'GREP' >> "conftest.nl"
5601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_GREP="$ac_path_GREP"
5607 ac_path_GREP_max=$ac_count
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5615 $ac_path_GREP_found && break 3
5616 done
5617 done
5618 done
5619 IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_GREP"; then
5621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5623 else
5624 ac_cv_path_GREP=$GREP
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5629 $as_echo "$ac_cv_path_GREP" >&6; }
5630 GREP="$ac_cv_path_GREP"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5634 $as_echo_n "checking for egrep... " >&6; }
5635 if ${ac_cv_path_EGREP+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5639 then ac_cv_path_EGREP="$GREP -E"
5640 else
5641 if test -z "$EGREP"; then
5642 ac_path_EGREP_found=false
5643 # Loop through the user's path and test for each of PROGNAME-LIST
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_prog in egrep; do
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5653 # Check for GNU ac_path_EGREP and select it if it is found.
5654 # Check for GNU $ac_path_EGREP
5655 case `"$ac_path_EGREP" --version 2>&1` in
5656 *GNU*)
5657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5659 ac_count=0
5660 $as_echo_n 0123456789 >"conftest.in"
5661 while :
5663 cat "conftest.in" "conftest.in" >"conftest.tmp"
5664 mv "conftest.tmp" "conftest.in"
5665 cp "conftest.in" "conftest.nl"
5666 $as_echo 'EGREP' >> "conftest.nl"
5667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5669 as_fn_arith $ac_count + 1 && ac_count=$as_val
5670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5671 # Best one so far, save it but keep looking for a better one
5672 ac_cv_path_EGREP="$ac_path_EGREP"
5673 ac_path_EGREP_max=$ac_count
5675 # 10*(2^10) chars as input seems more than enough
5676 test $ac_count -gt 10 && break
5677 done
5678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5679 esac
5681 $ac_path_EGREP_found && break 3
5682 done
5683 done
5684 done
5685 IFS=$as_save_IFS
5686 if test -z "$ac_cv_path_EGREP"; then
5687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5689 else
5690 ac_cv_path_EGREP=$EGREP
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5696 $as_echo "$ac_cv_path_EGREP" >&6; }
5697 EGREP="$ac_cv_path_EGREP"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5701 $as_echo_n "checking for ANSI C header files... " >&6; }
5702 if ${ac_cv_header_stdc+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <stdlib.h>
5708 #include <stdarg.h>
5709 #include <string.h>
5710 #include <float.h>
5713 main ()
5717 return 0;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_cv_header_stdc=yes
5722 else
5723 ac_cv_header_stdc=no
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 if test $ac_cv_header_stdc = yes; then
5728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <string.h>
5733 _ACEOF
5734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5735 $EGREP "memchr" >/dev/null 2>&1; then :
5737 else
5738 ac_cv_header_stdc=no
5740 rm -f conftest*
5744 if test $ac_cv_header_stdc = yes; then
5745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <stdlib.h>
5750 _ACEOF
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752 $EGREP "free" >/dev/null 2>&1; then :
5754 else
5755 ac_cv_header_stdc=no
5757 rm -f conftest*
5761 if test $ac_cv_header_stdc = yes; then
5762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5763 if test "$cross_compiling" = yes; then :
5765 else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <ctype.h>
5769 #include <stdlib.h>
5770 #if ((' ' & 0x0FF) == 0x020)
5771 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5772 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5773 #else
5774 # define ISLOWER(c) \
5775 (('a' <= (c) && (c) <= 'i') \
5776 || ('j' <= (c) && (c) <= 'r') \
5777 || ('s' <= (c) && (c) <= 'z'))
5778 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5779 #endif
5781 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5783 main ()
5785 int i;
5786 for (i = 0; i < 256; i++)
5787 if (XOR (islower (i), ISLOWER (i))
5788 || toupper (i) != TOUPPER (i))
5789 return 2;
5790 return 0;
5792 _ACEOF
5793 if ac_fn_c_try_run "$LINENO"; then :
5795 else
5796 ac_cv_header_stdc=no
5798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5799 conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5805 $as_echo "$ac_cv_header_stdc" >&6; }
5806 if test $ac_cv_header_stdc = yes; then
5808 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5814 inttypes.h stdint.h unistd.h
5815 do :
5816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5820 cat >>confdefs.h <<_ACEOF
5821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5822 _ACEOF
5826 done
5829 for ac_header in sys/ipc.h sys/shm.h \
5830 sys/mmap.h sys/mman.h sysexits.h \
5831 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5833 do :
5834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5835 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5837 cat >>confdefs.h <<_ACEOF
5838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5839 _ACEOF
5843 done
5846 for ac_header in sys/mount.h
5847 do :
5848 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5850 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5851 cat >>confdefs.h <<_ACEOF
5852 #define HAVE_SYS_MOUNT_H 1
5853 _ACEOF
5857 done
5860 ac_header_dirent=no
5861 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5862 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5864 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5865 if eval \${$as_ac_Header+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <sys/types.h>
5871 #include <$ac_hdr>
5874 main ()
5876 if ((DIR *) 0)
5877 return 0;
5879 return 0;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 eval "$as_ac_Header=yes"
5884 else
5885 eval "$as_ac_Header=no"
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 eval ac_res=\$$as_ac_Header
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5891 $as_echo "$ac_res" >&6; }
5892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5895 _ACEOF
5897 ac_header_dirent=$ac_hdr; break
5900 done
5901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5902 if test $ac_header_dirent = dirent.h; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5904 $as_echo_n "checking for library containing opendir... " >&6; }
5905 if ${ac_cv_search_opendir+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 ac_func_search_save_LIBS=$LIBS
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply. */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 char opendir ();
5920 main ()
5922 return opendir ();
5924 return 0;
5926 _ACEOF
5927 for ac_lib in '' dir; do
5928 if test -z "$ac_lib"; then
5929 ac_res="none required"
5930 else
5931 ac_res=-l$ac_lib
5932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 ac_cv_search_opendir=$ac_res
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext
5939 if ${ac_cv_search_opendir+:} false; then :
5940 break
5942 done
5943 if ${ac_cv_search_opendir+:} false; then :
5945 else
5946 ac_cv_search_opendir=no
5948 rm conftest.$ac_ext
5949 LIBS=$ac_func_search_save_LIBS
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5952 $as_echo "$ac_cv_search_opendir" >&6; }
5953 ac_res=$ac_cv_search_opendir
5954 if test "$ac_res" != no; then :
5955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5959 else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5961 $as_echo_n "checking for library containing opendir... " >&6; }
5962 if ${ac_cv_search_opendir+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 ac_func_search_save_LIBS=$LIBS
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 #endif
5975 char opendir ();
5977 main ()
5979 return opendir ();
5981 return 0;
5983 _ACEOF
5984 for ac_lib in '' x; do
5985 if test -z "$ac_lib"; then
5986 ac_res="none required"
5987 else
5988 ac_res=-l$ac_lib
5989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5991 if ac_fn_c_try_link "$LINENO"; then :
5992 ac_cv_search_opendir=$ac_res
5994 rm -f core conftest.err conftest.$ac_objext \
5995 conftest$ac_exeext
5996 if ${ac_cv_search_opendir+:} false; then :
5997 break
5999 done
6000 if ${ac_cv_search_opendir+:} false; then :
6002 else
6003 ac_cv_search_opendir=no
6005 rm conftest.$ac_ext
6006 LIBS=$ac_func_search_save_LIBS
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6009 $as_echo "$ac_cv_search_opendir" >&6; }
6010 ac_res=$ac_cv_search_opendir
6011 if test "$ac_res" != no; then :
6012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6019 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6020 if ${ac_cv_header_stat_broken+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <sys/types.h>
6026 #include <sys/stat.h>
6028 #if defined S_ISBLK && defined S_IFDIR
6029 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6030 #endif
6032 #if defined S_ISBLK && defined S_IFCHR
6033 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6034 #endif
6036 #if defined S_ISLNK && defined S_IFREG
6037 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6038 #endif
6040 #if defined S_ISSOCK && defined S_IFREG
6041 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6042 #endif
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046 ac_cv_header_stat_broken=no
6047 else
6048 ac_cv_header_stat_broken=yes
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6053 $as_echo "$ac_cv_header_stat_broken" >&6; }
6054 if test $ac_cv_header_stat_broken = yes; then
6056 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6061 $as_echo_n "checking for ANSI C header files... " >&6; }
6062 if ${ac_cv_header_stdc+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <stdlib.h>
6068 #include <stdarg.h>
6069 #include <string.h>
6070 #include <float.h>
6073 main ()
6077 return 0;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 ac_cv_header_stdc=yes
6082 else
6083 ac_cv_header_stdc=no
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 if test $ac_cv_header_stdc = yes; then
6088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <string.h>
6093 _ACEOF
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 $EGREP "memchr" >/dev/null 2>&1; then :
6097 else
6098 ac_cv_header_stdc=no
6100 rm -f conftest*
6104 if test $ac_cv_header_stdc = yes; then
6105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 #include <stdlib.h>
6110 _ACEOF
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 $EGREP "free" >/dev/null 2>&1; then :
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f conftest*
6121 if test $ac_cv_header_stdc = yes; then
6122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6123 if test "$cross_compiling" = yes; then :
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <ctype.h>
6129 #include <stdlib.h>
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 #else
6134 # define ISLOWER(c) \
6135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139 #endif
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6143 main ()
6145 int i;
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
6148 || toupper (i) != TOUPPER (i))
6149 return 2;
6150 return 0;
6152 _ACEOF
6153 if ac_fn_c_try_run "$LINENO"; then :
6155 else
6156 ac_cv_header_stdc=no
6158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6159 conftest.$ac_objext conftest.beam conftest.$ac_ext
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6165 $as_echo "$ac_cv_header_stdc" >&6; }
6166 if test $ac_cv_header_stdc = yes; then
6168 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6173 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6174 if ${ac_cv_header_sys_wait_h+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6180 #include <sys/wait.h>
6181 #ifndef WEXITSTATUS
6182 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6183 #endif
6184 #ifndef WIFEXITED
6185 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6186 #endif
6189 main ()
6191 int s;
6192 wait (&s);
6193 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 ac_cv_header_sys_wait_h=yes
6200 else
6201 ac_cv_header_sys_wait_h=no
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6206 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6207 if test $ac_cv_header_sys_wait_h = yes; then
6209 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6214 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6215 if ${ac_cv_header_time+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <sys/types.h>
6221 #include <sys/time.h>
6222 #include <time.h>
6225 main ()
6227 if ((struct tm *) 0)
6228 return 0;
6230 return 0;
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 ac_cv_header_time=yes
6235 else
6236 ac_cv_header_time=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6241 $as_echo "$ac_cv_header_time" >&6; }
6242 if test $ac_cv_header_time = yes; then
6244 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6248 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6249 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6251 cat >>confdefs.h <<_ACEOF
6252 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6253 _ACEOF
6256 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6261 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6262 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6264 cat >>confdefs.h <<_ACEOF
6265 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6266 _ACEOF
6269 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6271 else
6272 case " $LIBOBJS " in
6273 *" fileblocks.$ac_objext "* ) ;;
6274 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6276 esac
6281 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6282 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_STRUCT_STAT_ST_RDEV 1
6286 _ACEOF
6289 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6295 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6296 if ${ac_cv_struct_tm+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <sys/types.h>
6302 #include <time.h>
6305 main ()
6307 struct tm tm;
6308 int *p = &tm.tm_sec;
6309 return !p;
6311 return 0;
6313 _ACEOF
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_struct_tm=time.h
6316 else
6317 ac_cv_struct_tm=sys/time.h
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6322 $as_echo "$ac_cv_struct_tm" >&6; }
6323 if test $ac_cv_struct_tm = sys/time.h; then
6325 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6329 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6330 #include <$ac_cv_struct_tm>
6333 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6335 cat >>confdefs.h <<_ACEOF
6336 #define HAVE_STRUCT_TM_TM_ZONE 1
6337 _ACEOF
6342 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6344 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6346 else
6347 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6349 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6350 ac_have_decl=1
6351 else
6352 ac_have_decl=0
6355 cat >>confdefs.h <<_ACEOF
6356 #define HAVE_DECL_TZNAME $ac_have_decl
6357 _ACEOF
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6360 $as_echo_n "checking for tzname... " >&6; }
6361 if ${ac_cv_var_tzname+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 #include <time.h>
6367 #if !HAVE_DECL_TZNAME
6368 extern char *tzname[];
6369 #endif
6372 main ()
6374 return tzname[0][0];
6376 return 0;
6378 _ACEOF
6379 if ac_fn_c_try_link "$LINENO"; then :
6380 ac_cv_var_tzname=yes
6381 else
6382 ac_cv_var_tzname=no
6384 rm -f core conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6388 $as_echo "$ac_cv_var_tzname" >&6; }
6389 if test $ac_cv_var_tzname = yes; then
6391 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6396 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6397 if test "x$ac_cv_type_off_t" = xyes; then :
6399 else
6401 cat >>confdefs.h <<_ACEOF
6402 #define off_t long int
6403 _ACEOF
6407 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6408 if test "x$ac_cv_type_pid_t" = xyes; then :
6410 else
6412 cat >>confdefs.h <<_ACEOF
6413 #define pid_t int
6414 _ACEOF
6418 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6419 if test "x$ac_cv_type_size_t" = xyes; then :
6421 else
6423 cat >>confdefs.h <<_ACEOF
6424 #define size_t unsigned int
6425 _ACEOF
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6430 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6431 if ${ac_cv_type_uid_t+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <sys/types.h>
6438 _ACEOF
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440 $EGREP "uid_t" >/dev/null 2>&1; then :
6441 ac_cv_type_uid_t=yes
6442 else
6443 ac_cv_type_uid_t=no
6445 rm -f conftest*
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6449 $as_echo "$ac_cv_type_uid_t" >&6; }
6450 if test $ac_cv_type_uid_t = no; then
6452 $as_echo "#define uid_t int" >>confdefs.h
6455 $as_echo "#define gid_t int" >>confdefs.h
6460 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6461 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6463 cat >>confdefs.h <<_ACEOF
6464 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6465 _ACEOF
6471 # Look for some functions
6472 for ac_func in getpagesize kqueue statfs statvfs \
6473 clone kse_create rfork_thread thr_create sa_register \
6474 getcontext makecontext setcontext sigaltstack swapcontext
6475 do :
6476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6479 cat >>confdefs.h <<_ACEOF
6480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481 _ACEOF
6484 done
6490 for ac_header in $ac_header_list
6491 do :
6492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6496 cat >>confdefs.h <<_ACEOF
6497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6502 done
6511 for ac_func in getpagesize
6512 do :
6513 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6514 if test "x$ac_cv_func_getpagesize" = xyes; then :
6515 cat >>confdefs.h <<_ACEOF
6516 #define HAVE_GETPAGESIZE 1
6517 _ACEOF
6520 done
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6523 $as_echo_n "checking for working mmap... " >&6; }
6524 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test "$cross_compiling" = yes; then :
6528 ac_cv_func_mmap_fixed_mapped=no
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 /* malloc might have been renamed as rpl_malloc. */
6534 #undef malloc
6536 /* Thanks to Mike Haertel and Jim Avera for this test.
6537 Here is a matrix of mmap possibilities:
6538 mmap private not fixed
6539 mmap private fixed at somewhere currently unmapped
6540 mmap private fixed at somewhere already mapped
6541 mmap shared not fixed
6542 mmap shared fixed at somewhere currently unmapped
6543 mmap shared fixed at somewhere already mapped
6544 For private mappings, we should verify that changes cannot be read()
6545 back from the file, nor mmap's back from the file at a different
6546 address. (There have been systems where private was not correctly
6547 implemented like the infamous i386 svr4.0, and systems where the
6548 VM page cache was not coherent with the file system buffer cache
6549 like early versions of FreeBSD and possibly contemporary NetBSD.)
6550 For shared mappings, we should conversely verify that changes get
6551 propagated back to all the places they're supposed to be.
6553 Grep wants private fixed already mapped.
6554 The main things grep needs to know about mmap are:
6555 * does it exist and is it safe to write into the mmap'd area
6556 * how to use it (BSD variants) */
6558 #include <fcntl.h>
6559 #include <sys/mman.h>
6561 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6562 char *malloc ();
6563 #endif
6565 /* This mess was copied from the GNU getpagesize.h. */
6566 #ifndef HAVE_GETPAGESIZE
6567 # ifdef _SC_PAGESIZE
6568 # define getpagesize() sysconf(_SC_PAGESIZE)
6569 # else /* no _SC_PAGESIZE */
6570 # ifdef HAVE_SYS_PARAM_H
6571 # include <sys/param.h>
6572 # ifdef EXEC_PAGESIZE
6573 # define getpagesize() EXEC_PAGESIZE
6574 # else /* no EXEC_PAGESIZE */
6575 # ifdef NBPG
6576 # define getpagesize() NBPG * CLSIZE
6577 # ifndef CLSIZE
6578 # define CLSIZE 1
6579 # endif /* no CLSIZE */
6580 # else /* no NBPG */
6581 # ifdef NBPC
6582 # define getpagesize() NBPC
6583 # else /* no NBPC */
6584 # ifdef PAGESIZE
6585 # define getpagesize() PAGESIZE
6586 # endif /* PAGESIZE */
6587 # endif /* no NBPC */
6588 # endif /* no NBPG */
6589 # endif /* no EXEC_PAGESIZE */
6590 # else /* no HAVE_SYS_PARAM_H */
6591 # define getpagesize() 8192 /* punt totally */
6592 # endif /* no HAVE_SYS_PARAM_H */
6593 # endif /* no _SC_PAGESIZE */
6595 #endif /* no HAVE_GETPAGESIZE */
6598 main ()
6600 char *data, *data2, *data3;
6601 const char *cdata2;
6602 int i, pagesize;
6603 int fd, fd2;
6605 pagesize = getpagesize ();
6607 /* First, make a file with some known garbage in it. */
6608 data = (char *) malloc (pagesize);
6609 if (!data)
6610 return 1;
6611 for (i = 0; i < pagesize; ++i)
6612 *(data + i) = rand ();
6613 umask (0);
6614 fd = creat ("conftest.mmap", 0600);
6615 if (fd < 0)
6616 return 2;
6617 if (write (fd, data, pagesize) != pagesize)
6618 return 3;
6619 close (fd);
6621 /* Next, check that the tail of a page is zero-filled. File must have
6622 non-zero length, otherwise we risk SIGBUS for entire page. */
6623 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6624 if (fd2 < 0)
6625 return 4;
6626 cdata2 = "";
6627 if (write (fd2, cdata2, 1) != 1)
6628 return 5;
6629 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6630 if (data2 == MAP_FAILED)
6631 return 6;
6632 for (i = 0; i < pagesize; ++i)
6633 if (*(data2 + i))
6634 return 7;
6635 close (fd2);
6636 if (munmap (data2, pagesize))
6637 return 8;
6639 /* Next, try to mmap the file at a fixed address which already has
6640 something else allocated at it. If we can, also make sure that
6641 we see the same garbage. */
6642 fd = open ("conftest.mmap", O_RDWR);
6643 if (fd < 0)
6644 return 9;
6645 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6646 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6647 return 10;
6648 for (i = 0; i < pagesize; ++i)
6649 if (*(data + i) != *(data2 + i))
6650 return 11;
6652 /* Finally, make sure that changes to the mapped area do not
6653 percolate back to the file as seen by read(). (This is a bug on
6654 some variants of i386 svr4.0.) */
6655 for (i = 0; i < pagesize; ++i)
6656 *(data2 + i) = *(data2 + i) + 1;
6657 data3 = (char *) malloc (pagesize);
6658 if (!data3)
6659 return 12;
6660 if (read (fd, data3, pagesize) != pagesize)
6661 return 13;
6662 for (i = 0; i < pagesize; ++i)
6663 if (*(data + i) != *(data3 + i))
6664 return 14;
6665 close (fd);
6666 return 0;
6668 _ACEOF
6669 if ac_fn_c_try_run "$LINENO"; then :
6670 ac_cv_func_mmap_fixed_mapped=yes
6671 else
6672 ac_cv_func_mmap_fixed_mapped=no
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6675 conftest.$ac_objext conftest.beam conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6680 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6681 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6683 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6686 rm -f conftest.mmap conftest.txt
6691 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6692 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6693 aros_config_ldflags=""
6695 aros_shared_default=yes
6697 aros_shared_cflags="-fPIC"
6698 aros_shared_aflags=""
6699 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6700 aros_kernel_ldflags="-Wl,-rpath,./lib"
6702 aros_kernel_ar_flags="cr"
6703 aros_target_ar_flags="cr"
6704 aros_target_nm_flags="-C -ul"
6705 aros_target_strip_flags="--strip-unneeded -R.comment"
6707 aros_compiler_libs=
6708 aros_arch_libs=
6710 aros_target_genmap="-Wl,-Map -Xlinker"
6712 # Native flavour stuff
6713 aros_serial_debug="0"
6715 # Palm native flavour stuff
6716 aros_palm_debug_hack="0"
6718 # Unix flavour stuff
6719 aros_nesting_supervisor="0"
6721 # Collect-aros stuff: "-ius" to ignore undefined symbols
6722 ignore_undefined_symbols=""
6724 # Check for X11 by default
6725 need_x11="auto"
6727 #-----------------------------------------------------------------------------
6730 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6731 # it switched on by default, and we use the host compiler, so it compiles AROS
6732 # code with this enabled resulting in link failures as we don't have support
6733 # for it.
6735 # We use two methods to disable it. For the host compiler (used to compile
6736 # some hosted modules), we test to see if the compiler supports stack
6737 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6738 # work on all platforms.
6740 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6741 # (this is done unconditionally, as it should have no effect on compilers
6742 # without the stack protection feature). This may be specific to the way that
6743 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6744 # strong enough to disable it in a generic way though, so we'll live with it
6745 # until another vendor ships GCC with it enabled in a different way, and deal
6746 # with it then.
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6750 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6751 save_cflags="$CFLAGS"
6752 CFLAGS="$CFLAGS -fno-stack-protector"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6757 main ()
6761 return 0;
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 use_no_stack_protector="yes"
6766 else
6767 use_no_stack_protector="no"
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6771 $as_echo "$use_no_stack_protector" >&6; }
6772 if test "x-$use_no_stack_protector" = "x-yes" ; then
6773 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6775 CFLAGS="$save_cflags"
6777 #-----------------------------------------------------------------------------
6779 # Disable pointer-signedness warnings if the compiler recognises the option
6780 # (this only works for the host compiler at the moment)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6783 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6784 save_cflags="$CFLAGS"
6785 CFLAGS="$CFLAGS -Wno-pointer-sign"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6790 main ()
6794 return 0;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 use_no_sign_warning="yes"
6799 else
6800 use_no_sign_warning="no"
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6804 $as_echo "$use_no_sign_warning" >&6; }
6805 if test "x-$use_no_sign_warning" = "x-yes" ; then
6806 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6808 CFLAGS="$save_cflags"
6810 #-----------------------------------------------------------------------------
6812 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6815 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6816 save_cflags="$CFLAGS"
6817 CFLAGS="$CFLAGS -fgnu89-inline"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6822 main ()
6826 return 0;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 use_gnu89_inline="yes"
6831 else
6832 use_gnu89_inline="no"
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6836 $as_echo "$use_gnu89_inline" >&6; }
6837 if test "x-$use_gnu89_inline" = "x-yes" ; then
6838 gnu89_inline="-fgnu89-inline"
6840 CFLAGS="$save_cflags"
6842 #-----------------------------------------------------------------------------
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6845 $as_echo_n "checking for type of build... " >&6; }
6846 # Check whether --enable-build_type was given.
6847 if test "${enable_build_type+set}" = set; then :
6848 enableval=$enable_build_type; build_type=$enableval
6849 else
6850 build_type="personal"
6854 if test "$build_type" = "nightly"; then
6855 build_type_string="NIGHTLY"
6856 elif test "$build_type" = "snapshot"; then
6857 build_type_string="SNAPSHOT"
6858 elif test "$build_type" = "milestone"; then
6859 build_type_string="MILESTONE"
6860 elif test "$build_type" = "release"; then
6861 build_type_string="RELEASE"
6862 else
6863 build_type_string="PERSONAL"
6864 build_type="personal"
6867 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6870 $as_echo "$build_type" >&6; }
6872 #-----------------------------------------------------------------------------
6873 all_debug_types="messages stack modules mungwall symbols"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6876 $as_echo_n "checking which debug types to enable... " >&6; }
6877 # Check whether --enable-debug was given.
6878 if test "${enable_debug+set}" = set; then :
6879 enableval=$enable_debug; debug="$enableval"
6880 else
6881 debug=""
6885 if test "$debug" = "" -o "$debug" = "no"; then
6886 debug="none"
6887 elif test "$debug" = "yes"; then
6888 debug="all"
6891 if test "$debug" = "all" ; then
6892 debug="messages stack modules symbols"
6893 for d in $all_debug_types; do
6894 export aros_${d}_debug="1"
6895 done
6896 else
6897 for d in $all_debug_types; do
6898 export aros_${d}_debug="0"
6899 done
6902 if test "$debug" != "none"; then
6903 debug=`echo $debug | sed s/,/\ /g`
6904 for d in $debug; do
6905 found="0"
6906 for d2 in $all_debug_types; do
6907 if test "$d2" = "$d"; then
6908 found="1"
6909 break
6911 done
6912 if test "$found" = "0"; then
6913 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6915 export aros_${d}_debug="1"
6916 done
6917 aros_debug="yes"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6920 $as_echo "$debug" >&6; }
6922 if test "$aros_messages_debug" = "1"; then
6923 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6924 else
6925 aros_messages_debug=""
6927 if test "$aros_symbols_debug" = "1"; then
6928 aros_symbols_debug="-g"
6929 else
6930 aros_symbols_debug=""
6933 # These are the flags to pass when compiling debugged programs
6934 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6935 aros_debug_aflags=""
6936 aros_debug_ldflags="$aros_symbols_debug"
6938 #-----------------------------------------------------------------------------
6939 # Checking if we should build crosstools..
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6941 $as_echo_n "checking whether to build crosstools... " >&6; }
6942 # Check whether --enable-crosstools was given.
6943 if test "${enable_crosstools+set}" = set; then :
6944 enableval=$enable_crosstools; crosstools="$enableval"
6945 else
6946 crosstools="no"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6950 $as_echo "$crosstools" >&6; }
6952 #-----------------------------------------------------------------------------
6953 # Checking for distcc and ccache.
6955 # Always apply the transforms in this particular order. Basically you should
6956 # always run 'ccache distcc compiler' in that order for the best performance.
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6959 $as_echo_n "checking whether to enable distcc... " >&6; }
6960 # Check whether --enable-distcc was given.
6961 if test "${enable_distcc+set}" = set; then :
6962 enableval=$enable_distcc; distcc="$enableval"
6963 else
6964 distcc="no"
6967 if test "$distcc" != "" -a "$distcc" != "no"; then
6968 # AC_CHECK_PROG will print out the result in this case
6969 # Extract the first word of "distcc", so it can be a program name with args.
6970 set dummy distcc; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_path_DISTCC+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 case $DISTCC in
6977 [\\/]* | ?:[\\/]*)
6978 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6992 done
6993 done
6994 IFS=$as_save_IFS
6996 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6998 esac
7000 DISTCC=$ac_cv_path_DISTCC
7001 if test -n "$DISTCC"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7003 $as_echo "$DISTCC" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7016 $as_echo_n "checking whether to enable ccache... " >&6; }
7017 # Check whether --enable-ccache was given.
7018 if test "${enable_ccache+set}" = set; then :
7019 enableval=$enable_ccache; ccache="$enableval"
7020 else
7021 ccache="no"
7024 if test "$ccache" != "" -a "$ccache" != "no"; then
7025 # AC_CHECK_PROG will print out the result in this case
7026 # Extract the first word of "ccache", so it can be a program name with args.
7027 set dummy ccache; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_CCACHE+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$CCACHE"; then
7034 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_prog_CCACHE="ccache"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7053 CCACHE=$ac_cv_prog_CCACHE
7054 if test -n "$CCACHE"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7056 $as_echo "$CCACHE" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7068 #-----------------------------------------------------------------------------
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7070 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7072 # Check whether --with-gcc-version was given.
7073 if test "${with_gcc_version+set}" = set; then :
7074 withval=$with_gcc_version; target_tool_version="$withval"
7075 else
7076 target_tool_version="default"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7080 $as_echo "$target_tool_version" >&6; }
7082 #-----------------------------------------------------------------------------
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7084 $as_echo_n "checking what optimization flags to use... " >&6; }
7086 # Check whether --with-optimization was given.
7087 if test "${with_optimization+set}" = set; then :
7088 withval=$with_optimization; optimization="$withval"
7089 else
7090 optimization="unknown"
7093 if test "$optimization" = "unknown"; then
7094 if test "$debug" != "none"; then
7095 optimization="-O0"
7096 else
7097 optimization="-O2"
7100 aros_config_cflags="$aros_config_cflags $optimization"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7102 $as_echo "$optimization" >&6; }
7104 #-----------------------------------------------------------------------------
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7106 $as_echo_n "checking what paranoia flags to use... " >&6; }
7108 # Check whether --with-paranoia was given.
7109 if test "${with_paranoia+set}" = set; then :
7110 withval=$with_paranoia; paranoia_flags="$withval"
7111 else
7112 paranoia_flags="default"
7115 if test "$paranoia_flags" = "default"; then
7116 paranoia_flags=""
7117 else if test "$paranoia_flags" = "yes"; then
7118 paranoia_flags="-Wall -Werror"
7119 fi fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7121 $as_echo "$paranoia_flags" >&6; }
7122 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7124 #-----------------------------------------------------------------------------
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7126 $as_echo_n "checking what target variant to enable... " >&6; }
7127 # Check whether --enable-target_variant was given.
7128 if test "${enable_target_variant+set}" = set; then :
7129 enableval=$enable_target_variant; target_variant=$enableval
7130 else
7131 target_variant=""
7134 if test "$target_variant" = ""; then
7135 aros_target_variant=""
7136 aros_target_suffix=""
7137 enableval="none"
7138 else
7139 aros_target_variant="$target_variant"
7140 aros_target_suffix="-$target_variant"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7143 $as_echo "$enableval" >&6; }
7145 #-----------------------------------------------------------------------------
7146 # Target-specific defaults. You can override then on a per-target basis.
7148 # Bootloader name. Currently used by PC target.
7149 target_bootloader="none"
7151 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7152 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7153 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7154 if test "$crosstools" != "yes"; then
7155 target_tool_prefix=${target_cpu}-elf-
7156 else
7157 target_tool_prefix=${target_cpu}-aros-
7160 #-----------------------------------------------------------------------------
7161 # Additional options for some specific targets
7163 case "$aros_target_variant" in
7164 ios)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7166 $as_echo_n "checking XCode path... " >&6; }
7168 # Check whether --with-xcode was given.
7169 if test "${with_xcode+set}" = set; then :
7170 withval=$with_xcode; aros_xcode_path="$withval"
7171 else
7172 aros_xcode_path="/Developer"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7176 $as_echo "$aros_xcode_path" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7179 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7181 # Check whether --with-sdk-version was given.
7182 if test "${with_sdk_version+set}" = set; then :
7183 withval=$with_sdk_version; aros_sdk_version="$withval"
7184 else
7185 aros_sdk_version="4.1"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7189 $as_echo "$aros_sdk_version" >&6; }
7193 "android")
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7195 $as_echo_n "checking Android SDK path... " >&6; }
7197 # Check whether --with-sdk was given.
7198 if test "${with_sdk+set}" = set; then :
7199 withval=$with_sdk; aros_android_sdk="$withval"
7200 else
7201 aros_android_sdk=$default_android_sdk
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7205 $as_echo "$aros_android_sdk" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7208 $as_echo_n "checking Android NDK path... " >&6; }
7210 # Check whether --with-ndk was given.
7211 if test "${with_ndk+set}" = set; then :
7212 withval=$with_ndk; aros_android_ndk="$withval"
7213 else
7214 aros_android_ndk="none"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7218 $as_echo "$aros_android_ndk" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7221 $as_echo_n "checking what Android SDK version to use... " >&6; }
7223 # Check whether --with-sdk-version was given.
7224 if test "${with_sdk_version+set}" = set; then :
7225 withval=$with_sdk_version; aros_sdk_version="$withval"
7226 else
7227 aros_sdk_version="12"
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7231 $as_echo "$aros_sdk_version" >&6; }
7233 if test "$aros_android_ndk" != "none"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7235 $as_echo_n "checking what Android NDK version to use... " >&6; }
7237 # Check whether --with-ndk-version was given.
7238 if test "${with_ndk_version+set}" = set; then :
7239 withval=$with_ndk_version; aros_ndk_version="$withval"
7240 else
7241 aros_ndk_version="9"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7245 $as_echo "$aros_ndk_version" >&6; }
7248 export PATH="$aros_android_sdk/tools:$PATH"
7249 # Extract the first word of "$android_tool", so it can be a program name with args.
7250 set dummy $android_tool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_path_android_tool+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 case $android_tool in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7272 done
7273 done
7274 IFS=$as_save_IFS
7277 esac
7279 android_tool=$ac_cv_path_android_tool
7280 if test -n "$android_tool"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7282 $as_echo "$android_tool" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7289 if test "$android_tool" = ""; then
7290 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7293 aros_android_level=android-$aros_sdk_version
7294 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7295 echo "Platform $aros_android_level is not installed in your SDK"
7296 echo "Use --with-sdk-version=<API level number> to select another platform version"
7297 echo "You can check what plaform versions are installed in your SDK"
7298 echo "by examining contents of $aros_android_sdk/platforms directory"
7299 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7302 # Extract the first word of "ant", so it can be a program name with args.
7303 set dummy ant; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_path_ant+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case $ant in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7330 esac
7332 ant=$ac_cv_path_ant
7333 if test -n "$ant"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7335 $as_echo "$ant" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7342 if test "$ant" = ""; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7344 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7347 if test "$host_os" = "mingw32"; then
7348 android_tool="cmd //c $android_tool"
7352 esac
7354 #-----------------------------------------------------------------------------
7356 # This is the target configuration switch.
7357 case "$target_os" in
7358 linux*)
7359 aros_target_arch="linux"
7360 aros_target_family="unix"
7361 case "$target_cpu" in
7362 *m68k*)
7363 aros_target_cpu="m68k"
7364 aros_object_format="m68kelf"
7365 aros_flavour="emulcompat"
7366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7367 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7368 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7369 gcc_target_cpu="mc68000"
7371 *i?86*)
7372 aros_target_cpu="i386"
7373 aros_object_format="elf_i386"
7374 aros_flavour="emulation"
7375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7376 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7377 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7378 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7379 aros_config_ldflags="-m32 -march=i486"
7380 aros_kernel_ldflags="-melf_i386"
7381 aros_default_wbdepth=8
7382 gcc_target_cpu="i386"
7383 pci_hidd_target="hidd-pci-linux"
7384 android_tool_dir_prefix="x86"
7385 android_tool_prefix="i686-android-linux"
7386 android_ndk_arch="x86"
7388 *x86_64*)
7389 aros_target_cpu="x86_64"
7390 aros_object_format="elf_x86_64"
7391 aros_flavour="emulation"
7392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7393 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7394 aros_default_wbdepth=8
7395 pci_hidd_target="hidd-pci-linux"
7397 *powerpc*)
7398 aros_target_cpu="ppc"
7399 aros_object_format="elf32ppc"
7400 aros_flavour="emulation"
7401 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7402 aros_default_wbdepth=8
7403 gcc_target_cpu="ppc"
7405 # TODO
7406 # Same as powerpc, but I need this for the nightly build to work again.
7407 # Actually, the nightly should be made working with powerpc target.
7408 # That just was too much work for the moment, another week or two.
7409 *ppc*)
7410 aros_target_cpu="ppc"
7411 aros_object_format="elf32ppc"
7412 aros_flavour="emulation"
7413 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7414 aros_default_wbdepth=8
7415 gcc_target_cpu="ppc"
7417 *arm*)
7418 aros_target_cpu="arm"
7419 aros_object_format="armelf_linux_eabi"
7420 aros_flavour="emulation"
7421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7422 gcc_target_cpu="arm"
7423 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7424 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7425 aros_arch_libs="-laeabi"
7426 android_tool_dir_prefix="arm-linux-androideabi"
7427 android_tool_prefix="arm-linux-androideabi"
7428 android_ndk_arch="arm"
7431 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7433 esac
7434 case "$aros_target_variant" in
7435 android)
7437 if test "$android_ndk_arch" = ""; then
7438 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7441 aros_default_wbwidth=320
7442 aros_default_wbheight=480
7443 if test "$aros_android_ndk" = "none"; then
7444 aros_kernel_cflags="-mandroid"
7445 aros_kernel_ldflags="-mandroid"
7446 CFLAGS="-mandroid"
7447 else
7448 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7449 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7450 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7451 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7452 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7453 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7455 need_x11=no
7456 x11_hidd_target=kernel-hidd-androidgfx-kobj
7457 target_tool_prefix="$android_tool_prefix-"
7459 esac
7463 aros_target_arch="pc"
7464 aros_shared_default="no"
7465 target_bootloader="grub2"
7466 case "$target_cpu" in
7467 *i?86*)
7468 aros_target_cpu="i386"
7471 if test "$aros_object_format" = "" ; then
7472 aros_object_format="elf_i386"
7474 aros_flavour="standalone"
7475 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7476 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7477 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7478 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7479 aros_config_ldflags="-m32 -march=i486"
7480 aros_kernel_ldflags="-melf_i386"
7481 aros_default_wbwidth=640
7482 aros_default_wbheight=480
7483 gcc_target_cpu="i386"
7485 *x86_64*)
7486 aros_target_cpu="x86_64"
7487 aros_serial_debug=1
7488 if test "$aros_object_format" = "" ; then
7489 aros_object_format="elf_x86_64"
7491 aros_flavour="standalone"
7492 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7493 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7494 aros_kernel_ldflags=""
7495 aros_default_wbwidth=640
7496 aros_default_wbheight=480
7499 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7501 esac
7504 prep)
7505 aros_target_arch="prep"
7506 aros_shared_default="no"
7507 aros_target_cpu="ppc"
7508 aros_object_format="elf32ppc"
7509 aros_flavour="ppcnative"
7510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7511 aros_kernel_ldflags=""
7512 aros_default_wbwidth=640
7513 aros_default_wbheight=480
7514 gcc_target_cpu="ppc"
7517 freebsd*)
7518 aros_target_arch="freebsd"
7519 aros_target_family="unix"
7520 aros_target_cpu="i386"
7521 aros_flavour="emulation"
7522 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7523 gcc_target_cpu="i386"
7525 aros_target_strip_flags="-x"
7528 darwin*)
7529 aros_target_arch="darwin"
7530 aros_target_family="unix"
7531 aros_flavour="emulation"
7532 case "$target_cpu" in
7533 *i?86*)
7534 aros_ios_platform="iPhoneSimulator"
7535 aros_target_cpu="i386"
7536 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7537 aros_kernel_ldflags=""
7538 aros_macosx_version="10.4"
7539 aros_default_wbdepth=8
7540 gcc_target_cpu="i386"
7541 aros_object_format="elf_i386"
7542 aros_kernel_ar_flags="-cr"
7543 aros_target_strip_flags="-x"
7544 target_tool_prefix="i686-apple-darwin10-"
7545 target_tool_flags="-m32"
7547 *x86_64*)
7548 aros_target_cpu="x86_64"
7549 aros_object_format="elf_x86_64"
7550 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7551 aros_macosx_version="10.6"
7552 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7553 aros_kernel_cflags="-m64"
7554 aros_kernel_ldflags="-m64"
7555 aros_target_cflags="-mcmodel=large"
7556 aros_default_wbdepth=8
7557 aros_kernel_ar="ar"
7558 aros_kernel_ar_flags="-cr"
7559 aros_kernel_ld="ld"
7560 aros_kernel_ranlib="ranlib"
7561 target_tool_prefix="i686-apple-darwin10-"
7563 *ppc*)
7564 aros_target_cpu="ppc"
7565 aros_object_format="elf32ppc"
7566 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7567 aros_kernel_ldflags=""
7568 aros_macosx_version="10.0"
7569 aros_default_wbdepth=8
7570 gcc_target_cpu="ppc"
7571 aros_kernel_ar="ar"
7572 aros_kernel_ar_flags="-cr"
7573 aros_kernel_ld="ld -arch ppc"
7574 aros_kernel_ranlib="ranlib -arch ppc"
7575 target_tool_prefix="powerpc-apple-darwin10-"
7577 *arm*)
7578 aros_ios_platform="iPhoneOS"
7579 aros_target_cpu="arm"
7580 aros_object_format="armelf_linux_eabi"
7581 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7582 aros_arch_libs="-laeabi"
7583 aros_default_wbdepth=8
7584 gcc_target_cpu="arm"
7585 aros_kernel_ar="ar"
7586 aros_kernel_ar_flags="-cr"
7587 aros_kernel_ld="ld -arch arm"
7588 aros_kernel_ranlib="ranlib -arch arm"
7589 target_tool_prefix="arm-apple-darwin10-"
7590 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7593 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7595 esac
7596 case "$aros_target_variant" in
7597 ios)
7598 aros_ios_version="3.0"
7599 aros_default_wbwidth=320
7600 aros_default_wbheight=480
7601 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7602 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7603 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7604 need_x11=no
7605 # This is here because it may depend on iOS or SDK version
7606 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7607 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7608 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7611 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7612 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7614 esac
7617 dragonfly*)
7618 aros_target_arch="dragonfly"
7619 aros_target_family="unix"
7620 aros_flavour="emulation"
7621 case "$target_cpu" in
7622 *i?86*)
7623 aros_target_cpu="i386"
7624 aros_object_format="elf_i386"
7625 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7627 *x86_64*)
7628 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7629 aros_target_cpu="x86_64"
7630 aros_object_format="elf_x86_64"
7631 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7634 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7636 esac
7639 netbsd*)
7640 aros_target_arch="netbsd"
7641 aros_target_family="unix"
7642 case "$target_cpu" in
7643 *m68k*)
7644 aros_target_cpu="m68k"
7645 aros_object_format="m68kelf"
7646 aros_flavour="emulcompat"
7647 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7648 gcc_target_cpu="mc68000"
7650 *i?86*)
7651 aros_target_cpu="i386"
7652 aros_object_format="elf_i386"
7653 aros_flavour="emulation"
7654 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7655 aros_default_wbdepth=8
7656 gcc_target_cpu="i386"
7659 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7661 esac
7662 aros_target_genmap="-Wl,-M -Xlinker >"
7663 aros_flavour="emulation"
7664 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7667 openbsd*)
7668 aros_target_arch="openbsd"
7669 aros_target_family="unix"
7670 case "$target_cpu" in
7671 *i?86*)
7672 aros_target_cpu="i386"
7673 aros_object_format="elf_i386"
7674 aros_flavour="emulation"
7675 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7676 gcc_target_cpu="i386"
7679 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7681 esac
7682 aros_target_genmap="-Wl,-M -Xlinker >"
7683 aros_target_nm_flags="-u"
7684 aros_flavour="emulation"
7687 solaris*)
7688 aros_target_arch="solaris"
7689 aros_target_family="unix"
7690 case "$target_cpu" in
7691 *i?86*)
7692 aros_target_cpu="i386"
7693 aros_object_format="elf_i386"
7694 aros_flavour="emulation"
7695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7696 aros_default_wbdepth=8
7697 gcc_target_cpu="i386"
7699 *sparc*)
7700 aros_target_cpu="sparc"
7701 aros_object_format="elf_sparc"
7702 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7703 gcc_target_cpu="sparc"
7706 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7708 esac
7709 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7710 aros_flavour="emulation"
7713 morphos*)
7714 aros_target_arch="morphos"
7715 aros_shared_default="no"
7716 aros_target_cpu="ppc"
7717 aros_object_format="elf_ppc"
7718 aros_flavour="nativecompat"
7719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7720 gcc_target_cpu="ppc"
7723 sam440)
7724 aros_target_arch="sam440"
7725 aros_shared_default="no"
7726 aros_target_cpu="ppc"
7727 aros_object_format="elf32ppc"
7728 aros_flavour="ppcnative"
7729 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7730 aros_kernel_ldflags=""
7731 aros_default_wbwidth=1024
7732 aros_default_wbheight=768
7733 aros_default_wbdepth=24
7734 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7735 gcc_target_cpu="powerpc"
7738 efika)
7739 aros_target_arch="efika"
7740 aros_shared_default="no"
7741 aros_target_cpu="arm"
7742 aros_object_format="armelf_linux_eabi"
7743 aros_flavour="standalone"
7744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7745 aros_kernel_ldflags=""
7746 aros_default_wbwidth=1024
7747 aros_default_wbheight=600
7748 aros_arch_libs="-laeabi"
7749 gcc_default_cpu="armv7-a"
7750 gcc_default_fpu="vfpv3"
7751 gcc_default_float_abi="hard"
7752 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
7753 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
7756 chrp)
7757 aros_target_arch="chrp"
7758 aros_shared_default="no"
7759 aros_target_cpu="ppc"
7760 aros_object_format="elf32ppc"
7761 aros_flavour="ppcnative"
7762 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7763 aros_kernel_ldflags=""
7764 aros_default_wbwidth=640
7765 aros_default_wbheight=480
7766 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7767 gcc_target_cpu="powerpc"
7768 case "$aros_target_variant" in
7769 efika)
7770 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7772 esac
7775 amiga*)
7776 aros_target_arch="amiga"
7777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7778 aros_shared_default="no"
7780 case "$target_cpu" in
7781 *m68k*)
7782 # Check whether --enable-amigaos_compliance was given.
7783 if test "${enable_amigaos_compliance+set}" = set; then :
7784 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
7787 aros_enable_mmu=no
7788 aros_target_cpu="m68k"
7789 aros_object_format="m68kelf"
7790 aros_flavour="standcompat"
7791 gcc_target_cpu="m68000"
7792 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7793 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7794 target_tool_prefix="m68k-elf-"
7795 # Needed to get the correct multilib
7796 aros_config_ldflags="-${gcc_target_cpu}"
7797 aros_shared_ldflags="-${gcc_target_cpu}"
7798 aros_kernel_ldflags="-${gcc_target_cpu}"
7799 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7800 aros_target_strip_flags="-R.comment --strip-debug"
7801 aros_default_wbwidth=640
7802 aros_default_wbheight=256
7803 aros_default_wbdepth=2
7805 *ppc*)
7806 aros_cpu="ppc"
7807 aros_flavour="native"
7808 gcc_target_cpu="ppc"
7811 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7813 esac
7816 mingw*)
7817 aros_target_arch="mingw32"
7818 aros_shared_default="no"
7819 aros_flavour="emulation"
7820 aros_shared_cflags=""
7821 need_dlopen="no"
7822 rescomp="windres"
7823 case "$target_cpu" in
7824 *i?86*)
7825 aros_target_cpu="i386"
7826 aros_object_format="elf_i386"
7827 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7828 aros_default_wbdepth=8
7829 gcc_target_cpu="i386"
7831 aros_target_as="i386-aros-as"
7832 aros_target_ar="i386-aros-ar"
7833 aros_target_ranlib="i386-aros-ranlib"
7834 aros_target_nm="i386-aros-nm"
7835 aros_target_strip="i386-aros-strip"
7836 aros_target_objcopy="i386-aros-objcopy"
7837 aros_target_objdump="i386-aros-objdump"
7839 target_tool_prefix="i386-mingw32-"
7841 *x86_64*)
7842 aros_target_cpu="x86_64"
7843 aros_object_format="elf_x86_64"
7844 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7845 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7846 aros_default_wbdepth=8
7847 target_tool_prefix="x86_64-w64-mingw32-"
7849 *arm*)
7850 aros_target_cpu="arm"
7851 aros_object_format="armelf_linux_eabi"
7852 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7853 aros_arch_libs="-laeabi"
7854 aros_default_wbdepth=8
7855 gcc_target_cpu="arm"
7856 target_tool_prefix="arm-mingw32ce-"
7857 aros_default_wbwidth=160
7858 aros_default_wbheight=160
7861 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7863 esac
7864 if test $host_os = "cygwin"; then
7865 aros_kernel_cflags="-mno-cygwin"
7868 pp*)
7869 aros_target_arch="pp"
7870 aros_shared_default="no"
7871 case "$target_cpu" in
7872 *m68k*)
7873 aros_target_cpu="m68k"
7874 aros_object_format="m68kelf"
7875 aros_flavour="palmnative"
7876 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7877 aros_default_wbwidth=160
7878 aros_default_wbheight=160
7879 aros_default_wbdepth=1
7880 aros_target_ar_flags="cru"
7881 aros_compiler_libs="-lgcc1"
7882 aros_shared_default=no
7883 aros_shared_cflags="-fpic"
7884 aros_shared_aflags=""
7885 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7886 aros_kernel_ldflags="-Wl,-rpath,./lib"
7887 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7888 aros_debug_aflags=""
7889 aros_debug_ldflags="$aros_symbols_debug"
7890 aros_mungwall_debug="0"
7891 aros_modules_debug="0"
7892 gcc_target_cpu="mc68000"
7893 ignore_undefined_symbols="-ius"
7896 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7898 esac
7901 mac*)
7902 aros_target_arch="mac"
7903 aros_shared_default="no"
7904 case "$target_cpu" in
7905 *m68k*)
7906 aros_target_cpu="m68k"
7907 aros_object_format="m68kelf"
7908 aros_flavour="mac68knative"
7909 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7910 aros_default_wbwidth=512
7911 aros_default_wbheight=384
7912 aros_default_wbdepth=8
7913 aros_target_ar_flags="cru"
7914 aros_compiler_libs="-lgcc1"
7915 aros_shared_default=no
7916 aros_shared_cflags="-fpic"
7917 aros_shared_aflags=""
7918 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7919 aros_kernel_ldflags="-Wl,-rpath,./lib"
7920 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7921 aros_debug_aflags=""
7922 aros_debug_ldflags="$aros_symbols_debug"
7923 aros_mungwall_debug="0"
7924 aros_modules_debug="0"
7925 gcc_target_cpu="mc68000"
7926 ignore_undefined_symbols="-ius"
7929 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7931 esac
7935 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7937 esac
7939 # Now process extra architecture-specific options.
7940 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7941 # as well as floating-point ABI.
7942 case "$aros_target_cpu" in
7943 arm)
7944 if test "$gcc_default_cpu" = ""; then
7945 gcc_default_cpu="armv6"
7947 if test "$gcc_default_fpu" = ""; then
7948 gcc_default_fpu="vfp"
7950 if test "$gcc_default_float_abi" = ""; then
7951 gcc_default_float_abi="softfp"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7955 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7957 # Check whether --with-cpu was given.
7958 if test "${with_cpu+set}" = set; then :
7959 withval=$with_cpu; aros_gcc_cpu="$withval"
7960 else
7961 aros_gcc_cpu=$gcc_default_cpu
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
7965 $as_echo "$aros_gcc_cpu" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
7968 $as_echo_n "checking Which minimum FPU to use... " >&6; }
7970 # Check whether --with-fpu was given.
7971 if test "${with_fpu+set}" = set; then :
7972 withval=$with_fpu; aros_gcc_fpu="$withval"
7973 else
7974 aros_gcc_fpu=$gcc_default_fpu
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
7978 $as_echo "$aros_gcc_fpu" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
7981 $as_echo_n "checking Which floating point ABI to use... " >&6; }
7983 # Check whether --with-float was given.
7984 if test "${with_float+set}" = set; then :
7985 withval=$with_float; aros_gcc_float_abi="$withval"
7986 else
7987 aros_gcc_float_abi=$gcc_default_float_abi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
7991 $as_echo "$aros_gcc_float_abi" >&6; }
7993 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"
7994 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"
7996 esac
7998 # Some formats need custom ELF specs.
7999 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8000 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8001 elf_specs_in=config/${aros_object_format}-specs.in
8002 else
8003 elf_specs_in=config/elf-specs.in
8006 #-----------------------------------------------------------------------------
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8008 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8010 # Check whether --with-crosstools was given.
8011 if test "${with_crosstools+set}" = set; then :
8012 withval=$with_crosstools; with_crosstools=$withval
8013 else
8014 with_crosstools="default"
8017 if test "$with_crosstools" = "default"; then
8018 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8019 else
8020 AROS_CROSSTOOLSDIR="$with_crosstools"
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8023 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8025 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8028 use_aros_gcc=yes
8029 PATH=$AROS_CROSSTOOLSDIR:$PATH
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8033 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8035 # Check whether --with-aros-gcc was given.
8036 if test "${with_aros_gcc+set}" = set; then :
8037 withval=$with_aros_gcc; aros_gcc_version="$withval"
8038 else
8039 aros_gcc_version="$use_aros_gcc"
8042 case "$aros_gcc_version" in
8043 yes)
8044 aros_gcc_version="default"
8047 aros_gcc_version="none"
8049 esac
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8051 $as_echo "$aros_gcc_version" >&6; }
8053 if test "$aros_gcc_version" != "none"; then
8056 if test "$aros_gcc_version" != "default"; then
8057 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
8058 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
8059 else
8060 aros_target_cc="$aros_target_cpu-aros-gcc"
8061 aros_target_cxx="$aros_target_cpu-aros-g++"
8064 aros_target_ld="$aros_target_cpu-aros-ld"
8065 aros_target_as="$aros_target_cpu-aros-as"
8066 aros_target_ar="$aros_target_cpu-aros-ar"
8067 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
8068 aros_target_nm="$aros_target_cpu-aros-nm"
8069 aros_target_strip="$aros_target_cpu-aros-strip"
8070 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
8071 aros_target_objdump="$aros_target_cpu-aros-objdump"
8074 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8075 # Since we override specs, we may need to put these defines there
8076 if test "$gcc_target_cpu" != ""; then
8077 gcc_target_cpu="-D__${gcc_target_cpu}__"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8081 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8083 # Check whether --with-portssources was given.
8084 if test "${with_portssources+set}" = set; then :
8085 withval=$with_portssources; with_portssrcdir=$withval
8086 else
8087 with_portssrcdir="default"
8090 if test "$with_portssrcdir" = "default"; then
8091 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8092 else
8093 AROS_PORTSSRCDIR="$with_portssrcdir"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8096 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8099 $as_echo_n "checking which bootloader to use... " >&6; }
8101 # Check whether --with-bootloader was given.
8102 if test "${with_bootloader+set}" = set; then :
8103 withval=$with_bootloader; target_bootloader=$withval
8104 else
8105 target_bootloader=$target_bootloader
8108 if test "$target_bootloader" = "none"; then
8109 aros_target_bootloader=""
8110 else
8111 aros_target_bootloader="$target_bootloader"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8114 $as_echo "$target_bootloader" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8117 $as_echo_n "checking which icon-set to use... " >&6; }
8119 # Check whether --with-iconset was given.
8120 if test "${with_iconset+set}" = set; then :
8121 withval=$with_iconset; target_iconset=$withval
8122 else
8123 target_iconset="default"
8126 if test "$target_iconset" = "default"; then
8127 aros_target_iconset="Gorilla"
8128 target_iconset="default (Gorilla)"
8129 else
8130 aros_target_iconset="$target_iconset"
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8133 $as_echo "$target_iconset" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8136 $as_echo_n "checking which GUI Theme to use... " >&6; }
8138 # Check whether --with-theme was given.
8139 if test "${with_theme+set}" = set; then :
8140 withval=$with_theme; target_guitheme=$withval
8141 else
8142 target_guitheme="default"
8145 if test "$target_guitheme" = "default"; then
8146 aros_target_guitheme="Ice"
8147 else
8148 aros_target_guitheme="$target_guitheme"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8151 $as_echo "$aros_target_guitheme" >&6; }
8153 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8154 # for target code)
8155 cross_compiling=no
8156 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8157 cross_compiling=yes
8160 if test "$aros_host_cpu" == "x86_64" ; then
8161 if test "$aros_target_cpu" == "i386" ; then
8162 if test "$aros_target_arch" != "mingw32"; then
8163 cross_compiling=no
8168 if test "$aros_host_arch" == "darwin" ; then
8169 if test "$aros_target_arch" != "darwin" ; then
8170 cross_compiling=yes
8174 if test "$aros_host_arch" == "mingw32" ; then
8175 if test "$aros_target_arch" != "mingw32" ; then
8176 cross_compiling=yes
8180 # I want to have this information in configure output, although it might be
8181 # misleading, e.g. for darwin hosted you cannot compile target code without a
8182 # cross compiler, but here it says no.
8184 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8185 # Target code is a little bit different thing.
8186 # sonic
8187 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8189 # Set prefix for target compiler etc. if we're cross-compiling
8190 # (should possibly be earlier but needs to be after AC_PROG_CC)
8191 if test "$cross_compiling" = "yes" ; then
8193 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8194 if test "$aros_gcc_version" != "none"; then
8197 target_tool_prefix=${target_cpu}-aros-
8198 target_tool_version=$aros_gcc_version
8199 use_kernel_cc_wrapper=yes
8201 aros_target_cc=
8202 aros_target_ld=
8203 aros_target_as=
8204 aros_target_ar=
8205 aros_target_ranlib=
8206 aros_target_nm=
8207 aros_target_strip=
8208 aros_target_objcopy=
8209 aros_target_objdump=
8213 CC=${target_tool_prefix}gcc
8214 CPP=${target_tool_prefix}cpp
8215 if test "$target_tool_version" != "default"; then
8216 CC="$CC-$target_tool_version"
8217 CPP="$CC-$target_tool_version"
8219 if test "$crosstools" != "yes" ; then
8220 # Extract the first word of "$CC", so it can be a program name with args.
8221 set dummy $CC; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if ${ac_cv_path_CC+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 case $CC in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8248 esac
8250 CC=$ac_cv_path_CC
8251 if test -n "$CC"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8253 $as_echo "$CC" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8260 if test "$CC" = ""; then
8261 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8263 else
8264 CC=$AROS_CROSSTOOLSDIR/$CC
8267 CC="$CC $target_tool_flags"
8269 #-----------------------------------------------------------------------------
8271 # Disable pointer-signedness warnings if the compiler recognises the option
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8274 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8275 save_cflags="$CFLAGS"
8276 if test "$crosstools" != "yes" ; then
8277 CFLAGS="$CFLAGS -Wno-pointer-sign"
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8282 main ()
8286 return 0;
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 use_no_sign_warning="yes"
8291 else
8292 use_no_sign_warning="no"
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 else
8296 # we do know it is supported for the smallest version of gcc we are going to build
8297 # we assume it's also supported by later versions
8298 use_no_sign_warning=yes
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8301 $as_echo "$use_no_sign_warning" >&6; }
8302 if test "x-$use_no_sign_warning" = "x-yes" ; then
8303 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8305 CFLAGS="$save_cflags"
8307 #-----------------------------------------------------------------------------
8309 # Find all the tools we need to compile. This could be cross-compiling
8310 # though! If that is the case we use the GNU form of the target and
8311 # simply add this to the front of the binary name. This is rather simple,
8312 # but it should work under most circumstances.
8314 # The default tools are to use the same as the host, but only if the
8315 # host and target CPU are the same. With GCC this is normally enough.
8318 aros_cc_pre=""
8319 aros_shared_ld="$aros_host_ld"
8321 aros_target_mkdep="$aros_host_mkdep"
8322 aros_target_incl_def="$aros_host_incl"
8324 aros_kernel_cc="$CC"
8326 # The default tools executables to be linked to.
8327 if test "$rescomp" != ""; then
8328 if test "$cross_compiling" = "yes" ; then
8329 rescomp=${target_tool_prefix}${rescomp}
8331 # Extract the first word of "$rescomp", so it can be a program name with args.
8332 set dummy $rescomp; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $aros_kernel_rescomp in
8339 [\\/]* | ?:[\\/]*)
8340 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8354 done
8355 done
8356 IFS=$as_save_IFS
8359 esac
8361 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8362 if test -n "$aros_kernel_rescomp"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8364 $as_echo "$aros_kernel_rescomp" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8371 if test "$aros_kernel_rescomp" = ""; then
8372 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8376 if test "$crosstools" != "yes"; then
8378 if test "$aros_kernel_ld" = ""; then
8379 if test "$cross_compiling" = "yes" ; then
8380 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8381 set dummy ${target_tool_prefix}ld; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 case $aros_kernel_ld in
8388 [\\/]* | ?:[\\/]*)
8389 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8408 esac
8410 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8411 if test -n "$aros_kernel_ld"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8413 $as_echo "$aros_kernel_ld" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8420 else
8421 if test "$GCC" = "yes"; then
8422 aros_gcc_ld=`$CC -print-prog-name=ld`
8423 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8424 set dummy `basename $aros_gcc_ld`; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 case $aros_kernel_ld in
8431 [\\/]* | ?:[\\/]*)
8432 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in `dirname $aros_gcc_ld`
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8446 done
8447 done
8448 IFS=$as_save_IFS
8451 esac
8453 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8454 if test -n "$aros_kernel_ld"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8456 $as_echo "$aros_kernel_ld" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8464 if test "$aros_kernel_ld" = ""; then
8465 # Extract the first word of "ld", so it can be a program name with args.
8466 set dummy ld; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 case $aros_kernel_ld in
8473 [\\/]* | ?:[\\/]*)
8474 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 for as_dir in $PATH
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8488 done
8489 done
8490 IFS=$as_save_IFS
8493 esac
8495 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8496 if test -n "$aros_kernel_ld"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8498 $as_echo "$aros_kernel_ld" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8507 else
8508 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8509 set dummy $aros_kernel_ld; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 case $aros_kernel_ld in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8531 done
8532 done
8533 IFS=$as_save_IFS
8536 esac
8538 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8539 if test -n "$aros_kernel_ld"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8541 $as_echo "$aros_kernel_ld" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8550 if test "$aros_kernel_ld" = ""; then
8551 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8554 if test "$aros_kernel_ar" = ""; then
8555 if test "$cross_compiling" = "yes" ; then
8556 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8557 set dummy ${target_tool_prefix}ar; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 case $aros_kernel_ar in
8564 [\\/]* | ?:[\\/]*)
8565 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8584 esac
8586 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8587 if test -n "$aros_kernel_ar"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8589 $as_echo "$aros_kernel_ar" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8596 else
8597 if test "$GCC" = "yes"; then
8598 aros_gcc_ar=`$CC -print-prog-name=ar`
8599 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8600 set dummy `basename $aros_gcc_ar`; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 case $aros_kernel_ar in
8607 [\\/]* | ?:[\\/]*)
8608 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in `dirname $aros_gcc_ar`
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8622 done
8623 done
8624 IFS=$as_save_IFS
8627 esac
8629 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8630 if test -n "$aros_kernel_ar"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8632 $as_echo "$aros_kernel_ar" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8640 if test "$aros_kernel_ar" = ""; then
8641 # Extract the first word of "ar", so it can be a program name with args.
8642 set dummy ar; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 case $aros_kernel_ar in
8649 [\\/]* | ?:[\\/]*)
8650 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8664 done
8665 done
8666 IFS=$as_save_IFS
8669 esac
8671 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8672 if test -n "$aros_kernel_ar"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8674 $as_echo "$aros_kernel_ar" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8683 else
8684 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8685 set dummy $aros_kernel_ar; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 case $aros_kernel_ar in
8692 [\\/]* | ?:[\\/]*)
8693 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8707 done
8708 done
8709 IFS=$as_save_IFS
8712 esac
8714 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8715 if test -n "$aros_kernel_ar"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8717 $as_echo "$aros_kernel_ar" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8726 if test "$aros_kernel_ar" = ""; then
8727 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8730 if test "$aros_kernel_ranlib" = ""; then
8731 if test "$cross_compiling" = "yes" ; then
8732 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8733 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 case $aros_kernel_ranlib in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8760 esac
8762 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8763 if test -n "$aros_kernel_ranlib"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8765 $as_echo "$aros_kernel_ranlib" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8772 else
8773 if test "$GCC" = "yes"; then
8774 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8775 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8776 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 case $aros_kernel_ranlib in
8783 [\\/]* | ?:[\\/]*)
8784 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in `dirname $aros_gcc_ranlib`
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8798 done
8799 done
8800 IFS=$as_save_IFS
8803 esac
8805 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8806 if test -n "$aros_kernel_ranlib"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8808 $as_echo "$aros_kernel_ranlib" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test "$aros_kernel_ranlib" = ""; then
8817 # Extract the first word of "ranlib", so it can be a program name with args.
8818 set dummy ranlib; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 case $aros_kernel_ranlib in
8825 [\\/]* | ?:[\\/]*)
8826 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8840 done
8841 done
8842 IFS=$as_save_IFS
8845 esac
8847 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8848 if test -n "$aros_kernel_ranlib"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8850 $as_echo "$aros_kernel_ranlib" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8859 else
8860 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8861 set dummy $aros_kernel_ranlib; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 case $aros_kernel_ranlib in
8868 [\\/]* | ?:[\\/]*)
8869 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8888 esac
8890 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8891 if test -n "$aros_kernel_ranlib"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8893 $as_echo "$aros_kernel_ranlib" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8902 if test "$aros_kernel_ranlib" = ""; then
8903 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8906 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8907 target_tool_prefix=${target_cpu}-elf-
8908 if test "$aros_target_cc" == ""; then
8909 aros_target_cc="${target_tool_prefix}gcc"
8911 if test "$aros_target_ld" == ""; then
8912 aros_target_ld="${target_tool_prefix}ld"
8916 if test "$aros_target_as" = ""; then
8917 if test "$cross_compiling" = "yes" ; then
8918 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8919 set dummy ${target_tool_prefix}as; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 case $aros_target_as_ln in
8926 [\\/]* | ?:[\\/]*)
8927 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8941 done
8942 done
8943 IFS=$as_save_IFS
8946 esac
8948 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8949 if test -n "$aros_target_as_ln"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8951 $as_echo "$aros_target_as_ln" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8958 else
8959 if test "$GCC" = "yes"; then
8960 aros_gcc_as=`$CC -print-prog-name=as`
8961 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8962 set dummy `basename $aros_gcc_as`; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 case $aros_target_as_ln in
8969 [\\/]* | ?:[\\/]*)
8970 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in `dirname $aros_gcc_as`
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8980 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8984 done
8985 done
8986 IFS=$as_save_IFS
8989 esac
8991 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8992 if test -n "$aros_target_as_ln"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8994 $as_echo "$aros_target_as_ln" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9002 if test "$aros_target_as_ln" = ""; then
9003 # Extract the first word of "as", so it can be a program name with args.
9004 set dummy as; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 case $aros_target_as_ln in
9011 [\\/]* | ?:[\\/]*)
9012 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9022 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9026 done
9027 done
9028 IFS=$as_save_IFS
9031 esac
9033 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9034 if test -n "$aros_target_as_ln"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9036 $as_echo "$aros_target_as_ln" >&6; }
9037 else
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9045 else
9046 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9047 set dummy $aros_target_as; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 case $aros_target_as_ln in
9054 [\\/]* | ?:[\\/]*)
9055 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9069 done
9070 done
9071 IFS=$as_save_IFS
9074 esac
9076 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9077 if test -n "$aros_target_as_ln"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9079 $as_echo "$aros_target_as_ln" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9088 if test "$aros_target_as_ln" = ""; then
9089 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9092 if test "$aros_target_ar" = ""; then
9093 if test "$cross_compiling" = "yes" ; then
9094 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9095 set dummy ${target_tool_prefix}ar; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 case $aros_target_ar_ln in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9122 esac
9124 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9125 if test -n "$aros_target_ar_ln"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9127 $as_echo "$aros_target_ar_ln" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9134 else
9135 if test "$GCC" = "yes"; then
9136 aros_gcc_ar=`$CC -print-prog-name=ar`
9137 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9138 set dummy `basename $aros_gcc_ar`; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 case $aros_target_ar_ln in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in `dirname $aros_gcc_ar`
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9165 esac
9167 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9168 if test -n "$aros_target_ar_ln"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9170 $as_echo "$aros_target_ar_ln" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9178 if test "$aros_target_ar_ln" = ""; then
9179 # Extract the first word of "ar", so it can be a program name with args.
9180 set dummy ar; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 case $aros_target_ar_ln in
9187 [\\/]* | ?:[\\/]*)
9188 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9198 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9202 done
9203 done
9204 IFS=$as_save_IFS
9207 esac
9209 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9210 if test -n "$aros_target_ar_ln"; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9212 $as_echo "$aros_target_ar_ln" >&6; }
9213 else
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 $as_echo "no" >&6; }
9221 else
9222 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9223 set dummy $aros_target_ar; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 case $aros_target_ar_ln in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9250 esac
9252 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9253 if test -n "$aros_target_ar_ln"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9255 $as_echo "$aros_target_ar_ln" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9264 if test "$aros_target_ar_ln" = ""; then
9265 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9268 if test "$aros_target_nm" = ""; then
9269 if test "$cross_compiling" = "yes" ; then
9270 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9271 set dummy ${target_tool_prefix}nm; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 case $aros_target_nm_ln in
9278 [\\/]* | ?:[\\/]*)
9279 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9293 done
9294 done
9295 IFS=$as_save_IFS
9298 esac
9300 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9301 if test -n "$aros_target_nm_ln"; then
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9303 $as_echo "$aros_target_nm_ln" >&6; }
9304 else
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9310 else
9311 if test "$GCC" = "yes"; then
9312 aros_gcc_nm=`$CC -print-prog-name=nm`
9313 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9314 set dummy `basename $aros_gcc_nm`; ac_word=$2
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316 $as_echo_n "checking for $ac_word... " >&6; }
9317 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 case $aros_target_nm_ln in
9321 [\\/]* | ?:[\\/]*)
9322 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in `dirname $aros_gcc_nm`
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9336 done
9337 done
9338 IFS=$as_save_IFS
9341 esac
9343 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9344 if test -n "$aros_target_nm_ln"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9346 $as_echo "$aros_target_nm_ln" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9354 if test "$aros_target_nm_ln" = ""; then
9355 # Extract the first word of "nm", so it can be a program name with args.
9356 set dummy nm; ac_word=$2
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358 $as_echo_n "checking for $ac_word... " >&6; }
9359 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 case $aros_target_nm_ln in
9363 [\\/]* | ?:[\\/]*)
9364 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9374 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 break 2
9378 done
9379 done
9380 IFS=$as_save_IFS
9383 esac
9385 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9386 if test -n "$aros_target_nm_ln"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9388 $as_echo "$aros_target_nm_ln" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9397 else
9398 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9399 set dummy $aros_target_nm; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 case $aros_target_nm_ln in
9406 [\\/]* | ?:[\\/]*)
9407 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9426 esac
9428 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9429 if test -n "$aros_target_nm_ln"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9431 $as_echo "$aros_target_nm_ln" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9440 if test "$aros_target_nm_ln" = ""; then
9441 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9444 if test "$aros_target_objcopy" = ""; then
9445 if test "$cross_compiling" = "yes" ; then
9446 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9447 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 case $aros_target_objcopy_ln in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9474 esac
9476 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9477 if test -n "$aros_target_objcopy_ln"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9479 $as_echo "$aros_target_objcopy_ln" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9486 else
9487 if test "$GCC" = "yes"; then
9488 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9489 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9490 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 case $aros_target_objcopy_ln in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in `dirname $aros_gcc_objcopy`
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9517 esac
9519 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9520 if test -n "$aros_target_objcopy_ln"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9522 $as_echo "$aros_target_objcopy_ln" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9530 if test "$aros_target_objcopy_ln" = ""; then
9531 # Extract the first word of "objcopy", so it can be a program name with args.
9532 set dummy objcopy; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 case $aros_target_objcopy_ln in
9539 [\\/]* | ?:[\\/]*)
9540 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9550 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9559 esac
9561 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9562 if test -n "$aros_target_objcopy_ln"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9564 $as_echo "$aros_target_objcopy_ln" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9573 else
9574 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9575 set dummy $aros_target_objcopy; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 case $aros_target_objcopy_ln in
9582 [\\/]* | ?:[\\/]*)
9583 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9602 esac
9604 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9605 if test -n "$aros_target_objcopy_ln"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9607 $as_echo "$aros_target_objcopy_ln" >&6; }
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9616 if test "$aros_target_objcopy_ln" = ""; then
9617 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9620 if test "$aros_target_objdump" = ""; then
9621 if test "$cross_compiling" = "yes" ; then
9622 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9623 set dummy ${target_tool_prefix}objdump; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 case $aros_target_objdump_ln in
9630 [\\/]* | ?:[\\/]*)
9631 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 for as_dir in $PATH
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9641 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9645 done
9646 done
9647 IFS=$as_save_IFS
9650 esac
9652 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9653 if test -n "$aros_target_objdump_ln"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9655 $as_echo "$aros_target_objdump_ln" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9662 else
9663 if test "$GCC" = "yes"; then
9664 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9665 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9666 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 case $aros_target_objdump_ln in
9673 [\\/]* | ?:[\\/]*)
9674 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in `dirname $aros_gcc_objdump`
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 break 2
9688 done
9689 done
9690 IFS=$as_save_IFS
9693 esac
9695 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9696 if test -n "$aros_target_objdump_ln"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9698 $as_echo "$aros_target_objdump_ln" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9706 if test "$aros_target_objdump_ln" = ""; then
9707 # Extract the first word of "objdump", so it can be a program name with args.
9708 set dummy objdump; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 case $aros_target_objdump_ln in
9715 [\\/]* | ?:[\\/]*)
9716 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9730 done
9731 done
9732 IFS=$as_save_IFS
9735 esac
9737 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9738 if test -n "$aros_target_objdump_ln"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9740 $as_echo "$aros_target_objdump_ln" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9749 else
9750 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9751 set dummy $aros_target_objdump; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 case $aros_target_objdump_ln in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9778 esac
9780 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9781 if test -n "$aros_target_objdump_ln"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9783 $as_echo "$aros_target_objdump_ln" >&6; }
9784 else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9792 if test "$aros_target_objdump_ln" = ""; then
9793 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9796 if test "$aros_target_ranlib" = ""; then
9797 if test "$cross_compiling" = "yes" ; then
9798 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9799 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 case $aros_target_ranlib_ln in
9806 [\\/]* | ?:[\\/]*)
9807 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9821 done
9822 done
9823 IFS=$as_save_IFS
9826 esac
9828 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9829 if test -n "$aros_target_ranlib_ln"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9831 $as_echo "$aros_target_ranlib_ln" >&6; }
9832 else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9838 else
9839 if test "$GCC" = "yes"; then
9840 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9841 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9842 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 case $aros_target_ranlib_ln in
9849 [\\/]* | ?:[\\/]*)
9850 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in `dirname $aros_gcc_ranlib`
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9869 esac
9871 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9872 if test -n "$aros_target_ranlib_ln"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9874 $as_echo "$aros_target_ranlib_ln" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9882 if test "$aros_target_ranlib_ln" = ""; then
9883 # Extract the first word of "ranlib", so it can be a program name with args.
9884 set dummy ranlib; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 case $aros_target_ranlib_ln in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9906 done
9907 done
9908 IFS=$as_save_IFS
9911 esac
9913 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9914 if test -n "$aros_target_ranlib_ln"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9916 $as_echo "$aros_target_ranlib_ln" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9925 else
9926 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9927 set dummy $aros_target_ranlib; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 case $aros_target_ranlib_ln in
9934 [\\/]* | ?:[\\/]*)
9935 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in $PATH
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9945 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9949 done
9950 done
9951 IFS=$as_save_IFS
9954 esac
9956 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9957 if test -n "$aros_target_ranlib_ln"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9959 $as_echo "$aros_target_ranlib_ln" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9968 if test "$aros_target_ranlib_ln" = ""; then
9969 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9972 if test "$aros_target_strip" = ""; then
9973 if test "$cross_compiling" = "yes" ; then
9974 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9975 set dummy ${target_tool_prefix}strip; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 case $aros_target_strip_ln in
9982 [\\/]* | ?:[\\/]*)
9983 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9993 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 break 2
9997 done
9998 done
9999 IFS=$as_save_IFS
10002 esac
10004 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10005 if test -n "$aros_target_strip_ln"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10007 $as_echo "$aros_target_strip_ln" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10014 else
10015 if test "$GCC" = "yes"; then
10016 aros_gcc_strip=`$CC -print-prog-name=strip`
10017 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10018 set dummy `basename $aros_gcc_strip`; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 case $aros_target_strip_ln in
10025 [\\/]* | ?:[\\/]*)
10026 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in `dirname $aros_gcc_strip`
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10045 esac
10047 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10048 if test -n "$aros_target_strip_ln"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10050 $as_echo "$aros_target_strip_ln" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10058 if test "$aros_target_strip_ln" = ""; then
10059 # Extract the first word of "strip", so it can be a program name with args.
10060 set dummy strip; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 case $aros_target_strip_ln in
10067 [\\/]* | ?:[\\/]*)
10068 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10082 done
10083 done
10084 IFS=$as_save_IFS
10087 esac
10089 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10090 if test -n "$aros_target_strip_ln"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10092 $as_echo "$aros_target_strip_ln" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10101 else
10102 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10103 set dummy $aros_target_strip; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 case $aros_target_strip_ln in
10110 [\\/]* | ?:[\\/]*)
10111 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10121 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10125 done
10126 done
10127 IFS=$as_save_IFS
10130 esac
10132 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10133 if test -n "$aros_target_strip_ln"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10135 $as_echo "$aros_target_strip_ln" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10144 if test "$aros_target_strip_ln" = ""; then
10145 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10147 if test "$aros_target_cxx" != ""; then
10148 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10149 set dummy $aros_target_cxx; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_path_aros_target_cxx+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 case $aros_target_cxx in
10156 [\\/]* | ?:[\\/]*)
10157 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10171 done
10172 done
10173 IFS=$as_save_IFS
10176 esac
10178 aros_target_cxx=$ac_cv_path_aros_target_cxx
10179 if test -n "$aros_target_cxx"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10181 $as_echo "$aros_target_cxx" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10188 if test "$aros_target_cxx" = ""; then
10189 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10192 else
10193 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10194 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10195 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10196 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10197 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10198 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10199 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10200 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10201 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10203 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10205 if test "$aros_kernel_ld" = ""; then
10206 if test "$cross_compiling" = "yes" ; then
10207 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10208 set dummy ${target_tool_prefix}ld; ac_word=$2
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 case $aros_kernel_ld in
10215 [\\/]* | ?:[\\/]*)
10216 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10230 done
10231 done
10232 IFS=$as_save_IFS
10235 esac
10237 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10238 if test -n "$aros_kernel_ld"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10240 $as_echo "$aros_kernel_ld" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10247 else
10248 if test "$GCC" = "yes"; then
10249 aros_gcc_ld=`$CC -print-prog-name=ld`
10250 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10251 set dummy `basename $aros_gcc_ld`; ac_word=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 case $aros_kernel_ld in
10258 [\\/]* | ?:[\\/]*)
10259 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in `dirname $aros_gcc_ld`
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10273 done
10274 done
10275 IFS=$as_save_IFS
10278 esac
10280 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10281 if test -n "$aros_kernel_ld"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10283 $as_echo "$aros_kernel_ld" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 if test "$aros_kernel_ld" = ""; then
10292 # Extract the first word of "ld", so it can be a program name with args.
10293 set dummy ld; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 case $aros_kernel_ld in
10300 [\\/]* | ?:[\\/]*)
10301 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10315 done
10316 done
10317 IFS=$as_save_IFS
10320 esac
10322 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10323 if test -n "$aros_kernel_ld"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10325 $as_echo "$aros_kernel_ld" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10334 else
10335 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10336 set dummy $aros_kernel_ld; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 case $aros_kernel_ld in
10343 [\\/]* | ?:[\\/]*)
10344 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10350 IFS=$as_save_IFS
10351 test -z "$as_dir" && as_dir=.
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10354 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356 break 2
10358 done
10359 done
10360 IFS=$as_save_IFS
10363 esac
10365 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10366 if test -n "$aros_kernel_ld"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10368 $as_echo "$aros_kernel_ld" >&6; }
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10377 if test "$aros_kernel_ld" = ""; then
10378 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10381 if test "$aros_kernel_ar" = ""; then
10382 if test "$cross_compiling" = "yes" ; then
10383 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10384 set dummy ${target_tool_prefix}ar; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 case $aros_kernel_ar in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10408 IFS=$as_save_IFS
10411 esac
10413 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10414 if test -n "$aros_kernel_ar"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10416 $as_echo "$aros_kernel_ar" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10423 else
10424 if test "$GCC" = "yes"; then
10425 aros_gcc_ar=`$CC -print-prog-name=ar`
10426 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10427 set dummy `basename $aros_gcc_ar`; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $aros_kernel_ar in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in `dirname $aros_gcc_ar`
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10454 esac
10456 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10457 if test -n "$aros_kernel_ar"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10459 $as_echo "$aros_kernel_ar" >&6; }
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10467 if test "$aros_kernel_ar" = ""; then
10468 # Extract the first word of "ar", so it can be a program name with args.
10469 set dummy ar; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 case $aros_kernel_ar in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10496 esac
10498 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10499 if test -n "$aros_kernel_ar"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10501 $as_echo "$aros_kernel_ar" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10510 else
10511 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10512 set dummy $aros_kernel_ar; ac_word=$2
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514 $as_echo_n "checking for $ac_word... " >&6; }
10515 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 case $aros_kernel_ar in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10534 done
10535 done
10536 IFS=$as_save_IFS
10539 esac
10541 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10542 if test -n "$aros_kernel_ar"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10544 $as_echo "$aros_kernel_ar" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10553 if test "$aros_kernel_ar" = ""; then
10554 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10557 if test "$aros_kernel_ranlib" = ""; then
10558 if test "$cross_compiling" = "yes" ; then
10559 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10560 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 case $aros_kernel_ranlib in
10567 [\\/]* | ?:[\\/]*)
10568 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10587 esac
10589 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10590 if test -n "$aros_kernel_ranlib"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10592 $as_echo "$aros_kernel_ranlib" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10599 else
10600 if test "$GCC" = "yes"; then
10601 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10602 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10603 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 case $aros_kernel_ranlib in
10610 [\\/]* | ?:[\\/]*)
10611 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in `dirname $aros_gcc_ranlib`
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10630 esac
10632 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10633 if test -n "$aros_kernel_ranlib"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10635 $as_echo "$aros_kernel_ranlib" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10643 if test "$aros_kernel_ranlib" = ""; then
10644 # Extract the first word of "ranlib", so it can be a program name with args.
10645 set dummy ranlib; ac_word=$2
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10647 $as_echo_n "checking for $ac_word... " >&6; }
10648 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 case $aros_kernel_ranlib in
10652 [\\/]* | ?:[\\/]*)
10653 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10672 esac
10674 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10675 if test -n "$aros_kernel_ranlib"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10677 $as_echo "$aros_kernel_ranlib" >&6; }
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10686 else
10687 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10688 set dummy $aros_kernel_ranlib; ac_word=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 case $aros_kernel_ranlib in
10695 [\\/]* | ?:[\\/]*)
10696 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10706 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10710 done
10711 done
10712 IFS=$as_save_IFS
10715 esac
10717 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10718 if test -n "$aros_kernel_ranlib"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10720 $as_echo "$aros_kernel_ranlib" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10729 if test "$aros_kernel_ranlib" = ""; then
10730 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10732 else
10733 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10734 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10735 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10738 crosstools_target=tools-crosstools
10741 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10743 orig_target_cc=$aros_kernel_cc
10744 orig_target_ld=$aros_kernel_ld
10746 if test "$crosstools" != "yes"; then
10747 if test "$aros_target_cc" != ""; then
10748 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10749 set dummy $aros_target_cc; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_path_aros_target_cc+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 case $aros_target_cc in
10756 [\\/]* | ?:[\\/]*)
10757 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10771 done
10772 done
10773 IFS=$as_save_IFS
10776 esac
10778 aros_target_cc=$ac_cv_path_aros_target_cc
10779 if test -n "$aros_target_cc"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10781 $as_echo "$aros_target_cc" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10788 if test "$aros_target_cc" = ""; then
10789 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10791 orig_target_cc=$aros_target_cc
10793 if test "$aros_target_ld" != ""; then
10794 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10795 set dummy $aros_target_ld; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_path_aros_target_ld+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 case $aros_target_ld in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10817 done
10818 done
10819 IFS=$as_save_IFS
10822 esac
10824 aros_target_ld=$ac_cv_path_aros_target_ld
10825 if test -n "$aros_target_ld"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10827 $as_echo "$aros_target_ld" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10834 if test "$aros_target_ld" = ""; then
10835 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10837 orig_target_ld=$aros_target_ld
10839 else
10840 orig_target_cc=$aros_target_cc
10841 orig_target_ld=$aros_target_ld
10844 # Build crosstools if we have no C++ - temporary thing
10845 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10846 crosstools_cxx_target=tools-crosstools
10849 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10850 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10851 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10852 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10853 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10854 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10855 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10857 # aros_cc_pre is a variable that is added to the front of the compiler name
10858 # in the generated aros-gcc shell script. We need this to enable the cache
10859 # to work across cleaned builds. Also, support DISTCC using the correct
10860 # environment variable.
10863 if test "x${DISTCC}" != "x" ; then
10864 if test "x${CCACHE}" != "x" ; then
10865 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10866 else
10867 aros_cc_pre="${DISTCC} "
10869 else
10870 if test "x${CCACHE}" != "x" ; then
10871 aros_cc_pre="${CCACHE} "
10875 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10877 aros_target_nostdinc_cflags=-nostdinc
10879 aros_target_nostartup_ldflags=-nostartfiles
10881 aros_target_nix_ldflags=-nix
10883 aros_target_detach_ldflags=-detach
10885 aros_target_nostdlib_ldflags=-nostdlib
10888 # Target tools
10889 if test "$crosstools" != "yes"; then
10890 if test "$GCC" = "yes"; then
10891 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10893 else
10894 # We do not know which gcc version we are going to build and what we need to know
10895 # here is different for different versions so this will be set later during the
10896 # build of crosstools.
10897 aros_target_cc_path=@aros_target_cc_path@
10899 aros_target_cc="${prefix}-gcc"
10900 aros_target_as="${prefix}-as"
10901 aros_target_ld="${prefix}-ld"
10902 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10903 aros_target_objcopy=${prefix}-objcopy
10904 aros_target_objdump=${prefix}-objdump
10905 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10906 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10907 aros_target_strip=${prefix}-strip
10908 aros_plain_nm="${prefix}-nm"
10909 aros_plain_ar="${prefix}-ar"
10911 # Find the system include path. We can suggest that an alternative is
10912 # used if we don't get it correct. The default is to use /usr/include.
10913 # Which is set in the aros_target_incl_def variable.
10915 # Check whether --enable-includes was given.
10916 if test "${enable_includes+set}" = set; then :
10917 enableval=$enable_includes; aros_target_incl=$enable_includes
10918 else
10919 aros_target_incl=$aros_target_incl_def
10923 if test "$aros_kernel_includes" = ""; then
10924 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10925 # FIXME: for cross-compiling this should point to another location
10926 aros_kernel_includes="-isystem $aros_target_incl"
10930 if test "$aros_kernel_includes" != "" ; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10932 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10933 if test "$aros_kernel_cc_includes" = "" ; then
10934 # Try to guess where the directory is.
10935 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10936 if test -d $aros_kernel_cc_includes; then
10937 # Check if there is also an include-fixed directory and add it
10938 # to kernel compiler's include path as it may contain some of
10939 # the headers we need.
10940 if test -d "$aros_kernel_cc_includes"-fixed; then
10941 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10943 # Check for specific includes directory. Neede for Ubuntu 11.10
10944 if test -d "/usr/include/i386-linux-gnu"; then
10945 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10947 else
10948 # The directory doesn't exist, we need to do some more work.
10949 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10951 # These are the headers we're looking for.
10952 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10953 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10954 zutil.h"
10956 if test ! -f $aros_target_incl/stdint.h; then
10957 headers="$headers stdint.h"
10960 dirs=
10961 for h in $headers; do
10962 # Which other headers are needed by each of the above?
10963 deps=$(echo "#include <$h>" | \
10964 $aros_kernel_cc -E -M - 2>/dev/null | \
10965 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10967 # Copy all the needed headers to a directory beneath gendir.
10968 for d in $deps; do
10969 h=$(basename $d)
10970 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10971 sed -n "s,^.*/include\(/.*\),\1,p")
10972 ! test -d $dir && mkdir -p $dir
10973 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10974 done
10975 done
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10979 $as_echo "$aros_kernel_cc_includes" >&6; }
10980 # Adding -nostdinc to kernel includes as they are always used together.
10981 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10984 if test "$crosstools" != "yes"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10986 $as_echo_n "checking for the target compiler's include path... " >&6; }
10987 if test "$aros_target_cc_includes" = "" ; then
10988 #try to guess where the directory is
10989 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10990 if ! test -d $aros_target_cc_includes; then
10991 #the directory doesn't exist, we need to do some more work
10992 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10994 #these are the headers we're looking for
10995 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10996 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10997 zutil.h"
10999 dirs=
11000 for h in $headers; do
11001 #which other headers each of the above headers needs?
11002 deps=$(echo "#include <$h>" | \
11003 $orig_target_cc -E -M - 2>/dev/null | \
11004 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11006 #copy all the needed headers to a directory beneath gendir
11007 for d in $deps; do
11008 h=$(basename $d)
11009 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11010 sed -n "s,^.*/include\(/.*\),\1,p")
11011 ! test -d $dir && mkdir -p $dir
11012 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11013 done
11014 done
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11018 $as_echo "$aros_target_cc_includes" >&6; }
11019 else
11020 # We do not know which gcc version we are going to build and what we need to know
11021 # here is different for different versions so this will be set later during the
11022 # build of crosstools.
11023 aros_target_cc_includes=@aros_target_cc_includes@
11027 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11028 # On GCC >= 4.0 -iquote should be used
11031 save_cc="$CC"
11032 save_cflags="$CFLAGS"
11033 CFLAGS="-iquote."
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11035 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11036 if test "x-$crosstools" != "x-yes"; then
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11041 main ()
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_compile "$LINENO"; then :
11049 has_iquote="yes"
11050 else
11051 has_iquote="no"
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 else
11055 # we do know it is supported for the smallest version of gcc we are going to build
11056 # we assume it's also supported by later versions
11057 has_iquote=yes
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11060 $as_echo "$has_iquote" >&6; }
11061 if test "x-$has_iquote" = "x-yes" ; then
11062 host_cflags_iquote=-iquote
11063 host_cflags_iquote_end=
11064 else
11065 host_cflags_iquote=-I
11066 host_cflags_iquote_end=-I-
11068 kernel_cflags_iquote=$host_cflags_iquote
11069 kernel_cflags_iquote_end=$host_cflags_iquote_end
11070 if test "x-$cross_compiling" = "x-yes"; then
11071 CC="$aros_kernel_cc"
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11073 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11074 if test "x-$crosstools" != "x-yes"; then
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11079 main ()
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_compile "$LINENO"; then :
11087 use_no_stack_protector="yes"
11088 else
11089 use_no_stack_protector="no"
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 else
11093 # we do know it is supported for the smallest version of gcc we are going to build
11094 # we assume it's also supported by later versions
11095 use_no_stack_protector=yes
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11098 $as_echo "$use_no_stack_protector" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11100 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11101 if test "x-$crosstools" != "x-yes"; then
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11106 main ()
11110 return 0;
11112 _ACEOF
11113 if ac_fn_c_try_compile "$LINENO"; then :
11114 has_iquote="yes"
11115 else
11116 has_iquote="no"
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 else
11120 # we do know it is supported for the smallest version of gcc we are going to build
11121 # we assume it's also supported by later versions
11122 has_iquote=yes
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11125 $as_echo "$has_iquote" >&6; }
11126 if test "x-$has_iquote" = "x-yes" ; then
11127 kernel_cflags_iquote=-iquote
11128 kernel_cflags_iquote_end=
11129 else
11130 kernel_cflags_iquote=-I
11131 kernel_cflags_iquote_end=-I-
11134 aros_cflags_iquote=$kernel_cflags_iquote
11135 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11136 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11137 CC="$orig_target_cc"
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11139 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11140 if test "x-$crosstools" != "x-yes"; then
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11145 main ()
11149 return 0;
11151 _ACEOF
11152 if ac_fn_c_try_compile "$LINENO"; then :
11153 has_iquote="yes"
11154 else
11155 has_iquote="no"
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 else
11159 # we do know it is supported for the smallest version of gcc we are going to build
11160 # we assume it's also supported by later versions
11161 has_iquote=yes
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11164 $as_echo "$has_iquote" >&6; }
11165 if test "x-$has_iquote" = "x-yes" ; then
11166 aros_cflags_iquote=-iquote
11167 aros_cflags_iquote_end=
11168 else
11169 aros_cflags_iquote=-I
11170 aros_cflags_iquote_end=-I-
11173 if test "x-$use_no_stack_protector" = "x-yes" ; then
11174 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11177 #-----------------------------------------------------------------------------
11179 # Check if we can explicitly choose older version of symbol hashing
11181 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11182 CC="$aros_kernel_cc"
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11184 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11189 main ()
11193 return 0;
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 use_hash_style="yes"
11198 else
11199 use_hash_style="no"
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11204 $as_echo "$use_hash_style" >&6; }
11205 if test "x-$use_hash_style" = "x-yes" ; then
11206 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11208 CC="$save_cc"
11209 CFLAGS="$save_cflags"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11220 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11222 # Check whether --with-resolution was given.
11223 if test "${with_resolution+set}" = set; then :
11224 withval=$with_resolution; resolution=$withval
11225 else
11226 resolution=none
11229 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11230 if test "$resolution" = "yes" ; then
11231 resolution="none"
11233 if test "$resolution" = "no" ; then
11234 resolution="none"
11236 if test "$resolution" != "none" ; then
11237 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11238 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11239 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11242 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11243 aros_cv_default_wbwidth=$aros_default_wbwidth
11244 aros_cv_default_wbheight=$aros_default_wbheight
11245 aros_cv_default_wbdepth=$aros_default_wbdepth
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11248 $as_echo_n "checking if serial debug is enabled... " >&6; }
11250 # Check whether --with-serial-debug was given.
11251 if test "${with_serial_debug+set}" = set; then :
11252 withval=$with_serial_debug; serial_debug=$withval
11253 else
11254 serial_debug=none
11257 if test "$aros_serial_debug" = 0 ; then
11258 serial_debug_forced=""
11259 if test "$serial_debug" = "yes" ; then
11260 serial_debug="1"
11262 if test "$serial_debug" = "no" ; then
11263 serial_debug="none"
11265 else
11266 serial_debug_forced="(forced)"
11267 serial_debug=$aros_serial_debug
11269 if test "$serial_debug" != "none" ; then
11270 aros_serial_debug=$serial_debug
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11272 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11279 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11280 # Check whether --enable-palm_debug_hack was given.
11281 if test "${enable_palm_debug_hack+set}" = set; then :
11282 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11283 else
11284 palm_debug_hack="no"
11287 if test "$palm_debug_hack" = "yes" ; then
11288 aros_palm_debug_hack="1"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11291 $as_echo "$palm_debug_hack" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11294 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11295 # Check whether --enable-usb30_code was given.
11296 if test "${enable_usb30_code+set}" = set; then :
11297 enableval=$enable_usb30_code; usb30_code="yes"
11298 else
11299 usb30_code="no"
11302 if test "$usb30_code" = "yes" ; then
11303 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11304 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11307 $as_echo "$usb30_code" >&6; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11310 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11311 # Check whether --enable-nesting_supervisor was given.
11312 if test "${enable_nesting_supervisor+set}" = set; then :
11313 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11314 else
11315 nesting_supervisor="no"
11318 if test "$nesting_supervisor" = "yes" ; then
11319 aros_nesting_supervisor="1"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11322 $as_echo "$nesting_supervisor" >&6; }
11324 if test "$aros_enable_mmu" = "" ; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11326 $as_echo_n "checking if MMU support is enabled... " >&6; }
11327 # Check whether --enable-mmu was given.
11328 if test "${enable_mmu+set}" = set; then :
11329 enableval=$enable_mmu; aros_enable_mmu=$enableval
11330 else
11331 aros_enable_mmu="yes"
11334 if test "$aros_enable_mmu" = "" ; then
11335 aros_enable_mmu="yes"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11338 $as_echo "$aros_enable_mmu" >&6; }
11340 if test "$aros_enable_mmu" = "no" ; then
11341 aros_enable_mmu="0"
11342 else
11343 aros_enable_mmu="1"
11347 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11349 if test "x-$need_dlopen" != "x-no" ; then
11350 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11351 if test "x$ac_cv_func_dlopen" = xyes; then :
11352 have_dl="yes"
11353 else
11354 have_dl="no"
11357 if test "x-$have_dl" = "x-no" ; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11360 if ${ac_cv_lib_dl_dlopen+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldl $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char dlopen ();
11376 main ()
11378 return dlopen ();
11380 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_dl_dlopen=yes
11385 else
11386 ac_cv_lib_dl_dlopen=no
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11394 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11395 have_dl="yes"
11396 aros_host_ldflags="$aros_host_ldflags -ldl"
11397 else
11398 have_dl="no"
11402 if test "x-$have_dl" = "x-no" ; then
11403 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11408 # Check whether --enable-x11_hidd was given.
11409 if test "${enable_x11_hidd+set}" = set; then :
11410 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11411 else
11412 x11_hidd="$need_x11"
11415 case "x-$x11_hidd" in
11416 x-yes|x-no|x-auto) ;;
11417 *) x11_hidd="$need_x11" ;;
11418 esac
11420 ENABLE_X11=0
11422 if test "x-$x11_hidd" != "x-no" ; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11425 $as_echo_n "checking for X... " >&6; }
11428 # Check whether --with-x was given.
11429 if test "${with_x+set}" = set; then :
11430 withval=$with_x;
11433 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11434 if test "x$with_x" = xno; then
11435 # The user explicitly disabled X.
11436 have_x=disabled
11437 else
11438 case $x_includes,$x_libraries in #(
11439 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11440 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 # One or both of the vars are not set, and there is no cached value.
11444 ac_x_includes=no ac_x_libraries=no
11445 rm -f -r conftest.dir
11446 if mkdir conftest.dir; then
11447 cd conftest.dir
11448 cat >Imakefile <<'_ACEOF'
11449 incroot:
11450 @echo incroot='${INCROOT}'
11451 usrlibdir:
11452 @echo usrlibdir='${USRLIBDIR}'
11453 libdir:
11454 @echo libdir='${LIBDIR}'
11455 _ACEOF
11456 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11457 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11458 for ac_var in incroot usrlibdir libdir; do
11459 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11460 done
11461 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11462 for ac_extension in a so sl dylib la dll; do
11463 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11464 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11465 ac_im_usrlibdir=$ac_im_libdir; break
11467 done
11468 # Screen out bogus values from the imake configuration. They are
11469 # bogus both because they are the default anyway, and because
11470 # using them would break gcc on systems where it needs fixed includes.
11471 case $ac_im_incroot in
11472 /usr/include) ac_x_includes= ;;
11473 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11474 esac
11475 case $ac_im_usrlibdir in
11476 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11477 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11478 esac
11480 cd ..
11481 rm -f -r conftest.dir
11484 # Standard set of common directories for X headers.
11485 # Check X11 before X11Rn because it is often a symlink to the current release.
11486 ac_x_header_dirs='
11487 /usr/X11/include
11488 /usr/X11R7/include
11489 /usr/X11R6/include
11490 /usr/X11R5/include
11491 /usr/X11R4/include
11493 /usr/include/X11
11494 /usr/include/X11R7
11495 /usr/include/X11R6
11496 /usr/include/X11R5
11497 /usr/include/X11R4
11499 /usr/local/X11/include
11500 /usr/local/X11R7/include
11501 /usr/local/X11R6/include
11502 /usr/local/X11R5/include
11503 /usr/local/X11R4/include
11505 /usr/local/include/X11
11506 /usr/local/include/X11R7
11507 /usr/local/include/X11R6
11508 /usr/local/include/X11R5
11509 /usr/local/include/X11R4
11511 /usr/X386/include
11512 /usr/x386/include
11513 /usr/XFree86/include/X11
11515 /usr/include
11516 /usr/local/include
11517 /usr/unsupported/include
11518 /usr/athena/include
11519 /usr/local/x11r5/include
11520 /usr/lpp/Xamples/include
11522 /usr/openwin/include
11523 /usr/openwin/share/include'
11525 if test "$ac_x_includes" = no; then
11526 # Guess where to find include files, by looking for Xlib.h.
11527 # First, try using that file with no special directory specified.
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <X11/Xlib.h>
11531 _ACEOF
11532 if ac_fn_c_try_cpp "$LINENO"; then :
11533 # We can compile using X headers with no special include directory.
11534 ac_x_includes=
11535 else
11536 for ac_dir in $ac_x_header_dirs; do
11537 if test -r "$ac_dir/X11/Xlib.h"; then
11538 ac_x_includes=$ac_dir
11539 break
11541 done
11543 rm -f conftest.err conftest.i conftest.$ac_ext
11544 fi # $ac_x_includes = no
11546 if test "$ac_x_libraries" = no; then
11547 # Check for the libraries.
11548 # See if we find them without any special options.
11549 # Don't add to $LIBS permanently.
11550 ac_save_LIBS=$LIBS
11551 LIBS="-lX11 $LIBS"
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 #include <X11/Xlib.h>
11556 main ()
11558 XrmInitialize ()
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 LIBS=$ac_save_LIBS
11565 # We can link X programs with no special library path.
11566 ac_x_libraries=
11567 else
11568 LIBS=$ac_save_LIBS
11569 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11571 # Don't even attempt the hair of trying to link an X program!
11572 for ac_extension in a so sl dylib la dll; do
11573 if test -r "$ac_dir/libX11.$ac_extension"; then
11574 ac_x_libraries=$ac_dir
11575 break 2
11577 done
11578 done
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 fi # $ac_x_libraries = no
11584 case $ac_x_includes,$ac_x_libraries in #(
11585 no,* | *,no | *\'*)
11586 # Didn't find X, or a directory has "'" in its name.
11587 ac_cv_have_x="have_x=no";; #(
11589 # Record where we found X for the cache.
11590 ac_cv_have_x="have_x=yes\
11591 ac_x_includes='$ac_x_includes'\
11592 ac_x_libraries='$ac_x_libraries'"
11593 esac
11595 ;; #(
11596 *) have_x=yes;;
11597 esac
11598 eval "$ac_cv_have_x"
11599 fi # $with_x != no
11601 if test "$have_x" != yes; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11603 $as_echo "$have_x" >&6; }
11604 no_x=yes
11605 else
11606 # If each of the values was on the command line, it overrides each guess.
11607 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11608 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11609 # Update the cache value to reflect the command line values.
11610 ac_cv_have_x="have_x=yes\
11611 ac_x_includes='$x_includes'\
11612 ac_x_libraries='$x_libraries'"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11614 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11618 x_cflags=
11619 for path in $x_libraries
11621 x_cflags="$x_cflags -L$path"
11622 done
11624 for path in $x_includes
11626 x_cflags="$x_cflags -I$path"
11627 done
11629 if test "x-$no_x" = "x-yes" ; then
11631 if test "x-$x11_hidd" != "x-auto" ; then
11632 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11635 else
11636 x11_hidd_target=kernel-x11gfx-kobj
11637 ENABLE_X11=1
11639 # Check whether --enable-x11_shm was given.
11640 if test "${enable_x11_shm+set}" = set; then :
11641 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11642 else
11643 x11_hidd_shm="auto"
11646 case "x-$x11_hidd_shm" in
11647 x-yes|x-no|x-auto) ;;
11648 *) x11_hidd_shm="auto" ;;
11649 esac
11651 have_xshm=no
11653 if test "x-$x11_hidd_shm" != "x-no" ; then
11655 for ac_header in sys/ipc.h
11656 do :
11657 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11658 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_SYS_IPC_H 1
11661 _ACEOF
11665 done
11667 for ac_header in sys/shm.h
11668 do :
11669 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11670 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_SYS_SHM_H 1
11673 _ACEOF
11677 done
11680 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11682 save_cflags="$CFLAGS"
11683 CFLAGS="$CFLAGS $x_cflags"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11685 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11686 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-lXext $LIBS"
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char XShmQueryExtension ();
11702 main ()
11704 return XShmQueryExtension ();
11706 return 0;
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710 ac_cv_lib_Xext_XShmQueryExtension=yes
11711 else
11712 ac_cv_lib_Xext_XShmQueryExtension=no
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11719 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11720 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11721 have_xshm=yes
11724 CFLAGS="$save_cflags"
11728 if test "x-$have_xshm" = "x-yes" ; then
11729 DO_XSHM_SUPPORT="1"
11730 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11731 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11732 else
11733 DO_XSHM_SUPPORT="0"
11737 # Check whether --enable-x11_vidmode was given.
11738 if test "${enable_x11_vidmode+set}" = set; then :
11739 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11740 else
11741 x11_hidd_vidmode="auto"
11744 case "x-$x11_hidd_vidmode" in
11745 x-yes|x-no|x-auto) ;;
11746 *) x11_hidd_vidmode="auto" ;;
11747 esac
11749 have_vidmode=no
11751 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11753 save_cflags="$CFLAGS"
11754 CFLAGS="$CFLAGS $x_cflags"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11756 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11757 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 ac_check_lib_save_LIBS=$LIBS
11761 LIBS="-lXxf86vm $LIBS"
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11765 /* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11768 #ifdef __cplusplus
11769 extern "C"
11770 #endif
11771 char XF86VidModeQueryExtension ();
11773 main ()
11775 return XF86VidModeQueryExtension ();
11777 return 0;
11779 _ACEOF
11780 if ac_fn_c_try_link "$LINENO"; then :
11781 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11782 else
11783 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11790 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11791 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11792 have_vidmode=yes
11795 CFLAGS="$save_cflags"
11798 if test "x-$have_vidmode" = "x-yes" ; then
11799 DO_VIDMODE_SUPPORT="1"
11800 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11801 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11802 else
11803 DO_VIDMODE_SUPPORT="0"
11807 aros_host_x11_includes=$x_includes
11808 aros_host_x11_libdirs=$x_libraries
11812 # Check whether --enable-sdl_hidd was given.
11813 if test "${enable_sdl_hidd+set}" = set; then :
11814 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11815 else
11816 sdl_hidd="auto"
11819 case "x-$sdl_hidd" in
11820 x-yes|x-no|x-auto) ;;
11821 *) sdl_hidd="auto" ;;
11822 esac
11824 if test "x-$sdl_hidd" != "x-no" ; then
11827 # Check whether --with-sdl-prefix was given.
11828 if test "${with_sdl_prefix+set}" = set; then :
11829 withval=$with_sdl_prefix; sdl_prefix="$withval"
11830 else
11831 sdl_prefix=""
11835 # Check whether --with-sdl-exec-prefix was given.
11836 if test "${with_sdl_exec_prefix+set}" = set; then :
11837 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11838 else
11839 sdl_exec_prefix=""
11842 # Check whether --enable-sdltest was given.
11843 if test "${enable_sdltest+set}" = set; then :
11844 enableval=$enable_sdltest;
11845 else
11846 enable_sdltest=yes
11850 if test x$sdl_exec_prefix != x ; then
11851 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11852 if test x${SDL_CONFIG+set} != xset ; then
11853 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11856 if test x$sdl_prefix != x ; then
11857 sdl_args="$sdl_args --prefix=$sdl_prefix"
11858 if test x${SDL_CONFIG+set} != xset ; then
11859 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11863 if test "x$prefix" != xNONE; then
11864 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11866 # Extract the first word of "sdl-config", so it can be a program name with args.
11867 set dummy sdl-config; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 case $SDL_CONFIG in
11874 [\\/]* | ?:[\\/]*)
11875 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11889 done
11890 done
11891 IFS=$as_save_IFS
11893 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11895 esac
11897 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11898 if test -n "$SDL_CONFIG"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11900 $as_echo "$SDL_CONFIG" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11907 min_sdl_version=1.2.10
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11909 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11910 no_sdl=""
11911 if test "$SDL_CONFIG" = "no" ; then
11912 no_sdl=yes
11913 else
11914 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11915 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11917 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11919 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11921 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11923 if test "x$enable_sdltest" = "xyes" ; then
11924 ac_save_CFLAGS="$CFLAGS"
11925 ac_save_CXXFLAGS="$CXXFLAGS"
11926 ac_save_LIBS="$LIBS"
11927 CFLAGS="$CFLAGS $SDL_CFLAGS"
11928 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11929 LIBS="$LIBS $SDL_LIBS"
11930 rm -f conf.sdltest
11931 if test "$cross_compiling" = yes; then :
11932 echo $ac_n "cross compiling; assumed OK... $ac_c"
11933 else
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 #include <stdio.h>
11938 #include <stdlib.h>
11939 #include <string.h>
11940 #include "SDL.h"
11942 char*
11943 my_strdup (char *str)
11945 char *new_str;
11947 if (str)
11949 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11950 strcpy (new_str, str);
11952 else
11953 new_str = NULL;
11955 return new_str;
11958 int main (int argc, char *argv[])
11960 int major, minor, micro;
11961 char *tmp_version;
11963 /* This hangs on some systems (?)
11964 system ("touch conf.sdltest");
11966 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11968 /* HP/UX 9 (%@#!) writes to sscanf strings */
11969 tmp_version = my_strdup("$min_sdl_version");
11970 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11971 printf("%s, bad version string\n", "$min_sdl_version");
11972 exit(1);
11975 if (($sdl_major_version > major) ||
11976 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11977 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11979 return 0;
11981 else
11983 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11984 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11985 printf("*** best to upgrade to the required version.\n");
11986 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11987 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11988 printf("*** config.cache before re-running configure\n");
11989 return 1;
11994 _ACEOF
11995 if ac_fn_c_try_run "$LINENO"; then :
11997 else
11998 no_sdl=yes
12000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12001 conftest.$ac_objext conftest.beam conftest.$ac_ext
12004 CFLAGS="$ac_save_CFLAGS"
12005 CXXFLAGS="$ac_save_CXXFLAGS"
12006 LIBS="$ac_save_LIBS"
12009 if test "x$no_sdl" = x ; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12012 have_sdl="yes"
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 if test "$SDL_CONFIG" = "no" ; then
12017 echo "*** The sdl-config script installed by SDL could not be found"
12018 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12019 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12020 echo "*** full path to sdl-config."
12021 else
12022 if test -f conf.sdltest ; then
12024 else
12025 echo "*** Could not run SDL test program, checking why..."
12026 CFLAGS="$CFLAGS $SDL_CFLAGS"
12027 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12028 LIBS="$LIBS $SDL_LIBS"
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12032 #include <stdio.h>
12033 #include "SDL.h"
12035 int main(int argc, char *argv[])
12036 { return 0; }
12037 #undef main
12038 #define main K_and_R_C_main
12041 main ()
12043 return 0;
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 echo "*** The test program compiled, but did not run. This usually means"
12050 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12051 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12052 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12053 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12054 echo "*** is required on your system"
12055 echo "***"
12056 echo "*** If you have an old version installed, it is best to remove it, although"
12057 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12058 else
12059 echo "*** The test program failed to compile or link. See the file config.log for the"
12060 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12061 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12062 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 CFLAGS="$ac_save_CFLAGS"
12067 CXXFLAGS="$ac_save_CXXFLAGS"
12068 LIBS="$ac_save_LIBS"
12071 SDL_CFLAGS=""
12072 SDL_LIBS=""
12073 have_sdl="no"
12077 rm -f conf.sdltest
12080 if test "x-$have_sdl" != "x-yes" ; then
12082 if test "x-$sdl_hidd" != "x-auto" ; then
12083 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12086 else
12087 sdl_hidd_target=kernel-hidd-sdl
12088 aros_host_sdl_cflags=SDL_CFLAGS
12089 aros_host_sdl_libs=SDL_LIBS
12093 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12094 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12099 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12100 oss_library_target=workbench-libs-oss-unix
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12106 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12107 # Check whether --enable-dbus was given.
12108 if test "${enable_dbus+set}" = set; then :
12109 enableval=$enable_dbus; dbus="yes"
12110 else
12111 dbus="no"
12114 if test "$dbus" = "yes" ; then
12115 ENABLE_DBUS=1
12116 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12117 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12118 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12119 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12120 else
12121 ENABLE_DBUS=0
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12124 $as_echo "$dbus" >&6; }
12126 if test "$use_kernel_cc_wrapper" = "yes" ; then
12127 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12131 # Generic
12142 # Compatability with other Amiga-like operation systems
12145 # Host related
12170 # Target Related
12228 # Graphics Related
12245 # Native version related
12248 # Palm native version related
12251 # USB3.0 code
12254 # Unix/Hosted version related
12257 # MMU related
12260 # Apple iOS related
12265 # Android related
12269 # DBUS related
12276 #X11 related
12279 # Debug related
12285 # Collect-aros stuff: "-ius" to ignore undefined symbols
12288 # C compiler related
12291 case "$aros_flavour" in
12292 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12293 aros_flavour="emulation" ;;
12294 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12295 aros_flavour="emulation" ;;
12296 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12297 aros_flavour="standalone";;
12298 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12299 aros_flavour="standalone";;
12300 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12301 aros_flavour="native" ;;
12302 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12303 aros_flavour="native" ;;
12304 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12305 aros_flavour="linklib" ;;
12306 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12307 aros_flavour="palmnative" ;;
12308 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12309 aros_flavour="mac68knative" ;;
12310 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12311 aros_flavour="ppcnative" ;;
12312 esac
12314 if test ! -d ${aros_inc_dir} ; then
12315 ${MKDIR} ${aros_inc_dir}
12317 if test ! -d ${aros_geninc_dir} ; then
12318 ${MKDIR} ${aros_geninc_dir}
12320 if test ! -d ${aros_hostcfg_dir} ; then
12321 ${MKDIR} ${aros_hostcfg_dir}
12323 if test ! -d ${aros_targetcfg_dir} ; then
12324 ${MKDIR} ${aros_targetcfg_dir}
12326 if test ! -d ${aros_tools_dir} ; then
12327 ${MKDIR} ${aros_tools_dir}
12329 if test ! -d ${aros_scripts_dir} ; then
12330 ${MKDIR} ${aros_scripts_dir}
12333 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12336 ac_config_commands="$ac_config_commands compiler_executable"
12338 ac_config_commands="$ac_config_commands genmf_executable"
12341 ac_config_files="$ac_config_files Makefile
12342 config/make.cfg
12343 ${aros_inc_dir}/config.h:config/config.h.in
12344 ${aros_geninc_dir}/config.h:config/config.h.in
12345 ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in
12346 ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in
12347 mmake.config
12348 ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in
12349 ${aros_targetcfg_dir}/specs:config/specs.in
12350 ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}
12351 ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in
12352 ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in
12353 ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in
12354 ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py
12355 tools/collect-aros/env.h
12356 ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in
12360 cat >confcache <<\_ACEOF
12361 # This file is a shell script that caches the results of configure
12362 # tests run on this system so they can be shared between configure
12363 # scripts and configure runs, see configure's option --config-cache.
12364 # It is not useful on other systems. If it contains results you don't
12365 # want to keep, you may remove or edit it.
12367 # config.status only pays attention to the cache file if you give it
12368 # the --recheck option to rerun configure.
12370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12372 # following values.
12374 _ACEOF
12376 # The following way of writing the cache mishandles newlines in values,
12377 # but we know of no workaround that is simple, portable, and efficient.
12378 # So, we kill variables containing newlines.
12379 # Ultrix sh set writes to stderr and can't be redirected directly,
12380 # and sets the high bit in the cache file unless we assign to the vars.
12382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12383 eval ac_val=\$$ac_var
12384 case $ac_val in #(
12385 *${as_nl}*)
12386 case $ac_var in #(
12387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12389 esac
12390 case $ac_var in #(
12391 _ | IFS | as_nl) ;; #(
12392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12393 *) { eval $ac_var=; unset $ac_var;} ;;
12394 esac ;;
12395 esac
12396 done
12398 (set) 2>&1 |
12399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12400 *${as_nl}ac_space=\ *)
12401 # `set' does not quote correctly, so add quotes: double-quote
12402 # substitution turns \\\\ into \\, and sed turns \\ into \.
12403 sed -n \
12404 "s/'/'\\\\''/g;
12405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12406 ;; #(
12408 # `set' quotes correctly as required by POSIX, so do not add quotes.
12409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12411 esac |
12412 sort
12414 sed '
12415 /^ac_cv_env_/b end
12416 t clear
12417 :clear
12418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12419 t end
12420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12421 :end' >>confcache
12422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12423 if test -w "$cache_file"; then
12424 if test "x$cache_file" != "x/dev/null"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12426 $as_echo "$as_me: updating cache $cache_file" >&6;}
12427 if test ! -f "$cache_file" || test -h "$cache_file"; then
12428 cat confcache >"$cache_file"
12429 else
12430 case $cache_file in #(
12431 */* | ?:*)
12432 mv -f confcache "$cache_file"$$ &&
12433 mv -f "$cache_file"$$ "$cache_file" ;; #(
12435 mv -f confcache "$cache_file" ;;
12436 esac
12439 else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12441 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12444 rm -f confcache
12446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12447 # Let make expand exec_prefix.
12448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12450 DEFS=-DHAVE_CONFIG_H
12452 ac_libobjs=
12453 ac_ltlibobjs=
12455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12456 # 1. Remove the extension, and $U if already installed.
12457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12460 # will be set to the directory where LIBOBJS objects are built.
12461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12463 done
12464 LIBOBJS=$ac_libobjs
12466 LTLIBOBJS=$ac_ltlibobjs
12470 : "${CONFIG_STATUS=./config.status}"
12471 ac_write_fail=0
12472 ac_clean_files_save=$ac_clean_files
12473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12475 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12476 as_write_fail=0
12477 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12478 #! $SHELL
12479 # Generated by $as_me.
12480 # Run this file to recreate the current configuration.
12481 # Compiler output produced by configure, useful for debugging
12482 # configure, is in config.log if it exists.
12484 debug=false
12485 ac_cs_recheck=false
12486 ac_cs_silent=false
12488 SHELL=\${CONFIG_SHELL-$SHELL}
12489 export SHELL
12490 _ASEOF
12491 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12492 ## -------------------- ##
12493 ## M4sh Initialization. ##
12494 ## -------------------- ##
12496 # Be more Bourne compatible
12497 DUALCASE=1; export DUALCASE # for MKS sh
12498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12499 emulate sh
12500 NULLCMD=:
12501 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12502 # is contrary to our usage. Disable this feature.
12503 alias -g '${1+"$@"}'='"$@"'
12504 setopt NO_GLOB_SUBST
12505 else
12506 case `(set -o) 2>/dev/null` in #(
12507 *posix*) :
12508 set -o posix ;; #(
12509 *) :
12511 esac
12515 as_nl='
12517 export as_nl
12518 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12519 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12522 # Prefer a ksh shell builtin over an external printf program on Solaris,
12523 # but without wasting forks for bash or zsh.
12524 if test -z "$BASH_VERSION$ZSH_VERSION" \
12525 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12526 as_echo='print -r --'
12527 as_echo_n='print -rn --'
12528 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12529 as_echo='printf %s\n'
12530 as_echo_n='printf %s'
12531 else
12532 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12533 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12534 as_echo_n='/usr/ucb/echo -n'
12535 else
12536 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12537 as_echo_n_body='eval
12538 arg=$1;
12539 case $arg in #(
12540 *"$as_nl"*)
12541 expr "X$arg" : "X\\(.*\\)$as_nl";
12542 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12543 esac;
12544 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12546 export as_echo_n_body
12547 as_echo_n='sh -c $as_echo_n_body as_echo'
12549 export as_echo_body
12550 as_echo='sh -c $as_echo_body as_echo'
12553 # The user is always right.
12554 if test "${PATH_SEPARATOR+set}" != set; then
12555 PATH_SEPARATOR=:
12556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12557 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12558 PATH_SEPARATOR=';'
12563 # IFS
12564 # We need space, tab and new line, in precisely that order. Quoting is
12565 # there to prevent editors from complaining about space-tab.
12566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12567 # splitting by setting IFS to empty value.)
12568 IFS=" "" $as_nl"
12570 # Find who we are. Look in the path if we contain no directory separator.
12571 as_myself=
12572 case $0 in #((
12573 *[\\/]* ) as_myself=$0 ;;
12574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $PATH
12577 IFS=$as_save_IFS
12578 test -z "$as_dir" && as_dir=.
12579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12580 done
12581 IFS=$as_save_IFS
12584 esac
12585 # We did not find ourselves, most probably we were run as `sh COMMAND'
12586 # in which case we are not to be found in the path.
12587 if test "x$as_myself" = x; then
12588 as_myself=$0
12590 if test ! -f "$as_myself"; then
12591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12592 exit 1
12595 # Unset variables that we do not need and which cause bugs (e.g. in
12596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12597 # suppresses any "Segmentation fault" message there. '((' could
12598 # trigger a bug in pdksh 5.2.14.
12599 for as_var in BASH_ENV ENV MAIL MAILPATH
12600 do eval test x\${$as_var+set} = xset \
12601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12602 done
12603 PS1='$ '
12604 PS2='> '
12605 PS4='+ '
12607 # NLS nuisances.
12608 LC_ALL=C
12609 export LC_ALL
12610 LANGUAGE=C
12611 export LANGUAGE
12613 # CDPATH.
12614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12618 # ----------------------------------------
12619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12621 # script with STATUS, using 1 if that was 0.
12622 as_fn_error ()
12624 as_status=$1; test $as_status -eq 0 && as_status=1
12625 if test "$4"; then
12626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12629 $as_echo "$as_me: error: $2" >&2
12630 as_fn_exit $as_status
12631 } # as_fn_error
12634 # as_fn_set_status STATUS
12635 # -----------------------
12636 # Set $? to STATUS, without forking.
12637 as_fn_set_status ()
12639 return $1
12640 } # as_fn_set_status
12642 # as_fn_exit STATUS
12643 # -----------------
12644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12645 as_fn_exit ()
12647 set +e
12648 as_fn_set_status $1
12649 exit $1
12650 } # as_fn_exit
12652 # as_fn_unset VAR
12653 # ---------------
12654 # Portably unset VAR.
12655 as_fn_unset ()
12657 { eval $1=; unset $1;}
12659 as_unset=as_fn_unset
12660 # as_fn_append VAR VALUE
12661 # ----------------------
12662 # Append the text in VALUE to the end of the definition contained in VAR. Take
12663 # advantage of any shell optimizations that allow amortized linear growth over
12664 # repeated appends, instead of the typical quadratic growth present in naive
12665 # implementations.
12666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12667 eval 'as_fn_append ()
12669 eval $1+=\$2
12671 else
12672 as_fn_append ()
12674 eval $1=\$$1\$2
12676 fi # as_fn_append
12678 # as_fn_arith ARG...
12679 # ------------------
12680 # Perform arithmetic evaluation on the ARGs, and store the result in the
12681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12682 # must be portable across $(()) and expr.
12683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12684 eval 'as_fn_arith ()
12686 as_val=$(( $* ))
12688 else
12689 as_fn_arith ()
12691 as_val=`expr "$@" || test $? -eq 1`
12693 fi # as_fn_arith
12696 if expr a : '\(a\)' >/dev/null 2>&1 &&
12697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12698 as_expr=expr
12699 else
12700 as_expr=false
12703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12704 as_basename=basename
12705 else
12706 as_basename=false
12709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12710 as_dirname=dirname
12711 else
12712 as_dirname=false
12715 as_me=`$as_basename -- "$0" ||
12716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12717 X"$0" : 'X\(//\)$' \| \
12718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12719 $as_echo X/"$0" |
12720 sed '/^.*\/\([^/][^/]*\)\/*$/{
12721 s//\1/
12724 /^X\/\(\/\/\)$/{
12725 s//\1/
12728 /^X\/\(\/\).*/{
12729 s//\1/
12732 s/.*/./; q'`
12734 # Avoid depending upon Character Ranges.
12735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12738 as_cr_digits='0123456789'
12739 as_cr_alnum=$as_cr_Letters$as_cr_digits
12741 ECHO_C= ECHO_N= ECHO_T=
12742 case `echo -n x` in #(((((
12743 -n*)
12744 case `echo 'xy\c'` in
12745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12746 xy) ECHO_C='\c';;
12747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12748 ECHO_T=' ';;
12749 esac;;
12751 ECHO_N='-n';;
12752 esac
12754 rm -f conf$$ conf$$.exe conf$$.file
12755 if test -d conf$$.dir; then
12756 rm -f conf$$.dir/conf$$.file
12757 else
12758 rm -f conf$$.dir
12759 mkdir conf$$.dir 2>/dev/null
12761 if (echo >conf$$.file) 2>/dev/null; then
12762 if ln -s conf$$.file conf$$ 2>/dev/null; then
12763 as_ln_s='ln -s'
12764 # ... but there are two gotchas:
12765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12767 # In both cases, we have to default to `cp -p'.
12768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12769 as_ln_s='cp -p'
12770 elif ln conf$$.file conf$$ 2>/dev/null; then
12771 as_ln_s=ln
12772 else
12773 as_ln_s='cp -p'
12775 else
12776 as_ln_s='cp -p'
12778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12779 rmdir conf$$.dir 2>/dev/null
12782 # as_fn_mkdir_p
12783 # -------------
12784 # Create "$as_dir" as a directory, including parents if necessary.
12785 as_fn_mkdir_p ()
12788 case $as_dir in #(
12789 -*) as_dir=./$as_dir;;
12790 esac
12791 test -d "$as_dir" || eval $as_mkdir_p || {
12792 as_dirs=
12793 while :; do
12794 case $as_dir in #(
12795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12796 *) as_qdir=$as_dir;;
12797 esac
12798 as_dirs="'$as_qdir' $as_dirs"
12799 as_dir=`$as_dirname -- "$as_dir" ||
12800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801 X"$as_dir" : 'X\(//\)[^/]' \| \
12802 X"$as_dir" : 'X\(//\)$' \| \
12803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12804 $as_echo X"$as_dir" |
12805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12806 s//\1/
12809 /^X\(\/\/\)[^/].*/{
12810 s//\1/
12813 /^X\(\/\/\)$/{
12814 s//\1/
12817 /^X\(\/\).*/{
12818 s//\1/
12821 s/.*/./; q'`
12822 test -d "$as_dir" && break
12823 done
12824 test -z "$as_dirs" || eval "mkdir $as_dirs"
12825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12828 } # as_fn_mkdir_p
12829 if mkdir -p . 2>/dev/null; then
12830 as_mkdir_p='mkdir -p "$as_dir"'
12831 else
12832 test -d ./-p && rmdir ./-p
12833 as_mkdir_p=false
12836 if test -x / >/dev/null 2>&1; then
12837 as_test_x='test -x'
12838 else
12839 if ls -dL / >/dev/null 2>&1; then
12840 as_ls_L_option=L
12841 else
12842 as_ls_L_option=
12844 as_test_x='
12845 eval sh -c '\''
12846 if test -d "$1"; then
12847 test -d "$1/.";
12848 else
12849 case $1 in #(
12850 -*)set "./$1";;
12851 esac;
12852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12853 ???[sx]*):;;*)false;;esac;fi
12854 '\'' sh
12857 as_executable_p=$as_test_x
12859 # Sed expression to map a string onto a valid CPP name.
12860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12862 # Sed expression to map a string onto a valid variable name.
12863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12866 exec 6>&1
12867 ## ----------------------------------- ##
12868 ## Main body of $CONFIG_STATUS script. ##
12869 ## ----------------------------------- ##
12870 _ASEOF
12871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12874 # Save the log message, to keep $0 and so on meaningful, and to
12875 # report actual input values of CONFIG_FILES etc. instead of their
12876 # values after options handling.
12877 ac_log="
12878 This file was extended by $as_me, which was
12879 generated by GNU Autoconf 2.68. Invocation command line was
12881 CONFIG_FILES = $CONFIG_FILES
12882 CONFIG_HEADERS = $CONFIG_HEADERS
12883 CONFIG_LINKS = $CONFIG_LINKS
12884 CONFIG_COMMANDS = $CONFIG_COMMANDS
12885 $ $0 $@
12887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12890 _ACEOF
12892 case $ac_config_files in *"
12893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12894 esac
12896 case $ac_config_headers in *"
12897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12898 esac
12901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12902 # Files that config.status was made for.
12903 config_files="$ac_config_files"
12904 config_headers="$ac_config_headers"
12905 config_commands="$ac_config_commands"
12907 _ACEOF
12909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12910 ac_cs_usage="\
12911 \`$as_me' instantiates files and other configuration actions
12912 from templates according to the current configuration. Unless the files
12913 and actions are specified as TAGs, all are instantiated by default.
12915 Usage: $0 [OPTION]... [TAG]...
12917 -h, --help print this help, then exit
12918 -V, --version print version number and configuration settings, then exit
12919 --config print configuration, then exit
12920 -q, --quiet, --silent
12921 do not print progress messages
12922 -d, --debug don't remove temporary files
12923 --recheck update $as_me by reconfiguring in the same conditions
12924 --file=FILE[:TEMPLATE]
12925 instantiate the configuration file FILE
12926 --header=FILE[:TEMPLATE]
12927 instantiate the configuration header FILE
12929 Configuration files:
12930 $config_files
12932 Configuration headers:
12933 $config_headers
12935 Configuration commands:
12936 $config_commands
12938 Report bugs to the package provider."
12940 _ACEOF
12941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12943 ac_cs_version="\\
12944 config.status
12945 configured by $0, generated by GNU Autoconf 2.68,
12946 with options \\"\$ac_cs_config\\"
12948 Copyright (C) 2010 Free Software Foundation, Inc.
12949 This config.status script is free software; the Free Software Foundation
12950 gives unlimited permission to copy, distribute and modify it."
12952 ac_pwd='$ac_pwd'
12953 srcdir='$srcdir'
12954 test -n "\$AWK" || AWK=awk
12955 _ACEOF
12957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12958 # The default lists apply if the user does not specify any file.
12959 ac_need_defaults=:
12960 while test $# != 0
12962 case $1 in
12963 --*=?*)
12964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12966 ac_shift=:
12968 --*=)
12969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12970 ac_optarg=
12971 ac_shift=:
12974 ac_option=$1
12975 ac_optarg=$2
12976 ac_shift=shift
12978 esac
12980 case $ac_option in
12981 # Handling of the options.
12982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12983 ac_cs_recheck=: ;;
12984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12985 $as_echo "$ac_cs_version"; exit ;;
12986 --config | --confi | --conf | --con | --co | --c )
12987 $as_echo "$ac_cs_config"; exit ;;
12988 --debug | --debu | --deb | --de | --d | -d )
12989 debug=: ;;
12990 --file | --fil | --fi | --f )
12991 $ac_shift
12992 case $ac_optarg in
12993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12994 '') as_fn_error $? "missing file argument" ;;
12995 esac
12996 as_fn_append CONFIG_FILES " '$ac_optarg'"
12997 ac_need_defaults=false;;
12998 --header | --heade | --head | --hea )
12999 $ac_shift
13000 case $ac_optarg in
13001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13002 esac
13003 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13004 ac_need_defaults=false;;
13005 --he | --h)
13006 # Conflict between --help and --header
13007 as_fn_error $? "ambiguous option: \`$1'
13008 Try \`$0 --help' for more information.";;
13009 --help | --hel | -h )
13010 $as_echo "$ac_cs_usage"; exit ;;
13011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13013 ac_cs_silent=: ;;
13015 # This is an error.
13016 -*) as_fn_error $? "unrecognized option: \`$1'
13017 Try \`$0 --help' for more information." ;;
13019 *) as_fn_append ac_config_targets " $1"
13020 ac_need_defaults=false ;;
13022 esac
13023 shift
13024 done
13026 ac_configure_extra_args=
13028 if $ac_cs_silent; then
13029 exec 6>/dev/null
13030 ac_configure_extra_args="$ac_configure_extra_args --silent"
13033 _ACEOF
13034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13035 if \$ac_cs_recheck; then
13036 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13037 shift
13038 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13039 CONFIG_SHELL='$SHELL'
13040 export CONFIG_SHELL
13041 exec "\$@"
13044 _ACEOF
13045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 exec 5>>config.log
13048 echo
13049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13050 ## Running $as_me. ##
13051 _ASBOX
13052 $as_echo "$ac_log"
13053 } >&5
13055 _ACEOF
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13058 # INIT-COMMANDS
13061 aros_host_exe_suffix=${aros_host_exe_suffix}
13062 aros_tools_dir=${aros_tools_dir}
13063 aros_target_cpu=${aros_target_cpu}
13064 aros_target_arch=${aros_target_arch}
13065 aros_target_suffix=${aros_target_suffix}
13066 aros_target_nm_ln=${aros_target_nm_ln}
13067 aros_target_as_ln=${aros_target_as_ln}
13068 aros_target_ar_ln=${aros_target_ar_ln}
13069 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13070 aros_target_objdump_ln=${aros_target_objdump_ln}
13071 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13072 aros_target_strip_ln=${aros_target_strip_ln}
13073 aros_kernel_ld=${aros_kernel_ld}
13076 aros_tools_dir=${aros_tools_dir}
13079 _ACEOF
13081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # Handling of arguments.
13084 for ac_config_target in $ac_config_targets
13086 case $ac_config_target in
13087 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13088 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13089 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13090 "Makefile
13091 ") CONFIG_FILES="$CONFIG_FILES Makefile
13092 " ;;
13093 "config/make.cfg
13094 ") CONFIG_FILES="$CONFIG_FILES config/make.cfg
13095 " ;;
13096 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in
13097 " ;;
13098 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in
13099 " ;;
13100 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in
13101 " ;;
13102 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in
13103 " ;;
13104 "mmake.config
13105 ") CONFIG_FILES="$CONFIG_FILES mmake.config
13106 " ;;
13107 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in
13108 " ;;
13109 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in
13110 " ;;
13111 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}
13112 " ;;
13113 "${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
13114 " ;;
13115 "${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
13116 " ;;
13117 "${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
13118 " ;;
13119 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py
13120 " ;;
13121 "tools/collect-aros/env.h
13122 ") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h
13123 " ;;
13124 "${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
13125 " ;;
13127 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13128 esac
13129 done
13132 # If the user did not use the arguments to specify the items to instantiate,
13133 # then the envvar interface is used. Set only those that are not.
13134 # We use the long form for the default assignment because of an extremely
13135 # bizarre bug on SunOS 4.1.3.
13136 if $ac_need_defaults; then
13137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13142 # Have a temporary directory for convenience. Make it in the build tree
13143 # simply because there is no reason against having it here, and in addition,
13144 # creating and moving files from /tmp can sometimes cause problems.
13145 # Hook for its removal unless debugging.
13146 # Note that there is a small window in which the directory will not be cleaned:
13147 # after its creation but before its name has been assigned to `$tmp'.
13148 $debug ||
13150 tmp= ac_tmp=
13151 trap 'exit_status=$?
13152 : "${ac_tmp:=$tmp}"
13153 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13155 trap 'as_fn_exit 1' 1 2 13 15
13157 # Create a (secure) tmp directory for tmp files.
13160 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13161 test -d "$tmp"
13162 } ||
13164 tmp=./conf$$-$RANDOM
13165 (umask 077 && mkdir "$tmp")
13166 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13167 ac_tmp=$tmp
13169 # Set up the scripts for CONFIG_FILES section.
13170 # No need to generate them if there are no CONFIG_FILES.
13171 # This happens for instance with `./config.status config.h'.
13172 if test -n "$CONFIG_FILES"; then
13175 ac_cr=`echo X | tr X '\015'`
13176 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13177 # But we know of no other shell where ac_cr would be empty at this
13178 # point, so we can use a bashism as a fallback.
13179 if test "x$ac_cr" = x; then
13180 eval ac_cr=\$\'\\r\'
13182 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13183 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13184 ac_cs_awk_cr='\\r'
13185 else
13186 ac_cs_awk_cr=$ac_cr
13189 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13190 _ACEOF
13194 echo "cat >conf$$subs.awk <<_ACEOF" &&
13195 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13196 echo "_ACEOF"
13197 } >conf$$subs.sh ||
13198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13199 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13200 ac_delim='%!_!# '
13201 for ac_last_try in false false false false false :; do
13202 . ./conf$$subs.sh ||
13203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13205 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13206 if test $ac_delim_n = $ac_delim_num; then
13207 break
13208 elif $ac_last_try; then
13209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13210 else
13211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13213 done
13214 rm -f conf$$subs.sh
13216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13217 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13218 _ACEOF
13219 sed -n '
13221 s/^/S["/; s/!.*/"]=/
13224 s/^[^!]*!//
13225 :repl
13226 t repl
13227 s/'"$ac_delim"'$//
13228 t delim
13231 s/\(.\{148\}\)..*/\1/
13232 t more1
13233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13236 b repl
13237 :more1
13238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13241 s/.\{148\}//
13242 t nl
13243 :delim
13245 s/\(.\{148\}\)..*/\1/
13246 t more2
13247 s/["\\]/\\&/g; s/^/"/; s/$/"/
13250 :more2
13251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13254 s/.\{148\}//
13255 t delim
13256 ' <conf$$subs.awk | sed '
13257 /^[^""]/{
13259 s/\n//
13261 ' >>$CONFIG_STATUS || ac_write_fail=1
13262 rm -f conf$$subs.awk
13263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264 _ACAWK
13265 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13266 for (key in S) S_is_set[key] = 1
13267 FS = "\a"
13271 line = $ 0
13272 nfields = split(line, field, "@")
13273 substed = 0
13274 len = length(field[1])
13275 for (i = 2; i < nfields; i++) {
13276 key = field[i]
13277 keylen = length(key)
13278 if (S_is_set[key]) {
13279 value = S[key]
13280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13281 len += length(value) + length(field[++i])
13282 substed = 1
13283 } else
13284 len += 1 + keylen
13287 print line
13290 _ACAWK
13291 _ACEOF
13292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13293 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13294 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13295 else
13297 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13298 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13299 _ACEOF
13301 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13302 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13303 # trailing colons and then remove the whole line if VPATH becomes empty
13304 # (actually we leave an empty line to preserve line numbers).
13305 if test "x$srcdir" = x.; then
13306 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13308 s///
13309 s/^/:/
13310 s/[ ]*$/:/
13311 s/:\$(srcdir):/:/g
13312 s/:\${srcdir}:/:/g
13313 s/:@srcdir@:/:/g
13314 s/^:*//
13315 s/:*$//
13317 s/\(=[ ]*\).*/\1/
13319 s/\n//
13320 s/^[^=]*=[ ]*$//
13324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13325 fi # test -n "$CONFIG_FILES"
13327 # Set up the scripts for CONFIG_HEADERS section.
13328 # No need to generate them if there are no CONFIG_HEADERS.
13329 # This happens for instance with `./config.status Makefile'.
13330 if test -n "$CONFIG_HEADERS"; then
13331 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13332 BEGIN {
13333 _ACEOF
13335 # Transform confdefs.h into an awk script `defines.awk', embedded as
13336 # here-document in config.status, that substitutes the proper values into
13337 # config.h.in to produce config.h.
13339 # Create a delimiter string that does not exist in confdefs.h, to ease
13340 # handling of long lines.
13341 ac_delim='%!_!# '
13342 for ac_last_try in false false :; do
13343 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13344 if test -z "$ac_tt"; then
13345 break
13346 elif $ac_last_try; then
13347 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13348 else
13349 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13351 done
13353 # For the awk script, D is an array of macro values keyed by name,
13354 # likewise P contains macro parameters if any. Preserve backslash
13355 # newline sequences.
13357 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13358 sed -n '
13359 s/.\{148\}/&'"$ac_delim"'/g
13360 t rset
13361 :rset
13362 s/^[ ]*#[ ]*define[ ][ ]*/ /
13363 t def
13365 :def
13366 s/\\$//
13367 t bsnl
13368 s/["\\]/\\&/g
13369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13370 D["\1"]=" \3"/p
13371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13373 :bsnl
13374 s/["\\]/\\&/g
13375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13376 D["\1"]=" \3\\\\\\n"\\/p
13377 t cont
13378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13379 t cont
13381 :cont
13383 s/.\{148\}/&'"$ac_delim"'/g
13384 t clear
13385 :clear
13386 s/\\$//
13387 t bsnlc
13388 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13390 :bsnlc
13391 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13392 b cont
13393 ' <confdefs.h | sed '
13394 s/'"$ac_delim"'/"\\\
13395 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13398 for (key in D) D_is_set[key] = 1
13399 FS = "\a"
13401 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13402 line = \$ 0
13403 split(line, arg, " ")
13404 if (arg[1] == "#") {
13405 defundef = arg[2]
13406 mac1 = arg[3]
13407 } else {
13408 defundef = substr(arg[1], 2)
13409 mac1 = arg[2]
13411 split(mac1, mac2, "(") #)
13412 macro = mac2[1]
13413 prefix = substr(line, 1, index(line, defundef) - 1)
13414 if (D_is_set[macro]) {
13415 # Preserve the white space surrounding the "#".
13416 print prefix "define", macro P[macro] D[macro]
13417 next
13418 } else {
13419 # Replace #undef with comments. This is necessary, for example,
13420 # in the case of _POSIX_SOURCE, which is predefined and required
13421 # on some systems where configure will not decide to define it.
13422 if (defundef == "undef") {
13423 print "/*", prefix defundef, macro, "*/"
13424 next
13428 { print }
13429 _ACAWK
13430 _ACEOF
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13433 fi # test -n "$CONFIG_HEADERS"
13436 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13437 shift
13438 for ac_tag
13440 case $ac_tag in
13441 :[FHLC]) ac_mode=$ac_tag; continue;;
13442 esac
13443 case $ac_mode$ac_tag in
13444 :[FHL]*:*);;
13445 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13446 :[FH]-) ac_tag=-:-;;
13447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13448 esac
13449 ac_save_IFS=$IFS
13450 IFS=:
13451 set x $ac_tag
13452 IFS=$ac_save_IFS
13453 shift
13454 ac_file=$1
13455 shift
13457 case $ac_mode in
13458 :L) ac_source=$1;;
13459 :[FH])
13460 ac_file_inputs=
13461 for ac_f
13463 case $ac_f in
13464 -) ac_f="$ac_tmp/stdin";;
13465 *) # Look for the file first in the build tree, then in the source tree
13466 # (if the path is not absolute). The absolute path cannot be DOS-style,
13467 # because $ac_f cannot contain `:'.
13468 test -f "$ac_f" ||
13469 case $ac_f in
13470 [\\/$]*) false;;
13471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13472 esac ||
13473 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13474 esac
13475 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13476 as_fn_append ac_file_inputs " '$ac_f'"
13477 done
13479 # Let's still pretend it is `configure' which instantiates (i.e., don't
13480 # use $as_me), people would be surprised to read:
13481 # /* config.h. Generated by config.status. */
13482 configure_input='Generated from '`
13483 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13484 `' by configure.'
13485 if test x"$ac_file" != x-; then
13486 configure_input="$ac_file. $configure_input"
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13488 $as_echo "$as_me: creating $ac_file" >&6;}
13490 # Neutralize special characters interpreted by sed in replacement strings.
13491 case $configure_input in #(
13492 *\&* | *\|* | *\\* )
13493 ac_sed_conf_input=`$as_echo "$configure_input" |
13494 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13495 *) ac_sed_conf_input=$configure_input;;
13496 esac
13498 case $ac_tag in
13499 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13501 esac
13503 esac
13505 ac_dir=`$as_dirname -- "$ac_file" ||
13506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13507 X"$ac_file" : 'X\(//\)[^/]' \| \
13508 X"$ac_file" : 'X\(//\)$' \| \
13509 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13510 $as_echo X"$ac_file" |
13511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13512 s//\1/
13515 /^X\(\/\/\)[^/].*/{
13516 s//\1/
13519 /^X\(\/\/\)$/{
13520 s//\1/
13523 /^X\(\/\).*/{
13524 s//\1/
13527 s/.*/./; q'`
13528 as_dir="$ac_dir"; as_fn_mkdir_p
13529 ac_builddir=.
13531 case "$ac_dir" in
13532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13535 # A ".." for each directory in $ac_dir_suffix.
13536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13537 case $ac_top_builddir_sub in
13538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13540 esac ;;
13541 esac
13542 ac_abs_top_builddir=$ac_pwd
13543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13544 # for backward compatibility:
13545 ac_top_builddir=$ac_top_build_prefix
13547 case $srcdir in
13548 .) # We are building in place.
13549 ac_srcdir=.
13550 ac_top_srcdir=$ac_top_builddir_sub
13551 ac_abs_top_srcdir=$ac_pwd ;;
13552 [\\/]* | ?:[\\/]* ) # Absolute name.
13553 ac_srcdir=$srcdir$ac_dir_suffix;
13554 ac_top_srcdir=$srcdir
13555 ac_abs_top_srcdir=$srcdir ;;
13556 *) # Relative name.
13557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13558 ac_top_srcdir=$ac_top_build_prefix$srcdir
13559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13560 esac
13561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13564 case $ac_mode in
13567 # CONFIG_FILE
13570 _ACEOF
13572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13573 # If the template does not know about datarootdir, expand it.
13574 # FIXME: This hack should be removed a few years after 2.60.
13575 ac_datarootdir_hack=; ac_datarootdir_seen=
13576 ac_sed_dataroot='
13577 /datarootdir/ {
13581 /@datadir@/p
13582 /@docdir@/p
13583 /@infodir@/p
13584 /@localedir@/p
13585 /@mandir@/p'
13586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13587 *datarootdir*) ac_datarootdir_seen=yes;;
13588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13591 _ACEOF
13592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13593 ac_datarootdir_hack='
13594 s&@datadir@&$datadir&g
13595 s&@docdir@&$docdir&g
13596 s&@infodir@&$infodir&g
13597 s&@localedir@&$localedir&g
13598 s&@mandir@&$mandir&g
13599 s&\\\${datarootdir}&$datarootdir&g' ;;
13600 esac
13601 _ACEOF
13603 # Neutralize VPATH when `$srcdir' = `.'.
13604 # Shell code in configure.ac might set extrasub.
13605 # FIXME: do we really want to maintain this feature?
13606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13607 ac_sed_extra="$ac_vpsub
13608 $extrasub
13609 _ACEOF
13610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13613 s|@configure_input@|$ac_sed_conf_input|;t t
13614 s&@top_builddir@&$ac_top_builddir_sub&;t t
13615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13616 s&@srcdir@&$ac_srcdir&;t t
13617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13618 s&@top_srcdir@&$ac_top_srcdir&;t t
13619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13620 s&@builddir@&$ac_builddir&;t t
13621 s&@abs_builddir@&$ac_abs_builddir&;t t
13622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13623 $ac_datarootdir_hack
13625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13626 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13631 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13633 which seems to be undefined. Please make sure it is defined" >&5
13634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13635 which seems to be undefined. Please make sure it is defined" >&2;}
13637 rm -f "$ac_tmp/stdin"
13638 case $ac_file in
13639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13641 esac \
13642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13646 # CONFIG_HEADER
13648 if test x"$ac_file" != x-; then
13650 $as_echo "/* $configure_input */" \
13651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13652 } >"$ac_tmp/config.h" \
13653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13656 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13657 else
13658 rm -f "$ac_file"
13659 mv "$ac_tmp/config.h" "$ac_file" \
13660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13662 else
13663 $as_echo "/* $configure_input */" \
13664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13665 || as_fn_error $? "could not create -" "$LINENO" 5
13669 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13670 $as_echo "$as_me: executing $ac_file commands" >&6;}
13672 esac
13675 case $ac_file$ac_mode in
13676 "compiler_executable":C)
13677 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13678 mkdir -p $prefix
13679 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13680 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13682 echo ${prefix2}
13683 echo ${prefix3}
13684 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13686 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13687 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13688 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13689 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13690 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13691 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13692 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13694 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13696 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13698 esac
13699 done # for ac_tag
13702 as_fn_exit 0
13703 _ACEOF
13704 ac_clean_files=$ac_clean_files_save
13706 test $ac_write_fail = 0 ||
13707 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13710 # configure is writing to config.log, and then calls config.status.
13711 # config.status does its own redirection, appending to config.log.
13712 # Unfortunately, on DOS this fails, as config.log is still kept open
13713 # by configure, so config.status won't be able to write to it; its
13714 # output is simply discarded. So we exec the FD to /dev/null,
13715 # effectively closing config.log, so it can be properly (re)opened and
13716 # appended to by config.status. When coming back to configure, we
13717 # need to make the FD available again.
13718 if test "$no_create" != yes; then
13719 ac_cs_success=:
13720 ac_config_status_args=
13721 test "$silent" = yes &&
13722 ac_config_status_args="$ac_config_status_args --quiet"
13723 exec 5>/dev/null
13724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13725 exec 5>>config.log
13726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13727 # would make configure fail if this is the last instruction.
13728 $ac_cs_success || as_fn_exit 1
13730 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13732 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13737 #XXX compatability...
13738 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13740 if test -n "$aros_shared_cflags" ; then
13741 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13742 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg