i18n of URL
[AROS.git] / configure
blobec1550b54cc7c7b425e2638683b38f48e07392fc
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 gcc_default_float_abi="soft"
7857 target_tool_prefix="arm-mingw32ce-"
7858 aros_default_wbwidth=160
7859 aros_default_wbheight=160
7862 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7864 esac
7865 if test $host_os = "cygwin"; then
7866 aros_kernel_cflags="-mno-cygwin"
7869 pp*)
7870 aros_target_arch="pp"
7871 aros_shared_default="no"
7872 case "$target_cpu" in
7873 *m68k*)
7874 aros_target_cpu="m68k"
7875 aros_object_format="m68kelf"
7876 aros_flavour="palmnative"
7877 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7878 aros_default_wbwidth=160
7879 aros_default_wbheight=160
7880 aros_default_wbdepth=1
7881 aros_target_ar_flags="cru"
7882 aros_compiler_libs="-lgcc1"
7883 aros_shared_default=no
7884 aros_shared_cflags="-fpic"
7885 aros_shared_aflags=""
7886 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7887 aros_kernel_ldflags="-Wl,-rpath,./lib"
7888 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7889 aros_debug_aflags=""
7890 aros_debug_ldflags="$aros_symbols_debug"
7891 aros_mungwall_debug="0"
7892 aros_modules_debug="0"
7893 gcc_target_cpu="mc68000"
7894 ignore_undefined_symbols="-ius"
7897 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7899 esac
7902 mac*)
7903 aros_target_arch="mac"
7904 aros_shared_default="no"
7905 case "$target_cpu" in
7906 *m68k*)
7907 aros_target_cpu="m68k"
7908 aros_object_format="m68kelf"
7909 aros_flavour="mac68knative"
7910 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7911 aros_default_wbwidth=512
7912 aros_default_wbheight=384
7913 aros_default_wbdepth=8
7914 aros_target_ar_flags="cru"
7915 aros_compiler_libs="-lgcc1"
7916 aros_shared_default=no
7917 aros_shared_cflags="-fpic"
7918 aros_shared_aflags=""
7919 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7920 aros_kernel_ldflags="-Wl,-rpath,./lib"
7921 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7922 aros_debug_aflags=""
7923 aros_debug_ldflags="$aros_symbols_debug"
7924 aros_mungwall_debug="0"
7925 aros_modules_debug="0"
7926 gcc_target_cpu="mc68000"
7927 ignore_undefined_symbols="-ius"
7930 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7932 esac
7936 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7938 esac
7940 # Now process extra architecture-specific options.
7941 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
7942 # as well as floating-point ABI.
7943 case "$aros_target_cpu" in
7944 arm)
7945 if test "$gcc_default_cpu" = ""; then
7946 gcc_default_cpu="armv6"
7948 if test "$gcc_default_fpu" = ""; then
7949 gcc_default_fpu="vfp"
7951 if test "$gcc_default_float_abi" = ""; then
7952 gcc_default_float_abi="softfp"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
7956 $as_echo_n "checking Which minimum CPU to use... " >&6; }
7958 # Check whether --with-cpu was given.
7959 if test "${with_cpu+set}" = set; then :
7960 withval=$with_cpu; aros_gcc_cpu="$withval"
7961 else
7962 aros_gcc_cpu=$gcc_default_cpu
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
7966 $as_echo "$aros_gcc_cpu" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
7969 $as_echo_n "checking Which minimum FPU to use... " >&6; }
7971 # Check whether --with-fpu was given.
7972 if test "${with_fpu+set}" = set; then :
7973 withval=$with_fpu; aros_gcc_fpu="$withval"
7974 else
7975 aros_gcc_fpu=$gcc_default_fpu
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
7979 $as_echo "$aros_gcc_fpu" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
7982 $as_echo_n "checking Which floating point ABI to use... " >&6; }
7984 # Check whether --with-float was given.
7985 if test "${with_float+set}" = set; then :
7986 withval=$with_float; aros_gcc_float_abi="$withval"
7987 else
7988 aros_gcc_float_abi=$gcc_default_float_abi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
7992 $as_echo "$aros_gcc_float_abi" >&6; }
7994 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"
7995 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"
7997 esac
7999 # Some formats need custom ELF specs.
8000 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8001 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8002 elf_specs_in=config/${aros_object_format}-specs.in
8003 else
8004 elf_specs_in=config/elf-specs.in
8007 #-----------------------------------------------------------------------------
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8009 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8011 # Check whether --with-crosstools was given.
8012 if test "${with_crosstools+set}" = set; then :
8013 withval=$with_crosstools; with_crosstools=$withval
8014 else
8015 with_crosstools="default"
8018 if test "$with_crosstools" = "default"; then
8019 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8020 else
8021 AROS_CROSSTOOLSDIR="$with_crosstools"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8024 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8026 if test "$crosstools" != "no" -o "$with_crosstools" != "default"; then
8029 use_aros_gcc=yes
8030 PATH=$AROS_CROSSTOOLSDIR:$PATH
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8034 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8036 # Check whether --with-aros-gcc was given.
8037 if test "${with_aros_gcc+set}" = set; then :
8038 withval=$with_aros_gcc; aros_gcc_version="$withval"
8039 else
8040 aros_gcc_version="$use_aros_gcc"
8043 case "$aros_gcc_version" in
8044 yes)
8045 aros_gcc_version="default"
8048 aros_gcc_version="none"
8050 esac
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8052 $as_echo "$aros_gcc_version" >&6; }
8054 if test "$aros_gcc_version" != "none"; then
8057 if test "$aros_gcc_version" != "default"; then
8058 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
8059 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
8060 else
8061 aros_target_cc="$aros_target_cpu-aros-gcc"
8062 aros_target_cxx="$aros_target_cpu-aros-g++"
8065 aros_target_ld="$aros_target_cpu-aros-ld"
8066 aros_target_as="$aros_target_cpu-aros-as"
8067 aros_target_ar="$aros_target_cpu-aros-ar"
8068 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
8069 aros_target_nm="$aros_target_cpu-aros-nm"
8070 aros_target_strip="$aros_target_cpu-aros-strip"
8071 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
8072 aros_target_objdump="$aros_target_cpu-aros-objdump"
8075 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8076 # Since we override specs, we may need to put these defines there
8077 if test "$gcc_target_cpu" != ""; then
8078 gcc_target_cpu="-D__${gcc_target_cpu}__"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8082 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8084 # Check whether --with-portssources was given.
8085 if test "${with_portssources+set}" = set; then :
8086 withval=$with_portssources; with_portssrcdir=$withval
8087 else
8088 with_portssrcdir="default"
8091 if test "$with_portssrcdir" = "default"; then
8092 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8093 else
8094 AROS_PORTSSRCDIR="$with_portssrcdir"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8097 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8100 $as_echo_n "checking which bootloader to use... " >&6; }
8102 # Check whether --with-bootloader was given.
8103 if test "${with_bootloader+set}" = set; then :
8104 withval=$with_bootloader; target_bootloader=$withval
8105 else
8106 target_bootloader=$target_bootloader
8109 if test "$target_bootloader" = "none"; then
8110 aros_target_bootloader=""
8111 else
8112 aros_target_bootloader="$target_bootloader"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8115 $as_echo "$target_bootloader" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8118 $as_echo_n "checking which icon-set to use... " >&6; }
8120 # Check whether --with-iconset was given.
8121 if test "${with_iconset+set}" = set; then :
8122 withval=$with_iconset; target_iconset=$withval
8123 else
8124 target_iconset="default"
8127 if test "$target_iconset" = "default"; then
8128 aros_target_iconset="Gorilla"
8129 target_iconset="default (Gorilla)"
8130 else
8131 aros_target_iconset="$target_iconset"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8134 $as_echo "$target_iconset" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8137 $as_echo_n "checking which GUI Theme to use... " >&6; }
8139 # Check whether --with-theme was given.
8140 if test "${with_theme+set}" = set; then :
8141 withval=$with_theme; target_guitheme=$withval
8142 else
8143 target_guitheme="default"
8146 if test "$target_guitheme" = "default"; then
8147 aros_target_guitheme="Ice"
8148 else
8149 aros_target_guitheme="$target_guitheme"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8152 $as_echo "$aros_target_guitheme" >&6; }
8154 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8155 # for target code)
8156 cross_compiling=no
8157 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8158 cross_compiling=yes
8161 if test "$aros_host_cpu" == "x86_64" ; then
8162 if test "$aros_target_cpu" == "i386" ; then
8163 if test "$aros_target_arch" != "mingw32"; then
8164 cross_compiling=no
8169 if test "$aros_host_arch" == "darwin" ; then
8170 if test "$aros_target_arch" != "darwin" ; then
8171 cross_compiling=yes
8175 if test "$aros_host_arch" == "mingw32" ; then
8176 if test "$aros_target_arch" != "mingw32" ; then
8177 cross_compiling=yes
8181 # I want to have this information in configure output, although it might be
8182 # misleading, e.g. for darwin hosted you cannot compile target code without a
8183 # cross compiler, but here it says no.
8185 # Note: it says 'yes' only if bootstrap ("kernel") is cross-compiled.
8186 # Target code is a little bit different thing.
8187 # sonic
8188 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8190 # Set prefix for target compiler etc. if we're cross-compiling
8191 # (should possibly be earlier but needs to be after AC_PROG_CC)
8192 if test "$cross_compiling" = "yes" ; then
8194 if test "x-$aros_flavour" = "x-standalone" -o "x-$aros_flavour" = "x-standcompat" ; then
8195 if test "$aros_gcc_version" != "none"; then
8198 target_tool_prefix=${target_cpu}-aros-
8199 target_tool_version=$aros_gcc_version
8200 use_kernel_cc_wrapper=yes
8202 aros_target_cc=
8203 aros_target_ld=
8204 aros_target_as=
8205 aros_target_ar=
8206 aros_target_ranlib=
8207 aros_target_nm=
8208 aros_target_strip=
8209 aros_target_objcopy=
8210 aros_target_objdump=
8214 CC=${target_tool_prefix}gcc
8215 CPP=${target_tool_prefix}cpp
8216 if test "$target_tool_version" != "default"; then
8217 CC="$CC-$target_tool_version"
8218 CPP="$CC-$target_tool_version"
8220 if test "$crosstools" != "yes" ; then
8221 # Extract the first word of "$CC", so it can be a program name with args.
8222 set dummy $CC; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if ${ac_cv_path_CC+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 case $CC in
8229 [\\/]* | ?:[\\/]*)
8230 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8244 done
8245 done
8246 IFS=$as_save_IFS
8249 esac
8251 CC=$ac_cv_path_CC
8252 if test -n "$CC"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8254 $as_echo "$CC" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8261 if test "$CC" = ""; then
8262 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8264 else
8265 CC=$AROS_CROSSTOOLSDIR/$CC
8268 CC="$CC $target_tool_flags"
8270 #-----------------------------------------------------------------------------
8272 # Disable pointer-signedness warnings if the compiler recognises the option
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8275 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8276 save_cflags="$CFLAGS"
8277 if test "$crosstools" != "yes" ; then
8278 CFLAGS="$CFLAGS -Wno-pointer-sign"
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8283 main ()
8287 return 0;
8289 _ACEOF
8290 if ac_fn_c_try_compile "$LINENO"; then :
8291 use_no_sign_warning="yes"
8292 else
8293 use_no_sign_warning="no"
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 else
8297 # we do know it is supported for the smallest version of gcc we are going to build
8298 # we assume it's also supported by later versions
8299 use_no_sign_warning=yes
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8302 $as_echo "$use_no_sign_warning" >&6; }
8303 if test "x-$use_no_sign_warning" = "x-yes" ; then
8304 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8306 CFLAGS="$save_cflags"
8308 #-----------------------------------------------------------------------------
8310 # Find all the tools we need to compile. This could be cross-compiling
8311 # though! If that is the case we use the GNU form of the target and
8312 # simply add this to the front of the binary name. This is rather simple,
8313 # but it should work under most circumstances.
8315 # The default tools are to use the same as the host, but only if the
8316 # host and target CPU are the same. With GCC this is normally enough.
8319 aros_cc_pre=""
8320 aros_shared_ld="$aros_host_ld"
8322 aros_target_mkdep="$aros_host_mkdep"
8323 aros_target_incl_def="$aros_host_incl"
8325 aros_kernel_cc="$CC"
8327 # The default tools executables to be linked to.
8328 if test "$rescomp" != ""; then
8329 if test "$cross_compiling" = "yes" ; then
8330 rescomp=${target_tool_prefix}${rescomp}
8332 # Extract the first word of "$rescomp", so it can be a program name with args.
8333 set dummy $rescomp; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 case $aros_kernel_rescomp in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8360 esac
8362 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8363 if test -n "$aros_kernel_rescomp"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8365 $as_echo "$aros_kernel_rescomp" >&6; }
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8372 if test "$aros_kernel_rescomp" = ""; then
8373 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8377 if test "$crosstools" != "yes"; then
8379 if test "$aros_kernel_ld" = ""; then
8380 if test "$cross_compiling" = "yes" ; then
8381 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8382 set dummy ${target_tool_prefix}ld; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 case $aros_kernel_ld in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8409 esac
8411 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8412 if test -n "$aros_kernel_ld"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8414 $as_echo "$aros_kernel_ld" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8421 else
8422 if test "$GCC" = "yes"; then
8423 aros_gcc_ld=`$CC -print-prog-name=ld`
8424 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8425 set dummy `basename $aros_gcc_ld`; ac_word=$2
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 $as_echo_n "checking for $ac_word... " >&6; }
8428 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 case $aros_kernel_ld in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in `dirname $aros_gcc_ld`
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8452 esac
8454 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8455 if test -n "$aros_kernel_ld"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8457 $as_echo "$aros_kernel_ld" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8465 if test "$aros_kernel_ld" = ""; then
8466 # Extract the first word of "ld", so it can be a program name with args.
8467 set dummy ld; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 case $aros_kernel_ld in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8494 esac
8496 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8497 if test -n "$aros_kernel_ld"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8499 $as_echo "$aros_kernel_ld" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8508 else
8509 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8510 set dummy $aros_kernel_ld; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 case $aros_kernel_ld in
8517 [\\/]* | ?:[\\/]*)
8518 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8537 esac
8539 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8540 if test -n "$aros_kernel_ld"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8542 $as_echo "$aros_kernel_ld" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8551 if test "$aros_kernel_ld" = ""; then
8552 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8555 if test "$aros_kernel_ar" = ""; then
8556 if test "$cross_compiling" = "yes" ; then
8557 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8558 set dummy ${target_tool_prefix}ar; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 case $aros_kernel_ar in
8565 [\\/]* | ?:[\\/]*)
8566 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8580 done
8581 done
8582 IFS=$as_save_IFS
8585 esac
8587 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8588 if test -n "$aros_kernel_ar"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8590 $as_echo "$aros_kernel_ar" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8597 else
8598 if test "$GCC" = "yes"; then
8599 aros_gcc_ar=`$CC -print-prog-name=ar`
8600 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8601 set dummy `basename $aros_gcc_ar`; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 case $aros_kernel_ar in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in `dirname $aros_gcc_ar`
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8628 esac
8630 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8631 if test -n "$aros_kernel_ar"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8633 $as_echo "$aros_kernel_ar" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8641 if test "$aros_kernel_ar" = ""; then
8642 # Extract the first word of "ar", so it can be a program name with args.
8643 set dummy ar; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 case $aros_kernel_ar in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8665 done
8666 done
8667 IFS=$as_save_IFS
8670 esac
8672 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8673 if test -n "$aros_kernel_ar"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8675 $as_echo "$aros_kernel_ar" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8684 else
8685 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8686 set dummy $aros_kernel_ar; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 case $aros_kernel_ar in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8713 esac
8715 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8716 if test -n "$aros_kernel_ar"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8718 $as_echo "$aros_kernel_ar" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8727 if test "$aros_kernel_ar" = ""; then
8728 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8731 if test "$aros_kernel_ranlib" = ""; then
8732 if test "$cross_compiling" = "yes" ; then
8733 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8734 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 case $aros_kernel_ranlib in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8761 esac
8763 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8764 if test -n "$aros_kernel_ranlib"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8766 $as_echo "$aros_kernel_ranlib" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8773 else
8774 if test "$GCC" = "yes"; then
8775 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8776 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8777 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 case $aros_kernel_ranlib in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in `dirname $aros_gcc_ranlib`
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8804 esac
8806 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8807 if test -n "$aros_kernel_ranlib"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8809 $as_echo "$aros_kernel_ranlib" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test "$aros_kernel_ranlib" = ""; then
8818 # Extract the first word of "ranlib", so it can be a program name with args.
8819 set dummy ranlib; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 case $aros_kernel_ranlib in
8826 [\\/]* | ?:[\\/]*)
8827 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8841 done
8842 done
8843 IFS=$as_save_IFS
8846 esac
8848 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8849 if test -n "$aros_kernel_ranlib"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8851 $as_echo "$aros_kernel_ranlib" >&6; }
8852 else
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8860 else
8861 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8862 set dummy $aros_kernel_ranlib; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 case $aros_kernel_ranlib in
8869 [\\/]* | ?:[\\/]*)
8870 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8884 done
8885 done
8886 IFS=$as_save_IFS
8889 esac
8891 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8892 if test -n "$aros_kernel_ranlib"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8894 $as_echo "$aros_kernel_ranlib" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8903 if test "$aros_kernel_ranlib" = ""; then
8904 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8907 if test "$target_tool_prefix" != "${target_cpu}-elf-" -a "$target_tool_prefix" != "${target_cpu}-aros-" ; then
8908 target_tool_prefix=${target_cpu}-elf-
8909 if test "$aros_target_cc" == ""; then
8910 aros_target_cc="${target_tool_prefix}gcc"
8912 if test "$aros_target_ld" == ""; then
8913 aros_target_ld="${target_tool_prefix}ld"
8917 if test "$aros_target_as" = ""; then
8918 if test "$cross_compiling" = "yes" ; then
8919 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8920 set dummy ${target_tool_prefix}as; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 case $aros_target_as_ln in
8927 [\\/]* | ?:[\\/]*)
8928 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8942 done
8943 done
8944 IFS=$as_save_IFS
8947 esac
8949 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8950 if test -n "$aros_target_as_ln"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8952 $as_echo "$aros_target_as_ln" >&6; }
8953 else
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8959 else
8960 if test "$GCC" = "yes"; then
8961 aros_gcc_as=`$CC -print-prog-name=as`
8962 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8963 set dummy `basename $aros_gcc_as`; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 case $aros_target_as_ln in
8970 [\\/]* | ?:[\\/]*)
8971 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in `dirname $aros_gcc_as`
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8985 done
8986 done
8987 IFS=$as_save_IFS
8990 esac
8992 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8993 if test -n "$aros_target_as_ln"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8995 $as_echo "$aros_target_as_ln" >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
9003 if test "$aros_target_as_ln" = ""; then
9004 # Extract the first word of "as", so it can be a program name with args.
9005 set dummy as; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 case $aros_target_as_ln in
9012 [\\/]* | ?:[\\/]*)
9013 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9023 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9027 done
9028 done
9029 IFS=$as_save_IFS
9032 esac
9034 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9035 if test -n "$aros_target_as_ln"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9037 $as_echo "$aros_target_as_ln" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9046 else
9047 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9048 set dummy $aros_target_as; ac_word=$2
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9050 $as_echo_n "checking for $ac_word... " >&6; }
9051 if ${ac_cv_path_aros_target_as_ln+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 case $aros_target_as_ln in
9055 [\\/]* | ?:[\\/]*)
9056 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $PATH
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9066 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 break 2
9070 done
9071 done
9072 IFS=$as_save_IFS
9075 esac
9077 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9078 if test -n "$aros_target_as_ln"; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
9080 $as_echo "$aros_target_as_ln" >&6; }
9081 else
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 $as_echo "no" >&6; }
9089 if test "$aros_target_as_ln" = ""; then
9090 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9093 if test "$aros_target_ar" = ""; then
9094 if test "$cross_compiling" = "yes" ; then
9095 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9096 set dummy ${target_tool_prefix}ar; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 case $aros_target_ar_ln in
9103 [\\/]* | ?:[\\/]*)
9104 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9118 done
9119 done
9120 IFS=$as_save_IFS
9123 esac
9125 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9126 if test -n "$aros_target_ar_ln"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9128 $as_echo "$aros_target_ar_ln" >&6; }
9129 else
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 $as_echo "no" >&6; }
9135 else
9136 if test "$GCC" = "yes"; then
9137 aros_gcc_ar=`$CC -print-prog-name=ar`
9138 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9139 set dummy `basename $aros_gcc_ar`; ac_word=$2
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 $as_echo_n "checking for $ac_word... " >&6; }
9142 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 case $aros_target_ar_ln in
9146 [\\/]* | ?:[\\/]*)
9147 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in `dirname $aros_gcc_ar`
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9161 done
9162 done
9163 IFS=$as_save_IFS
9166 esac
9168 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9169 if test -n "$aros_target_ar_ln"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9171 $as_echo "$aros_target_ar_ln" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9179 if test "$aros_target_ar_ln" = ""; then
9180 # Extract the first word of "ar", so it can be a program name with args.
9181 set dummy ar; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 case $aros_target_ar_ln in
9188 [\\/]* | ?:[\\/]*)
9189 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in $PATH
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9203 done
9204 done
9205 IFS=$as_save_IFS
9208 esac
9210 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9211 if test -n "$aros_target_ar_ln"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9213 $as_echo "$aros_target_ar_ln" >&6; }
9214 else
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9222 else
9223 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9224 set dummy $aros_target_ar; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 case $aros_target_ar_ln in
9231 [\\/]* | ?:[\\/]*)
9232 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9242 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9246 done
9247 done
9248 IFS=$as_save_IFS
9251 esac
9253 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9254 if test -n "$aros_target_ar_ln"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9256 $as_echo "$aros_target_ar_ln" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9265 if test "$aros_target_ar_ln" = ""; then
9266 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9269 if test "$aros_target_nm" = ""; then
9270 if test "$cross_compiling" = "yes" ; then
9271 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9272 set dummy ${target_tool_prefix}nm; ac_word=$2
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 $as_echo_n "checking for $ac_word... " >&6; }
9275 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 case $aros_target_nm_ln in
9279 [\\/]* | ?:[\\/]*)
9280 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 for as_dir in $PATH
9286 IFS=$as_save_IFS
9287 test -z "$as_dir" && as_dir=.
9288 for ac_exec_ext in '' $ac_executable_extensions; do
9289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9290 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9292 break 2
9294 done
9295 done
9296 IFS=$as_save_IFS
9299 esac
9301 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9302 if test -n "$aros_target_nm_ln"; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9304 $as_echo "$aros_target_nm_ln" >&6; }
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; }
9311 else
9312 if test "$GCC" = "yes"; then
9313 aros_gcc_nm=`$CC -print-prog-name=nm`
9314 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9315 set dummy `basename $aros_gcc_nm`; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 case $aros_target_nm_ln in
9322 [\\/]* | ?:[\\/]*)
9323 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in `dirname $aros_gcc_nm`
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9342 esac
9344 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9345 if test -n "$aros_target_nm_ln"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9347 $as_echo "$aros_target_nm_ln" >&6; }
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9355 if test "$aros_target_nm_ln" = ""; then
9356 # Extract the first word of "nm", so it can be a program name with args.
9357 set dummy nm; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 case $aros_target_nm_ln in
9364 [\\/]* | ?:[\\/]*)
9365 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9379 done
9380 done
9381 IFS=$as_save_IFS
9384 esac
9386 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9387 if test -n "$aros_target_nm_ln"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9389 $as_echo "$aros_target_nm_ln" >&6; }
9390 else
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9398 else
9399 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9400 set dummy $aros_target_nm; ac_word=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 case $aros_target_nm_ln in
9407 [\\/]* | ?:[\\/]*)
9408 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9418 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9422 done
9423 done
9424 IFS=$as_save_IFS
9427 esac
9429 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9430 if test -n "$aros_target_nm_ln"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9432 $as_echo "$aros_target_nm_ln" >&6; }
9433 else
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9441 if test "$aros_target_nm_ln" = ""; then
9442 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9445 if test "$aros_target_objcopy" = ""; then
9446 if test "$cross_compiling" = "yes" ; then
9447 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9448 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 case $aros_target_objcopy_ln in
9455 [\\/]* | ?:[\\/]*)
9456 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9470 done
9471 done
9472 IFS=$as_save_IFS
9475 esac
9477 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9478 if test -n "$aros_target_objcopy_ln"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9480 $as_echo "$aros_target_objcopy_ln" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9487 else
9488 if test "$GCC" = "yes"; then
9489 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9490 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9491 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 case $aros_target_objcopy_ln in
9498 [\\/]* | ?:[\\/]*)
9499 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in `dirname $aros_gcc_objcopy`
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9509 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9513 done
9514 done
9515 IFS=$as_save_IFS
9518 esac
9520 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9521 if test -n "$aros_target_objcopy_ln"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9523 $as_echo "$aros_target_objcopy_ln" >&6; }
9524 else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9531 if test "$aros_target_objcopy_ln" = ""; then
9532 # Extract the first word of "objcopy", so it can be a program name with args.
9533 set dummy objcopy; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 case $aros_target_objcopy_ln in
9540 [\\/]* | ?:[\\/]*)
9541 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9560 esac
9562 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9563 if test -n "$aros_target_objcopy_ln"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9565 $as_echo "$aros_target_objcopy_ln" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9574 else
9575 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9576 set dummy $aros_target_objcopy; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 case $aros_target_objcopy_ln in
9583 [\\/]* | ?:[\\/]*)
9584 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9594 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 break 2
9598 done
9599 done
9600 IFS=$as_save_IFS
9603 esac
9605 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9606 if test -n "$aros_target_objcopy_ln"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9608 $as_echo "$aros_target_objcopy_ln" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9617 if test "$aros_target_objcopy_ln" = ""; then
9618 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9621 if test "$aros_target_objdump" = ""; then
9622 if test "$cross_compiling" = "yes" ; then
9623 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9624 set dummy ${target_tool_prefix}objdump; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 case $aros_target_objdump_ln in
9631 [\\/]* | ?:[\\/]*)
9632 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9642 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9646 done
9647 done
9648 IFS=$as_save_IFS
9651 esac
9653 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9654 if test -n "$aros_target_objdump_ln"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9656 $as_echo "$aros_target_objdump_ln" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9663 else
9664 if test "$GCC" = "yes"; then
9665 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9666 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9667 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 case $aros_target_objdump_ln in
9674 [\\/]* | ?:[\\/]*)
9675 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in `dirname $aros_gcc_objdump`
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9694 esac
9696 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9697 if test -n "$aros_target_objdump_ln"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9699 $as_echo "$aros_target_objdump_ln" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9707 if test "$aros_target_objdump_ln" = ""; then
9708 # Extract the first word of "objdump", so it can be a program name with args.
9709 set dummy objdump; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 case $aros_target_objdump_ln in
9716 [\\/]* | ?:[\\/]*)
9717 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9736 esac
9738 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9739 if test -n "$aros_target_objdump_ln"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9741 $as_echo "$aros_target_objdump_ln" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9750 else
9751 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9752 set dummy $aros_target_objdump; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 case $aros_target_objdump_ln in
9759 [\\/]* | ?:[\\/]*)
9760 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 for as_dir in $PATH
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9770 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772 break 2
9774 done
9775 done
9776 IFS=$as_save_IFS
9779 esac
9781 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9782 if test -n "$aros_target_objdump_ln"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9784 $as_echo "$aros_target_objdump_ln" >&6; }
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9793 if test "$aros_target_objdump_ln" = ""; then
9794 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9797 if test "$aros_target_ranlib" = ""; then
9798 if test "$cross_compiling" = "yes" ; then
9799 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9800 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9802 $as_echo_n "checking for $ac_word... " >&6; }
9803 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 case $aros_target_ranlib_ln in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9824 IFS=$as_save_IFS
9827 esac
9829 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9830 if test -n "$aros_target_ranlib_ln"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9832 $as_echo "$aros_target_ranlib_ln" >&6; }
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9839 else
9840 if test "$GCC" = "yes"; then
9841 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9842 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9843 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 case $aros_target_ranlib_ln in
9850 [\\/]* | ?:[\\/]*)
9851 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in `dirname $aros_gcc_ranlib`
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9861 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9865 done
9866 done
9867 IFS=$as_save_IFS
9870 esac
9872 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9873 if test -n "$aros_target_ranlib_ln"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9875 $as_echo "$aros_target_ranlib_ln" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9883 if test "$aros_target_ranlib_ln" = ""; then
9884 # Extract the first word of "ranlib", so it can be a program name with args.
9885 set dummy ranlib; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 case $aros_target_ranlib_ln in
9892 [\\/]* | ?:[\\/]*)
9893 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9907 done
9908 done
9909 IFS=$as_save_IFS
9912 esac
9914 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9915 if test -n "$aros_target_ranlib_ln"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9917 $as_echo "$aros_target_ranlib_ln" >&6; }
9918 else
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 $as_echo "no" >&6; }
9926 else
9927 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9928 set dummy $aros_target_ranlib; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 case $aros_target_ranlib_ln in
9935 [\\/]* | ?:[\\/]*)
9936 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9950 done
9951 done
9952 IFS=$as_save_IFS
9955 esac
9957 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9958 if test -n "$aros_target_ranlib_ln"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9960 $as_echo "$aros_target_ranlib_ln" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9969 if test "$aros_target_ranlib_ln" = ""; then
9970 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9973 if test "$aros_target_strip" = ""; then
9974 if test "$cross_compiling" = "yes" ; then
9975 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9976 set dummy ${target_tool_prefix}strip; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 case $aros_target_strip_ln in
9983 [\\/]* | ?:[\\/]*)
9984 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10003 esac
10005 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10006 if test -n "$aros_target_strip_ln"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10008 $as_echo "$aros_target_strip_ln" >&6; }
10009 else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10015 else
10016 if test "$GCC" = "yes"; then
10017 aros_gcc_strip=`$CC -print-prog-name=strip`
10018 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10019 set dummy `basename $aros_gcc_strip`; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 case $aros_target_strip_ln in
10026 [\\/]* | ?:[\\/]*)
10027 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in `dirname $aros_gcc_strip`
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10041 done
10042 done
10043 IFS=$as_save_IFS
10046 esac
10048 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10049 if test -n "$aros_target_strip_ln"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10051 $as_echo "$aros_target_strip_ln" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10059 if test "$aros_target_strip_ln" = ""; then
10060 # Extract the first word of "strip", so it can be a program name with args.
10061 set dummy strip; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 case $aros_target_strip_ln in
10068 [\\/]* | ?:[\\/]*)
10069 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10083 done
10084 done
10085 IFS=$as_save_IFS
10088 esac
10090 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10091 if test -n "$aros_target_strip_ln"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10093 $as_echo "$aros_target_strip_ln" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10102 else
10103 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10104 set dummy $aros_target_strip; ac_word=$2
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 case $aros_target_strip_ln in
10111 [\\/]* | ?:[\\/]*)
10112 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10128 IFS=$as_save_IFS
10131 esac
10133 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10134 if test -n "$aros_target_strip_ln"; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
10136 $as_echo "$aros_target_strip_ln" >&6; }
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10145 if test "$aros_target_strip_ln" = ""; then
10146 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10148 if test "$aros_target_cxx" != ""; then
10149 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10150 set dummy $aros_target_cxx; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_aros_target_cxx+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 case $aros_target_cxx in
10157 [\\/]* | ?:[\\/]*)
10158 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10177 esac
10179 aros_target_cxx=$ac_cv_path_aros_target_cxx
10180 if test -n "$aros_target_cxx"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
10182 $as_echo "$aros_target_cxx" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10189 if test "$aros_target_cxx" = ""; then
10190 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
10193 else
10194 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
10195 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
10196 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
10197 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
10198 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
10199 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
10200 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
10201 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10202 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
10204 if test "$target_tool_prefix" != "${target_cpu}-aros-" ; then
10206 if test "$aros_kernel_ld" = ""; then
10207 if test "$cross_compiling" = "yes" ; then
10208 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10209 set dummy ${target_tool_prefix}ld; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 case $aros_kernel_ld in
10216 [\\/]* | ?:[\\/]*)
10217 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10231 done
10232 done
10233 IFS=$as_save_IFS
10236 esac
10238 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10239 if test -n "$aros_kernel_ld"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10241 $as_echo "$aros_kernel_ld" >&6; }
10242 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10248 else
10249 if test "$GCC" = "yes"; then
10250 aros_gcc_ld=`$CC -print-prog-name=ld`
10251 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10252 set dummy `basename $aros_gcc_ld`; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 case $aros_kernel_ld in
10259 [\\/]* | ?:[\\/]*)
10260 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in `dirname $aros_gcc_ld`
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10279 esac
10281 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10282 if test -n "$aros_kernel_ld"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10284 $as_echo "$aros_kernel_ld" >&6; }
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10292 if test "$aros_kernel_ld" = ""; then
10293 # Extract the first word of "ld", so it can be a program name with args.
10294 set dummy ld; ac_word=$2
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296 $as_echo_n "checking for $ac_word... " >&6; }
10297 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 case $aros_kernel_ld in
10301 [\\/]* | ?:[\\/]*)
10302 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10316 done
10317 done
10318 IFS=$as_save_IFS
10321 esac
10323 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10324 if test -n "$aros_kernel_ld"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10326 $as_echo "$aros_kernel_ld" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10335 else
10336 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10337 set dummy $aros_kernel_ld; ac_word=$2
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 $as_echo_n "checking for $ac_word... " >&6; }
10340 if ${ac_cv_path_aros_kernel_ld+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 case $aros_kernel_ld in
10344 [\\/]* | ?:[\\/]*)
10345 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10361 IFS=$as_save_IFS
10364 esac
10366 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10367 if test -n "$aros_kernel_ld"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
10369 $as_echo "$aros_kernel_ld" >&6; }
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10378 if test "$aros_kernel_ld" = ""; then
10379 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10382 if test "$aros_kernel_ar" = ""; then
10383 if test "$cross_compiling" = "yes" ; then
10384 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10385 set dummy ${target_tool_prefix}ar; ac_word=$2
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387 $as_echo_n "checking for $ac_word... " >&6; }
10388 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 case $aros_kernel_ar in
10392 [\\/]* | ?:[\\/]*)
10393 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10407 done
10408 done
10409 IFS=$as_save_IFS
10412 esac
10414 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10415 if test -n "$aros_kernel_ar"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10417 $as_echo "$aros_kernel_ar" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10424 else
10425 if test "$GCC" = "yes"; then
10426 aros_gcc_ar=`$CC -print-prog-name=ar`
10427 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10428 set dummy `basename $aros_gcc_ar`; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 case $aros_kernel_ar in
10435 [\\/]* | ?:[\\/]*)
10436 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in `dirname $aros_gcc_ar`
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10446 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10450 done
10451 done
10452 IFS=$as_save_IFS
10455 esac
10457 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10458 if test -n "$aros_kernel_ar"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10460 $as_echo "$aros_kernel_ar" >&6; }
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10468 if test "$aros_kernel_ar" = ""; then
10469 # Extract the first word of "ar", so it can be a program name with args.
10470 set dummy ar; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 case $aros_kernel_ar in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10492 done
10493 done
10494 IFS=$as_save_IFS
10497 esac
10499 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10500 if test -n "$aros_kernel_ar"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10502 $as_echo "$aros_kernel_ar" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10511 else
10512 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
10513 set dummy $aros_kernel_ar; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_path_aros_kernel_ar+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 case $aros_kernel_ar in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
10543 if test -n "$aros_kernel_ar"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
10545 $as_echo "$aros_kernel_ar" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10554 if test "$aros_kernel_ar" = ""; then
10555 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10558 if test "$aros_kernel_ranlib" = ""; then
10559 if test "$cross_compiling" = "yes" ; then
10560 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10561 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 case $aros_kernel_ranlib in
10568 [\\/]* | ?:[\\/]*)
10569 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10583 done
10584 done
10585 IFS=$as_save_IFS
10588 esac
10590 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10591 if test -n "$aros_kernel_ranlib"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10593 $as_echo "$aros_kernel_ranlib" >&6; }
10594 else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10600 else
10601 if test "$GCC" = "yes"; then
10602 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10603 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10604 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 case $aros_kernel_ranlib in
10611 [\\/]* | ?:[\\/]*)
10612 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in `dirname $aros_gcc_ranlib`
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10626 done
10627 done
10628 IFS=$as_save_IFS
10631 esac
10633 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10634 if test -n "$aros_kernel_ranlib"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10636 $as_echo "$aros_kernel_ranlib" >&6; }
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10644 if test "$aros_kernel_ranlib" = ""; then
10645 # Extract the first word of "ranlib", so it can be a program name with args.
10646 set dummy ranlib; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 case $aros_kernel_ranlib in
10653 [\\/]* | ?:[\\/]*)
10654 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10668 done
10669 done
10670 IFS=$as_save_IFS
10673 esac
10675 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10676 if test -n "$aros_kernel_ranlib"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10678 $as_echo "$aros_kernel_ranlib" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10687 else
10688 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
10689 set dummy $aros_kernel_ranlib; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 case $aros_kernel_ranlib in
10696 [\\/]* | ?:[\\/]*)
10697 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10711 done
10712 done
10713 IFS=$as_save_IFS
10716 esac
10718 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
10719 if test -n "$aros_kernel_ranlib"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
10721 $as_echo "$aros_kernel_ranlib" >&6; }
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10730 if test "$aros_kernel_ranlib" = ""; then
10731 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10733 else
10734 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
10735 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
10736 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
10739 crosstools_target=tools-crosstools
10742 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10744 orig_target_cc=$aros_kernel_cc
10745 orig_target_ld=$aros_kernel_ld
10747 if test "$crosstools" != "yes"; then
10748 if test "$aros_target_cc" != ""; then
10749 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10750 set dummy $aros_target_cc; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_path_aros_target_cc+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 case $aros_target_cc in
10757 [\\/]* | ?:[\\/]*)
10758 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10777 esac
10779 aros_target_cc=$ac_cv_path_aros_target_cc
10780 if test -n "$aros_target_cc"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10782 $as_echo "$aros_target_cc" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10789 if test "$aros_target_cc" = ""; then
10790 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10792 orig_target_cc=$aros_target_cc
10794 if test "$aros_target_ld" != ""; then
10795 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10796 set dummy $aros_target_ld; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_path_aros_target_ld+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 case $aros_target_ld in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10818 done
10819 done
10820 IFS=$as_save_IFS
10823 esac
10825 aros_target_ld=$ac_cv_path_aros_target_ld
10826 if test -n "$aros_target_ld"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10828 $as_echo "$aros_target_ld" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10835 if test "$aros_target_ld" = ""; then
10836 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10838 orig_target_ld=$aros_target_ld
10840 else
10841 orig_target_cc=$aros_target_cc
10842 orig_target_ld=$aros_target_ld
10845 # Build crosstools if we have no C++ - temporary thing
10846 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10847 crosstools_cxx_target=tools-crosstools
10850 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10851 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10852 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10853 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10854 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10855 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10856 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10858 # aros_cc_pre is a variable that is added to the front of the compiler name
10859 # in the generated aros-gcc shell script. We need this to enable the cache
10860 # to work across cleaned builds. Also, support DISTCC using the correct
10861 # environment variable.
10864 if test "x${DISTCC}" != "x" ; then
10865 if test "x${CCACHE}" != "x" ; then
10866 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10867 else
10868 aros_cc_pre="${DISTCC} "
10870 else
10871 if test "x${CCACHE}" != "x" ; then
10872 aros_cc_pre="${CCACHE} "
10876 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10878 aros_target_nostdinc_cflags=-nostdinc
10880 aros_target_nostartup_ldflags=-nostartfiles
10882 aros_target_nix_ldflags=-nix
10884 aros_target_detach_ldflags=-detach
10886 aros_target_nostdlib_ldflags=-nostdlib
10889 # Target tools
10890 if test "$crosstools" != "yes"; then
10891 if test "$GCC" = "yes"; then
10892 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10894 else
10895 # We do not know which gcc version we are going to build and what we need to know
10896 # here is different for different versions so this will be set later during the
10897 # build of crosstools.
10898 aros_target_cc_path=@aros_target_cc_path@
10900 aros_target_cc="${prefix}-gcc"
10901 aros_target_as="${prefix}-as"
10902 aros_target_ld="${prefix}-ld"
10903 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10904 aros_target_objcopy=${prefix}-objcopy
10905 aros_target_objdump=${prefix}-objdump
10906 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10907 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10908 aros_target_strip=${prefix}-strip
10909 aros_plain_nm="${prefix}-nm"
10910 aros_plain_ar="${prefix}-ar"
10912 # Find the system include path. We can suggest that an alternative is
10913 # used if we don't get it correct. The default is to use /usr/include.
10914 # Which is set in the aros_target_incl_def variable.
10916 # Check whether --enable-includes was given.
10917 if test "${enable_includes+set}" = set; then :
10918 enableval=$enable_includes; aros_target_incl=$enable_includes
10919 else
10920 aros_target_incl=$aros_target_incl_def
10924 if test "$aros_kernel_includes" = ""; then
10925 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10926 # FIXME: for cross-compiling this should point to another location
10927 aros_kernel_includes="-isystem $aros_target_incl"
10931 if test "$aros_kernel_includes" != "" ; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10933 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10934 if test "$aros_kernel_cc_includes" = "" ; then
10935 # Try to guess where the directory is.
10936 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10937 if test -d $aros_kernel_cc_includes; then
10938 # Check if there is also an include-fixed directory and add it
10939 # to kernel compiler's include path as it may contain some of
10940 # the headers we need.
10941 if test -d "$aros_kernel_cc_includes"-fixed; then
10942 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10944 # Check for specific includes directory. Neede for Ubuntu 11.10
10945 if test -d "/usr/include/i386-linux-gnu"; then
10946 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10948 else
10949 # The directory doesn't exist, we need to do some more work.
10950 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10952 # These are the headers we're looking for.
10953 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10954 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10955 zutil.h"
10957 if test ! -f $aros_target_incl/stdint.h; then
10958 headers="$headers stdint.h"
10961 dirs=
10962 for h in $headers; do
10963 # Which other headers are needed by each of the above?
10964 deps=$(echo "#include <$h>" | \
10965 $aros_kernel_cc -E -M - 2>/dev/null | \
10966 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10968 # Copy all the needed headers to a directory beneath gendir.
10969 for d in $deps; do
10970 h=$(basename $d)
10971 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10972 sed -n "s,^.*/include\(/.*\),\1,p")
10973 ! test -d $dir && mkdir -p $dir
10974 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10975 done
10976 done
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10980 $as_echo "$aros_kernel_cc_includes" >&6; }
10981 # Adding -nostdinc to kernel includes as they are always used together.
10982 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10985 if test "$crosstools" != "yes"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10987 $as_echo_n "checking for the target compiler's include path... " >&6; }
10988 if test "$aros_target_cc_includes" = "" ; then
10989 #try to guess where the directory is
10990 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10991 if ! test -d $aros_target_cc_includes; then
10992 #the directory doesn't exist, we need to do some more work
10993 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10995 #these are the headers we're looking for
10996 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10997 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10998 zutil.h"
11000 dirs=
11001 for h in $headers; do
11002 #which other headers each of the above headers needs?
11003 deps=$(echo "#include <$h>" | \
11004 $orig_target_cc -E -M - 2>/dev/null | \
11005 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11007 #copy all the needed headers to a directory beneath gendir
11008 for d in $deps; do
11009 h=$(basename $d)
11010 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11011 sed -n "s,^.*/include\(/.*\),\1,p")
11012 ! test -d $dir && mkdir -p $dir
11013 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11014 done
11015 done
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
11019 $as_echo "$aros_target_cc_includes" >&6; }
11020 else
11021 # We do not know which gcc version we are going to build and what we need to know
11022 # here is different for different versions so this will be set later during the
11023 # build of crosstools.
11024 aros_target_cc_includes=@aros_target_cc_includes@
11028 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11029 # On GCC >= 4.0 -iquote should be used
11032 save_cc="$CC"
11033 save_cflags="$CFLAGS"
11034 CFLAGS="-iquote."
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11036 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11037 if test "x-$crosstools" != "x-yes"; then
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11042 main ()
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_compile "$LINENO"; then :
11050 has_iquote="yes"
11051 else
11052 has_iquote="no"
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 else
11056 # we do know it is supported for the smallest version of gcc we are going to build
11057 # we assume it's also supported by later versions
11058 has_iquote=yes
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11061 $as_echo "$has_iquote" >&6; }
11062 if test "x-$has_iquote" = "x-yes" ; then
11063 host_cflags_iquote=-iquote
11064 host_cflags_iquote_end=
11065 else
11066 host_cflags_iquote=-I
11067 host_cflags_iquote_end=-I-
11069 kernel_cflags_iquote=$host_cflags_iquote
11070 kernel_cflags_iquote_end=$host_cflags_iquote_end
11071 if test "x-$cross_compiling" = "x-yes"; then
11072 CC="$aros_kernel_cc"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11074 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11075 if test "x-$crosstools" != "x-yes"; then
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11080 main ()
11084 return 0;
11086 _ACEOF
11087 if ac_fn_c_try_compile "$LINENO"; then :
11088 use_no_stack_protector="yes"
11089 else
11090 use_no_stack_protector="no"
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 else
11094 # we do know it is supported for the smallest version of gcc we are going to build
11095 # we assume it's also supported by later versions
11096 use_no_stack_protector=yes
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11099 $as_echo "$use_no_stack_protector" >&6; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11101 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11102 if test "x-$crosstools" != "x-yes"; then
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11107 main ()
11111 return 0;
11113 _ACEOF
11114 if ac_fn_c_try_compile "$LINENO"; then :
11115 has_iquote="yes"
11116 else
11117 has_iquote="no"
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 else
11121 # we do know it is supported for the smallest version of gcc we are going to build
11122 # we assume it's also supported by later versions
11123 has_iquote=yes
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11126 $as_echo "$has_iquote" >&6; }
11127 if test "x-$has_iquote" = "x-yes" ; then
11128 kernel_cflags_iquote=-iquote
11129 kernel_cflags_iquote_end=
11130 else
11131 kernel_cflags_iquote=-I
11132 kernel_cflags_iquote_end=-I-
11135 aros_cflags_iquote=$kernel_cflags_iquote
11136 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11137 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11138 CC="$orig_target_cc"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11140 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11141 if test "x-$crosstools" != "x-yes"; then
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11146 main ()
11150 return 0;
11152 _ACEOF
11153 if ac_fn_c_try_compile "$LINENO"; then :
11154 has_iquote="yes"
11155 else
11156 has_iquote="no"
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 else
11160 # we do know it is supported for the smallest version of gcc we are going to build
11161 # we assume it's also supported by later versions
11162 has_iquote=yes
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11165 $as_echo "$has_iquote" >&6; }
11166 if test "x-$has_iquote" = "x-yes" ; then
11167 aros_cflags_iquote=-iquote
11168 aros_cflags_iquote_end=
11169 else
11170 aros_cflags_iquote=-I
11171 aros_cflags_iquote_end=-I-
11174 if test "x-$use_no_stack_protector" = "x-yes" ; then
11175 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11178 #-----------------------------------------------------------------------------
11180 # Check if we can explicitly choose older version of symbol hashing
11182 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11183 CC="$aros_kernel_cc"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11185 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11190 main ()
11194 return 0;
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 use_hash_style="yes"
11199 else
11200 use_hash_style="no"
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11205 $as_echo "$use_hash_style" >&6; }
11206 if test "x-$use_hash_style" = "x-yes" ; then
11207 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11209 CC="$save_cc"
11210 CFLAGS="$save_cflags"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11221 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11223 # Check whether --with-resolution was given.
11224 if test "${with_resolution+set}" = set; then :
11225 withval=$with_resolution; resolution=$withval
11226 else
11227 resolution=none
11230 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11231 if test "$resolution" = "yes" ; then
11232 resolution="none"
11234 if test "$resolution" = "no" ; then
11235 resolution="none"
11237 if test "$resolution" != "none" ; then
11238 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11239 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11240 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11243 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11244 aros_cv_default_wbwidth=$aros_default_wbwidth
11245 aros_cv_default_wbheight=$aros_default_wbheight
11246 aros_cv_default_wbdepth=$aros_default_wbdepth
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11249 $as_echo_n "checking if serial debug is enabled... " >&6; }
11251 # Check whether --with-serial-debug was given.
11252 if test "${with_serial_debug+set}" = set; then :
11253 withval=$with_serial_debug; serial_debug=$withval
11254 else
11255 serial_debug=none
11258 if test "$aros_serial_debug" = 0 ; then
11259 serial_debug_forced=""
11260 if test "$serial_debug" = "yes" ; then
11261 serial_debug="1"
11263 if test "$serial_debug" = "no" ; then
11264 serial_debug="none"
11266 else
11267 serial_debug_forced="(forced)"
11268 serial_debug=$aros_serial_debug
11270 if test "$serial_debug" != "none" ; then
11271 aros_serial_debug=$serial_debug
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11273 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11274 else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11280 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11281 # Check whether --enable-palm_debug_hack was given.
11282 if test "${enable_palm_debug_hack+set}" = set; then :
11283 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11284 else
11285 palm_debug_hack="no"
11288 if test "$palm_debug_hack" = "yes" ; then
11289 aros_palm_debug_hack="1"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11292 $as_echo "$palm_debug_hack" >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11295 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11296 # Check whether --enable-usb30_code was given.
11297 if test "${enable_usb30_code+set}" = set; then :
11298 enableval=$enable_usb30_code; usb30_code="yes"
11299 else
11300 usb30_code="no"
11303 if test "$usb30_code" = "yes" ; then
11304 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11305 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11308 $as_echo "$usb30_code" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11311 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11312 # Check whether --enable-nesting_supervisor was given.
11313 if test "${enable_nesting_supervisor+set}" = set; then :
11314 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11315 else
11316 nesting_supervisor="no"
11319 if test "$nesting_supervisor" = "yes" ; then
11320 aros_nesting_supervisor="1"
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11323 $as_echo "$nesting_supervisor" >&6; }
11325 if test "$aros_enable_mmu" = "" ; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11327 $as_echo_n "checking if MMU support is enabled... " >&6; }
11328 # Check whether --enable-mmu was given.
11329 if test "${enable_mmu+set}" = set; then :
11330 enableval=$enable_mmu; aros_enable_mmu=$enableval
11331 else
11332 aros_enable_mmu="yes"
11335 if test "$aros_enable_mmu" = "" ; then
11336 aros_enable_mmu="yes"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11339 $as_echo "$aros_enable_mmu" >&6; }
11341 if test "$aros_enable_mmu" = "no" ; then
11342 aros_enable_mmu="0"
11343 else
11344 aros_enable_mmu="1"
11348 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11350 if test "x-$need_dlopen" != "x-no" ; then
11351 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11352 if test "x$ac_cv_func_dlopen" = xyes; then :
11353 have_dl="yes"
11354 else
11355 have_dl="no"
11358 if test "x-$have_dl" = "x-no" ; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11361 if ${ac_cv_lib_dl_dlopen+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldl $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char dlopen ();
11377 main ()
11379 return dlopen ();
11381 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_dl_dlopen=yes
11386 else
11387 ac_cv_lib_dl_dlopen=no
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11395 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11396 have_dl="yes"
11397 aros_host_ldflags="$aros_host_ldflags -ldl"
11398 else
11399 have_dl="no"
11403 if test "x-$have_dl" = "x-no" ; then
11404 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11409 # Check whether --enable-x11_hidd was given.
11410 if test "${enable_x11_hidd+set}" = set; then :
11411 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11412 else
11413 x11_hidd="$need_x11"
11416 case "x-$x11_hidd" in
11417 x-yes|x-no|x-auto) ;;
11418 *) x11_hidd="$need_x11" ;;
11419 esac
11421 ENABLE_X11=0
11423 if test "x-$x11_hidd" != "x-no" ; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11426 $as_echo_n "checking for X... " >&6; }
11429 # Check whether --with-x was given.
11430 if test "${with_x+set}" = set; then :
11431 withval=$with_x;
11434 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11435 if test "x$with_x" = xno; then
11436 # The user explicitly disabled X.
11437 have_x=disabled
11438 else
11439 case $x_includes,$x_libraries in #(
11440 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11441 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 # One or both of the vars are not set, and there is no cached value.
11445 ac_x_includes=no ac_x_libraries=no
11446 rm -f -r conftest.dir
11447 if mkdir conftest.dir; then
11448 cd conftest.dir
11449 cat >Imakefile <<'_ACEOF'
11450 incroot:
11451 @echo incroot='${INCROOT}'
11452 usrlibdir:
11453 @echo usrlibdir='${USRLIBDIR}'
11454 libdir:
11455 @echo libdir='${LIBDIR}'
11456 _ACEOF
11457 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11459 for ac_var in incroot usrlibdir libdir; do
11460 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11461 done
11462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11463 for ac_extension in a so sl dylib la dll; do
11464 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11465 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11466 ac_im_usrlibdir=$ac_im_libdir; break
11468 done
11469 # Screen out bogus values from the imake configuration. They are
11470 # bogus both because they are the default anyway, and because
11471 # using them would break gcc on systems where it needs fixed includes.
11472 case $ac_im_incroot in
11473 /usr/include) ac_x_includes= ;;
11474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11475 esac
11476 case $ac_im_usrlibdir in
11477 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11479 esac
11481 cd ..
11482 rm -f -r conftest.dir
11485 # Standard set of common directories for X headers.
11486 # Check X11 before X11Rn because it is often a symlink to the current release.
11487 ac_x_header_dirs='
11488 /usr/X11/include
11489 /usr/X11R7/include
11490 /usr/X11R6/include
11491 /usr/X11R5/include
11492 /usr/X11R4/include
11494 /usr/include/X11
11495 /usr/include/X11R7
11496 /usr/include/X11R6
11497 /usr/include/X11R5
11498 /usr/include/X11R4
11500 /usr/local/X11/include
11501 /usr/local/X11R7/include
11502 /usr/local/X11R6/include
11503 /usr/local/X11R5/include
11504 /usr/local/X11R4/include
11506 /usr/local/include/X11
11507 /usr/local/include/X11R7
11508 /usr/local/include/X11R6
11509 /usr/local/include/X11R5
11510 /usr/local/include/X11R4
11512 /usr/X386/include
11513 /usr/x386/include
11514 /usr/XFree86/include/X11
11516 /usr/include
11517 /usr/local/include
11518 /usr/unsupported/include
11519 /usr/athena/include
11520 /usr/local/x11r5/include
11521 /usr/lpp/Xamples/include
11523 /usr/openwin/include
11524 /usr/openwin/share/include'
11526 if test "$ac_x_includes" = no; then
11527 # Guess where to find include files, by looking for Xlib.h.
11528 # First, try using that file with no special directory specified.
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 #include <X11/Xlib.h>
11532 _ACEOF
11533 if ac_fn_c_try_cpp "$LINENO"; then :
11534 # We can compile using X headers with no special include directory.
11535 ac_x_includes=
11536 else
11537 for ac_dir in $ac_x_header_dirs; do
11538 if test -r "$ac_dir/X11/Xlib.h"; then
11539 ac_x_includes=$ac_dir
11540 break
11542 done
11544 rm -f conftest.err conftest.i conftest.$ac_ext
11545 fi # $ac_x_includes = no
11547 if test "$ac_x_libraries" = no; then
11548 # Check for the libraries.
11549 # See if we find them without any special options.
11550 # Don't add to $LIBS permanently.
11551 ac_save_LIBS=$LIBS
11552 LIBS="-lX11 $LIBS"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <X11/Xlib.h>
11557 main ()
11559 XrmInitialize ()
11561 return 0;
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 LIBS=$ac_save_LIBS
11566 # We can link X programs with no special library path.
11567 ac_x_libraries=
11568 else
11569 LIBS=$ac_save_LIBS
11570 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11572 # Don't even attempt the hair of trying to link an X program!
11573 for ac_extension in a so sl dylib la dll; do
11574 if test -r "$ac_dir/libX11.$ac_extension"; then
11575 ac_x_libraries=$ac_dir
11576 break 2
11578 done
11579 done
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 fi # $ac_x_libraries = no
11585 case $ac_x_includes,$ac_x_libraries in #(
11586 no,* | *,no | *\'*)
11587 # Didn't find X, or a directory has "'" in its name.
11588 ac_cv_have_x="have_x=no";; #(
11590 # Record where we found X for the cache.
11591 ac_cv_have_x="have_x=yes\
11592 ac_x_includes='$ac_x_includes'\
11593 ac_x_libraries='$ac_x_libraries'"
11594 esac
11596 ;; #(
11597 *) have_x=yes;;
11598 esac
11599 eval "$ac_cv_have_x"
11600 fi # $with_x != no
11602 if test "$have_x" != yes; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11604 $as_echo "$have_x" >&6; }
11605 no_x=yes
11606 else
11607 # If each of the values was on the command line, it overrides each guess.
11608 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11609 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11610 # Update the cache value to reflect the command line values.
11611 ac_cv_have_x="have_x=yes\
11612 ac_x_includes='$x_includes'\
11613 ac_x_libraries='$x_libraries'"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11615 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11619 x_cflags=
11620 for path in $x_libraries
11622 x_cflags="$x_cflags -L$path"
11623 done
11625 for path in $x_includes
11627 x_cflags="$x_cflags -I$path"
11628 done
11630 if test "x-$no_x" = "x-yes" ; then
11632 if test "x-$x11_hidd" != "x-auto" ; then
11633 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11636 else
11637 x11_hidd_target=kernel-x11gfx-kobj
11638 ENABLE_X11=1
11640 # Check whether --enable-x11_shm was given.
11641 if test "${enable_x11_shm+set}" = set; then :
11642 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11643 else
11644 x11_hidd_shm="auto"
11647 case "x-$x11_hidd_shm" in
11648 x-yes|x-no|x-auto) ;;
11649 *) x11_hidd_shm="auto" ;;
11650 esac
11652 have_xshm=no
11654 if test "x-$x11_hidd_shm" != "x-no" ; then
11656 for ac_header in sys/ipc.h
11657 do :
11658 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11659 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_SYS_IPC_H 1
11662 _ACEOF
11666 done
11668 for ac_header in sys/shm.h
11669 do :
11670 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11671 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11672 cat >>confdefs.h <<_ACEOF
11673 #define HAVE_SYS_SHM_H 1
11674 _ACEOF
11678 done
11681 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11683 save_cflags="$CFLAGS"
11684 CFLAGS="$CFLAGS $x_cflags"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11686 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11687 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-lXext $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char XShmQueryExtension ();
11703 main ()
11705 return XShmQueryExtension ();
11707 return 0;
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_Xext_XShmQueryExtension=yes
11712 else
11713 ac_cv_lib_Xext_XShmQueryExtension=no
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11720 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11721 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11722 have_xshm=yes
11725 CFLAGS="$save_cflags"
11729 if test "x-$have_xshm" = "x-yes" ; then
11730 DO_XSHM_SUPPORT="1"
11731 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11732 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11733 else
11734 DO_XSHM_SUPPORT="0"
11738 # Check whether --enable-x11_vidmode was given.
11739 if test "${enable_x11_vidmode+set}" = set; then :
11740 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11741 else
11742 x11_hidd_vidmode="auto"
11745 case "x-$x11_hidd_vidmode" in
11746 x-yes|x-no|x-auto) ;;
11747 *) x11_hidd_vidmode="auto" ;;
11748 esac
11750 have_vidmode=no
11752 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11754 save_cflags="$CFLAGS"
11755 CFLAGS="$CFLAGS $x_cflags"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11757 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11758 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 ac_check_lib_save_LIBS=$LIBS
11762 LIBS="-lXxf86vm $LIBS"
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char XF86VidModeQueryExtension ();
11774 main ()
11776 return XF86VidModeQueryExtension ();
11778 return 0;
11780 _ACEOF
11781 if ac_fn_c_try_link "$LINENO"; then :
11782 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11783 else
11784 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11791 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11792 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11793 have_vidmode=yes
11796 CFLAGS="$save_cflags"
11799 if test "x-$have_vidmode" = "x-yes" ; then
11800 DO_VIDMODE_SUPPORT="1"
11801 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11802 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11803 else
11804 DO_VIDMODE_SUPPORT="0"
11808 aros_host_x11_includes=$x_includes
11809 aros_host_x11_libdirs=$x_libraries
11813 # Check whether --enable-sdl_hidd was given.
11814 if test "${enable_sdl_hidd+set}" = set; then :
11815 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11816 else
11817 sdl_hidd="auto"
11820 case "x-$sdl_hidd" in
11821 x-yes|x-no|x-auto) ;;
11822 *) sdl_hidd="auto" ;;
11823 esac
11825 if test "x-$sdl_hidd" != "x-no" ; then
11828 # Check whether --with-sdl-prefix was given.
11829 if test "${with_sdl_prefix+set}" = set; then :
11830 withval=$with_sdl_prefix; sdl_prefix="$withval"
11831 else
11832 sdl_prefix=""
11836 # Check whether --with-sdl-exec-prefix was given.
11837 if test "${with_sdl_exec_prefix+set}" = set; then :
11838 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11839 else
11840 sdl_exec_prefix=""
11843 # Check whether --enable-sdltest was given.
11844 if test "${enable_sdltest+set}" = set; then :
11845 enableval=$enable_sdltest;
11846 else
11847 enable_sdltest=yes
11851 if test x$sdl_exec_prefix != x ; then
11852 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11853 if test x${SDL_CONFIG+set} != xset ; then
11854 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11857 if test x$sdl_prefix != x ; then
11858 sdl_args="$sdl_args --prefix=$sdl_prefix"
11859 if test x${SDL_CONFIG+set} != xset ; then
11860 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11864 if test "x$prefix" != xNONE; then
11865 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11867 # Extract the first word of "sdl-config", so it can be a program name with args.
11868 set dummy sdl-config; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 case $SDL_CONFIG in
11875 [\\/]* | ?:[\\/]*)
11876 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11890 done
11891 done
11892 IFS=$as_save_IFS
11894 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11896 esac
11898 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11899 if test -n "$SDL_CONFIG"; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11901 $as_echo "$SDL_CONFIG" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11908 min_sdl_version=1.2.10
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11910 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11911 no_sdl=""
11912 if test "$SDL_CONFIG" = "no" ; then
11913 no_sdl=yes
11914 else
11915 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11916 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11918 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11920 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11922 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11924 if test "x$enable_sdltest" = "xyes" ; then
11925 ac_save_CFLAGS="$CFLAGS"
11926 ac_save_CXXFLAGS="$CXXFLAGS"
11927 ac_save_LIBS="$LIBS"
11928 CFLAGS="$CFLAGS $SDL_CFLAGS"
11929 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11930 LIBS="$LIBS $SDL_LIBS"
11931 rm -f conf.sdltest
11932 if test "$cross_compiling" = yes; then :
11933 echo $ac_n "cross compiling; assumed OK... $ac_c"
11934 else
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11938 #include <stdio.h>
11939 #include <stdlib.h>
11940 #include <string.h>
11941 #include "SDL.h"
11943 char*
11944 my_strdup (char *str)
11946 char *new_str;
11948 if (str)
11950 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11951 strcpy (new_str, str);
11953 else
11954 new_str = NULL;
11956 return new_str;
11959 int main (int argc, char *argv[])
11961 int major, minor, micro;
11962 char *tmp_version;
11964 /* This hangs on some systems (?)
11965 system ("touch conf.sdltest");
11967 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11969 /* HP/UX 9 (%@#!) writes to sscanf strings */
11970 tmp_version = my_strdup("$min_sdl_version");
11971 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11972 printf("%s, bad version string\n", "$min_sdl_version");
11973 exit(1);
11976 if (($sdl_major_version > major) ||
11977 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11978 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11980 return 0;
11982 else
11984 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11985 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11986 printf("*** best to upgrade to the required version.\n");
11987 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11988 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11989 printf("*** config.cache before re-running configure\n");
11990 return 1;
11995 _ACEOF
11996 if ac_fn_c_try_run "$LINENO"; then :
11998 else
11999 no_sdl=yes
12001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12002 conftest.$ac_objext conftest.beam conftest.$ac_ext
12005 CFLAGS="$ac_save_CFLAGS"
12006 CXXFLAGS="$ac_save_CXXFLAGS"
12007 LIBS="$ac_save_LIBS"
12010 if test "x$no_sdl" = x ; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12012 $as_echo "yes" >&6; }
12013 have_sdl="yes"
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 if test "$SDL_CONFIG" = "no" ; then
12018 echo "*** The sdl-config script installed by SDL could not be found"
12019 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12020 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12021 echo "*** full path to sdl-config."
12022 else
12023 if test -f conf.sdltest ; then
12025 else
12026 echo "*** Could not run SDL test program, checking why..."
12027 CFLAGS="$CFLAGS $SDL_CFLAGS"
12028 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12029 LIBS="$LIBS $SDL_LIBS"
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12033 #include <stdio.h>
12034 #include "SDL.h"
12036 int main(int argc, char *argv[])
12037 { return 0; }
12038 #undef main
12039 #define main K_and_R_C_main
12042 main ()
12044 return 0;
12046 return 0;
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 echo "*** The test program compiled, but did not run. This usually means"
12051 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12052 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12053 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12054 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12055 echo "*** is required on your system"
12056 echo "***"
12057 echo "*** If you have an old version installed, it is best to remove it, although"
12058 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12059 else
12060 echo "*** The test program failed to compile or link. See the file config.log for the"
12061 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12062 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12063 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 CFLAGS="$ac_save_CFLAGS"
12068 CXXFLAGS="$ac_save_CXXFLAGS"
12069 LIBS="$ac_save_LIBS"
12072 SDL_CFLAGS=""
12073 SDL_LIBS=""
12074 have_sdl="no"
12078 rm -f conf.sdltest
12081 if test "x-$have_sdl" != "x-yes" ; then
12083 if test "x-$sdl_hidd" != "x-auto" ; then
12084 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12087 else
12088 sdl_hidd_target=kernel-hidd-sdl
12089 aros_host_sdl_cflags=SDL_CFLAGS
12090 aros_host_sdl_libs=SDL_LIBS
12094 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12100 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12101 oss_library_target=workbench-libs-oss-unix
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12107 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12108 # Check whether --enable-dbus was given.
12109 if test "${enable_dbus+set}" = set; then :
12110 enableval=$enable_dbus; dbus="yes"
12111 else
12112 dbus="no"
12115 if test "$dbus" = "yes" ; then
12116 ENABLE_DBUS=1
12117 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12118 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12119 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12120 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12121 else
12122 ENABLE_DBUS=0
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12125 $as_echo "$dbus" >&6; }
12127 if test "$use_kernel_cc_wrapper" = "yes" ; then
12128 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12132 # Generic
12143 # Compatability with other Amiga-like operation systems
12146 # Host related
12171 # Target Related
12229 # Graphics Related
12246 # Native version related
12249 # Palm native version related
12252 # USB3.0 code
12255 # Unix/Hosted version related
12258 # MMU related
12261 # Apple iOS related
12266 # Android related
12270 # DBUS related
12277 #X11 related
12280 # Debug related
12286 # Collect-aros stuff: "-ius" to ignore undefined symbols
12289 # C compiler related
12292 case "$aros_flavour" in
12293 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12294 aros_flavour="emulation" ;;
12295 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12296 aros_flavour="emulation" ;;
12297 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12298 aros_flavour="standalone";;
12299 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12300 aros_flavour="standalone";;
12301 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12302 aros_flavour="native" ;;
12303 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12304 aros_flavour="native" ;;
12305 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12306 aros_flavour="linklib" ;;
12307 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12308 aros_flavour="palmnative" ;;
12309 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12310 aros_flavour="mac68knative" ;;
12311 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12312 aros_flavour="ppcnative" ;;
12313 esac
12315 if test ! -d ${aros_inc_dir} ; then
12316 ${MKDIR} ${aros_inc_dir}
12318 if test ! -d ${aros_geninc_dir} ; then
12319 ${MKDIR} ${aros_geninc_dir}
12321 if test ! -d ${aros_hostcfg_dir} ; then
12322 ${MKDIR} ${aros_hostcfg_dir}
12324 if test ! -d ${aros_targetcfg_dir} ; then
12325 ${MKDIR} ${aros_targetcfg_dir}
12327 if test ! -d ${aros_tools_dir} ; then
12328 ${MKDIR} ${aros_tools_dir}
12330 if test ! -d ${aros_scripts_dir} ; then
12331 ${MKDIR} ${aros_scripts_dir}
12334 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12337 ac_config_commands="$ac_config_commands compiler_executable"
12339 ac_config_commands="$ac_config_commands genmf_executable"
12342 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
12345 cat >confcache <<\_ACEOF
12346 # This file is a shell script that caches the results of configure
12347 # tests run on this system so they can be shared between configure
12348 # scripts and configure runs, see configure's option --config-cache.
12349 # It is not useful on other systems. If it contains results you don't
12350 # want to keep, you may remove or edit it.
12352 # config.status only pays attention to the cache file if you give it
12353 # the --recheck option to rerun configure.
12355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12357 # following values.
12359 _ACEOF
12361 # The following way of writing the cache mishandles newlines in values,
12362 # but we know of no workaround that is simple, portable, and efficient.
12363 # So, we kill variables containing newlines.
12364 # Ultrix sh set writes to stderr and can't be redirected directly,
12365 # and sets the high bit in the cache file unless we assign to the vars.
12367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12368 eval ac_val=\$$ac_var
12369 case $ac_val in #(
12370 *${as_nl}*)
12371 case $ac_var in #(
12372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12374 esac
12375 case $ac_var in #(
12376 _ | IFS | as_nl) ;; #(
12377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12378 *) { eval $ac_var=; unset $ac_var;} ;;
12379 esac ;;
12380 esac
12381 done
12383 (set) 2>&1 |
12384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12385 *${as_nl}ac_space=\ *)
12386 # `set' does not quote correctly, so add quotes: double-quote
12387 # substitution turns \\\\ into \\, and sed turns \\ into \.
12388 sed -n \
12389 "s/'/'\\\\''/g;
12390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12391 ;; #(
12393 # `set' quotes correctly as required by POSIX, so do not add quotes.
12394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12396 esac |
12397 sort
12399 sed '
12400 /^ac_cv_env_/b end
12401 t clear
12402 :clear
12403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12404 t end
12405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12406 :end' >>confcache
12407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12408 if test -w "$cache_file"; then
12409 if test "x$cache_file" != "x/dev/null"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12411 $as_echo "$as_me: updating cache $cache_file" >&6;}
12412 if test ! -f "$cache_file" || test -h "$cache_file"; then
12413 cat confcache >"$cache_file"
12414 else
12415 case $cache_file in #(
12416 */* | ?:*)
12417 mv -f confcache "$cache_file"$$ &&
12418 mv -f "$cache_file"$$ "$cache_file" ;; #(
12420 mv -f confcache "$cache_file" ;;
12421 esac
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12426 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12429 rm -f confcache
12431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12432 # Let make expand exec_prefix.
12433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12435 DEFS=-DHAVE_CONFIG_H
12437 ac_libobjs=
12438 ac_ltlibobjs=
12440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12441 # 1. Remove the extension, and $U if already installed.
12442 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12443 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12444 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12445 # will be set to the directory where LIBOBJS objects are built.
12446 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12447 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12448 done
12449 LIBOBJS=$ac_libobjs
12451 LTLIBOBJS=$ac_ltlibobjs
12455 : "${CONFIG_STATUS=./config.status}"
12456 ac_write_fail=0
12457 ac_clean_files_save=$ac_clean_files
12458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12460 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12461 as_write_fail=0
12462 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12463 #! $SHELL
12464 # Generated by $as_me.
12465 # Run this file to recreate the current configuration.
12466 # Compiler output produced by configure, useful for debugging
12467 # configure, is in config.log if it exists.
12469 debug=false
12470 ac_cs_recheck=false
12471 ac_cs_silent=false
12473 SHELL=\${CONFIG_SHELL-$SHELL}
12474 export SHELL
12475 _ASEOF
12476 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12477 ## -------------------- ##
12478 ## M4sh Initialization. ##
12479 ## -------------------- ##
12481 # Be more Bourne compatible
12482 DUALCASE=1; export DUALCASE # for MKS sh
12483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12484 emulate sh
12485 NULLCMD=:
12486 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12487 # is contrary to our usage. Disable this feature.
12488 alias -g '${1+"$@"}'='"$@"'
12489 setopt NO_GLOB_SUBST
12490 else
12491 case `(set -o) 2>/dev/null` in #(
12492 *posix*) :
12493 set -o posix ;; #(
12494 *) :
12496 esac
12500 as_nl='
12502 export as_nl
12503 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12504 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12505 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12506 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12507 # Prefer a ksh shell builtin over an external printf program on Solaris,
12508 # but without wasting forks for bash or zsh.
12509 if test -z "$BASH_VERSION$ZSH_VERSION" \
12510 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12511 as_echo='print -r --'
12512 as_echo_n='print -rn --'
12513 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12514 as_echo='printf %s\n'
12515 as_echo_n='printf %s'
12516 else
12517 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12518 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12519 as_echo_n='/usr/ucb/echo -n'
12520 else
12521 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12522 as_echo_n_body='eval
12523 arg=$1;
12524 case $arg in #(
12525 *"$as_nl"*)
12526 expr "X$arg" : "X\\(.*\\)$as_nl";
12527 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12528 esac;
12529 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12531 export as_echo_n_body
12532 as_echo_n='sh -c $as_echo_n_body as_echo'
12534 export as_echo_body
12535 as_echo='sh -c $as_echo_body as_echo'
12538 # The user is always right.
12539 if test "${PATH_SEPARATOR+set}" != set; then
12540 PATH_SEPARATOR=:
12541 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12542 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12543 PATH_SEPARATOR=';'
12548 # IFS
12549 # We need space, tab and new line, in precisely that order. Quoting is
12550 # there to prevent editors from complaining about space-tab.
12551 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12552 # splitting by setting IFS to empty value.)
12553 IFS=" "" $as_nl"
12555 # Find who we are. Look in the path if we contain no directory separator.
12556 as_myself=
12557 case $0 in #((
12558 *[\\/]* ) as_myself=$0 ;;
12559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12565 done
12566 IFS=$as_save_IFS
12569 esac
12570 # We did not find ourselves, most probably we were run as `sh COMMAND'
12571 # in which case we are not to be found in the path.
12572 if test "x$as_myself" = x; then
12573 as_myself=$0
12575 if test ! -f "$as_myself"; then
12576 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12577 exit 1
12580 # Unset variables that we do not need and which cause bugs (e.g. in
12581 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12582 # suppresses any "Segmentation fault" message there. '((' could
12583 # trigger a bug in pdksh 5.2.14.
12584 for as_var in BASH_ENV ENV MAIL MAILPATH
12585 do eval test x\${$as_var+set} = xset \
12586 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12587 done
12588 PS1='$ '
12589 PS2='> '
12590 PS4='+ '
12592 # NLS nuisances.
12593 LC_ALL=C
12594 export LC_ALL
12595 LANGUAGE=C
12596 export LANGUAGE
12598 # CDPATH.
12599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12602 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12603 # ----------------------------------------
12604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12606 # script with STATUS, using 1 if that was 0.
12607 as_fn_error ()
12609 as_status=$1; test $as_status -eq 0 && as_status=1
12610 if test "$4"; then
12611 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12612 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12614 $as_echo "$as_me: error: $2" >&2
12615 as_fn_exit $as_status
12616 } # as_fn_error
12619 # as_fn_set_status STATUS
12620 # -----------------------
12621 # Set $? to STATUS, without forking.
12622 as_fn_set_status ()
12624 return $1
12625 } # as_fn_set_status
12627 # as_fn_exit STATUS
12628 # -----------------
12629 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12630 as_fn_exit ()
12632 set +e
12633 as_fn_set_status $1
12634 exit $1
12635 } # as_fn_exit
12637 # as_fn_unset VAR
12638 # ---------------
12639 # Portably unset VAR.
12640 as_fn_unset ()
12642 { eval $1=; unset $1;}
12644 as_unset=as_fn_unset
12645 # as_fn_append VAR VALUE
12646 # ----------------------
12647 # Append the text in VALUE to the end of the definition contained in VAR. Take
12648 # advantage of any shell optimizations that allow amortized linear growth over
12649 # repeated appends, instead of the typical quadratic growth present in naive
12650 # implementations.
12651 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12652 eval 'as_fn_append ()
12654 eval $1+=\$2
12656 else
12657 as_fn_append ()
12659 eval $1=\$$1\$2
12661 fi # as_fn_append
12663 # as_fn_arith ARG...
12664 # ------------------
12665 # Perform arithmetic evaluation on the ARGs, and store the result in the
12666 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12667 # must be portable across $(()) and expr.
12668 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12669 eval 'as_fn_arith ()
12671 as_val=$(( $* ))
12673 else
12674 as_fn_arith ()
12676 as_val=`expr "$@" || test $? -eq 1`
12678 fi # as_fn_arith
12681 if expr a : '\(a\)' >/dev/null 2>&1 &&
12682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12683 as_expr=expr
12684 else
12685 as_expr=false
12688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12689 as_basename=basename
12690 else
12691 as_basename=false
12694 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12695 as_dirname=dirname
12696 else
12697 as_dirname=false
12700 as_me=`$as_basename -- "$0" ||
12701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12702 X"$0" : 'X\(//\)$' \| \
12703 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12704 $as_echo X/"$0" |
12705 sed '/^.*\/\([^/][^/]*\)\/*$/{
12706 s//\1/
12709 /^X\/\(\/\/\)$/{
12710 s//\1/
12713 /^X\/\(\/\).*/{
12714 s//\1/
12717 s/.*/./; q'`
12719 # Avoid depending upon Character Ranges.
12720 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12721 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12722 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12723 as_cr_digits='0123456789'
12724 as_cr_alnum=$as_cr_Letters$as_cr_digits
12726 ECHO_C= ECHO_N= ECHO_T=
12727 case `echo -n x` in #(((((
12728 -n*)
12729 case `echo 'xy\c'` in
12730 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12731 xy) ECHO_C='\c';;
12732 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12733 ECHO_T=' ';;
12734 esac;;
12736 ECHO_N='-n';;
12737 esac
12739 rm -f conf$$ conf$$.exe conf$$.file
12740 if test -d conf$$.dir; then
12741 rm -f conf$$.dir/conf$$.file
12742 else
12743 rm -f conf$$.dir
12744 mkdir conf$$.dir 2>/dev/null
12746 if (echo >conf$$.file) 2>/dev/null; then
12747 if ln -s conf$$.file conf$$ 2>/dev/null; then
12748 as_ln_s='ln -s'
12749 # ... but there are two gotchas:
12750 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12751 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12752 # In both cases, we have to default to `cp -p'.
12753 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12754 as_ln_s='cp -p'
12755 elif ln conf$$.file conf$$ 2>/dev/null; then
12756 as_ln_s=ln
12757 else
12758 as_ln_s='cp -p'
12760 else
12761 as_ln_s='cp -p'
12763 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12764 rmdir conf$$.dir 2>/dev/null
12767 # as_fn_mkdir_p
12768 # -------------
12769 # Create "$as_dir" as a directory, including parents if necessary.
12770 as_fn_mkdir_p ()
12773 case $as_dir in #(
12774 -*) as_dir=./$as_dir;;
12775 esac
12776 test -d "$as_dir" || eval $as_mkdir_p || {
12777 as_dirs=
12778 while :; do
12779 case $as_dir in #(
12780 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12781 *) as_qdir=$as_dir;;
12782 esac
12783 as_dirs="'$as_qdir' $as_dirs"
12784 as_dir=`$as_dirname -- "$as_dir" ||
12785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12786 X"$as_dir" : 'X\(//\)[^/]' \| \
12787 X"$as_dir" : 'X\(//\)$' \| \
12788 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12789 $as_echo X"$as_dir" |
12790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12791 s//\1/
12794 /^X\(\/\/\)[^/].*/{
12795 s//\1/
12798 /^X\(\/\/\)$/{
12799 s//\1/
12802 /^X\(\/\).*/{
12803 s//\1/
12806 s/.*/./; q'`
12807 test -d "$as_dir" && break
12808 done
12809 test -z "$as_dirs" || eval "mkdir $as_dirs"
12810 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12813 } # as_fn_mkdir_p
12814 if mkdir -p . 2>/dev/null; then
12815 as_mkdir_p='mkdir -p "$as_dir"'
12816 else
12817 test -d ./-p && rmdir ./-p
12818 as_mkdir_p=false
12821 if test -x / >/dev/null 2>&1; then
12822 as_test_x='test -x'
12823 else
12824 if ls -dL / >/dev/null 2>&1; then
12825 as_ls_L_option=L
12826 else
12827 as_ls_L_option=
12829 as_test_x='
12830 eval sh -c '\''
12831 if test -d "$1"; then
12832 test -d "$1/.";
12833 else
12834 case $1 in #(
12835 -*)set "./$1";;
12836 esac;
12837 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12838 ???[sx]*):;;*)false;;esac;fi
12839 '\'' sh
12842 as_executable_p=$as_test_x
12844 # Sed expression to map a string onto a valid CPP name.
12845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12847 # Sed expression to map a string onto a valid variable name.
12848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12851 exec 6>&1
12852 ## ----------------------------------- ##
12853 ## Main body of $CONFIG_STATUS script. ##
12854 ## ----------------------------------- ##
12855 _ASEOF
12856 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859 # Save the log message, to keep $0 and so on meaningful, and to
12860 # report actual input values of CONFIG_FILES etc. instead of their
12861 # values after options handling.
12862 ac_log="
12863 This file was extended by $as_me, which was
12864 generated by GNU Autoconf 2.68. Invocation command line was
12866 CONFIG_FILES = $CONFIG_FILES
12867 CONFIG_HEADERS = $CONFIG_HEADERS
12868 CONFIG_LINKS = $CONFIG_LINKS
12869 CONFIG_COMMANDS = $CONFIG_COMMANDS
12870 $ $0 $@
12872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12875 _ACEOF
12877 case $ac_config_files in *"
12878 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12879 esac
12881 case $ac_config_headers in *"
12882 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12883 esac
12886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12887 # Files that config.status was made for.
12888 config_files="$ac_config_files"
12889 config_headers="$ac_config_headers"
12890 config_commands="$ac_config_commands"
12892 _ACEOF
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895 ac_cs_usage="\
12896 \`$as_me' instantiates files and other configuration actions
12897 from templates according to the current configuration. Unless the files
12898 and actions are specified as TAGs, all are instantiated by default.
12900 Usage: $0 [OPTION]... [TAG]...
12902 -h, --help print this help, then exit
12903 -V, --version print version number and configuration settings, then exit
12904 --config print configuration, then exit
12905 -q, --quiet, --silent
12906 do not print progress messages
12907 -d, --debug don't remove temporary files
12908 --recheck update $as_me by reconfiguring in the same conditions
12909 --file=FILE[:TEMPLATE]
12910 instantiate the configuration file FILE
12911 --header=FILE[:TEMPLATE]
12912 instantiate the configuration header FILE
12914 Configuration files:
12915 $config_files
12917 Configuration headers:
12918 $config_headers
12920 Configuration commands:
12921 $config_commands
12923 Report bugs to the package provider."
12925 _ACEOF
12926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12927 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12928 ac_cs_version="\\
12929 config.status
12930 configured by $0, generated by GNU Autoconf 2.68,
12931 with options \\"\$ac_cs_config\\"
12933 Copyright (C) 2010 Free Software Foundation, Inc.
12934 This config.status script is free software; the Free Software Foundation
12935 gives unlimited permission to copy, distribute and modify it."
12937 ac_pwd='$ac_pwd'
12938 srcdir='$srcdir'
12939 test -n "\$AWK" || AWK=awk
12940 _ACEOF
12942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12943 # The default lists apply if the user does not specify any file.
12944 ac_need_defaults=:
12945 while test $# != 0
12947 case $1 in
12948 --*=?*)
12949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12951 ac_shift=:
12953 --*=)
12954 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12955 ac_optarg=
12956 ac_shift=:
12959 ac_option=$1
12960 ac_optarg=$2
12961 ac_shift=shift
12963 esac
12965 case $ac_option in
12966 # Handling of the options.
12967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12968 ac_cs_recheck=: ;;
12969 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12970 $as_echo "$ac_cs_version"; exit ;;
12971 --config | --confi | --conf | --con | --co | --c )
12972 $as_echo "$ac_cs_config"; exit ;;
12973 --debug | --debu | --deb | --de | --d | -d )
12974 debug=: ;;
12975 --file | --fil | --fi | --f )
12976 $ac_shift
12977 case $ac_optarg in
12978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12979 '') as_fn_error $? "missing file argument" ;;
12980 esac
12981 as_fn_append CONFIG_FILES " '$ac_optarg'"
12982 ac_need_defaults=false;;
12983 --header | --heade | --head | --hea )
12984 $ac_shift
12985 case $ac_optarg in
12986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12987 esac
12988 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12989 ac_need_defaults=false;;
12990 --he | --h)
12991 # Conflict between --help and --header
12992 as_fn_error $? "ambiguous option: \`$1'
12993 Try \`$0 --help' for more information.";;
12994 --help | --hel | -h )
12995 $as_echo "$ac_cs_usage"; exit ;;
12996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12998 ac_cs_silent=: ;;
13000 # This is an error.
13001 -*) as_fn_error $? "unrecognized option: \`$1'
13002 Try \`$0 --help' for more information." ;;
13004 *) as_fn_append ac_config_targets " $1"
13005 ac_need_defaults=false ;;
13007 esac
13008 shift
13009 done
13011 ac_configure_extra_args=
13013 if $ac_cs_silent; then
13014 exec 6>/dev/null
13015 ac_configure_extra_args="$ac_configure_extra_args --silent"
13018 _ACEOF
13019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13020 if \$ac_cs_recheck; then
13021 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13022 shift
13023 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13024 CONFIG_SHELL='$SHELL'
13025 export CONFIG_SHELL
13026 exec "\$@"
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031 exec 5>>config.log
13033 echo
13034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13035 ## Running $as_me. ##
13036 _ASBOX
13037 $as_echo "$ac_log"
13038 } >&5
13040 _ACEOF
13041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13043 # INIT-COMMANDS
13046 aros_host_exe_suffix=${aros_host_exe_suffix}
13047 aros_tools_dir=${aros_tools_dir}
13048 aros_target_cpu=${aros_target_cpu}
13049 aros_target_arch=${aros_target_arch}
13050 aros_target_suffix=${aros_target_suffix}
13051 aros_target_nm_ln=${aros_target_nm_ln}
13052 aros_target_as_ln=${aros_target_as_ln}
13053 aros_target_ar_ln=${aros_target_ar_ln}
13054 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13055 aros_target_objdump_ln=${aros_target_objdump_ln}
13056 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13057 aros_target_strip_ln=${aros_target_strip_ln}
13058 aros_kernel_ld=${aros_kernel_ld}
13061 aros_tools_dir=${aros_tools_dir}
13064 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13068 # Handling of arguments.
13069 for ac_config_target in $ac_config_targets
13071 case $ac_config_target in
13072 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13073 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13074 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13076 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13077 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13078 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13079 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13080 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13081 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13082 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13083 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13084 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13085 "${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" ;;
13086 "${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" ;;
13087 "${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" ;;
13088 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13089 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13090 "${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" ;;
13092 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13093 esac
13094 done
13097 # If the user did not use the arguments to specify the items to instantiate,
13098 # then the envvar interface is used. Set only those that are not.
13099 # We use the long form for the default assignment because of an extremely
13100 # bizarre bug on SunOS 4.1.3.
13101 if $ac_need_defaults; then
13102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13107 # Have a temporary directory for convenience. Make it in the build tree
13108 # simply because there is no reason against having it here, and in addition,
13109 # creating and moving files from /tmp can sometimes cause problems.
13110 # Hook for its removal unless debugging.
13111 # Note that there is a small window in which the directory will not be cleaned:
13112 # after its creation but before its name has been assigned to `$tmp'.
13113 $debug ||
13115 tmp= ac_tmp=
13116 trap 'exit_status=$?
13117 : "${ac_tmp:=$tmp}"
13118 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13120 trap 'as_fn_exit 1' 1 2 13 15
13122 # Create a (secure) tmp directory for tmp files.
13125 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13126 test -d "$tmp"
13127 } ||
13129 tmp=./conf$$-$RANDOM
13130 (umask 077 && mkdir "$tmp")
13131 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13132 ac_tmp=$tmp
13134 # Set up the scripts for CONFIG_FILES section.
13135 # No need to generate them if there are no CONFIG_FILES.
13136 # This happens for instance with `./config.status config.h'.
13137 if test -n "$CONFIG_FILES"; then
13140 ac_cr=`echo X | tr X '\015'`
13141 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13142 # But we know of no other shell where ac_cr would be empty at this
13143 # point, so we can use a bashism as a fallback.
13144 if test "x$ac_cr" = x; then
13145 eval ac_cr=\$\'\\r\'
13147 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13149 ac_cs_awk_cr='\\r'
13150 else
13151 ac_cs_awk_cr=$ac_cr
13154 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13155 _ACEOF
13159 echo "cat >conf$$subs.awk <<_ACEOF" &&
13160 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13161 echo "_ACEOF"
13162 } >conf$$subs.sh ||
13163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13164 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13165 ac_delim='%!_!# '
13166 for ac_last_try in false false false false false :; do
13167 . ./conf$$subs.sh ||
13168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13170 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13171 if test $ac_delim_n = $ac_delim_num; then
13172 break
13173 elif $ac_last_try; then
13174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13175 else
13176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13178 done
13179 rm -f conf$$subs.sh
13181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13182 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13183 _ACEOF
13184 sed -n '
13186 s/^/S["/; s/!.*/"]=/
13189 s/^[^!]*!//
13190 :repl
13191 t repl
13192 s/'"$ac_delim"'$//
13193 t delim
13196 s/\(.\{148\}\)..*/\1/
13197 t more1
13198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13201 b repl
13202 :more1
13203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13206 s/.\{148\}//
13207 t nl
13208 :delim
13210 s/\(.\{148\}\)..*/\1/
13211 t more2
13212 s/["\\]/\\&/g; s/^/"/; s/$/"/
13215 :more2
13216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13219 s/.\{148\}//
13220 t delim
13221 ' <conf$$subs.awk | sed '
13222 /^[^""]/{
13224 s/\n//
13226 ' >>$CONFIG_STATUS || ac_write_fail=1
13227 rm -f conf$$subs.awk
13228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229 _ACAWK
13230 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13231 for (key in S) S_is_set[key] = 1
13232 FS = "\a"
13236 line = $ 0
13237 nfields = split(line, field, "@")
13238 substed = 0
13239 len = length(field[1])
13240 for (i = 2; i < nfields; i++) {
13241 key = field[i]
13242 keylen = length(key)
13243 if (S_is_set[key]) {
13244 value = S[key]
13245 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13246 len += length(value) + length(field[++i])
13247 substed = 1
13248 } else
13249 len += 1 + keylen
13252 print line
13255 _ACAWK
13256 _ACEOF
13257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13259 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13260 else
13262 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13263 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13264 _ACEOF
13266 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13267 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13268 # trailing colons and then remove the whole line if VPATH becomes empty
13269 # (actually we leave an empty line to preserve line numbers).
13270 if test "x$srcdir" = x.; then
13271 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13273 s///
13274 s/^/:/
13275 s/[ ]*$/:/
13276 s/:\$(srcdir):/:/g
13277 s/:\${srcdir}:/:/g
13278 s/:@srcdir@:/:/g
13279 s/^:*//
13280 s/:*$//
13282 s/\(=[ ]*\).*/\1/
13284 s/\n//
13285 s/^[^=]*=[ ]*$//
13289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13290 fi # test -n "$CONFIG_FILES"
13292 # Set up the scripts for CONFIG_HEADERS section.
13293 # No need to generate them if there are no CONFIG_HEADERS.
13294 # This happens for instance with `./config.status Makefile'.
13295 if test -n "$CONFIG_HEADERS"; then
13296 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13297 BEGIN {
13298 _ACEOF
13300 # Transform confdefs.h into an awk script `defines.awk', embedded as
13301 # here-document in config.status, that substitutes the proper values into
13302 # config.h.in to produce config.h.
13304 # Create a delimiter string that does not exist in confdefs.h, to ease
13305 # handling of long lines.
13306 ac_delim='%!_!# '
13307 for ac_last_try in false false :; do
13308 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13309 if test -z "$ac_tt"; then
13310 break
13311 elif $ac_last_try; then
13312 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13313 else
13314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13316 done
13318 # For the awk script, D is an array of macro values keyed by name,
13319 # likewise P contains macro parameters if any. Preserve backslash
13320 # newline sequences.
13322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13323 sed -n '
13324 s/.\{148\}/&'"$ac_delim"'/g
13325 t rset
13326 :rset
13327 s/^[ ]*#[ ]*define[ ][ ]*/ /
13328 t def
13330 :def
13331 s/\\$//
13332 t bsnl
13333 s/["\\]/\\&/g
13334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13335 D["\1"]=" \3"/p
13336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13338 :bsnl
13339 s/["\\]/\\&/g
13340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13341 D["\1"]=" \3\\\\\\n"\\/p
13342 t cont
13343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13344 t cont
13346 :cont
13348 s/.\{148\}/&'"$ac_delim"'/g
13349 t clear
13350 :clear
13351 s/\\$//
13352 t bsnlc
13353 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13355 :bsnlc
13356 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13357 b cont
13358 ' <confdefs.h | sed '
13359 s/'"$ac_delim"'/"\\\
13360 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363 for (key in D) D_is_set[key] = 1
13364 FS = "\a"
13366 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13367 line = \$ 0
13368 split(line, arg, " ")
13369 if (arg[1] == "#") {
13370 defundef = arg[2]
13371 mac1 = arg[3]
13372 } else {
13373 defundef = substr(arg[1], 2)
13374 mac1 = arg[2]
13376 split(mac1, mac2, "(") #)
13377 macro = mac2[1]
13378 prefix = substr(line, 1, index(line, defundef) - 1)
13379 if (D_is_set[macro]) {
13380 # Preserve the white space surrounding the "#".
13381 print prefix "define", macro P[macro] D[macro]
13382 next
13383 } else {
13384 # Replace #undef with comments. This is necessary, for example,
13385 # in the case of _POSIX_SOURCE, which is predefined and required
13386 # on some systems where configure will not decide to define it.
13387 if (defundef == "undef") {
13388 print "/*", prefix defundef, macro, "*/"
13389 next
13393 { print }
13394 _ACAWK
13395 _ACEOF
13396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13397 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13398 fi # test -n "$CONFIG_HEADERS"
13401 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13402 shift
13403 for ac_tag
13405 case $ac_tag in
13406 :[FHLC]) ac_mode=$ac_tag; continue;;
13407 esac
13408 case $ac_mode$ac_tag in
13409 :[FHL]*:*);;
13410 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13411 :[FH]-) ac_tag=-:-;;
13412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13413 esac
13414 ac_save_IFS=$IFS
13415 IFS=:
13416 set x $ac_tag
13417 IFS=$ac_save_IFS
13418 shift
13419 ac_file=$1
13420 shift
13422 case $ac_mode in
13423 :L) ac_source=$1;;
13424 :[FH])
13425 ac_file_inputs=
13426 for ac_f
13428 case $ac_f in
13429 -) ac_f="$ac_tmp/stdin";;
13430 *) # Look for the file first in the build tree, then in the source tree
13431 # (if the path is not absolute). The absolute path cannot be DOS-style,
13432 # because $ac_f cannot contain `:'.
13433 test -f "$ac_f" ||
13434 case $ac_f in
13435 [\\/$]*) false;;
13436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13437 esac ||
13438 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13439 esac
13440 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13441 as_fn_append ac_file_inputs " '$ac_f'"
13442 done
13444 # Let's still pretend it is `configure' which instantiates (i.e., don't
13445 # use $as_me), people would be surprised to read:
13446 # /* config.h. Generated by config.status. */
13447 configure_input='Generated from '`
13448 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13449 `' by configure.'
13450 if test x"$ac_file" != x-; then
13451 configure_input="$ac_file. $configure_input"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13453 $as_echo "$as_me: creating $ac_file" >&6;}
13455 # Neutralize special characters interpreted by sed in replacement strings.
13456 case $configure_input in #(
13457 *\&* | *\|* | *\\* )
13458 ac_sed_conf_input=`$as_echo "$configure_input" |
13459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13460 *) ac_sed_conf_input=$configure_input;;
13461 esac
13463 case $ac_tag in
13464 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13466 esac
13468 esac
13470 ac_dir=`$as_dirname -- "$ac_file" ||
13471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13472 X"$ac_file" : 'X\(//\)[^/]' \| \
13473 X"$ac_file" : 'X\(//\)$' \| \
13474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13475 $as_echo X"$ac_file" |
13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13477 s//\1/
13480 /^X\(\/\/\)[^/].*/{
13481 s//\1/
13484 /^X\(\/\/\)$/{
13485 s//\1/
13488 /^X\(\/\).*/{
13489 s//\1/
13492 s/.*/./; q'`
13493 as_dir="$ac_dir"; as_fn_mkdir_p
13494 ac_builddir=.
13496 case "$ac_dir" in
13497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13500 # A ".." for each directory in $ac_dir_suffix.
13501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13502 case $ac_top_builddir_sub in
13503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13505 esac ;;
13506 esac
13507 ac_abs_top_builddir=$ac_pwd
13508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13509 # for backward compatibility:
13510 ac_top_builddir=$ac_top_build_prefix
13512 case $srcdir in
13513 .) # We are building in place.
13514 ac_srcdir=.
13515 ac_top_srcdir=$ac_top_builddir_sub
13516 ac_abs_top_srcdir=$ac_pwd ;;
13517 [\\/]* | ?:[\\/]* ) # Absolute name.
13518 ac_srcdir=$srcdir$ac_dir_suffix;
13519 ac_top_srcdir=$srcdir
13520 ac_abs_top_srcdir=$srcdir ;;
13521 *) # Relative name.
13522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13523 ac_top_srcdir=$ac_top_build_prefix$srcdir
13524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13525 esac
13526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13529 case $ac_mode in
13532 # CONFIG_FILE
13535 _ACEOF
13537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13538 # If the template does not know about datarootdir, expand it.
13539 # FIXME: This hack should be removed a few years after 2.60.
13540 ac_datarootdir_hack=; ac_datarootdir_seen=
13541 ac_sed_dataroot='
13542 /datarootdir/ {
13546 /@datadir@/p
13547 /@docdir@/p
13548 /@infodir@/p
13549 /@localedir@/p
13550 /@mandir@/p'
13551 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13552 *datarootdir*) ac_datarootdir_seen=yes;;
13553 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13555 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558 ac_datarootdir_hack='
13559 s&@datadir@&$datadir&g
13560 s&@docdir@&$docdir&g
13561 s&@infodir@&$infodir&g
13562 s&@localedir@&$localedir&g
13563 s&@mandir@&$mandir&g
13564 s&\\\${datarootdir}&$datarootdir&g' ;;
13565 esac
13566 _ACEOF
13568 # Neutralize VPATH when `$srcdir' = `.'.
13569 # Shell code in configure.ac might set extrasub.
13570 # FIXME: do we really want to maintain this feature?
13571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572 ac_sed_extra="$ac_vpsub
13573 $extrasub
13574 _ACEOF
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13578 s|@configure_input@|$ac_sed_conf_input|;t t
13579 s&@top_builddir@&$ac_top_builddir_sub&;t t
13580 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13581 s&@srcdir@&$ac_srcdir&;t t
13582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13583 s&@top_srcdir@&$ac_top_srcdir&;t t
13584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13585 s&@builddir@&$ac_builddir&;t t
13586 s&@abs_builddir@&$ac_abs_builddir&;t t
13587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13588 $ac_datarootdir_hack
13590 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13591 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13594 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13596 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13598 which seems to be undefined. Please make sure it is defined" >&5
13599 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13600 which seems to be undefined. Please make sure it is defined" >&2;}
13602 rm -f "$ac_tmp/stdin"
13603 case $ac_file in
13604 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13605 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13606 esac \
13607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13611 # CONFIG_HEADER
13613 if test x"$ac_file" != x-; then
13615 $as_echo "/* $configure_input */" \
13616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13617 } >"$ac_tmp/config.h" \
13618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13619 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13621 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13622 else
13623 rm -f "$ac_file"
13624 mv "$ac_tmp/config.h" "$ac_file" \
13625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13627 else
13628 $as_echo "/* $configure_input */" \
13629 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13630 || as_fn_error $? "could not create -" "$LINENO" 5
13634 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13635 $as_echo "$as_me: executing $ac_file commands" >&6;}
13637 esac
13640 case $ac_file$ac_mode in
13641 "compiler_executable":C)
13642 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13643 mkdir -p $prefix
13644 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13645 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13647 echo ${prefix2}
13648 echo ${prefix3}
13649 chmod a+x ${prefix2}-gcc ${prefix2}-ld ${prefix3}-gcc
13651 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13652 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13653 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13654 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13655 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13656 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13657 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13659 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13661 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13663 esac
13664 done # for ac_tag
13667 as_fn_exit 0
13668 _ACEOF
13669 ac_clean_files=$ac_clean_files_save
13671 test $ac_write_fail = 0 ||
13672 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13675 # configure is writing to config.log, and then calls config.status.
13676 # config.status does its own redirection, appending to config.log.
13677 # Unfortunately, on DOS this fails, as config.log is still kept open
13678 # by configure, so config.status won't be able to write to it; its
13679 # output is simply discarded. So we exec the FD to /dev/null,
13680 # effectively closing config.log, so it can be properly (re)opened and
13681 # appended to by config.status. When coming back to configure, we
13682 # need to make the FD available again.
13683 if test "$no_create" != yes; then
13684 ac_cs_success=:
13685 ac_config_status_args=
13686 test "$silent" = yes &&
13687 ac_config_status_args="$ac_config_status_args --quiet"
13688 exec 5>/dev/null
13689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13690 exec 5>>config.log
13691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13692 # would make configure fail if this is the last instruction.
13693 $ac_cs_success || as_fn_exit 1
13695 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13697 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13702 #XXX compatability...
13703 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13705 if test -n "$aros_shared_cflags" ; then
13706 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13707 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg